Page 3 of 10

Re: [Mod] Crafting Guide [1.2] [craftguide]

Posted: Sun Nov 11, 2018 21:33
by jp
craftguide 1.2 released.

- Integration in sfinv (`craftguide_sfinv_only = true` in minetest.conf).
- Minor fixes.

Enjoy.

Re: [Mod] Crafting Guide [1.2] [craftguide]

Posted: Sun Nov 11, 2018 22:16
by Lone_Wolf
jp wrote:craftguide 1.2 released.

- Integration in sfinv (`craftguide_sfinv_only = true` in minetest.conf).
- Minor fixes.

Enjoy.
+1000 Love it
Spoiler
Image

Re: [Mod] Crafting Guide [1.2] [craftguide]

Posted: Mon Nov 12, 2018 01:11
by maikerumine
jp wrote:craftguide 1.2 released.

- Integration in sfinv (`craftguide_sfinv_only = true` in minetest.conf).
- Minor fixes.

Enjoy.
FINALLY!!! THANK YOU!!!!!!!!

Re: [Mod] Crafting Guide [1.2] [craftguide]

Posted: Mon Nov 12, 2018 21:15
by TenPlus1
W00t! Nice one jp :)

Re: [Mod] Crafting Guide [1.2] [craftguide]

Posted: Sat Nov 24, 2018 19:14
by DELTA_FORCE
Im the 80000 viewer! This looks great!

Re: [Mod] Crafting Guide [1.2.1] [craftguide]

Posted: Sun Nov 25, 2018 14:58
by jp
craftguide 1.2.1 released with an improved formspec layout (thanks Shara for her collaboration).

Re: [Mod] Crafting Guide [1.2.1] [craftguide]

Posted: Wed Dec 12, 2018 23:14
by IcyDiamond
Hello! Great mod, a big help. However, me as an avid modder, I've come to a point where I have a ton of custom crafting systems in my mods and I would highly appreciate it if you could implement an API where mod creators like myself could register their own craft types and recipes.
This is already done in unified_inventory (see https://github.com/minetest-mods/unifie ... i.lua#L229), but I don't really like unified_inventory. Thanks!

Re: [Mod] Crafting Guide [1.2.1] [craftguide]

Posted: Thu Dec 13, 2018 00:04
by jp
Thanks for your appreciation. craftguide is a guide. Simply a guide ;)

Re: [Mod] Crafting Guide [1.2.1] [craftguide]

Posted: Thu Dec 13, 2018 01:48
by IcyDiamond
jp wrote:Thanks for your appreciation. craftguide is a guide. Simply a guide ;)
I get that. What I'm asking is that the guide should be able to show recipes for custom crafting types alongside default shaped, shapeless and cooking.

For example, my mod elepower has a machine called Alloy Furnace. I want to be able to add a recipe to the guide that is not a default crafting receipe, but a custom one that clearly indicates the player to use the Alloy Furnace to craft a certain item.

Re: [Mod] Crafting Guide [1.2.1] [craftguide]

Posted: Thu Dec 13, 2018 13:49
by Chem871
IcyDiamond, you could add a 'wiki' block to your mod, that maybe has a picture of all the different recipes on it. Idk if this mod can support custom crafts like UI can. I also am not fond of UI, as it is too laggy and awkward.

Re: [Mod] Crafting Guide [1.2.1] [craftguide]

Posted: Thu Dec 13, 2018 14:20
by jp
IcyDiamond wrote:What I'm asking is that the guide should be able to show recipes for custom crafting types alongside default shaped, shapeless and cooking.
Can you show me a few examples please?
Idk if this mod can support custom crafts like UI can
In some way it can. When your recipe is >3x3 items for example.

Re: [Mod] Crafting Guide [1.2.1] [craftguide]

Posted: Thu Dec 13, 2018 15:03
by IcyDiamond
jp wrote:
IcyDiamond wrote:What I'm asking is that the guide should be able to show recipes for custom crafting types alongside default shaped, shapeless and cooking.
Can you show me a few examples please?
Image
This is how it works in unified_inventory

