errr.....Whiskey Tango Foxtrot?


(damocles) #1

Woohoo new error message - don’t ya just love that. What the hell does:

ERROR: Q_strncpyz: destsize < 1

mean?

I looked at the console log and it just has that line. No indications what the error is pertaining to or anything. The log looks a little like:

LOADING… - game media done
LOADING… flamechunks
LOADING… clients
LOADING… =EFG=Damocles
UI menu load time = 81 milli seconds
CL_InitCGame: 20.17 seconds
132 msec to draw all images
Com_TouchMemory: 5 msec


ERROR: Q_strncpyz: destsize < 1


----- Server Shutdown -----
==== ShutdownGame ====

Anybody seen this or have a clue what the problem might be? I’m thinking it might be related to target_locations as the major change between this version and the last working version was the addition of 300 odd target locations.


(demoneye) #2

Not sure about the error but… 300 target_locations??? What’s the entity count in your map?

DeMoNeye


(hummer) #3

Wow… 300 seems like a lot.

I remember reading somewhere that target_locations in excess lag out the server… you might want to cut those down a bit.

Also, how many entities do you have in this map in total? Does anyone know the limit of entities in a map?


(damocles) #4

Alas, that is the cut down version. It’s a big map. As for the entity count, I had to shave a few (read about 30) out to get the damn thing running again. Now it’s left with me with this weird error.


(demoneye) #5

Well, the “/entitycount” debate took up a few pages on Tram for a while.

It’s reckoned to have a limit of about 600 for MP maps - go any higher then that and you’ll start to run into problems.

Most of the official maps come in at about 500-600. Mp_marketgarden is about 480 on start up.

DeMoNeye


(damocles) #6

It’s not an entity count problem. I did hit the entity wall at first when I got the error “G_Spawn: No Free Entities”. I then shaved back the number of locations and removed a few entities and it ended up with the bizarre strncopyz error.

I have sinced used word to remove all the target_locations and it works fine. I’m now in the process of adding thme in groups of about 15-20 at a time and then compiling to see if the error recurrs. I’m thinking with it being a strncpyz error, the problem was somehow one of the target_locations eneded up with a screwed up message string and it was breaking the engine.

Hopefully this will be it. Once the target locations are replaced and working, the level will be complete - woo, yay and houpla.


(SCDS_reyalP) #7

Beware, you can still hit entity count problems, even if you are under the limit when the map first loads. Wolf also creates entities at runtime. It may be that not every situation gives you a nice error message.


(damocles) #8

Ok, this isn’t good. I’ve replaced about 2/3 of the target_location entities and when I run a test, the entity count is at 820.

There’s not really much that can be removed either. If I removed breakable grates and so on I could maybe shave off another 20 entities, but that’s all. All the other entities are somewhat needed.

However, from the word go there are two smoke generators giving out quite thick smoke - do you think each smoke cloud would be considered an entity?

EDIT:

Just did a /entitylist and nope, the smoke isn’t the problem, there really are that many entities in the map :disgust: How the hell that happened I don’t know. I guess I’ll have to go through it all and see what can be removed :frowning:


(demoneye) #9

The /entitycount issue is a real pain…

Mp_Delivery would have been released 2 days ago, but for placing target_locations and watching the /entitycount…

Damn :banghead: :banghead:

DeMoNeye


(damocles) #10

Well, after much butchering of my beloved map, I managed to get the count down to 731. That’s as low as I’m willing to go right now. Any more would mean the removal of cool features.

I’m gonna light it and release the first beta version soon and see if any problems pop up from having that many ents.


(Dawg) #11

I am assuming the “Q_” makes this a special Quake3 engine function of some sort. “strncpy” is a standard C stringcopying function that copies ‘n’ characters from one string into another. So, I assume that this function does something along those lines. Not sure what the “z” means, and that may be what is so special about the function. That being said, that the “destsize < 1” leads me to think that the destination argument provided to the function was not initialized or otherwise did not have the necessary available memory to place the copied string characters.

Dawg


(damocles) #12

Yeah I know what the function means - it’s string copy and the z means null terminated string. The destsize<1 leads me to beleive that either the destination string is not initialised or the length of the source string is somehow less than 1.

Still doesn’t help any. Fortunately the problem is no longer a problem.