Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Jun 1, 2018 · 4 comments

Comments

@Noodlemire
Copy link

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

@Noodlemire
Copy link
Author

Noodlemire commented Jun 1, 2018

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 added a commit that referenced this issue Jun 1, 2018
@D00Med
Copy link
Owner

D00Med commented Jun 1, 2018

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
Copy link
Author

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
Copy link
Owner

D00Med commented Jun 2, 2018

Ok, I will have to test it thoroughly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants