[WIP] Crafting screen subcategories - PR #4884

I’m in need of some ideas for crafting screen categories. I currently have:

NOTE:: All main categories have, and probably should always have a “MISC” subcategory. This allows a fallback (not yet implemented) for any items missing the subcategory assignment in recipes.json.

Screenshots inside spoilers.

Weapons:

[ul][li]Bashing[/li]
[li]Cutting[/li]
[li]Piercing[/li]
[li]Explosives[/li]
[li]Mods[/li]
[li]Misc[/li][/ul]

Ammo:

[ul][li]Bullets[/li]
[li]Arrows[/li]
[li]Components[/li]
[li]Misc[/li][/ul]

Food:

[ul][li]Drinks[/li]
[li]Meat[/li]
[li]Veggi[/li]
[li]Snack[/li]
[li]Bread[/li]
[li]Pasta[/li]
[li]Misc[/li][/ul]

Chems:

[ul][li]Drugs[/li]
[li]Mutagen[/li]
[li]Chemicals[/li]
[li]Misc[/li][/ul]

Electronics:

[ul][li]CBMs[/li]
[li]Lighting[/li]
[li]Components[/li]
[li]Misc[/li][/ul]

Armor:

[ul][li]Storage[/li]
[li]Suit[/li]
[li]Head[/li]
[li]Back[/li]
[li]Torso[/li]
[li]Arms[/li]
[li]Hands[/li]
[li]Legs[/li]
[li]Feet[/li]
[li]Misc[/li][/ul]

Misc:

[ul][li]Tools[/li]
[li]Medical[/li]
[li]Containers[/li]
[li]Materials[/li]
[li]Parts[/li]
[li]Traps[/li]
[li]Misc[/li][/ul]

Looks good!
Two ideas. Firstly is the electronics categories, it’d be better to have something like ‘basic, complex, CBMs, Misc’ or something. I know basic and complex aren’t amazing identifiers, but they probably make more sense from a gameplay perspective and you can probably imagine what goes in either. I imagine otherwise you’ll have loads in misc or have to have loads of categories.

Secondly, in Misc I would separate it into materials, vehicles, other and all. Materials is a tricky one, and some things obviously fall into both categories, but I imagine stuff can go in two categories?

Also, I know it’s a lot to ask, but it’d be nice if it could automatically go to the last used category (or the most populated?).

Hmm… To be honest, I’m not sure what to consider when deciding whether an electronic is “basic” or “advanced”. I guess it could be based on required skill level, but that would be alot of comparison between items.

I had already had an similar idea for the Misc category. Materials, Parts, Tools, Misc… Something like that.

As for automatically selecting the last used category, that shouldn’t be too difficult. Store the last used category and subcategory and use those upon opening the crafting screen. Currently it’s forcing the tabs to Weapon->Bashing.

You shoulda made a category for (Explosives) on the weapon subsections.
Gotta be honest, that’s only crafting sub category I’m ever going to use.

Took a moment to think about it
This has got to be a godsend for anyone who doesn’t already know all the recipes in the game.
Great Job

Eddit: Lol didn’t notice explosives since it wasn’t on the bullet list. :stuck_out_tongue:
[size=6pt]You spelled “planned” wrong btw[/size]

From original post:

[quote=“desrik, post:1, topic:4396”]Weapons:

[ul][li]Bashing[/li]
[li]Cutting[/li]
[li]Piercing[/li]
[li]Misc[/li][/ul]

Planed: Explosives[/quote]

Already had ya covered Cherry :slight_smile:

Now, if I can figure out the difference between CC_NONCRAFT and CC_NONCRAFTC and why CC_NONCRAFT is declared twice in recipes.json I would be all set :slight_smile: Can’t find either of them used in the source code. Anyone have any ideas?

Maybe electronics could be subdivided to:

[ul][li]Components[/li]
[li]Tools[/li]
[li]CBMs[/li]
[li]Misc[/li][/ul]

And the Misc category to:

[ul][li]Vehicle Components[/li]
[li]Other Components[/li]
[li]Traps[/li]
[li]Medical Supplies[/li]
[li]Tools[/li]
[li]Misc[/li][/ul]

I would combine food and drinks into a single category, and then split drinks as a subcategory of that. No real reason to have food and drinks separate except to make boiled water quicker to get to.

Done.

[quote=“ShinQuickMan, post:7, topic:4396”]Maybe electronics could be subdivided to:

[ul][li]Components[/li]
[li]Tools[/li]
[li]CBMs[/li]
[li]Misc[/li][/ul]

And the Misc category to:

[ul][li]Vehicle Components[/li]
[li]Other Components[/li]
[li]Traps[/li]
[li]Medical Supplies[/li]
[li]Tools[/li]
[li]Misc[/li][/ul][/quote]

Currently Electronics has: CBMs, Lighting, and Misc. No use for a tools tab as all tools have been moved to Misc->Tools. Also, Misc has the following: Tools, Medical, Containers, Materials, Parts, Traps, and Misc. I will update the OP with new changes.

I already said it on Git: it’s excellent and cannot wait for this to be merged!

That’s a lot of work, thanks for your effort! :slight_smile: This should make the crafting process much easier.

Yeah, I suppose it might be difficult. I second ShinQuickMan in that there should be a components tab within electronics - most of the components are pretty specific (atm) and it’d make it a lot less cluttered.

Well I just looked in recipes.json and turns out I had assigned some the Components subcategory but didn’t set the tab to display. DOH!!!

Going to fix it now…

EDIT::Fixed. Also while back in the code I realized that any recipe without an assigned subcategory will fail to show up. Solution is set default subcategory to MainCategory->Other

Now we just need to fill these categories up :slight_smile: A few are quite barren :stuck_out_tongue:

I posted it in the bug reports, but just so the creator might know.

The new system looks nice and all, but when you use the search function, it only looks through sub category you are currently highlighting.
Ex. I have to go to Other -> Materials and only then will searching duct tape give me the result I want.

This updated system does not come with an option, and it makes the search function unusable.
JUST SAYING.

Hmm… I’ll have to check that out. Thanks for the info!

EDIT:: PR#4923 opened. Waiting on merge. Not the best way to fix it, but it should be fine just to get the search working again.

When I select a tab Food, move right by pressing the right key to the limit and then the game crashes. [0.9-1874] Windows Tiles

I can’t reproduce this. Can anyone else confirm?

I couldn’t reproduce this error on a new experimental version #314.

I have a request.

  1. Add PageUp, PageDown key to move between categories.
  2. Add a transition to the next room category, if you selected the last right and press the right. Similarly with the previous category.
  3. And designate a subcategory in which there are no recipes or to block and ignore it.