[Mod] Craft Guide [craft_guide] - Shows crafts for all loade
- rubenwardy
- Moderator
- Posts: 6972
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: Bristol, United Kingdom
- Contact:
- Bas080
- Member
- Posts: 398
- Joined: Mon May 21, 2012 15:54
- GitHub: bas080
- IRC: bas080
- In-game: bas080
- Location: Netherlands
What could it be?
10:23:53: ERROR[main]: ServerError: LuaError: error: ...hare/minetest/games/simple/mods/craft_guide/init.lua:259: attempt to index global 'crafts' (a nil value)
10:23:53: ERROR[main]: stack traceback:
10:23:53: ERROR[main]: [C]: in function 'add_node'
10:23:53: ERROR[main]: /usr/bin/../share/minetest/builtin/item.lua:159: in function </usr/bin/../share/minetest/builtin/item.lua:124>
10:23:53: ERROR[main]: ServerError: LuaError: error: ...hare/minetest/games/simple/mods/craft_guide/init.lua:259: attempt to index global 'crafts' (a nil value)
10:23:53: ERROR[main]: stack traceback:
10:23:53: ERROR[main]: [C]: in function 'add_node'
10:23:53: ERROR[main]: /usr/bin/../share/minetest/builtin/item.lua:159: in function </usr/bin/../share/minetest/builtin/item.lua:124>
Attempted to install according to the directions, was able to place the sign but it crashed the game. Restarting allowed me to view the sign but it was empty. I'm assuming I messed something up. In step 2, where do you insert that line. In step 3, can you delete the line or have to comment it out with // or /* . I've tried both but I must have done something wrong.
-
- Member
- Posts: 844
- Joined: Wed Jul 11, 2012 15:02
Kays wrote:Attempted to install according to the directions, was able to place the sign but it crashed the game. Restarting allowed me to view the sign but it was empty. I'm assuming I messed something up. In step 2, where do you insert that line. In step 3, can you delete the line or have to comment it out with // or /* . I've tried both but I must have done something wrong.
In step 2, insert the line to default.lua on line 17...
eg:
FIND:
dofile(minetest.get_modpath("default").."/leafdecay.lua")
BELOW, INSERT:
dofile(minetest.get_modpath("default").."/register_craft.lua")
In step 3 you can remove the line, or comment it with -- (2 dashes).
cornernote wrote:Kays wrote:Attempted to install according to the directions, was able to place the sign but it crashed the game. Restarting allowed me to view the sign but it was empty. I'm assuming I messed something up. In step 2, where do you insert that line. In step 3, can you delete the line or have to comment it out with // or /* . I've tried both but I must have done something wrong.
In step 2, insert the line to default.lua on line 17...
eg:
FIND:
dofile(minetest.get_modpath("default").."/leafdecay.lua")
BELOW, INSERT:
dofile(minetest.get_modpath("default").."/register_craft.lua")
In step 3 you can remove the line, or comment it with -- (2 dashes).
Whatever I did wrong before, I did right this time around. No longer crashes, and it displays all the recipes exactly as advertised. Very nice.
-
- Member
- Posts: 844
- Joined: Wed Jul 11, 2012 15:02
I was not aware that buttons had been implemented into the inventory. I read through the API and tried to do it myself and couldn't get it to work. flabergasted.
Youtube Channel: http://www.youtube.com/user/ashenkster69
-
- Member
- Posts: 844
- Joined: Wed Jul 11, 2012 15:02
Hey ashenk69,
I started by stealing this code (It appears your mod concept made it into core!):
https://github.com/celeron55/minetest_g ... e/init.lua
Did find/replace for creative to craft_guide, then just applied it to the code I stole from you to make the node inventory work.
I started by stealing this code (It appears your mod concept made it into core!):
https://github.com/celeron55/minetest_g ... e/init.lua
Did find/replace for creative to craft_guide, then just applied it to the code I stole from you to make the node inventory work.
That's pretty awesome that my idea actually made it into the core of the game.
Youtube Channel: http://www.youtube.com/user/ashenkster69
Hello everyone!
I tried to install this mod on the minetest v0.4.1 and got this:
Line #308 contents this:
What should I do to make this work?
I tried to install this mod on the minetest v0.4.1 and got this:
Code: Select all
09:36:49: VERBOSE[main]: error_message = ServerError: LuaError: error: ...bin\..\games\minetest_game\mods\craft_guide\init.lua:308: attempt to call field 'create_detached_inventory' (a nil value)
Code: Select all
local inv = minetest.create_detached_inventory("craft_guide", {
-
- Member
- Posts: 844
- Joined: Wed Jul 11, 2012 15:02
-
- Member
- Posts: 844
- Joined: Wed Jul 11, 2012 15:02
There's a guide here:
http://minetest.net/forum/viewtopic.php?id=1434
Its really easy if you don't want sound, most of the libs you have to get are for sound to work.
I don't think it can be given as an all-in-one zip because of licensing issues.
http://minetest.net/forum/viewtopic.php?id=1434
Its really easy if you don't want sound, most of the libs you have to get are for sound to work.
I don't think it can be given as an all-in-one zip because of licensing issues.
Hello!
I love this mode, but it crashes my minetest, and i don't know why - there is not any error or something else in terminal, i have latest build from sources both, minetest and craft_guide. System is Linux Mint 13.
Here is debug.txt http://ompldr.org/vZXpzYg
After removing folder with your mod, it works again.
could someone help me?
I love this mode, but it crashes my minetest, and i don't know why - there is not any error or something else in terminal, i have latest build from sources both, minetest and craft_guide. System is Linux Mint 13.
Here is debug.txt http://ompldr.org/vZXpzYg
After removing folder with your mod, it works again.
could someone help me?
Sorry for my bad English, please help me learn it - correct my worst mistakes
2 maderexxx:
I'm too have linux mint 13 (mate) and this mod works fine with minetest 4.2 RC1 (or later if exist).
Besides, I couldnt find any info in the debug.txt related to this mod...
Maybe it's some sort of conflict? Could you try to remove all mods but craft_guiide and see what would happen?
Although, which mod is logging this:
I've never saw any with such "output".
I'm too have linux mint 13 (mate) and this mod works fine with minetest 4.2 RC1 (or later if exist).
Besides, I couldnt find any info in the debug.txt related to this mod...
Maybe it's some sort of conflict? Could you try to remove all mods but craft_guiide and see what would happen?
Although, which mod is logging this:
?19:04:45: INFO[main]: cmd 67 count 0
I've never saw any with such "output".
Last edited by 4aiman on Tue Aug 07, 2012 07:24, edited 1 time in total.
-
- Member
- Posts: 844
- Joined: Wed Jul 11, 2012 15:02
-
- Member
- Posts: 65
- Joined: Tue Jul 31, 2012 07:38
- Location: italy
-
- Member
- Posts: 65
- Joined: Tue Jul 31, 2012 07:38
- Location: italy
Hello, first I'd like to say this is a useful mob and I know a lot of people would welcome it.
However, wouldn't it be more logical to build this mod around bookshelves rather than signs? Bookshelves have no use so far other than decorations, and by modding the bookshelves to act as the guide, it would give it more purpose.
Or is that not possible yet?
However, wouldn't it be more logical to build this mod around bookshelves rather than signs? Bookshelves have no use so far other than decorations, and by modding the bookshelves to act as the guide, it would give it more purpose.
Or is that not possible yet?
-
- Member
- Posts: 844
- Joined: Wed Jul 11, 2012 15:02
Cornernote, thank you for this mod, it works fine, but i found 3 issues in it:
1) It crash Minetest if you have many mods and world have some dropped things (about 1 stack is enough for crash)
2) If there is two or more recipes which are producing same thing, you can see only one of them. What about adding buttons near a craft window, which will switch recipes?
3) It works slow sometimes (not critical, but is a little irritating)
And what about a function, to find, in which recipes is this thing using. It will be very useful for people, who have many mods.
Thanks you very much
1) It crash Minetest if you have many mods and world have some dropped things (about 1 stack is enough for crash)
2) If there is two or more recipes which are producing same thing, you can see only one of them. What about adding buttons near a craft window, which will switch recipes?
3) It works slow sometimes (not critical, but is a little irritating)
And what about a function, to find, in which recipes is this thing using. It will be very useful for people, who have many mods.
Thanks you very much
Sorry for my bad English, please help me learn it - correct my worst mistakes
-
- New member
- Posts: 1
- Joined: Sat Aug 18, 2012 16:55
- Location: wisconsin
ok i am learning alot about minetest but i can't figure this out
11:52:11= error[main]= moderror= failed to load and run c\users\daddy\desktop\minetest-0.4.2-rc1-d38b465-win32\bin\..\mods\minetest\cornernote-minetest-craft_guide-a28d7f9\init.lua if you can help me on this and please make it simple i don't understand alot of computer terms so if you please can make it lamen terms. thanks so much for your help.
11:52:11= error[main]= moderror= failed to load and run c\users\daddy\desktop\minetest-0.4.2-rc1-d38b465-win32\bin\..\mods\minetest\cornernote-minetest-craft_guide-a28d7f9\init.lua if you can help me on this and please make it simple i don't understand alot of computer terms so if you please can make it lamen terms. thanks so much for your help.
Who is online
Users browsing this forum: Bing [Bot] and 16 guests