Hi again,
I made a bsp from my map, but when I wanna test it, it shows this error:
Addspawnvartoken: MAX_SPAWNS VARS
Please tell me what this means and how I can fix this :banghead:
Hi again,
I made a bsp from my map, but when I wanna test it, it shows this error:
Addspawnvartoken: MAX_SPAWNS VARS
Please tell me what this means and how I can fix this :banghead:
Long time no replay, but I just got the same error, so any help is welcome 
The only thing I can think of since it’s a test map is that I’m turning ASEs into misc_gamemodels using the ever wonderful q3map2 - is there possibly an internal limit to this?
MAX_SPAWN_VARS is related to the number of entity keys. (i’m guessing that Mapper X mistranscribed the actual error)
There are two places that generate errors mentioning this.
“G_AddSpawnVarToken: MAX_SPAWN_VARS” and “G_ParseSpawnVars: MAX_SPAWN_VARS”
If I have understood correctly, both are related to entity keys within a given entity. Either there are too many of them or exceed the available space. This of course might also be caused by a key/value pair that isn’t properly parsed (perhaps because it contains a ")
Note that the first error isn’t actually triggered by exceeding MAX_SPAWN_VARS, but MAX_SPAWN_VARS_CHARS
This code is found in g_spawn.c
The #defines mentioned above are
game/g_local.h:#define MAX_SPAWN_VARS 64
game/g_local.h:#define MAX_SPAWN_VARS_CHARS 4096
Assuming my brief look is correct, this means you can have up to 64 key/value pairs, and the total text length for all of them can be up to around 4096
Ah bugger that’ll probably be it - I actually copied and pasted a load of text into an entity key/value pair - I do this sometimes to keep notes in a map as I work 
Cheers again!