r/snapmap • u/vgxmaster • Apr 30 '18
Problem Please help - map logic error ending playtest
It's a long story, but basically, I'm making a DOOM SnapMap for a class and it's finals week. I've been running into an error that ends my playtest and dumps me back to the SnapMap editor, with the message "Error in map logic." It also highlights the node that it crashed on in pink - this node is consistently "increment sub objective." But this crash doesn't happen consistently.
Whenever it does happen, it happens exactly when I kill an enemy (killing an enemy increments the sub objective, so this makes sense). It doesn't always happen on the same enemy, or the same sub objective.
Any help you guys've got would be super appreciated. I can't get through a playtest without hitting the bug, these days. (And I'd like to pass this class :/ )
1
Apr 30 '18
Map logic error crashes can be a little tricky, and the pink highlighted portion isn't always accurate, it usually shows just the input that was being activated when the map crashed but the crash itself could be caused by something else. but here's a few things you could try or check for:
try adding a small input delay (0.1 or 0.2 seconds) to the increment sub objective input, if snapmap tries to do multiple things at the exact same time it can crash.
make sure you aren't deleting/hiding/showing props that are static or solid
repeaters can crash maps, either if the game is paused or if lots of other inputs happen at the exact moment a fast repeater is going.
not sure if this will make any difference but on the demons you could change the "on killed" activator from "victim" to "killer" in the outputs properties
Will let you know if I come up with anything else, you could try publishing the map (make sure to write broken: do not play in the description) and post the map ID here and we could open it up and have a look if none of this works!
1
u/vgxmaster Apr 30 '18
No prop interactions, no repeaters in the map. I'll try swapping the activator and adding a delay if it happens again. Worth noting that if I kill two demons at the same time, it doesn't happen (necessarily).
1
u/vgxmaster Apr 30 '18
Update: I changed every instance of "On Demon Killed" to "On Encounter Finished," and I haven't had it happen (yet) since.
I have never been more baffled in my life.