Help resolving an incompatibility issue
-
- Member
- Posts: 10
- Joined: Sun Mar 12, 2023 15:56
- GitHub: JoseDouglas26
- IRC: dougsouza26
- In-game: dougsouza26
- Location: Brazil
- Contact:
Help resolving an incompatibility issue
I need help resolving the incompatibility issue between the concrete mod and the Technic mod. How do I return a message to the user? Is there any function or setting in the mod.conf file to alert about the incompatibility?
cdb_eb3b905044b7
- Blockhead
- Member
- Posts: 1684
- Joined: Wed Jul 17, 2019 10:14
- GitHub: Montandalar
- IRC: Blockhead256
- In-game: Blockhead Blockhead256
- Location: Land Down Under
- Contact:
Re: Help resolving an incompatibility issue
First, I would also mention the incompatibility in forum OP, README, ContentDB release etc. so people should be aware before installing.
After that there are a few approaches, all of them involve checking for technic first (minetest.get_modpath("technic") ~= nil)
After that there are a few approaches, all of them involve checking for technic first (minetest.get_modpath("technic") ~= nil)
- Check for the presence of technic and deliberately fail an assertion. The user should get and read the message from the assertion that an incompatible mod is installed and can then take steps to rectify it.
- Check for the presence of technic and if it is present, run your mod code differently to be compatible, such as overriding technic concrete or adding only the coloured variants on top of it.
- Check for the presence of technic and if it is present do nothing, but write a warning messsage with minetest.log and hope people see it in chat.
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂
Who is online
Users browsing this forum: No registered users and 11 guests