[Mod] Craft Guide [craft_guide] - Shows crafts for all loade

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Fri Jul 27, 2012 13:02

mod updated to 0.1.1 -- see 1st post
 

ashenk69
Member
 
Posts: 230
Joined: Tue Jul 03, 2012 00:08

by ashenk69 » Fri Jul 27, 2012 14:56

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.
 

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Sat Jul 28, 2012 01:54

Hey ashenk69,

I started by stealing this code (It appears your mod concept made it into core!):
https://github.com/celeron55/minetest_game/blob/master/mods/creative/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.
 

ashenk69
Member
 
Posts: 230
Joined: Tue Jul 03, 2012 00:08

by ashenk69 » Sat Jul 28, 2012 04:01

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

4aiman
Member
 
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Mon Jul 30, 2012 05:51

Hello everyone!
I tried to install this mod on the minetest v0.4.1 and got this:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
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)


Line #308 contents this:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
local inv = minetest.create_detached_inventory("craft_guide", {


What should I do to make this work?
 

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Mon Jul 30, 2012 06:16

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.
 

4aiman
Member
 
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Mon Jul 30, 2012 08:09

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?
 

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Mon Jul 30, 2012 09:19

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.
 

madarexxx
Member
 
Posts: 144
Joined: Sat Aug 04, 2012 06:49

by madarexxx » Sun Aug 05, 2012 13:06

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

4aiman
Member
 
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Tue Aug 07, 2012 07:18

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".
Last edited by 4aiman on Tue Aug 07, 2012 07:24, edited 1 time in total.
 

madarexxx
Member
 
Posts: 144
Joined: Sat Aug 04, 2012 06:49

by madarexxx » Wed Aug 08, 2012 11:37

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

skalrynd
New member
 
Posts: 3
Joined: Thu Jul 26, 2012 01:33

by skalrynd » Thu Aug 09, 2012 03:46

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)
 

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Thu Aug 09, 2012 11:01

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.
 

pagliaccio
Member
 
Posts: 65
Joined: Tue Jul 31, 2012 07:38

by pagliaccio » Thu Aug 09, 2012 19:38

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

marcos
New member
 
Posts: 4
Joined: Wed Jul 25, 2012 20:10

by marcos » Sat Aug 11, 2012 16:53

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
 

pagliaccio
Member
 
Posts: 65
Joined: Tue Jul 31, 2012 07:38

by pagliaccio » Sat Aug 11, 2012 17:04

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

User avatar
Gambit
Member
 
Posts: 452
Joined: Sat Oct 29, 2011 19:31

by Gambit » Sat Aug 11, 2012 21:36

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
 

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Sat Aug 11, 2012 23:06

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

madarexxx
Member
 
Posts: 144
Joined: Sat Aug 04, 2012 06:49

by madarexxx » Fri Aug 17, 2012 08:25

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

tjefferson
New member
 
Posts: 1
Joined: Sat Aug 18, 2012 16:55

by tjefferson » Sat Aug 18, 2012 17:05

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.
 

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Sat Aug 18, 2012 18:36

madarexxx wrote: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)
I have a LOT of mods in my world. Most of them from the forum. Can you give more info about the crash? What are you doing at the time, anything useful in debug.txt ?

2)
At this point in time the game engine does not give me the output of both crafts, only the last registered one. If the engine does not gain support for this in the next release or so I may update the mod to have its own registry. The problem with this is the installation for users is a little more tricky.

3)
Yeah, again I'm going to have to blame the engine. I'm not sure why, but if you have a lot of mods it does that.

If you simply want a way to see all the items and recipes, you may consider using my GameWiki. It will give you a website that shows how to make everything your game offers (even if recipes overlap). You can have unlimited bookmarks, multiple tabs and search (all thanks to your web browser).

tjefferson wrote: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.


You have to rename it to craft_guide (or remove the - (minus) characters, MT doesn't like them in the filename).
 

PewDiePie
Member
 
Posts: 26
Joined: Sat Aug 18, 2012 17:39

by PewDiePie » Sat Aug 18, 2012 19:02

i try to download it and put it in my mod folder but it doesnt work. someone help.
_Pewdy_
There's A Reason Your Heart Is On The Left Side Because Its not Always Right.
-Wiz Khalifa
 

Temperest
Member
 
Posts: 651
Joined: Tue Nov 15, 2011 23:13
GitHub: Uberi

by Temperest » Sat Aug 18, 2012 19:51

"Doesn't work" gives very little information about what's wrong. "Doesn't work" could mean a number of things, such as your computer being on fire, or turned off. Assuming your computer is on and not on fire, what isn't working? Were you not able to download it? Were you not able to install it? Were you not able to find a fire extinguisher?
WorldEdit 1.0 released

The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.
 

PewDiePie
Member
 
Posts: 26
Joined: Sat Aug 18, 2012 17:39

by PewDiePie » Sat Aug 18, 2012 20:00

no my computer isnt on fire. i put it in my mod folder and open minetest and it says mod error.
There's A Reason Your Heart Is On The Left Side Because Its not Always Right.
-Wiz Khalifa
 

Temperest
Member
 
Posts: 651
Joined: Tue Nov 15, 2011 23:13
GitHub: Uberi

by Temperest » Sat Aug 18, 2012 20:08

What is the folder named? Make sure it's named "craft_guide", and make sure you can find "init.lua" in that folder (and not in a folder inside that folder).

If init.lua is in a folder inside that folder, move that subfolder out into its own folder and delete the original one.
WorldEdit 1.0 released

The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.
 

PewDiePie
Member
 
Posts: 26
Joined: Sat Aug 18, 2012 17:39

by PewDiePie » Sat Aug 18, 2012 20:12

do i unzip the folder?
There's A Reason Your Heart Is On The Left Side Because Its not Always Right.
-Wiz Khalifa
 

Temperest
Member
 
Posts: 651
Joined: Tue Nov 15, 2011 23:13
GitHub: Uberi

by Temperest » Sat Aug 18, 2012 20:22

Um, yes.

You also need to have MineTest, and it also needs to be unzipped.
WorldEdit 1.0 released

The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.
 

PewDiePie
Member
 
Posts: 26
Joined: Sat Aug 18, 2012 17:39

by PewDiePie » Sat Aug 18, 2012 20:26

k thx it worked.
_Pewdy_
There's A Reason Your Heart Is On The Left Side Because Its not Always Right.
-Wiz Khalifa
 

User avatar
mrtux
Member
 
Posts: 141
Joined: Mon Jun 25, 2012 02:41

by mrtux » Sun Aug 19, 2012 06:40

Nice mod! Finally I don't need to view the mods source code to get the crafting recipies.
+1
thanks doge
 

Blackthorne
Member
 
Posts: 78
Joined: Tue Aug 14, 2012 07:38

by Blackthorne » Sun Aug 19, 2012 07:39

Hmm. I keep getting a LUA error with this mod whenever I try to open my private world.
 

PreviousNext

Return to Mod Releases

Who is online

Users browsing this forum: Google [Bot] and 24 guests

cron