Modifying an structure
Modifying an structure
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?
-
- Posts: 4022
- Joined: Sat Mar 12, 2005 6:24 pm
Re: Modifying an structure
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).
Re: Modifying an structure
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?
-
- Posts: 4022
- Joined: Sat Mar 12, 2005 6:24 pm
Re: Modifying an structure
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.