Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » Writing Custom Keys
Writing Custom Keys [message #373941] Sat, 28 February 2009 09:59 Go to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
In counter strike, the server owner can program the server to write a client's key configuration a specific way.

I was wondering would it be possible for the TT Team to add a server side function that allows us programmers to add keys and values to a client's keys.cfg... without them having to edit it themselves all the time.

Also you could have it reset every time they leave the server so that if the programmer screws up the main keys.. they wont be screwed up for the next server to join.


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*

[Updated on: Sat, 28 February 2009 10:00]

Report message to a moderator

Re: Writing Custom Keys [message #373944 is a reply to message #373941] Sat, 28 February 2009 10:21 Go to previous messageGo to next message
a000clown
Messages: 363
Registered: May 2005
Location: Canada
Karma: 0
Commander
That's a horrible idea. I wouldn't want any server designating what keys do what for me.

Server owners can already create Logical Keys for the players to assign to Physical Keys, that's more than enough.
Re: Writing Custom Keys [message #373968 is a reply to message #373941] Sat, 28 February 2009 12:49 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
What if a server has a key like the " key for some kind of menu or for a special function, if a newb (a good 50% or renegade) doesnt know how to open his keys.cfg and set it up to use on the server?

http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: Writing Custom Keys [message #373973 is a reply to message #373941] Sat, 28 February 2009 13:14 Go to previous messageGo to next message
a000clown
Messages: 363
Registered: May 2005
Location: Canada
Karma: 0
Commander
Teach them or create an installer.
If they're not willing to take the time to learn they don't deserve to use it.

What would happen if I setup my keys.cfg to use that key for something else? Then two things would happen, or one would have to be overridden.
Re: Writing Custom Keys [message #373982 is a reply to message #373941] Sat, 28 February 2009 14:11 Go to previous messageGo to next message
saberhawk
Messages: 1068
Registered: January 2006
Location: ::1
Karma: 0
General (1 Star)
Servers have no business changing a client's key configuration.
Re: Writing Custom Keys [message #374063 is a reply to message #373982] Sun, 01 March 2009 02:30 Go to previous messageGo to next message
CarrierII is currently offline  CarrierII
Messages: 3804
Registered: February 2006
Location: England
Karma: 0
General (3 Stars)

Saberhawk wrote on Sat, 28 February 2009 21:11

Servers have no business changing a client's key configuration.


Yeah, I'd get very annoyed. I've got my keys setup where I want them, I don't want to have to spend the first minute of a game reconfiguring them because a server overrode it.


Renguard is a wonderful initiative
Toggle Spoiler
Re: Writing Custom Keys [message #374086 is a reply to message #373941] Sun, 01 March 2009 06:46 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
halo2pac wrote on Sat, 28 February 2009 10:59

Also you could have it reset (to the default) every time they leave the server so that if the programmer screws up the main keys.. they wont be screwed up for the next server to join.



http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: Writing Custom Keys [message #374087 is a reply to message #373941] Sun, 01 March 2009 07:04 Go to previous messageGo to next message
Ghostshaw is currently offline  Ghostshaw
Messages: 709
Registered: September 2006
Karma: 0
Colonel
It would still be annoying. What if the server maps some important key to the same key as you have Push to talk mapped to. That sort of thing would be really annoying.

BlackIntel Administrator
Re: Writing Custom Keys [message #374095 is a reply to message #373941] Sun, 01 March 2009 07:52 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
It would be good if the server could request certain keys to be sent, if they aren't already mapped.
Re: Writing Custom Keys [message #374157 is a reply to message #374095] Sun, 01 March 2009 12:12 Go to previous messageGo to next message
saberhawk
Messages: 1068
Registered: January 2006
Location: ::1
Karma: 0
General (1 Star)
RoShamBo wrote on Sun, 01 March 2009 09:52

It would be good if the server could request certain keys to be sent, if they aren't already mapped.


And the client can tell that I have X key mapped to TeamSpeak PTT, Y key mapped Ventrillo PTT, and Z key mapped to yet another program *how*?
Re: Writing Custom Keys [message #374184 is a reply to message #373941] Sun, 01 March 2009 13:39 Go to previous messageGo to next message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

By remapping the key that the server set to something else. It's better than having no mapping for that key for people who do not know/want to set up their client's keys.

BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/
Re: Writing Custom Keys [message #374192 is a reply to message #374157] Sun, 01 March 2009 14:19 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
Saberhawk wrote on Sun, 01 March 2009 19:12

RoShamBo wrote on Sun, 01 March 2009 09:52

It would be good if the server could request certain keys to be sent, if they aren't already mapped.


And the client can tell that I have X key mapped to TeamSpeak PTT, Y key mapped Ventrillo PTT, and Z key mapped to yet another program *how*?


That's not the server's problem, if the client can't setup a virtual key for it then that's their problem.
Re: Writing Custom Keys [message #374203 is a reply to message #373941] Sun, 01 March 2009 14:40 Go to previous messageGo to next message
halo2pac is currently offline  halo2pac
Messages: 659
Registered: December 2006
Location: Near Cleveland, Ohio
Karma: 0
Colonel
maybe with the new release, you just have 2-4 keys set as like "custom_1", "custom_2", ect.
so we can hook em if we need so.


http://img339.imageshack.us/img339/1991/nefobbygenyunoreleasere.jpg
Rene-Buddy | Renegade X
Join the fight against Obsessive-Compulsive Posting Disorder. Cancel is ur friend.
*Renegade X Dev Team Member*
Re: Writing Custom Keys [message #374204 is a reply to message #374192] Sun, 01 March 2009 14:40 Go to previous messageGo to next message
saberhawk
Messages: 1068
Registered: January 2006
Location: ::1
Karma: 0
General (1 Star)
RoShamBo wrote on Sun, 01 March 2009 16:19

Saberhawk wrote on Sun, 01 March 2009 19:12

RoShamBo wrote on Sun, 01 March 2009 09:52

It would be good if the server could request certain keys to be sent, if they aren't already mapped.


And the client can tell that I have X key mapped to TeamSpeak PTT, Y key mapped Ventrillo PTT, and Z key mapped to yet another program *how*?


That's not the server's problem, if the client can't setup a virtual key for it then that's their problem.


Yeah, but the server has no business telling my client what my X button does. TT could add a few "pre-bound" virtual keys (which the clients can definitely change to whatever they please), but allowing the server to change client key configuration really should not be done.
Re: Writing Custom Keys [message #374213 is a reply to message #374203] Sun, 01 March 2009 15:35 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
halo2pac wrote on Sun, 01 March 2009 14:40

maybe with the new release, you just have 2-4 keys set as like "custom_1", "custom_2", ect.
so we can hook em if we need so.


Rebind the commands and features that are already bound to those keys... :/
Re: Writing Custom Keys [message #374216 is a reply to message #373941] Sun, 01 March 2009 16:17 Go to previous messageGo to next message
mrãçķz is currently offline  mrãçķz
Messages: 3069
Registered: August 2007
Karma: 0
General (3 Stars)
Permabanned for trying and failing DDoS
What you can already do ServerSide is:

Example: NUM1 = page message bla bla
then if you press NUM1 2 times then it will display another message, not the same one, isnt that enough?
Re: Writing Custom Keys [message #374225 is a reply to message #374216] Sun, 01 March 2009 17:22 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
madrackz wrote on Sun, 01 March 2009 16:17

What you can already do ServerSide is:

Example: NUM1 = page message bla bla
then if you press NUM1 2 times then it will display another message, not the same one, isnt that enough?



That's what I just said in my post above yours. :/
Re: Writing Custom Keys [message #374248 is a reply to message #373941] Sun, 01 March 2009 19:26 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)

This thread has jarring similarity to the RenGooey discussion.

-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: Writing Custom Keys [message #374259 is a reply to message #374248] Sun, 01 March 2009 20:12 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3811
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
The server could just display a dialog on the client ASKING if the key could be changed, then it wouldn't have to check if it was being used...

It'd be really useful if the server could add entries for the client for special server specific hot keys.


Re: Writing Custom Keys [message #374283 is a reply to message #374259] Sun, 01 March 2009 22:26 Go to previous message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
Jerad Gray wrote on Sun, 01 March 2009 20:12

The server could just display a dialog on the client ASKING if the key could be changed, then it wouldn't have to check if it was being used...

It'd be really useful if the server could add entries for the client for special server specific hot keys.



Your first suggestion wouldn't be work imo.. If you have a prompt/dialog asking the user for permission to change this key (which I'm assuming it'd be like a PAMSG, amirite?), then make the default selected button "No" because most players would simply clear the dialog and continue playing not even bothering to read the prompt.

As for your second suggestion... That'd be neat, if you can come up with a unique way to "hash" (most likely not literally) the server's information into an INI format, e.g.

Example keys.cfg
[/align]

You get what I mean..I hope.. lol

Wink


*Note: I only used C4 and ChatHistory as examples. The {...}, ofc, means etc etc!

[Updated on: Sun, 01 March 2009 22:27]

Report message to a moderator

Previous Topic: PT but upon re-entry after crash
Next Topic: bug with idle server
Goto Forum:
  


Current Time: Wed Nov 27 09:53:12 MST 2024

Total time taken to generate the page: 0.01009 seconds