Re: [Mod] Crafting Guide [1.2.1] [craftguide]

Posted: Sun Dec 16, 2018 16:04
by hexYeah
awesome thank you !

Re: [Mod] Crafting Guide [1.3] [craftguide]

Posted: Sun Dec 16, 2018 22:54
by jp
craftguide 1.3 released!
  • Add a /craft command to show the recipe(s) of the pointed node.
  • Add an API to display custom crafting recipes (read the documentation in the README).
NOTE: Minetest 5.0 is required to use this new version.

Image

Re: [Mod] Crafting Guide [1.3] [craftguide]

Posted: Sun Dec 16, 2018 23:36
by IcyDiamond
jp wrote:Add an API to display custom crafting recipes (read the documentation in the README).
Okay, so I took some time to take a look at this, and here's my complaints:
  • "craftguide" should be a global variable.
  • All items have been strictly coded to accept only strings. As soon as an ItemStack is passed, the mod crashes.
  • There is no way to display item quantities. I guess it's not that big of a deal and it's hard to do, so I'll let it slide.

Re: [Mod] Crafting Guide [1.3] [craftguide]

Posted: Sun Dec 16, 2018 23:39
by jp
IcyDiamond wrote:You should make "craftguide" a global variable.
Oops, fixed.

Re: [Mod] Crafting Guide [1.3] [craftguide]

Posted: Sun Dec 16, 2018 23:55
by IcyDiamond
Oh, sorry, I was mistaken on the quantities part. I realized that the quantity has to be included in the item string. I'd appreciate it if you supported ItemStacks, too. So far, thanks for implementing my request <3

Re: [Mod] Crafting Guide [1.3] [craftguide]

Posted: Mon Dec 17, 2018 00:00
by IcyDiamond
Also, it would appear that the tooltip says "Unknown Item" when you include item quantity.
Image

Re: [Mod] Crafting Guide [1.3] [craftguide]

Posted: Mon Dec 17, 2018 00:09
by jp
IcyDiamond wrote:Also, it would appear that the tooltip says "Unknown Item" when you include item quantity.
Fixed.

Re: [Mod] Crafting Guide [1.3] [craftguide]

Posted: Mon Dec 17, 2018 00:23
by IcyDiamond
I highly recommend that you used ItemStacks, because not only can the constructor "ItemStack()" accept a string, it can also accept another ItemStack without throwing an error. Plus you have access to functions such as get_name() and get_count() without the need for any string matches! Your only point of concern may be groups, though, which need some special treatment, but otherwise, I highly suggest that you do.

Re: [Mod] Crafting Guide [1.3] [craftguide]

Posted: Mon Dec 24, 2018 11:07
by IcyDiamond
My server keeps crashing with this error:

Code: Select all

ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod '' in callback on_playerReceiveFields(): /home/icynet/.minetest/bin/../mods/craftguide/init.lua:189: attempt to perform arithmetic on local 'width' (a nil value)

Re: [Mod] Crafting Guide [1.3] [craftguide]

Posted: Mon Dec 24, 2018 13:12
by jp
The API has changed, that's why it crashes. Check the README out.

Re: [Mod] Crafting Guide [1.3.1] [craftguide]

Posted: Fri Jan 04, 2019 00:30
by jp
craftguide 1.3.1 released

- More consistence: the fuel-only items are grouped into the 'usages' (if there is any).
- Bug fixes, polishing.

Re: [Mod] Crafting Guide [1.3.1] [craftguide]

Posted: Fri Jan 04, 2019 00:34
by GamingAssociation39
Any chances in making it into a laptop mod also???

Re: [Mod] Crafting Guide [1.4] [craftguide]

Posted: Sun Feb 10, 2019 16:43
by jp
craftguide 1.4 released!
  • Lots of fixes, refactoring and optimizations.
  • Added API functions for recipe filters. Recipe filters can be used to filter the recipes shown to players. The progressive filter, for example, is one of them and can be overriden. More infos in the API documentation.
  • Discovered recipes in progressive mode are now remembered by default.
A big thanks to pauloue for this release.