[BUG][FIXED] Crash on hatch with preassigned skills outside level area

Started by Flopsy, August 19, 2017, 01:47:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Flopsy

I just made a level using the Genesis Fire tileset, well rather I modified an existing level from the 2P levels from the Extra levels nxp

I just tested the level in Neo Lemmix Editor, 1 lemming spawns no problem.

For each lemming that spawns after that, I get this error message (cross symbol)

"Preassigned skill called for object not a hatch or a preplaced lemming (C:\Users\Namida\Games\Lemmings\LemmixSource\NeoLemmixSource\LemObjects.pas, line 350)"

On clicking "ok" the lemming dies and gets removed from the Lemming count without spawning.

EDIT: Occurs in both Player and Editor test mode on v10.13.18

I replaced the hatch with an identical hatch then no lemmings spawned and the error message came up on the very first lemming.

Changing the main tileset or using a hatch from a different tileset doesn't solve this issue.

EDIT 2: I remade the level from scratch using the Original Fire tileset and the problem does not occur so it must be a bug with the level being taken from the Extra Levels nxp via dumping them or a bug with the Genesis tilesets themselves.

EDIT 3: Realised what has gone wrong myself, it turns out I had a trapdoor outside of the level boundary so if this error ever occurs for anyone, that's what's wrong!

Edit by Nepster: Changed title to reflect the actual bug.

Nepster

Thanks for the EDIT 3 :thumbsup:. With this I now know exactly what line of code is causing this bug and why it is doing so, even without looking at the code itself or trying to reproduce it. Should be an easy fix.

Nepster