berengma/farming_nextgen

Regression, "technic" var not found

BuckarooBanzay opened this issue · 3 comments

No idea why, but the latest commit by @acmgit (148798e) somehow crashes:

2020-03-03 06:24:35: ACTION[Main]: Server: Shutting down
2020-03-03 06:24:35: ERROR[Main]: ModError: Failed to load and run script from /var/lib/minetest/.minetest/worlds/world/worldmods/farming_nextgen/init.lua:
2020-03-03 06:24:35: ERROR[Main]: ...st/worlds/world/worldmods/farming_nextgen/seeder.lua:328: attempt to index global 'technic' (a nil value)
2020-03-03 06:24:35: ERROR[Main]: stack traceback:
2020-03-03 06:24:35: ERROR[Main]: 	...st/worlds/world/worldmods/farming_nextgen/seeder.lua:328: in main chunk
2020-03-03 06:24:35: ERROR[Main]: 	[C]: in function 'dofile'
2020-03-03 06:24:35: ERROR[Main]: 	...test/worlds/world/worldmods/farming_nextgen/init.lua:50: in main chunk

Problem seems to be here:

technic.register_power_tool("farming_nextgen:seeder", farmingNG.seeder_max_charge)

Failing test:
pandorabox-io/pandorabox-mods#485

My best guess would be the newly introduced mod.conf somehow overriding something... 😕

My best guess would be the newly introduced mod.conf somehow overriding something...

Yes, seems like mod.conf doesn't work when there is an empty setting, because deleting this line makes it work:

depends =

Thanks. It was the empty depends line in mod.conf.
Also added dry_soil, dry_soil_wet and fixed machine sound volume