What would be the best approach to disable specific mobs from this mod? / prevent the *.lua from being loaded
For example if i didn't want rats running around...?
If i wanted to disable all regulars i would add the following line to minetest.conf:?
Code: Select all
dmobs.regular = false
- Posts: 2439
- Joined: Sun Apr 09, 2017 05:50
- GitHub: LoneWolfHT
- IRC: Lone_Wolf or LoneWolfHT
- In-game: Lone_Wolf
- Location: Not there, THERE!
Didn't know this was still being worked on. Could you fix the server crashing whenever a dragon egg is hatched?D00Med wrote:I have finished the badger, the fox, the hedgehog, and the wasp. And I'll use the elephant and whale models from Farlands. At the moment I'm working on a giant rat and the giant wasp.
- Posts: 2879
- Joined: Fri Feb 26, 2016 19:49
- GitHub: TumeniNodes
- IRC: tumeninodes
- In-game: TumeniNodes
- Location: in the dark recesses of the mind
Code: Select all
ACTION[Server]: singleplayer right-clicks object 961: LuaEntitySAO at (106.131,11,654.224) WARNING[Server]: Undeclared global variable "set_animation" accessed at C:\..\dmobs/api.lua:205 ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'dmobs' in callback luaentity_Step(): C:\..\mods\dmobs/api.lua:205: attempt to call global 'set_animation' (a nil value) ERROR[Main]: stack traceback: ERROR[Main]: C:\..\mods\dmobs/api.lua:205: in function 'object_fly' ERROR[Main]: C:\..\mods\dmobs/dragons/piloting.lua:52: in function 'do_custom' ERROR[Main]: C:\..\mods\mobs/api.lua:2884: in function <C:\..\mods\mobs/api.lua:2786>
Edit: I removed this (205) and another line of code (199) and it finally worked, but some animations are missing.
OK, thanks. And I assume that removing/commenting out the corresponding lines in init.lua is the only way to disable specific mobs.D00Med wrote:Yes that would work, but you can also go into init.lua and there will be a list of mob names in quotation marks, that you can just remove their names from.
Users browsing this forum: Bing [Bot], Google [Bot] and 7 guests