[Mod] Crafting Guide [2.0] [craftguide]

User avatar
jp
Banned
Posts: 947
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

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

by jp » Post

craftguide 1.2 released.

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

Enjoy.

User avatar
Lone_Wolf
Member
Posts: 2576
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

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

by Lone_Wolf » Post

jp wrote:craftguide 1.2 released.

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

Enjoy.
+1000 Love it
Spoiler
Image
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

User avatar
maikerumine
Member
Posts: 1420
Joined: Mon Aug 04, 2014 14:27
GitHub: maikerumine
In-game: maikerumine

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

by maikerumine » Post

jp wrote:craftguide 1.2 released.

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

Enjoy.
FINALLY!!! THANK YOU!!!!!!!!
Talamh Survival Minetest-->viewtopic.php?f=10&t=12959

User avatar
TenPlus1
Member
Posts: 3715
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

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

by TenPlus1 » Post

W00t! Nice one jp :)

User avatar
DELTA_FORCE
Member
Posts: 165
Joined: Tue Oct 30, 2018 01:26
IRC: DELTA_FORCE
In-game: DELTA_FORCE
Location: ee

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

by DELTA_FORCE » Post

Im the 80000 viewer! This looks great!
check me out nowhere because i never do anything

User avatar
jp
Banned
Posts: 947
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

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

by jp » Post

craftguide 1.2.1 released with an improved formspec layout (thanks Shara for her collaboration).

User avatar
IcyDiamond
Member
Posts: 175
Joined: Fri Mar 30, 2018 08:55
GitHub: LunaSquee
IRC: IcyDiamond
In-game: IcyDiamond
Location: Estonia
Contact:

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

by IcyDiamond » Post

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!
Web developer | Systems Administrator

User avatar
jp
Banned
Posts: 947
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

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

by jp » Post

Thanks for your appreciation. craftguide is a guide. Simply a guide ;)

User avatar
IcyDiamond
Member
Posts: 175
Joined: Fri Mar 30, 2018 08:55
GitHub: LunaSquee
IRC: IcyDiamond
In-game: IcyDiamond
Location: Estonia
Contact:

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

by IcyDiamond » Post

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.
Web developer | Systems Administrator

Chem871
Member
Posts: 999
Joined: Sat Aug 19, 2017 21:49
GitHub: Chemguy99
In-game: Chem Nyx
Location: My Basement's Attic

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

by Chem871 » Post

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.
What is SCP-055?

User avatar
jp
Banned
Posts: 947
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

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

by jp » Post

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.

User avatar
IcyDiamond
Member
Posts: 175
Joined: Fri Mar 30, 2018 08:55
GitHub: LunaSquee
IRC: IcyDiamond
In-game: IcyDiamond
Location: Estonia
Contact:

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

by IcyDiamond » Post

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
Web developer | Systems Administrator

hexYeah
New member
Posts: 8
Joined: Wed Dec 12, 2018 02:09
In-game: hexYeah

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

by hexYeah » Post

awesome thank you !

User avatar
jp
Banned
Posts: 947
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

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

by jp » Post

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
Last edited by jp on Fri Jan 04, 2019 01:12, edited 1 time in total.

User avatar
IcyDiamond
Member
Posts: 175
Joined: Fri Mar 30, 2018 08:55
GitHub: LunaSquee
IRC: IcyDiamond
In-game: IcyDiamond
Location: Estonia
Contact:

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

by IcyDiamond » Post

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.
Last edited by IcyDiamond on Sun Dec 16, 2018 23:49, edited 2 times in total.
Web developer | Systems Administrator

User avatar
jp
Banned
Posts: 947
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

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

by jp » Post

IcyDiamond wrote:You should make "craftguide" a global variable.
Oops, fixed.

User avatar
IcyDiamond
Member
Posts: 175
Joined: Fri Mar 30, 2018 08:55
GitHub: LunaSquee
IRC: IcyDiamond
In-game: IcyDiamond
Location: Estonia
Contact:

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

by IcyDiamond » Post

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
Web developer | Systems Administrator

User avatar
IcyDiamond
Member
Posts: 175
Joined: Fri Mar 30, 2018 08:55
GitHub: LunaSquee
IRC: IcyDiamond
In-game: IcyDiamond
Location: Estonia
Contact:

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

by IcyDiamond » Post

Also, it would appear that the tooltip says "Unknown Item" when you include item quantity.
Image
Web developer | Systems Administrator

User avatar
jp
Banned
Posts: 947
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

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

by jp » Post

IcyDiamond wrote:Also, it would appear that the tooltip says "Unknown Item" when you include item quantity.
Fixed.

User avatar
IcyDiamond
Member
Posts: 175
Joined: Fri Mar 30, 2018 08:55
GitHub: LunaSquee
IRC: IcyDiamond
In-game: IcyDiamond
Location: Estonia
Contact:

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

by IcyDiamond » Post

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.
Web developer | Systems Administrator

User avatar
IcyDiamond
Member
Posts: 175
Joined: Fri Mar 30, 2018 08:55
GitHub: LunaSquee
IRC: IcyDiamond
In-game: IcyDiamond
Location: Estonia
Contact:

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

by IcyDiamond » Post

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)
Web developer | Systems Administrator

User avatar
jp
Banned
Posts: 947
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

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

by jp » Post

The API has changed, that's why it crashes. Check the README out.

User avatar
jp
Banned
Posts: 947
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

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

by jp » Post

craftguide 1.3.1 released

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

User avatar
GamingAssociation39
Member
Posts: 858
Joined: Mon Apr 25, 2016 16:09
GitHub: Gerold55
IRC: Gerold55
In-game: Gerold55
Location: Maryland, USA

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

by GamingAssociation39 » Post

Any chances in making it into a laptop mod also???
Jesus Is Lord and Savior!!!

User avatar
jp
Banned
Posts: 947
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith
Location: France

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

by jp » Post

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.
Last edited by jp on Wed Feb 13, 2019 13:54, edited 1 time in total.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 17 guests