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

Post Reply
User avatar
rarkenin
Member
Posts: 668
Joined: Tue Nov 20, 2012 20:48

by rarkenin » Post

Found a crash by accidentally crashing 0gb_us's server:

Searching for something like ]-] may cause a server crash.
Admin pro tempore on 0gb.us:30000. Ask me if you have a problem, or just want help.
This is a signature virus. Add me to your signature so that I can multiply.
Now working on my own clone, Mosstest.
I guess I'm back for some time.

User avatar
0gb.us
Member
Posts: 841
Joined: Sun Sep 16, 2012 01:55
Location: 0gb.us:30000
Contact:

by 0gb.us » Post

I repeated it, and the server didn't crash again. I think some other plugin on port 30000 caused the issue.

EDIT: That reminds me though, I need to get that error-catching script in place before the next crash.

EDIT: Nope, you were right, it was opening brackets, not close brackets, that cause the issue. People, you have been warned.
Last edited by 0gb.us on Sat Jan 05, 2013 22:34, edited 1 time in total.

User avatar
rarkenin
Member
Posts: 668
Joined: Tue Nov 20, 2012 20:48

by rarkenin » Post

0gb.us wrote:I repeated it, and the server didn't crash again. I think some other plugin on port 30000 caused the issue.

EDIT: That reminds me though, I need to get that error-catching script in place before the next crash.
0gb.us and I tested it again on his server, it looks like some backslashes in some complex combination with square brackets is the culprit.

Edit:

Code: Select all

