Quake3World.com Forums
     Programming Discussion
        Modifying an structure


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




Print view Previous topic | Next topic 
Topic Starter Topic: Modifying an structure

Commander
Commander
Joined: 22 Jul 2011
Posts: 139
PostPosted: 09-07-2011 06:18 AM           Profile Send private message  E-mail  Edit post Reply with quote


I've added a variable in trajectory_s and when I compile (with Lcc) game and cgame I don't get any errors or warnings but when I get in game I get this error: CM_INLINEMODEL: BAD NUMBER. I've searched this message in the source code but I didn't find it so it must be done by a trap_ function. I can't see the relation of the error with the change I've made, does somebody know why this happens?




Top
                 

Mentor
Mentor
Joined: 12 Mar 2005
Posts: 3958
PostPosted: 09-07-2011 07:10 AM           Profile Send private message  E-mail  Edit post Reply with quote


You can't do that. trajectory_t is through entityState_t a part of playerState_t and you cannot modify that struct without updating the corresponding net code in the engine (and becoming protocol incompatible along the way).




Top
                 

Commander
Commander
Joined: 22 Jul 2011
Posts: 139
PostPosted: 09-07-2011 03:03 PM           Profile Send private message  E-mail  Edit post Reply with quote


So I can't modify any structure which have to be sent. Is the net code available in the source code? I dont mind change it, it's just that it seems to me that it's part of the executable and I want to know. I don't understand at all what you mean with protocol incompatible, could you explain?




Top
                 

Mentor
Mentor
Joined: 12 Mar 2005
Posts: 3958
PostPosted: 09-07-2011 03:11 PM           Profile Send private message  E-mail  Edit post Reply with quote


It's in qcommon/msg.c. Protocol incompatible: if you change the format of net messages, other people won't be able to connect, not with a vanilla quake 3 install anyway.




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.