.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...
Posts | ||
---|---|---|
cvar() issue | Locked | |
Thread Options | ||
|
Dec 4 2016 Anchor | |
Lately I saw this happening: What is going on here? Well, I've changed the base operation of my massive weapon expansion code, x_ents (extra entities) The issue I ran into with the previous mark II code base is globals. All the extra entites add Every spawn function was adding a half dozen to a dozen new globals. There are 220 some items. The new method reads the data from cfg scripts via cvar_string(). And it seems to work very well. This also fits into some of the crazier specs for the Chaos mod. On top of that it cleans up the extension code sections considerably. Some teething issues do arise. Like this cvar() error. item_reload is one of the new loops - when called it re-loads all entity data for designated entities. This crash shows what happens when you call cvar with "" - a null string. In this case I fixed my data set. Another possibility would be wrapping Moddb.com cvar:
I might have to put this fix in the maphack engine mod with the mentioned developer warning print. |
Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.