(SOLVED) Unknown crafting definition type?

User avatar
SegFault22
Member
 
Posts: 870
Joined: Mon May 21, 2012 03:17

(SOLVED) Unknown crafting definition type?

by SegFault22 » Sun Nov 10, 2013 21:05

I am working on a mod, which adds a machine. This machine uses a unique fuel, like the furnace's "fuel", but the name is "eng" (stands for Energy - this will be any Enmatter (energy-matter, high-energy-density fuel) found or created). However, trying to load Minetest results in an error, and minetest does not load. This is the error log from debug.txt:
[spoiler=Error (click to expand)]15:59:16: ERROR[main]: Error loading mod "morestuff2": LuaError: Unknown crafting definition type: "eng"
15:59:16: ERROR[main]: stack traceback:
15:59:16: ERROR[main]: [C]: in function 'register_craft'
15:59:16: ERROR[main]: C:\Minetest\bin\..\mods\morestuff2/segments/machine.lua:272: in main chunk
15:59:16: ERROR[main]: [C]: in function 'dofile'
15:59:16: ERROR[main]: C:\Minetest\bin\..\mods\morestuff2\init.lua:34: in main chunk
15:59:16: ERROR[main]: Server: Failed to load and run C:\Minetest\bin\..\mods\morestuff2\init.lua
15:59:16: ERROR[main]: ModError: Failed to load and run C:\Minetest\bin\..\mods\morestuff2\init.lua
[/spoiler]


I can tell that the issue lies with the crafting definition type, "eng". I have yet to find how "fuel" crafting definition type is registered, so how could I register the one I made, and thus fix this error?
Thank you.

EDIT: solved. It seems that the issue is with the crafting definition types simply being cary-overs from <0.4. What a shame.
Last edited by SegFault22 on Sun Nov 10, 2013 22:23, edited 1 time in total.
Resources are abundant; only money is scarce. People should not have to work hard and remain poor just to pay for the needs of survival.
Society can thrive without money - but only if productive members of society are rewarded for being productive.
 

Nore
Member
 
Posts: 468
Joined: Wed Nov 28, 2012 11:35
GitHub: Ekdohibs

by Nore » Mon Nov 11, 2013 07:26

You should look at that if you want custom craft definition types... https://forum.minetest.net/viewtopic.php?id=5739
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 11 guests

cron