Modifying an structure

Locked
UglyFoot
Posts: 139
Joined: Fri Jul 22, 2011 12:35 pm

Modifying an structure

Post by UglyFoot »

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?
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Modifying an structure

Post by ^misantropia^ »

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).
UglyFoot
Posts: 139
Joined: Fri Jul 22, 2011 12:35 pm

Re: Modifying an structure

Post by UglyFoot »

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?
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Modifying an structure

Post by ^misantropia^ »

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.
Locked