I have had that error in the past too, I'm having so many issues with standalones, things not saving as they should, entities that I need to spawn in scripts being "unspawned" when a game is reloaded from a saved game. I am using the absolute number like Spawn(30) I'm going to try and just define a variable like g_whitekey, then use Spawn(g_whitekey) maybe that will will force the save - reload game system to reload it. Frustrating to say the least.
If i set to spawn at start to NO on an entity, then use a script to spawn it, then save my game, carry on playing, then reload my previous save, the lua spawned entities are not reloaded. Anyone else had this possible bug.
Do I need to use any other commands apart from Spawn(e) in my lua to make sure they reload correctly?
Aftershock Quad Core AMD FM2+ 3.5 GHz 8GB Motherboard and Processor, A7700k apu, Asus GT970 STRIX 4gb Nvidia gfx card.
King Korg Synth, Alesis SR18 Drum Machine, Akai MPX8 sample player, Roland Fantom XA Synth, Axus Digital AXK2 Digital Drum Kit, Novation Ultranova Synth, Waldorf Blofeld Synth.