Page 1 of 1

Uncrafting Table Question

PostPosted: Fri May 16, 2014 19:05
by golthem
Hello everyone! I'm trying to make an uncrafting table mod and got stuck so I'm wondering if any of you would be able to help me.

I was going to make lots and lots of crafting recipes but realized some problems with that.
a. It would take forever!
b. It might conflict with some other recipes

I was looking at the unified inventory mod and was noticing how the crafting recipe show up when you click whatever your trying to craft. Would this be the best place to start?

Re: Uncrafting Table Question

PostPosted: Fri May 16, 2014 20:22
by Krock
Hello,

The unified inventory is a good place to start, yes.
But you'll have problems finding the correct uncrafting recipe - as already said- there are multiple possible.

Re: Uncrafting Table Question

PostPosted: Fri May 16, 2014 20:26
by golthem
Thank you very much! :)

I'll look over the code and see what I can do.

I might see about making it choose the first recipe or maybe I could do something with the unified inventory alternate button.

Thanks again!

Re: Uncrafting Table Question

PostPosted: Sat May 17, 2014 02:46
by Sokomine
Recycling nodes by "uncrafting" them back to their basic materials would be very helpful in certain situations. It could fit very well into the technic mod. Apart from alternate receipes, receipes which take e.g. group:wood might also constitute a problem.

Re: Uncrafting Table Question

PostPosted: Sat May 17, 2014 02:49
by philipbenr
It is a great idea, and I applaud you on it. I hope you get somewhere with it. I unfortunately am trying to develop a python/pygame game on my own, so I can't really offer help. But I can offer you luck. ;)

Re: Uncrafting Table Question

PostPosted: Sat May 17, 2014 06:37
by kaeza
Just an idea: you could use register_on_craft, and store the recipe used into the item stack's metadata, and use the metadata on the uncrafting table to retrieve the original recipe. Of course, this is a no go with items using the metadata for other purposes (for example, there's a mod that allows to write on books which uses metadata to store the text, and most technic tools use it for various purposes).

Re: Uncrafting Table Question

PostPosted: Sat May 17, 2014 17:23
by Sokomine
Hm, doesn't really work. What if items crafted through diffrent receipes are stacked?

Re: Uncrafting Table Question

PostPosted: Sat May 17, 2014 17:56
by kaeza
Sokomine wrote:Hm, doesn't really work. What if items crafted through diffrent receipes are stacked?

Hmm... good point. Ignore the idea :P

Re: Uncrafting Table Question

PostPosted: Tue May 20, 2014 09:40
by golthem
Well thanks anyways! :)