When using this mod with Mineclonia 0.115.0 in Luanti 5.11.0, the game crashes immediately with this error.
ModError: Failed to load and run script from /home/bgstack15/.var/app/net.minetest.Minetest/.minetest/mods/italian_food/init.lua:
/app/share/luanti/builtin/game/register.lua:66: Name mcl_potions:sugar_coffe_splash does not follow naming conventions: "italian_food:" or ":" prefix required
stack traceback:
[C]: in function 'error'
/app/share/luanti/builtin/game/register.lua:66: in function 'check_modname_prefix'
/app/share/luanti/builtin/game/register.lua:136: in function 'register_item'
/app/share/luanti/builtin/game/register.lua:241: in function 'register_craftitem'
...etest/games/mineclonia/mods/ITEMS/mcl_potions/splash.lua:38: in function 'register_splash'
...test/games/mineclonia/mods/ITEMS/mcl_potions/potions.lua:257: in function <...test/games/mineclonia/mods/ITEMS/mcl_potions/potions.lua:155>
...t.minetest.Minetest/.minetest/mods/italian_food/init.lua:398: in main chunk
Check debug.txt for details.
This happens because the default potion definition includes a splash potion variant (brewed with gunpowder), and the mineclonia code hard-codes the item identifier with a prepended "mcl_potions:" but this mod cannot use a different namespace in Luanti so the game crashes. The _id_override will let the mod name be used correctly in generating the potion items.
I would love to collaborate with you on helping to make basil and tomato be plantable like other food items in Mineclonia. Well, maybe tomatoes act like carrots in that they can be planted, and I guess maybe add a basil seed item that gets picked up when you use a sword on a basil plant. Is that something you would like help with?
Hi bgstack15,
First of all, I apologize for the delay in responding! I really appreciate your feedback; you're absolutely right about the bug, and I'm grateful that you’ve already suggested a solution. I’ll be sure to implement it soon!
As for the basil and tomato, I think it’s a fantastic idea! I’d be excited to collaborate on adding these features to the mod. If you have any ideas or would like to start working on the code, feel free to share. It might be useful to continue the discussion on Matrix, via Element.io for better coordination.
Thanks again for your contribution, and I look forward to collaborating with you on this!
I haven't heard from you, but I have already made the basil and tomato farmable plants that use mcl_farming. Please reach out to me somewhere and we can collaborate to make sure I'm designing the technical stuff to match your goals!
If you have tried to reach me via matrix, I haven't seen anything, but then I barely know how to use matrix so maybe I'm not using the correct spot. Please find my user account in the Luanti forum and we can PM for my email contact info.
Hi Bgstack15,
I honestly tried to contact you via Matrix as soon as possible, but given your lack of response, I thought you might have lost interest. I had considered contacting you via e-mail, but I didn't want to invade your privacy. I may have jumped to conclusions and wasted some time, but in the meantime, I've written a script for tomato and basil farming that I'd like to share with you. I also have an experimental "feature" that I hope you'll find it interesting and enjoyable.
I'll be reaching out to you soon via email with more details.
Do you have an account on the Luanti forums? Please contact me there and we can private-message and exchange email addresses so we can collaborate on this mod!
Hi Bgstack15,
I emailed you 3 days ago sending you my progress on the mod.
If you didn't received any my email this is my address: ludus.exe28@gmail.com
When using this mod with Mineclonia 0.115.0 in Luanti 5.11.0, the game crashes immediately with this error.
I already ran into this problem on a mod of my own, and the fix is in mineclonia already which will be part of future releases: https://codeberg.org/mineclonia/mineclonia/pulls/3472.
So whenever mineclonia > 0.115.0 comes out, you should be able to do this with the code to prevent errors.
This happens because the default potion definition includes a splash potion variant (brewed with gunpowder), and the mineclonia code hard-codes the item identifier with a prepended "mcl_potions:" but this mod cannot use a different namespace in Luanti so the game crashes. The
_id_override
will let the mod name be used correctly in generating the potion items.I would love to collaborate with you on helping to make basil and tomato be plantable like other food items in Mineclonia. Well, maybe tomatoes act like carrots in that they can be planted, and I guess maybe add a basil seed item that gets picked up when you use a sword on a basil plant. Is that something you would like help with?
Hi bgstack15, First of all, I apologize for the delay in responding! I really appreciate your feedback; you're absolutely right about the bug, and I'm grateful that you’ve already suggested a solution. I’ll be sure to implement it soon! As for the basil and tomato, I think it’s a fantastic idea! I’d be excited to collaborate on adding these features to the mod. If you have any ideas or would like to start working on the code, feel free to share. It might be useful to continue the discussion on Matrix, via Element.io for better coordination. Thanks again for your contribution, and I look forward to collaborating with you on this!
Cheers
I am this username on the Luanti forums, and also on matrix/element. Please find me and we can chat!
I haven't heard from you, but I have already made the basil and tomato farmable plants that use mcl_farming. Please reach out to me somewhere and we can collaborate to make sure I'm designing the technical stuff to match your goals!
If you have tried to reach me via matrix, I haven't seen anything, but then I barely know how to use matrix so maybe I'm not using the correct spot. Please find my user account in the Luanti forum and we can PM for my email contact info.
Hi Bgstack15, I honestly tried to contact you via Matrix as soon as possible, but given your lack of response, I thought you might have lost interest. I had considered contacting you via e-mail, but I didn't want to invade your privacy. I may have jumped to conclusions and wasted some time, but in the meantime, I've written a script for tomato and basil farming that I'd like to share with you. I also have an experimental "feature" that I hope you'll find it interesting and enjoyable.
I'll be reaching out to you soon via email with more details.
Regards
Do you have an account on the Luanti forums? Please contact me there and we can private-message and exchange email addresses so we can collaborate on this mod!
Hi Bgstack15, I emailed you 3 days ago sending you my progress on the mod. If you didn't received any my email this is my address: ludus.exe28@gmail.com
I hope we will collaborate very soon.