Hello, thank you for making zenrake a mod. I also think having more rake patterns is a must have when making zen gardens, or any other things, with a rake.
However, I have found some serious bugs with your mod that make it unusable:
The mod is impossible to load, erroring out by saying that nc is a nil value. To fix this, you can simply append local nc = nodecore to the start of init.lua, so the local nc becomes the global table nodecore, which has the NC API functions.
After applying the fix above, the world greets me with these errors repeated 4 times in the chat in the same second:
ERROR[Main]: generateImagePart(): Could not load image "zenrake_raking_linear_zen.png" while building texture; Creating a dummy image
ERROR[Main]: generateImagePart(): Could not load image "zenrake_raking_side_zen.png" while building texture; Creating a dummy image
ERROR[Main]: generateImagePart(): Could not load image "zenrake_raking_nexus_zen.png" while building texture; Creating a dummy image`
A similar thing happens when raking a pattern in the same position as earlier, which should make the pattern simply dissapear.
However, instead it makes weird colorful dots (the dummy images) appear on the block's corners, which spams the previous errors when mining it.
OK, bugfix released which should take care of the texture errors. Thanks for taking the time to report this properly, I appreciate it. Let me know if the bugfix doesn't work for you, or if updating to the most recent version of NodeCore didn't fix the nil nc bug.
EDIT:: I just sent this message, but I didn't refresh and realise you sent another message. This one replies to your 1st comment.
I have the latest stable version, 03118785-a98b2169, and Minetest/Luanti isn't showing any updates for NodeCore. Are you using NodeCore Alpha or NodeCore straight from their git repo?
Every mod I saw defines locals as globals similarly to how I showed earlier as in the 1st issue fix. It also appears in nodecore mods, e.g. like this:
I've updated the mod, and it works without any errors! However, the local nc = nodecore line still is required for it to work.
If it doesn't error out/hurt for your setup, I recommend adding such a line to the start of init.lua (or potentially do similarly with other globals). This way, it will work for (probably) everybody.
OK, I've added that to the most recent release. It looks like I've been using the dev branch of NodeCore, and there's a big name change which hasn't yet been merged with the main branch: "minetest" -> "core" and "nodecore" -> "nc". Probably as part of Minetest being renamed Luanti.
Hello, thank you for making zenrake a mod. I also think having more rake patterns is a must have when making zen gardens, or any other things, with a rake.
However, I have found some serious bugs with your mod that make it unusable:
The mod is impossible to load, erroring out by saying that
nc
is a nil value. To fix this, you can simply appendlocal nc = nodecore
to the start ofinit.lua
, so the localnc
becomes the global tablenodecore
, which has the NC API functions.After applying the fix above, the world greets me with these errors repeated 4 times in the chat in the same second:
A similar thing happens when raking a pattern in the same position as earlier, which should make the pattern simply dissapear. However, instead it makes weird colorful dots (the dummy images) appear on the block's corners, which spams the previous errors when mining it.
My minetest/Luanti version is 5.9.1.
Can you fix this? Thank you!
Can you tell me which version of NodeCore you're using? If it doesn't have
nc
then it probably isn't up-to-date.I have a lead on what's causing the texture errors, though it isn't completely clear to me yet why it's working for me and not for you.
OK, bugfix released which should take care of the texture errors. Thanks for taking the time to report this properly, I appreciate it. Let me know if the bugfix doesn't work for you, or if updating to the most recent version of NodeCore didn't fix the nil
nc
bug.EDIT:: I just sent this message, but I didn't refresh and realise you sent another message. This one replies to your 1st comment.
I have the latest stable version,
03118785-a98b2169
, and Minetest/Luanti isn't showing any updates for NodeCore. Are you using NodeCore Alpha or NodeCore straight from their git repo?Every mod I saw defines locals as globals similarly to how I showed earlier as in the 1st issue fix. It also appears in nodecore mods, e.g. like this:
I'm not sure about
nc
though, I only know that it didn't work for me when I triedlocal nc = nc
, which returned an error sayingnc
is nil.Maybe I could provide more information so you can compare it to your:
OS: GNU/Linux
Engine setting changes: I think none
NodeCore setting changes: None
Mods enabled alongside zenrake: None
Lua interpreter: LuaJIT 2.1
I've updated the mod, and it works without any errors! However, the
local nc = nodecore
line still is required for it to work.If it doesn't error out/hurt for your setup, I recommend adding such a line to the start of init.lua (or potentially do similarly with other globals). This way, it will work for (probably) everybody.
OK, I've added that to the most recent release. It looks like I've been using the dev branch of NodeCore, and there's a big name change which hasn't yet been merged with the main branch: "minetest" -> "core" and "nodecore" -> "nc". Probably as part of Minetest being renamed Luanti.
Ok, thank you!