Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

If this was installed on the server, will it add additional lag?

Or does the user handle it all

Websites: Multa - Mt Extensions
Mods: Food - Awards  - Priv Areas - More
Tools: Nodebox Editor
I am working on a mob mod, and a capture the flag game.

Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

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>

My mods
Try my mod pack at 31.151.189.3:30001
Donate if you like what I do

Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

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.

Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

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).

Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

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.

Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

mod updated to 0.1.1 -- see 1st post

Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

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.

Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

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.

Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

That's pretty awesome that my idea actually made it into the core of the game.

Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

Hello everyone!
I tried to install this mod on the minetest v0.4.1 and got  this:

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)

Line #308 contents this:

local inv = minetest.create_detached_inventory("craft_guide", {

What should I do to make this work?

Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

I think create_detached_inventory didn't make it into minetest 0.4.1.  If you goto the blog there is a RC release of 0.4.2.  That will load it.  Other option is to compile from source.

Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

Thanks, with RC 0.4.2 it works :)
BTW (sorry for offtop) what do I need to compile minetest under win? Could I get it as all-in-one *.7z file or smth?

Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

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.

Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

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?

Sorry for my bad English, please help me learn it  - correct my worst mistakes :)

40 (edited by 4aiman 2012-08-07 07:24:20)

Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

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:

19:04:45: INFO[main]: cmd 67 count 0

?
I've never saw any with such "output".

Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

I've got a compromise - delete flags mod, and everything works!

Sorry for my bad English, please help me learn it  - correct my worst mistakes :)

Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

ERROR: An unhandled exception occurred: ServerError: LuaError: error: ...minetest/worlds/world/worldmods/craft_guide/init.lua:308: attempt to call field 'create_detached_inventory' (a nil value)

Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

skalrynd wrote:

ERROR: An unhandled exception occurred: ServerError: LuaError: error: ...minetest/worlds/world/worldmods/craft_guide/init.lua:308: attempt to call field 'create_detached_inventory' (a nil value)

your version is not new enough.

Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

how i find a stairs mod?
it is request for this mod but i not find

Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

can you plz help me i extracted the mod to the mods folder i did what i had to do but it says faliled to load and run help me plz

Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

marcos wrote:

can you plz help me i extracted the mod to the mods folder i did what i had to do but it says faliled to load and run help me plz

you have a stairs mod? i can't find it...

Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

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?

Current Projects: MineToon | PixelBOX
Gambit's Checkmate Server - 43.65.296.232 - port: 30001

Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

Good idea.  Vanessae said something similar.  I suck at desing, if someone can do some textures I can add a craft bookshelf.

Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

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

Sorry for my bad English, please help me learn it  - correct my worst mistakes :)

Re: [Mod] Craft Guide [craft_guide] - ingame craftrecipe viewer

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.