[
ended up being the string that crashes it.

I'm guessing a regex is used?
Last edited by rarkenin on Sat Jan 05, 2013 22:55, edited 1 time in total.
Admin pro tempore on 0gb.us:30000. Ask me if you have a problem, or just want help.
This is a signature virus. Add me to your signature so that I can multiply.
Now working on my own clone, Mosstest.
I guess I'm back for some time.

User avatar
0gb.us
Member
Posts: 841
Joined: Sun Sep 16, 2012 01:55
Location: 0gb.us:30000
Contact:

by 0gb.us » Post

We think regular expressions are being used, or something. If anyone cares to maintain this, that's where I'd start looking.

User avatar
rarkenin
Member
Posts: 668
Joined: Tue Nov 20, 2012 20:48

by rarkenin » Post

Using pcall( in a safe manner, a rudimentary error control system can be created. Also this page include some stuff on pcall(.
Admin pro tempore on 0gb.us:30000. Ask me if you have a problem, or just want help.
This is a signature virus. Add me to your signature so that I can multiply.
Now working on my own clone, Mosstest.
I guess I'm back for some time.

User avatar
xavier108
Member
Posts: 227
Joined: Sat Nov 24, 2012 06:05
IRC: Ezlif
Location: Black Mesa Facility
Contact:

by xavier108 » Post

It have help me in my daily minetest life +5
Ezlif :D

User avatar
BZab
Member
Posts: 126
Joined: Mon Jan 28, 2013 10:04
Location: Poland

by BZab » Post

I use, its great, but now in latest v. of minetest, on creative (idk as on non-creative) it shows only recipes for 1st page of inventory...

User avatar
deivan
Member
Posts: 452
Joined: Fri Feb 15, 2013 10:16
Location: Brazil. :D

by deivan » Post

I repaired the mod, I don't know if have a bug in my version but don't is working here. I make some changes and now is working. Nice mod. :D

User avatar
jojoa1997
Member
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Post

well will you upload it? also could you make one for inventory plus?
Coding;
1X coding
3X debugging
12X tweaking to be just right

User avatar
deivan
Member
Posts: 452
Joined: Fri Feb 15, 2013 10:16
Location: Brazil. :D

by deivan » Post

Inventory plus already have one... I only corrected this one to make a item in the game for guide you when you are crafting. I update after test some more.
Last edited by deivan on Thu Feb 21, 2013 21:40, edited 1 time in total.

User avatar
jojoa1997
Member
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Post

could you give me a link to it or are you talking about unified_inventory
Coding;
1X coding
3X debugging
12X tweaking to be just right

User avatar
deivan
Member
Posts: 452
Joined: Fri Feb 15, 2013 10:16
Location: Brazil. :D

by deivan » Post

Ops... Is about the Unified, sorry.

User avatar
Captain_AuXiL
Member
Posts: 26
Joined: Fri Feb 01, 2013 09:44

by Captain_AuXiL » Post

I have a question or rather a problem. I can't seem to get this mod to work right. It shows only the recipe for how to make a craft guide. How do I get it to display all possible recipes that are within Minetest?

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

This mod is really outdated. It's better to use RealBadAngel's Unified Inventory.
Edit: Here: http://forum.minetest.net/viewtopic.php?id=3933
Last edited by kaeza on Wed Feb 27, 2013 04:48, edited 1 time in total.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

User avatar
0gb.us
Member
Posts: 841
Joined: Sun Sep 16, 2012 01:55
Location: 0gb.us:30000
Contact:

by 0gb.us » Post

kaeza wrote:This mod is really outdated. It's better to use RealBadAngel's Unified Inventory.
Edit: Here: http://forum.minetest.net/viewtopic.php?id=3933
The problem with using Unified Inventory is that you get less customization. It takes over the menu, so anything that adds to the menu (warp menus, Zeg9's skins, et cetera) cannot be used with it. It also adds bags, whether you like it or not. Unified Inventory is great for some servers, but not a good solution for everyone.

That said, with craft_guide installed, any user can easily crash the server by entering an opening bracket into the craft guide search field. I would shy away from installing craft_guide on any public server.

User avatar
deivan
Member
Posts: 452
Joined: Fri Feb 15, 2013 10:16
Location: Brazil. :D

by deivan » Post

I already have a corrected version of the craft guide but I have a small problem with the display of alternatives and methods of crafting... I update it ASAP.

User avatar
jojoa1997
Member
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Post

could you give a download link soon
deivan wrote:I already have a corrected version of the craft guide but I have a small problem with the display of alternatives and methods of crafting... I update it ASAP.
Coding;
1X coding
3X debugging
12X tweaking to be just right

User avatar
deivan
Member
Posts: 452
Joined: Fri Feb 15, 2013 10:16
Location: Brazil. :D

by deivan » Post

Roger! Roger! I only have a critical bug to solve before it.

User avatar
deivan
Member
Posts: 452
Joined: Fri Feb 15, 2013 10:16
Location: Brazil. :D

by deivan » Post

The new version support recipes with formulas to 5x5, don't have the search bug (don't crash) but see only one recipe for each item.

User avatar
jojoa1997
Member
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Post

Please release. Also could you add a soft dependency for inventory plus
Coding;
1X coding
3X debugging
12X tweaking to be just right

User avatar
deivan
Member
Posts: 452
Joined: Fri Feb 15, 2013 10:16
Location: Brazil. :D

by deivan » Post

Ok, I have a operational version now. For a easy install I make it in a modpack with all other my mods (tests) but for this one I make a file compacted with only this one. I hope is operational to all of you. Good lucky. :D

http://www.novoseusadosinformatica.com. ... k-cgmr.zip

Any question please call me. ;)

User avatar
deivan
Member
Posts: 452
Joined: Fri Feb 15, 2013 10:16
Location: Brazil. :D

by deivan » Post

The recipe is the same of the original:
You need a flag:
stick stick
stick stick
stick

And after have one use for make the PC:
flag
glass
stone_slab

User avatar
deivan
Member
Posts: 452
Joined: Fri Feb 15, 2013 10:16
Location: Brazil. :D

by deivan » Post

Crash bug solved. Download renewed.

User avatar
deivan
Member
Posts: 452
Joined: Fri Feb 15, 2013 10:16
Location: Brazil. :D

by deivan » Post

To do List:
- Add all recipes for each item
- Add better filter (more options...)
- A inventory plus version (maybe)
- Expand functions to cover data from live things and other info data, this will help when someone is starting the game.
(The basic, some guides, time, how find some materials, like a PC with a help/tutor program)
- Make better design of the menus in use, I like the pc design from the original. Very nice (Thanks Cornernote)

User avatar
jojoa1997
Member
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Post

deivan wrote:Ok, I have a operational version now. For a easy install I make it in a modpack with all other my mods (tests) but for this one I make a file compacted with only this one. I hope is operational to all of you. Good lucky. :D

http://www.novoseusadosinformatica.com. ... k-cgmr.zip

Any question please call me. ;)
could you make this in english. i dont understand any of it even with my basic spanish and google translate
Coding;
1X coding
3X debugging
12X tweaking to be just right

Post Reply

Who is online

Users browsing this forum: runs and 7 guests