ElCeejo / draconis

Adds Dragons and related resources and equipment to Minetest Game
MIT License
18 stars 23 forks source link

crash on spawn dragon 2 in MineClone/MineClonia #36

Open nonfreegithub opened 1 year ago

nonfreegithub commented 1 year ago

Minetest version:

5.7.0

MineClone version:

Cloned from git master branch commit b4c693bb205777b39446fe631ac02823656cc26d

Creatura version:

main branch commit 97375e088887e1fce8e30c34a1c2ed56f1cbce51

Draconis version:

main branch commit https://github.com/ElCeejo/draconis/commit/744cab73d95631ad3ca36981ef4100bcb408cf81

AsyncErr: Lua: Runtime error from mod '??' in callback luaentity_Step(): ...Minetest/minetest/bin/../mods/draconis/api/behaviors.lua:199: attempt to perform arithmetic on field 'turn_rate' (a nil value)
stack traceback:
    ...Minetest/minetest/bin/../mods/draconis/api/behaviors.lua:199: in function 'get_method'
    ...art1/Minetest/minetest/bin/../mods/creatura/mob_meta.lua:1043: in function 'move_to'
    ...part1/Minetest/minetest/bin/../mods/creatura/methods.lua:395: in function 'action'
    ...art1/Minetest/minetest/bin/../mods/creatura/mob_meta.lua:1200: in function '_execute_utilities'
    ...art1/Minetest/minetest/bin/../mods/creatura/mob_meta.lua:938: in function 'on_step_old'
    ...mes/MineClone2/mods/ENVIRONMENT/mcl_void_damage/init.lua:24: in function <...mes/MineClone2/mods/ENVIRONMENT/mcl_void_damage/init.lua:23>
corarona commented 1 year ago

Can't seem to reproduce this one in fact in my copy of draconis (744cab73d95631ad3ca36981ef4100bcb408cf81) api/behavior.lua does not contain the string "get_method", nor does any other file in draconis

corarona commented 1 year ago

with https://github.com/ElCeejo/draconis/pull/37 i can spawn dragons in mcl without crashes (they don't really seem to do anything, but it doesn't crash).

EDIT: alright with a little teasing i got them to move

corarona commented 1 year ago

Ok i reproduced it after all; it seems to be the same as #33, adding a fix to #37 although idk if this is the right way to go, not familiar enough with the code

BobOmbuzal commented 7 months ago

still the same with 5.8.0 using the 'turn_rate or 6' fix crashes the server with a different error:

2024-03-30 22:53:32: ERROR[Server]: An unhandled exception occurred: C++ out of memory
2024-03-30 22:53:32: ERROR[Server]: In thread 7f2e2916e700:
2024-03-30 22:53:32: ERROR[Server]: /mnt/mt/minetest/src/server.cpp:8c: virtual void* ServerThread::run(): A fatal error occurred: C++ out of memory