Modding different materials with stuff

Started by Kirid, October 02, 2014, 05:03:51 PM

Previous topic - Next topic

Kirid

Wondering how to get <madeFromStuff>true</madeFromStuff> to work..
I'm trying to update my half walls mod. Do I need to create multiple new textures for each material?
I've got the mod working, you can select different materials,  but when built the half wall textures are pink and distorted.
I noticed the def for walls has <graphicPathFolderAppearances>Things/Building/Linked/Wall</graphicPathFolderAppearances> (instead of the usual <graphicPathSingle>)
Are they titled something like Wall_Metal, Wall_Stone, Wall_Gold? Or how does this actually work?
You can't rollerskate in a muffalo herd

Haplo

I've made one of my Turret Bases from Stuff.
All I had to do is make the colors of the graphic light grey and change these two lines:
    <madeFromStuff>true</madeFromStuff>
    <costStuffCount>100</costStuffCount>
Everything else, like the color and so is taken from the used resources. So you don't need to do anything there.

If you want to take a look, look into my Miscellaneous mod and there in the ThingDefs\Miscellaneous_Buildings_TurretWeaponBase.xml
It is the last turret in there..

Kirid

Well thank you, that answers my questions about that. It's so ingenously simple :)

I'm going to have to tinker with it, off-topic with another issue.
Still showing up pink. It seems to be loading the blueprint_atlas and menu icon just fine. It shows the color change from stuff in the menu.
You can't rollerskate in a muffalo herd

ItchyFlea

There seems to be a bug in the <linkDrawerType> system where the game will only produce that weird pink texture if the object/building is made from stuff and is using any of these 3 types: Basic, Transmitter and TransmitterOverlay

These two <linkDrawerType> types do work without problems: None and CornerFiller

A bug report for this bug exists on Mantis: http://ludeon.com/mantis/view.php?id=1223
All my mods are licensed under a Attribution-NonCommercial-ShareAlike 4.0 International
Ask for permission before using in ModPacks

Click here for a list of the mods I've created

Kirid

Awesome! Thanks ItchyFlea! That totally worked. Had it set to basic, they are basically retextured sandbags.
You can't rollerskate in a muffalo herd