Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » Keys Config per map?
Keys Config per map? [message #487780] Sat, 07 June 2014 16:03 Go to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3805
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?

Re: Keys Config per map? [message #487781 is a reply to message #487780] Sat, 07 June 2014 17:17 Go to previous messageGo to next message
Ethenal is currently offline  Ethenal
Messages: 2532
Registered: January 2007
Location: US of A
Karma: 0
General (2 Stars)

I'm fairly sure you must put the keys.cfg in your Renegade documents folder, for example:

C:\Users\Jerad\Documents\Renegade\Client\keys.cfg


-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 Thumbs Up

Re: Keys Config per map? [message #487786 is a reply to message #487780] Sun, 08 June 2014 02:34 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
http://www.danpaul88.co.uk/ttdocs/page_keyhooks.html

http://steamsignature.com/card/1/76561197975867233.png
Re: Keys Config per map? [message #487789 is a reply to message #487786] Sun, 08 June 2014 09:26 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3805
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Lol I know how keyhooks work I'm specifically talking about this part " If a logical key is hooked by a script but does not exist in a players keys.cfg file they will be unable to activate the key hook for that script." I'm asking if we can deliver an updated keyhooks file inside of a mix so players don't have to modify their keyhooks file to use a key on a specific map. I'd like this to work without the client having to do something else (like download it with the map manually).

Re: Keys Config per map? [message #487791 is a reply to message #487780] Sun, 08 June 2014 16:12 Go to previous messageGo to next message
danpaul88 is currently offline  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.


http://steamsignature.com/card/1/76561197975867233.png

[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 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3555
Registered: February 2003
Karma: 0
General (3 Stars)

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 #487794 is a reply to message #487792] Sun, 08 June 2014 21:44 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3805
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
So do we have any work around solutions or is this just another feature that is beyond our abilities to support?

Re: Keys Config per map? [message #487795 is a reply to message #487780] Mon, 09 June 2014 01:10 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
You have to remember keys.cfg was mainly used by total conversion mods which simply patched it with new entries when they needed to add features... I don't think it's ever been used particularly within Renegade itself, other than some SSGM features.

You could try using one of the existing SSGM logical keys for your map? Most players should have those installed.


http://steamsignature.com/card/1/76561197975867233.png
Re: Keys Config per map? [message #487796 is a reply to message #487795] Mon, 09 June 2014 15:50 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3805
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
danpaul88 wrote on Mon, 09 June 2014 02:10

You have to remember keys.cfg was mainly used by total conversion mods which simply patched it with new entries when they needed to add features... I don't think it's ever been used particularly within Renegade itself, other than some SSGM features.

You could try using one of the existing SSGM logical keys for your map? Most players should have those installed.

I could, but if I ever make it so players can use Renegade Asteroids map in Renegade itself that'll require a good 20 more keys, and it won't be much good through the map downloader if the map is only partially functional if you can use your super weapons, shields or other abilities. I do think it'd be a cool feature if you could make it so keys could automatically be added to players keys.ini file if you joined a map with a logical mapping the player didn't have (I noticed that scripts.dll seems to be injecting some defaults for keys.ini, so I'd think this would be doing if you guys would be willing to add support).


Re: Keys Config per map? [message #487798 is a reply to message #487780] Mon, 09 June 2014 16:37 Go to previous messageGo to next message
Ethenal is currently offline  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 Thumbs Up

[Updated on: Mon, 09 June 2014 16:38]

Report message to a moderator

Re: Keys Config per map? [message #487799 is a reply to message #487780] Mon, 09 June 2014 16:50 Go to previous messageGo to next message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma: 0
General (1 Star)
I also have mines uploaded. Probably the same.

http://www.ttp-gaming.net/forums/downloads/keys.rar


http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg

Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.

Part time streamer - https://twitch.tv/gg_wonder
Re: Keys Config per map? [message #487804 is a reply to message #487798] Mon, 09 June 2014 20:34 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3805
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Ethenal wrote on Mon, 09 June 2014 17:37

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.



Well that kind of puts a hole in all my ideas Sad


Re: Keys Config per map? [message #487805 is a reply to message #487780] Tue, 10 June 2014 02:26 Go to previous message
danpaul88 is currently offline  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)

http://steamsignature.com/card/1/76561197975867233.png
Previous Topic: End Game Results displayed until a player joins then rejoins a server
Next Topic: TT Level Edit bug
Goto Forum:
  


Current Time: Thu Apr 18 10:09:59 MST 2024

Total time taken to generate the page: 0.01285 seconds