Some Stuff System Findings

Started by mrofa, October 17, 2014, 02:33:46 PM

Previous topic - Next topic

mrofa

So in general i wasnt kinda happy how the stuff system handle and its still a bit rough to my taste.
Still i did find two interesting things and provide minimod as a example in attachment.

First one is a multi cost, its in 99% thanks to Omni extensive research on that matter.
Multi cost allows you set cost of selected material like metal and also use stuff cost
<madeFromStuff>true</madeFromStuff>
<costStuffCount>4</costStuffCount>
<costList>
     <Cloth>6</Cloth>
</costList>

So as you can see cost of this def is specified  for 6 cloth and also 4 of choosen material.

Second thing is what i seen on hospital bed, when you put it down it changes colors but only for selected parts.
As there isnt new example graphic yet, i did a bit of research on this.
First from this was that annoying overlay that kinda did brake the texture. So to get rid of it and still use the stuff system in def you just need to add
<shaderType>CutoutComplex</shaderType>

Second thing is to actually select which area will get the overlay and which not. It still require you to use that shader type, also you will need to use graphicMulti. Didnt find any way to do it in graphicSingle, maybe im missing something on that thrugh.
Anyways you will actually need 6 textures on that insted of 3. As you make MyTexture_front, MyTexture_side and MyTexture_back. You will also need to make MyTexture_frontm, MyTexture_sidem, and MyTexture_backm,.
M is important to tell the game what type of textures this are, and "m" textures will be the zones you select to show with or without overlay.
I did only test it with grayscale so im not sure how it will work with colors.
Black is is where there is no overlay, white or lack of anything is full overlay. Using gray shades sets specific opacity to the overlay.
Here is small example screen
Orginal Texture


M texture


How it looks in game from left Silver, Wood ,Gold


Hope it will help someone :)


Found singleGraphic way works also on walls :D
So you will need 2 textures only, all same stuff as above, except insted of "m" texture you needed for multi, you rename it with "_m" modifier. So you need My_Texture.png and My_Texture_m.png only :)

[attachment deleted by admin: too old]
All i do is clutter all around.

skullywag

Knew this already but great to document it (my one weakness). Good work.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

Shinzy

Quote from: skullywag on October 17, 2014, 02:51:33 PM
Knew this already but great to document it (my one weakness). Good work.
Oh yyyyouuu buster! withholding information ;D
Mrofa! you're the absolute 1%!

..because Omni is 99%
BUT
moving on
I've been trying to figure this out on me own I was so hopeful the other day when I spotted the CutoutComplex thing
cause that sounded promising for a color mask
Didn't know what to name the files though
I tried good half an hour with "Bonetable_side_mask" "Bonetable_mask_side"

This will definately help someone
Telkir mite have use for this info aswell, just saying!

also that's some great interior design there in the room =P *applause*
Thank you

mrofa

Quote from: skullywag on October 17, 2014, 02:51:33 PM
Knew this already but great to document it (my one weakness). Good work.

So you maybe know how to make it work with graphicSingle or flickering one ?



Quote from: Shinzy on October 17, 2014, 03:08:01 PM
Quote from: skullywag on October 17, 2014, 02:51:33 PM
Knew this already but great to document it (my one weakness). Good work.
Oh yyyyouuu buster! withholding information ;D
Mrofa! you're the absolute 1%!

..because Omni is 99%

I feel rich already ^^
All i do is clutter all around.

Minus

#4
I posted a "help me oh god help!" topic asking specifically for this! Thankyou so much!
EDIT: just wanted to add that yeah, it did go just as I wanted to! My custom beds work great!

Our cybernetic hearts mean we care more!
Mods: Extended Surgery and Bionics, Brain Surgery, Medical XP Balance