Oxygen Not Included

Oxygen Not Included

Customize Buildings (more capacity, less dupes)
Add more materials/buildings needing 2 different materials.
Hi, hope you can help me. I'm trying to add an extra material to farm tiles. I'm trying to add raw minerals as an extra material to farm tiles, and dirt and clay as an extra material to hydroponics. I manage to do that in "BuildingBaseSettings" using "MaterialCategory". My problems start now, because I would also like to add ceramic as a building material for both tiles. For farm tiles it's easy (it's already in raw minerals), but for hydroponics it's a bit of a mess. I managed to add it in "BuildingAdvancedMaterial" using "MaterialOverride", but ceramic appears both in the refined metal category and in the cultivable soil one, while the ideal (for me) would be that it only appears in the first one. I don't know how to do that part. I see in the readme file there's an "Index" value, and by the description I thought that was the part doing the trick, but either I misread the description, or I don't know how to use as an index, I tried:
"Index": "RefinedMetal" "MaterialOverride": "Ceramic"
but when I do that, I get an error, so it isn't like that.
Also, the extra material added only has 1Kg needed, and I would like to set a custom value, preferable different from the other material, but I don't know how to do that part too. Again, I saw in the readme file there's a ConstructionMass value, but when I add:
"ConstructionMass": 50
I get an error, so that's obviously wrong.
Hope I was clear, sorry, I'm a noob here.

I see that years ago someone asked help for basically the same thing (here https://steamhost.cn), but the files shared in that discussion are sadly gone.
< >
Showing 1-3 of 3 comments
Fumihiko  [developer] 23 May @ 4:24pm 
There are two slots for building materials. Index 0 is the primary material. Index 1 is the secondary. Most buildings have primary materials only.

I have a couple example files on Github. This should help you https://github.com/Truinto/ONI-Modloader-SimpleMods/blob/master/Mods/CustomizeBuildings/example%20advanced%20material%20selection/note.txt
Fumihiko  [developer] 23 May @ 4:28pm 
I know that the documentation is lacking. I struggle with that. You are invited to contribute to the wiki page (on my github repo), if you like. Although the previous guy gave up pretty quickly :lunar2019laughingpig:
Hi, thanks! Yes the file did help me, I was able to do exactly what I wanted. Yay!
< >
Showing 1-3 of 3 comments
Per page: 1530 50