FaceDeer / dfcaverns

Replicating Dwarf Fortress' underground flora in Minetest
Other
16 stars 9 forks source link

df_primordial_items attempt to call global 'S' (a nil value) #16

Closed Soundtoxin closed 1 year ago

Soundtoxin commented 3 years ago
2020-07-11 05:51:22: WARNING[Main]: Undeclared global variable "S" accessed at ...rad/.minetest/mods/dfcaverns/df_primordial_items/doc.lua:5
2020-07-11 05:51:22: ERROR[Main]: ModError: Failed to load and run script from /home/brad/.minetest/mods/dfcaverns/df_primordial_items/init.lua:
2020-07-11 05:51:22: ERROR[Main]: ...rad/.minetest/mods/dfcaverns/df_primordial_items/doc.lua:5: attempt to call global 'S' (a nil value)
2020-07-11 05:51:22: ERROR[Main]: stack traceback:
2020-07-11 05:51:22: ERROR[Main]:       ...rad/.minetest/mods/dfcaverns/df_primordial_items/doc.lua:5: in main chunk
2020-07-11 05:51:22: ERROR[Main]:       [C]: in function 'dofile'
2020-07-11 05:51:22: ERROR[Main]:       ...ad/.minetest/mods/dfcaverns/df_primordial_items/init.lua:6: in main chunk

Line 5 of ~/.minetest/mods/dfcaverns/df_primordial_items/doc.lua

df_primordial_items.doc.big_mushroom_desc = S("Compared to the behemoths found elsewhere in the deep places of the world, the giant mushrooms of the primordial jungles are on the smaller side - often overwhelmed by the green plants that grow in the mysterious light below. Still, they can become substantial resources.")

The lines below that in the file look pretty similar.

Line 6 in ~/.minetest/mods/dfcaverns/df_primordial_items/init.lua

dofile(MP.."/doc.lua")
FaceDeer commented 1 year ago

oh, apologies for leaving this issue open for literal years. I believe this issue has been resolved, there's a global translator for primordial_items that I added a local reference to in doc.lua at some point.