[Mod] Crafting Guide [1.10] [craftguide]

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

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

by jp » Sun Nov 11, 2018 21:33

craftguide 1.2 released.

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

Enjoy.
 

User avatar
Lone_Wolf
Member
 
Posts: 2186
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf

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

by Lone_Wolf » Sun Nov 11, 2018 22:16

jp wrote:craftguide 1.2 released.

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

Enjoy.

+1000 Love it
+ Screenshot
 

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

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

by maikerumine » Mon Nov 12, 2018 01:11

jp wrote:craftguide 1.2 released.

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

Enjoy.

FINALLY!!! THANK YOU!!!!!!!!
 

User avatar
TenPlus1
Member
 
Posts: 2611
Joined: Mon Jul 29, 2013 13:38
GitHub: tenplus1
 

DELTA_FORCE
Member
 
Posts: 131
Joined: Tue Oct 30, 2018 01:26
Location: Somewhere in the Atlantic
IRC: DELTA_FORCE
In-game: DELTA_FORCE

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

by DELTA_FORCE » Sat Nov 24, 2018 19:14

Im the 80000 viewer! This looks great!
If you don't like something I say, you are too easily offended...
 

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

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

by jp » Sun Nov 25, 2018 14:58

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

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

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

by IcyDiamond » Wed Dec 12, 2018 23:14

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 | Minetest modder | Systems Administrator | Donate
Mods - elepower | melterns | towny
 

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

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

by jp » Thu Dec 13, 2018 00:04

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

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

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

by IcyDiamond » Thu Dec 13, 2018 01:48

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 | Minetest modder | Systems Administrator | Donate
Mods - elepower | melterns | towny
 

Chem871
Member
 
Posts: 935
Joined: Sat Aug 19, 2017 21:49
Location: SCP-2935
GitHub: Chemguy99
In-game: Dwaba_Kukai

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

by Chem871 » Thu Dec 13, 2018 13:49

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 again? I forgot.
 

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

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

by jp » Thu Dec 13, 2018 14:20

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: 141
Joined: Fri Mar 30, 2018 08:55
Location: Estonia
GitHub: LunaSquee
IRC: IcyDiamond
In-game: IcyDiamond

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

by IcyDiamond » Thu Dec 13, 2018 15:03

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 | Minetest modder | Systems Administrator | Donate
Mods - elepower | melterns | towny
 

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

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

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

by jp » Sun Dec 16, 2018 22:54

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: 141
Joined: Fri Mar 30, 2018 08:55
Location: Estonia
GitHub: LunaSquee
IRC: IcyDiamond
In-game: IcyDiamond

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

by IcyDiamond » Sun Dec 16, 2018 23:36

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 | Minetest modder | Systems Administrator | Donate
Mods - elepower | melterns | towny
 

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

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

by jp » Sun Dec 16, 2018 23:39

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

Oops, fixed.
 

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

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

by IcyDiamond » Sun Dec 16, 2018 23:55

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 | Minetest modder | Systems Administrator | Donate
Mods - elepower | melterns | towny
 

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

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

by IcyDiamond » Mon Dec 17, 2018 00:00

Also, it would appear that the tooltip says "Unknown Item" when you include item quantity.
Image
Web developer | Minetest modder | Systems Administrator | Donate
Mods - elepower | melterns | towny
 

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

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

by jp » Mon Dec 17, 2018 00:09

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

Fixed.
 

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

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

by IcyDiamond » Mon Dec 17, 2018 00:23

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 | Minetest modder | Systems Administrator | Donate
Mods - elepower | melterns | towny
 

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

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

by IcyDiamond » Mon Dec 24, 2018 11:07

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 | Minetest modder | Systems Administrator | Donate
Mods - elepower | melterns | towny
 

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

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

by jp » Mon Dec 24, 2018 13:12

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

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

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

by jp » Fri Jan 04, 2019 00:30

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: 819
Joined: Mon Apr 25, 2016 16:09
Location: Maryland, USA
GitHub: Gerold55
IRC: Gerold55
In-game: Gerold55

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

by GamingAssociation39 » Fri Jan 04, 2019 00:34

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

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

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

by jp » Sun Feb 10, 2019 16:43

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.
 

PreviousNext

Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 19 guests