Quake3World.com Forums
     Programming Discussion
        Config strings


Post new topicReply to topic
Login | Profile | | FAQ | Search | IRC




Print view Previous topic | Next topic 
Topic Starter Topic: Config strings

Commander
Commander
Joined: 06 Oct 2006
Posts: 148
PostPosted: 04-13-2012 10:32 AM           Profile Send private message  E-mail  Edit post Reply with quote


Can someone point me in the right direction for viewing/intercepting the config string (CS_) data passed between the server and client/cgame?

An explanation of how cs are passed between server/client/cgame module also would be much appreciated!!




Top
                 

Mentor
Mentor
Joined: 12 Mar 2005
Posts: 3958
PostPosted: 04-14-2012 04:09 PM           Profile Send private message  E-mail  Edit post Reply with quote


You can look up the implementation in the ioquake3 code base but it's pretty straightforward: the config strings are an array of free-form ASCII strings that the server broadcasts to the clients. The strings are of arbitrary size, i.e. they're not limited to 255 chars.

From a mod author perspective they're dead simple to use: just call `trap_SetConfigstring(index, value)`, the engine takes care of the rest.




Top
                 

Commander
Commander
Joined: 06 Oct 2006
Posts: 148
PostPosted: 04-18-2012 04:00 PM           Profile Send private message  E-mail  Edit post Reply with quote


Cool. Thanks for the info.




Top
                 
Quake3World.com | Forum Index | Programming Discussion


Post new topic Reply to topic


cron
Quake3World.com
© ZeniMax. Zenimax, QUAKE III ARENA, Id Software and associated trademarks are trademarks of the ZeniMax group of companies. All rights reserved.
This is an unofficial fan website without any affiliation with or endorsement by ZeniMax.
All views and opinions expressed are those of the author.