The Steel Compactor (t_recycler) only recycles steel items into steel materials (steel_lump, sheet_metal, steel_chunk, & scrap) currently.
Now with the addition of the recycle center in-game it would be a nice feature for the Steel Compactor to be an all around recycler... recycling other metal (copper, iron, lead, & aluminum) items and maybe plastic and glass items into their material components.
Code for the current recycling process can be found on line 2713 in iexamine.cpp
Don't have time to write this, but I can outline the approach:
    "recyles_into": [ "steel_lump", "sheet_metal", "steel_chunk", "scrap"
I'm going to start assembling a list of metals and their recycles_into and checking their stats for sanity.
No materials have recycles_into. You'll have to figure that out yourself.
Start with data/json/materials.json, and then look through data/json/items/ for basic items of those materials.
That's what I meant -- I'm putting that list together. Thought I'd mention to prevent duplication of effort.
Looking at the recycling related item groups (item_groups.json) may help with this. Said groups are near the bottom of the file or you can search using the term "recycle".
Or the materials page on the cataclysm item browser website.
No, that's not what we want. I believe those groups enumerate the items that might spawn in the recycle bins at the recycling center.
Indeed, and they are categorized by materials (I made them). But the website I linked is probably better anyway.
I am indeed using the item browser.
Here is the list of metals and their basic forms.
I did find items stats that were not sane -- will split that discussion into a separate issue so as not to clutter things up here.
For discussion:
material_aluminium_ingot in /items/resources/metals.jsonaluminum_foil in /items/ammo.jsonnote: Funnily enough: there is no "scraps" version of aluminum, you get ingots from blowing cars up.
No basic items available.
No basic items available.
scrap copper scrap_copper in /items/generic.json
"A small chunk of copper, usable for crafting or repairs."
copper copper in /items/ammo.json
"Copper scraps.  Could be used to craft something, for example makeshift shotgun shells."
note: "scrap copper" is a chunk, and "copper" is scraps. Aargh!
We ought to rename "scrap copper" to "chunk of copper".
gold_small in /items/resources/metals.jsonNo basic items available.
No basic items available.
lead in /items/resources/metals.jsonThere is also
bismuth in /items/resources/metals.jsonBismuth is not a candidate for output when you recycle lead items. But it might pose a problem because is tagged as lead material -- so the compactor would accept it and then transmute it into lead. Are we okay with that?
silver_small in /items/resources/metals.jsonlump of steel steel_lump in /items/resources/metals.json
Disassembles to chunk of steel (4) -- mass is conserved
sheet metal sheet_metal in /items/vehicle_parts.json
"A thin sheet of metal.",
chunk of steel steel_chunk in /items/resources/metals.json
Disassembles to scrap metal(5) -- mass is conserved
scrap metal scrap in /items/resources/metals.json
"An bulky assortment of small bits of scrap steel useful in all kinds of crafting",
alloy_sheet in /items/vehicle_parts.jsonI'm wondering whats peoples opinions are on also including plastic (plastic chunk) and glass (glass shard) into this process or keeping it limited to metals.
It's a compactor. Makes sense for metals, which are malleable.
Does not make sense for plastic, and definitely not for glass, which is brittle.
I would go ahead and give hard steel, budget steel, and iron the same recycles_into as steel. The exact difference between iron and steel is somewhat arbitrary in real world material science, and what heat treatment hard steel had isn't going to matter much after it's been crunched into a small lump.
I'm not really sure why bismuth is a separate material in the game and would be happy to see it recycled into lead.
I would go ahead and give hard steel, budget steel, and iron the same recycles_into as steel.
All three have "burn_products": [ [ "scrap", 1 ] ] which counts as steel. In terms of items/crafting:
So yeah, we can probably go with that.
I'm not really sure why bismuth is a separate material in the game and would be happy to see it recycled into lead.
Bismuth isn't a separate material; it is a separate item from lead but is also flagged as lead material.
If all it does is serve as a 1-for-1 analog for lead in crafting recipes, with no other purpose, I'm not sure why it even needs to exist as a separate item TBH.
Bismuth is distinct chemically, and is potentially very useful in that role.
In which case it would be desirable to have bismuth as not only a distinct item from lead, but also a distinct material -- otherwise the player may inadvertently transmute all their bismuth stocks into lead by using the new compactor #25015 only to discover that they needed it for some recipe that requires bismuth and not lead. (No such recipe exists currently.)
(I haven't played in a long while) Are there any crafting recipes or other uses for bismuth? If so I'd agree to making it be it's own material but would also then suggest that it doesn't recycle back to lead.
Most helpful comment
Here is the list of metals and their basic forms.
I did find items stats that were not sane -- will split that discussion into a separate issue so as not to clutter things up here.
For discussion:
aluminum
material_aluminium_ingotin/items/resources/metals.jsonaluminum_foilin/items/ammo.json(Precedent: compactor already produces sheet metal from steel)
note: Funnily enough: there is no "scraps" version of aluminum, you get ingots from blowing cars up.
brass
No basic items available.
budget steel
No basic items available.
copper
scrap copper
scrap_copperin/items/generic.json"A small chunk of copper, usable for crafting or repairs."
copper
copperin/items/ammo.json"Copper scraps. Could be used to craft something, for example makeshift shotgun shells."
note: "scrap copper" is a chunk, and "copper" is scraps. Aargh!
We ought to rename "scrap copper" to "chunk of copper".
gold
gold_smallin/items/resources/metals.jsonhard steel
No basic items available.
iron
No basic items available.
lead
leadin/items/resources/metals.jsonThere is also
bismuthin/items/resources/metals.json"A dense but brittle metal often used as an alternative to lead."
"material": [ "lead" ]
Bismuth is not a candidate for output when you recycle lead items. But it might pose a problem because is tagged as lead material -- so the compactor would accept it and then transmute it into lead. Are we okay with that?
silver
silver_smallin/items/resources/metals.jsonsteel
lump of steel
steel_lumpin/items/resources/metals.jsonDisassembles to chunk of steel (4) -- mass is conserved
sheet metal
sheet_metalin/items/vehicle_parts.json"A thin sheet of metal.",
chunk of steel
steel_chunkin/items/resources/metals.jsonDisassembles to scrap metal(5) -- mass is conserved
scrap metal
scrapin/items/resources/metals.json"An bulky assortment of small bits of scrap steel useful in all kinds of crafting",
superalloy
alloy_sheetin/items/vehicle_parts.json