Strange Load game particles.

Posted By: Jethro

Strange Load game particles. - 08/06/08 00:17

Since upgrading to A7.10.1. After our game loads a save game, high up in the sky there appears to be some old particle functions running. These are puffs of steam. The weird thing is these particles have a very short life and are never up high in the sky. I remember a similar problem many moons ago with A5 or 6 I believe.

Jethro.
Posted By: Jethro

Re: Strange Load game particles. - 08/06/08 00:34

Another thing I forgot to mention, was another load game exhibited a dynamic light that was stuck on from a long removed lightning bolt.
Its as if some functions are not totally being terminated before a load game.

Something that also may be related is on very odd occasions we get error messages where an entities function is still trying to run after the entity has been ent_removed.
As we get invalid arguments in "Function_name" ENTITY.
We have up to 800 of the same function running at the same time mostly with no errors, but randomly say once a day we may get this problem?
We always check entity pointers before using them and always follow an ent_remove with a return to stop the current function;

I can't help but think all of these may be related.

Posted By: jcl

Re: Strange Load game particles. - 08/06/08 06:18

Loading does not affect particle functions. Therefore when a particle effect is running and you load a game, the particles continue to run until the end of their lifetime. Only a level_load or a level change by game_load stops all particle functions.

Invalid arguments mean not necessarily pointers that are zero. The pointers can also be nonzero but invalid - for instance when it's a pointer to a wrong object, or a pointer that contains garbage.

For being more specific I had to know which functions gets a wrong entity pointer and what this pointer contains.
© 2023 lite-C Forums