Jump to content
The Dark Mod Forums

How to make Cvars be constant?


LEGION

Recommended Posts

I want to activate this:

 

tdm_frob_ammo_selects_weapon (this is from your wiki, but it´s wrong!)

the right cvar is:

 

tdm_frob_weapon_selects_weapon

But everytime I write it in the console (FM installed or not), on the next gamestart it´s gone! (back to default) The same for the DoomConfig(if it would be standing in it in the first place, it would work, like the playerShadow I activated, beautiful by the way!)!

 

Is there a way to solve this?

 

Ok, I can bind a key with this, but there must be a way! Maybe changing the default value? However to achieve this...

-> Crisis of Capitalism

-> 9/11 Truth

->

(hard stuff), more
Link to comment
Share on other sites

I want to activate this:

 

tdm_frob_ammo_selects_weapon (this is from your wiki, but it´s wrong!)

the right cvar is:

 

tdm_frob_weapon_selects_weapon

 

I have corrected the wiki, thanx!

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

Generally note several points about configs:

 

Check if it is a Dark Mod menu option. If so, use that unless it's a special customisation such as screen res.

 

If manually changing DoomConfig.cfg then make sure you read the following because Dark Mod works differently to Doom3 and other mods:

http://wiki.thedarkmod.com/index.php?title=DoomConfig.cfg

 

Some settings do not seem to stay fixed, for example, field of view g_fov. If so, you can also try putting a setting in autoexec.cfg. Either add to an existing autoexec.cfg or create a new one if not. This can go in the doom base folder to be global or in darkmod to be global to all darkmod gameplay or in a game folder to be specific to that. Note the syntax seems to be slightly different to DoomConfig.cfg and it does not use the quote marks, eg,

 

set g_fov 75

 

I cannot guarantee it will always work though as I recently had some odd changes which I've not had time to investigate. :)

 

To bind a cvar to a key by example:

 

bind "KP_5" "r_showtris 3"

 

To toggle a cvar on and off:

 

bind "KP_5" "toggle r_showtris 0 3"

 

For other keybind examples and help see:

 

http://wiki.thedarkmod.com/index.php?title=Bindings_and_User_Settings

Link to comment
Share on other sites

I have to create the autoexec.cfg, right? Cause I don´t have one!

 

So, I´m always trying things first in the console and this way I don´t have to uninstall any FM, cause the cfg´s are synchronized upon quitting DarkMod, right? And when a change is not 'sticky', I don´t have to bother trying Doom3config, cause it won´t work anyway, right?

 

And when using Autoexec.cfg in the first place, it overrides maybe existing different values in the Doom3config?

-> Crisis of Capitalism

-> 9/11 Truth

->

(hard stuff), more
Link to comment
Share on other sites

I tried the same for Doom3 itself with 'pm_walkspeed 110'. When I´m in the main menu and put down the console to check, it´s working. But when I start or load a game, Doom3 sets it back to the default value! I tried it with 'set' and 'seta', but nothing was successful.

So I added it in the default.cfg located in pak000.pk4, but this isn´t working too. That´s odd, because this way I added 'seta com_allowConsole "1"' some days ago. (to get the console just with '^') But this is now working too with the Autoexec.cfg. Hmm, where the hell are the default values set? Can I even get there with simple Notepad?

-> Crisis of Capitalism

-> 9/11 Truth

->

(hard stuff), more
Link to comment
Share on other sites

Maybe some things are hard coded. Changing the walk speed for instance can break missions. Run speed is based on it so if you can outrun a front gate guard and get into a mansion at the start in the front door then it might all go wrong if the FM-maker designed it so you should not. Or climb a wall that should be too high etc. I just don't know.

Link to comment
Share on other sites

Yeah, I thought that too. I wanted only to be slower in Doom3 and here the run-speed is set to a value (200), no matter how fast or slow the walking-speed.

I know that the DarkMod modifies the current state so I won´t mess with it!

 

Another observation: It seems DarkMod is using this default.cfg from the Doom3-folder, cause I had this 'allow_console'-cmd in there and now, that I put it in Doom3´s Autoexec the console in DarkMod is 'old-style' (with Strg+Alt to put it down). So it was a good thing the 'pm_walkspeed' didn´t worked, other way I would had changed the walk speed in DarkMod too without knowing of it. I say this in case other users might wanna try what I did. No messing with the 'default.cfg'!;)

-> Crisis of Capitalism

-> 9/11 Truth

->

(hard stuff), more
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 6 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...