.qc (dot qc) - the group for quake c coders of all denominations. If you make quake one mods and write code in quake c, join our group! I'll try to answer any quake c questions - please post your inquiry in the forums...

  • View media
  • View media
  • View media
  • View media
  • View media
  • View media
Now what? #1
embed
share
view previous next
Share Image
Share on Facebook Post Email a friend
Embed Image
Post comment Comments
numbersix Author
numbersix - - 2,244 comments

I'll give this one a write-up in the vault forum in the next couple days.

I made one simple change - no operating code had been added or changed.
This change involved two macro defines - example

#define macro1 {/* code snipped */}

Neither were in use yet.
And I added an entity field, a ".float".

When I started up the player view was stuck at '0 0 0' and not a single model was visible. Some particle effects were present as normal.
All objects were technically there - just no models.

The player object is the red cube just left of center.

How did I cause this?

This had me stumped for a couple hours.

Reply Good karma+1 vote
numbersix Author
numbersix - - 2,244 comments

Arg. I really want to write this up in the vault.
Way too busy this time of year to start a new "thing".

tl;dr - if you define a new entity field before defs.qc compiles and thus before: "void end_sys_globals;"
you throw off the engines access to all the important qc entity fields.

Thus no models, things go wierd, etc.

Reply Good karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: