Keys Config per map? [message #487780] |
Sat, 07 June 2014 16:03 |
|
Jerad2142
Messages: 3813 Registered: July 2006 Location: USA
Karma: 6
|
General (3 Stars) |
|
|
I'm making a map for Renegade and I'd like to add a key that on key press shows the players their current objectives, if I put a modified keys.ini in the mix does that work? Or is there a better way to do it?
Visit Jerad's deer sweat shop
|
|
|
|
|
|
Re: Keys Config per map? [message #487791 is a reply to message #487780] |
Sun, 08 June 2014 16:12 |
|
danpaul88
Messages: 5795 Registered: June 2004 Location: England
Karma: 0
|
General (5 Stars) |
|
|
In theory it would work, if the following assumptions were true (might not be);
1) keys.cfg is loaded using the same methods as other INI files
2) keys.cfg is read during map load and not as a one-time init thing
There's a good chance that 1 is not true (since normal files don't support saving them back out to disk at runtime, nor reading from the user data folder) and that 2 is also not true (since it has to be loaded in memory in order to populate the entries in the extended config options).
So, in all likelihood, no, it's not read per-map.
[Updated on: Sun, 08 June 2014 16:13] Report message to a moderator
|
|
|
Re: Keys Config per map? [message #487792 is a reply to message #487780] |
Sun, 08 June 2014 16:13 |
|
Yes, keys.cfg is read once only on startup.
Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
|
|
|
|
|
|
Re: Keys Config per map? [message #487798 is a reply to message #487780] |
Mon, 09 June 2014 16:37 |
|
Ethenal
Messages: 2532 Registered: January 2007 Location: US of A
Karma: 0
|
General (2 Stars) |
|
|
Also note that sometimes various versions of the TT installer have failed (at least for myself personally) to put the default keys.cfg in the %DOCUMENTS%\Renegade\Client folder, and I don't believe that the auto-updater ever updates the keys.cfg file. Therefore, you'll randomly find some people that have no keys.cfg and therefore none of the shortcut keys, including the default "U" key ChatHistory bind and others.
Also, http://black-cell.net/keys.zip (courtesy of WhiteDragon) has a good default keys.cfg to use.
-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29 | Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade
|
[Updated on: Mon, 09 June 2014 16:38] Report message to a moderator
|
|
|
|
|
Re: Keys Config per map? [message #487805 is a reply to message #487780] |
Tue, 10 June 2014 02:26 |
|
danpaul88
Messages: 5795 Registered: June 2004 Location: England
Karma: 0
|
General (5 Stars) |
|
|
It'll generally copy the default data\keys.cfg from the install directory to the documents folder location if one doesn't already exist in the documents folder. Of course, if you don't have one in the data folder either then it has nothing to copy... but that might explain why the installer looks like it doesn't add it, if it is actually putting it in the data folder (it would be added to the documents folder the first time you edited them using the ingame editor)
|
|
|