Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR ver 5.2.0 Release #19

Open
Imk-MT opened this issue Apr 7, 2020 · 8 comments
Open

ERROR ver 5.2.0 Release #19

Imk-MT opened this issue Apr 7, 2020 · 8 comments

Comments

@Imk-MT
Copy link

Imk-MT commented Apr 7, 2020

2020-04-07 05:32:44: ERROR[Main]: ModError: Failed to load and run script from /home/imk/minetest/bin/../mods/nether/init.lua:
2020-04-07 05:32:44: ERROR[Main]: Unknown node: stairs:stair_cobble
2020-04-07 05:32:44: ERROR[Main]: stack traceback:
2020-04-07 05:32:44: ERROR[Main]:       [C]: in function 'get_content_id'
2020-04-07 05:32:44: ERROR[Main]:       /home/imk/minetest/bin/../mods/nether/mapgen.lua:78: in main chunk
2020-04-07 05:32:44: ERROR[Main]:       [C]: in function 'dofile'
2020-04-07 05:32:44: ERROR[Main]:       /home/imk/minetest/bin/../mods/nether/init.lua:59: in main chunk

ERROR ver 5.2.0 Release
5.2.0-dev-0df646e-dirty worked well

@Treer
Copy link
Collaborator

Treer commented Apr 10, 2020

This appears to be caused by new behavior in minetest.get_content_id() not finding the node after moreblocks mod sets an alias of "stairs:stair_cobble".

I suspect aliases aren't supposed to break get_content_id() like this - reported it here

@trungus
Copy link

trungus commented Apr 10, 2020

Hi guys
I found a workarround for this issue, you can replace the call for "minetest.get_content_id" for local function like this

nether.get_content_id = function(name)
	name = minetest.registered_aliases[name] or name
	return minetest.get_content_id(name)
end

this code work fine in my home server, I have the same problem with many mods and this snippet solve it.

Best Regards

@Treer
Copy link
Collaborator

Treer commented Apr 19, 2020

sfan5 has merged a fix for this into Minetest, nether should run now on the nightly builds

@mckaygerhard
Copy link

pufff the fix works only for recent engines.. but most servers does not work and cannot upgrade so fast.. why developers are so closed respect the players and users !!! that's why MT 5.X has the minor market shared of all voxel games

@Treer
Copy link
Collaborator

Treer commented Feb 13, 2022

the fix works only for recent engines

This bug was only introduced in a recent engine. Can you be more specific, what error are you seeing and on which version of Minetest?

@mckaygerhard
Copy link

the fix works only for recent engines

This bug was only introduced in a recent engine. Can you be more specific, what error are you seeing and on which version of Minetest?

i used 5.2 so .. and i will not upgrade 34 mods .. to 5.5 can you developers stop being obtuse and place the code that @trungus report in #19 (comment) !

now i understand why 5.X its being LESS used and multicraft gain so marked

@Treer
Copy link
Collaborator

Treer commented Feb 14, 2022

When someone is uninterested in "recent engines" and grinds an axe about how nobody uses MT 5.x, it comes across like they are running 4.x, so I needed to know if an 'Unknown node' error had crept into in nether mod on 4.x, or whether this was the same MT engine bug in 5.2.0 (a bug which the MT devs had swiftly corrected).

I've put the MT 5.2.0 workaround into a modern version of nether here: https://github.com/Treer/nether/archive/refs/heads/bugfix/get_content_id-2022.zip

@mckaygerhard
Copy link

When someone is uninterested in "recent engines" and grinds an axe about how nobody uses MT 5.x, it comes across like they are running 4.x, so I needed to know if an 'Unknown node' error had crept into in nether mod on 4.x, or whether this was the same MT engine bug in 5.2.0 (a bug which the MT devs had swiftly corrected).

we do not need so many cell brains to check the list of minetest servers, most are multicraft clients and phones..

facts are facts.. and that zip it's another way to said: "i will not do that" but more polite.. thanks in any ways, sad true for a great game, i recently chekc the minetest-mod manifiest.. soo geek and never close to gamers..

I've put the MT 5.2.0 workaround into a modern version of nether here: https://github.com/Treer/nether/archive/refs/heads/bugfix/get_content_id-2022.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants