D00Med / farlands

Steampunk/fantasy themed subgame with dinosaurs
29 stars 11 forks source link

Nil value from NPC randomly caused crash. Now the game won't load without this same error appearing within a second. #185

Open Noodlemire opened 5 years ago

Noodlemire commented 5 years ago

A shame for this world too, luck with food has been pretty poor up until I spawned in this world. image

Noodlemire commented 5 years ago

It looks like the hunger hud also broke from this. Minetest needs to be reloaded in order to fix it, but it goes away again if I try to re-access the crashing world. hudhungerbroken

D00Med commented 5 years ago

I've attempted to fix it (haven't tested it yet). I didn't realise it was calling a local function from mobs_redo. Also I do not see how hunger/hud could be broken (or deleted??)

Noodlemire commented 5 years ago

Tried your fix, now it's calling "sin" a nil value. Also, the mod definitely isn't deleted since it still exists in my files, and hasn't been changed compared to the source code. Actually, now that I look at it some more, it seems unrelated to the hunger bar's disappearance, which happens whenever this crash does (both the nil set_velocity and the nil sin crashes), but comes back after reloading Minetest.

Looking at it further, the hud is only sometimes gone after immediately loading a world after it crashes.

...Also, didn't realize that greyed out subgame mods are actually modpacks... Either way, this is what the game looks like one second before it crashes, if I've let it crash before in the same session: nohud

D00Med commented 5 years ago

Ok, I will have to test it thoroughly.