Sokomine / village_ruins

village consisting of ruins (depends on mg_villages)
2 stars 0 forks source link

Error with new Minetest 5.3 #1

Open daretmavi opened 4 years ago

daretmavi commented 4 years ago
2020-10-18 21:24:18: ERROR[Main]: ServerError: AsyncErr: Lua: finishGenRuntime error from mod 'mg_villages' in callback environment_OnGenerated(): .../.minetest/mods/_Villages_modpack/village_ruins/init.lua:11: attempt to call field 'replace_tree_trunk' (a nil value)
2020-10-18 21:24:18: ERROR[Main]: stack traceback:
2020-10-18 21:24:18: ERROR[Main]:   .../.minetest/mods/_Villages_modpack/village_ruins/init.lua:11: in function 'replacement_function'
2020-10-18 21:24:18: ERROR[Main]:   ...test/mods/_Villages_modpack/mg_villages/replacements.lua:284: in function 'get_replacement_list'
2020-10-18 21:24:18: ERROR[Main]:   ...test/mods/_Villages_modpack/mg_villages/replacements.lua:727: in function 'get_replacement_table'
2020-10-18 21:24:18: ERROR[Main]:   ...minetest/mods/_Villages_modpack/mg_villages/villages.lua:693: in function 'generate_village'
2020-10-18 21:24:18: ERROR[Main]:   .../.minetest/mods/_Villages_modpack/mg_villages/mapgen.lua:798: in function 'place_villages_via_voxelmanip'
2020-10-18 21:24:18: ERROR[Main]:   .../.minetest/mods/_Villages_modpack/mg_villages/mapgen.lua:1112: in function <.../.minetest/mods/_Villages_modpack/mg_villages/mapgen.lua:1067>
2020-10-18 21:24:18: ERROR[Main]:   /usr/share/minetest/builtin/game/register.lua:429: in function </usr/share/minetest/builtin/game/register.lua:413>
f4grx commented 4 months ago

Hello

I have the same problem with minetest-server 5.6

Minetest 5.6.1 (Linux) Using LuaJIT 2.1.0-beta3 BUILD_TYPE=RelWithDebInfo RUN_IN_PLACE=0 USE_CURL=1 STATIC_SHAREDIR="/usr/share/games/minetest" STATIC_LOCALEDIR="/usr/share/locale"

I cant find the function 'replace_tree_trunk' anywhere. The same call is made in the code of several villages:

village_gambit/init.lua
11:      mg_villages.replace_tree_trunk( replacements, wood_type );

village_modern_houses/init.lua
11:      mg_villages.replace_tree_trunk( replacements, wood_type );

village_sandcity/init.lua
13: mg_villages.replace_tree_trunk( replacements, wood_type );

village_ruins/init.lua
11:      mg_villages.replace_tree_trunk( replacements, wood_type );

The same problem will happen with replace_saplings, which I cannot find anwhere either.

But thats very strange, yesterday I managed to get a village made, then I restored a backup and I get this error. I guess this is because village generation is random and I didnt hit this before?

Any help would be appreciated, thank you.