Help needed for the game "The end"

Post Reply
Hello_death
Member
Posts: 96
Joined: Mon Sep 13, 2021 07:33
GitHub: Hello-death
IRC: Hello-death
In-game: riptiderazor

Help needed for the game "The end"

by Hello_death » Post

    Hello all. i have recently tried out the game "the end" in which you have to fight against hostile mobs in an post apocalyptic world. When it became night , this flock of bats just spawned in my fortress and after 2 seconds of taking damage the game crashed giving the following error:

    2021-12-08 13:18:52: ERROR[Main]: ServerError: AsyncErr: environment_Step: Runtime error from mod 'the_end_passive_health_modifiers' in callback environment_Step(): ...play_mechanics/the_end_passive_health_modifiers/init.lua:10: attempt to index global 'damage_coooldowns' (a nil value)
    2021-12-08 13:18:52: ERROR[Main]: stack traceback:
    2021-12-08 13:18:52: ERROR[Main]: ...play_mechanics/the_end_passive_health_modifiers/init.lua:10: in function <...play_mechanics/the_end_passive_health_modifiers/init.lua:4>
    2021-12-08 13:18:52: ERROR[Main]: /usr/share/minetest/builtin/game/register.lua:422: in function </usr/share/minetest/builtin/game/register.lua:406>
    2021-12-08 13:18:52: ERROR[Main]: stack traceback:
    2021-12-08 13:18:52: ACTION[Server]: LuaEntitySAO "mob_paniki:paniki" at (-39,-1,5) (id=4, hp=7) punched player singleplayer (id=1, hp=13), damage=1
    2021-12-08 13:18:53: ACTION[Main]: Server: Shutting down

    please help me out. it was quite a nice game :(
    PLease fix mcl5 tridents :,,(

    User avatar
    Mantar
    Member
    Posts: 585
    Joined: Thu Oct 05, 2017 18:46
    Contact:

    Re: Help needed for the game "The end"

    by Mantar » Post

    Change "damage_coooldowns" to "damage_cooldowns" and it should prevent that crash.
    I also recommend changing line 101 of mods/items/weapons/weapon_api/proc.lua from
    if obj:get_luaentity().dead
    to
    if obj:get_luaentity() and obj:get_luaentity().dead
    to prevent a nil crash. The End is a neat proof of concept, but was never really finished, sadly.
    Lead dev of Exile, git repo: https://codeberg.org/Mantar/Exile

    Hello_death
    Member
    Posts: 96
    Joined: Mon Sep 13, 2021 07:33
    GitHub: Hello-death
    IRC: Hello-death
    In-game: riptiderazor

    Re: Help needed for the game "The end"

    by Hello_death » Post

    Mantar wrote:
    Wed Dec 08, 2021 17:32
    Change "damage_coooldowns" to "damage_cooldowns" and it should prevent that crash.
    I also recommend changing line 101 of mods/items/weapons/weapon_api/proc.lua from
    if obj:get_luaentity().dead
    to
    if obj:get_luaentity() and obj:get_luaentity().dead
    to prevent a nil crash. The End is a neat proof of concept, but was never really finished, sadly.
    thanks a tone . have done it, and will test it out now. and now i got another error :|

    here it is


    2021-12-09 08:43:38: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'mob_sarangay' in callback luaentity_Step(): .../the end/mods/entities/defense/mob_sarangay/sarangay.lua:85: attempt to index local 'pos' (a nil value)
    2021-12-09 08:43:38: ERROR[Main]: stack traceback:
    2021-12-09 08:43:38: ERROR[Main]: .../the end/mods/entities/defense/mob_sarangay/sarangay.lua:85: in function <.../the end/mods/entities/defense/mob_sarangay/sarangay.lua:55>
    2021-12-09 08:43:39: ACTION[Main]: Server: Shutting down

    this is strange
    PLease fix mcl5 tridents :,,(

    User avatar
    Mantar
    Member
    Posts: 585
    Joined: Thu Oct 05, 2017 18:46
    Contact:

    Re: Help needed for the game "The end"

    by Mantar » Post

    That's weird, it's loading pos from self.object:get_pos(), so that shouldn't happen unless the mob has no defined position.
    Insert this as line 58, just above "if self.charging":
    if pos == nil then return end
    That will abort the on_step if the mob doesn't actually have a position for some bizarre reason.

    Starting to feel like I should fork the repo and upload a version with my fixes. (But then I want to do that with all the things I download for Minetest.)
    Lead dev of Exile, git repo: https://codeberg.org/Mantar/Exile

    Hello_death
    Member
    Posts: 96
    Joined: Mon Sep 13, 2021 07:33
    GitHub: Hello-death
    IRC: Hello-death
    In-game: riptiderazor

    Re: Help needed for the game "The end"

    by Hello_death » Post

    thanks. i did it but guess what. another error
    here i is

    2021-12-10 10:51:48: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'mob_unggoy' in callback luaentity_Step(): /usr/share/minetest/builtin/common/vector.lua:106: attempt to index local 'a' (a nil value)
    2021-12-10 10:51:48: ERROR[Main]: stack traceback:
    2021-12-10 10:51:48: ERROR[Main]: /usr/share/minetest/builtin/common/vector.lua:106: in function 'subtract'
    2021-12-10 10:51:48: ERROR[Main]: ...etest/games/the end/mods/misc/library_extension/math.lua:20: in function 'aim'
    2021-12-10 10:51:48: ERROR[Main]: ...es/the end/mods/entities/defense/defense_mob_api/mob.lua:427: in function 'hunt'
    2021-12-10 10:51:48: ERROR[Main]: ...ames/the end/mods/entities/defense/mob_unggoy/unggoy.lua:77: in function <...ames/the end/mods/entities/defense/mob_unggoy/unggoy.lua:57>
    2021-12-10 10:51:48: ACTION[Server]: singleplayer leaves game. List of players:
    2021-12-10 10:51:48: ACTION[Main]: Server: Shutting down
    PLease fix mcl5 tridents :,,(

    User avatar
    Mantar
    Member
    Posts: 585
    Joined: Thu Oct 05, 2017 18:46
    Contact:

    Re: Help needed for the game "The end"

    by Mantar » Post

    It looks like that's the same error, sometimes a mob exists which has no valid position, there's probably a bug hidden elsewhere in the code for this to happen.
    Still a bandaid should be to drop that same line,
    if pos == nil then return end
    this time into mods/entities/defense/defense_mob_api/mob.lua at line 399, right
    after
    pos = self.object:get_pos()
    and that should abort the attack if the attacking mob has no pos coordinates.
    Lead dev of Exile, git repo: https://codeberg.org/Mantar/Exile

    Post Reply

    Who is online

    Users browsing this forum: Trog and 3 guests