Page 1 of 1

Blacklist and Whitlist for mods depends

PostPosted: Sat Dec 10, 2016 10:55
by mahmutelmas06
Mods and subgames should have a blacklist.txt

non other mods would be enabled even if installed. Or a message will be showen to player to disable it.

For example if there is bakedclay mod installed it can blacklist the same mod like hardenedclay
or it can disable any mod which brokes the mod itself.

Re: Blacklist and Whitlist for mods depends

PostPosted: Sat Dec 10, 2016 19:40
by MineYoshi
You can make the mod don't execute if there is a "incompatibility_mod" with this.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
if not ( minetest.get_modpath("incompatibility_mod")) then
dofile(minetest.get_modpath("Your_mod").."/code.lua")
end


If the folder of the "incompatibility_mod" is finded, the mod won't execute the code that is the mod itself.
You put this at init.lua, but i don't know how to disable the init.lua of the "incompatibility_mod" if finded. This is by far i solution i can do. :)

Re: Blacklist and Whitlist for mods depends

PostPosted: Thu Dec 15, 2016 18:05
by cheapie
You could try this:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
if minetest.get_modpath("technic") then
     error("mymod and technic are not compatible. Please disable technic and try again.")
end