Ludeon Forums

RimWorld => Mods => Help => Topic started by: Grailnight on August 17, 2021, 11:40:17 AM

Title: Texture Issues: Tattoo Mod
Post by: Grailnight on August 17, 2021, 11:40:17 AM
I am dipping my toe into the world of modding by trying to create a little tattoo mod based on the airbenders from the Avatar tv series.

Almost everything is working nicely, only issue I have is south facing textures showing up on east facing pawns. I have managed to remove textures from north facing pawns in the def.

When trying to correct this I made an east facing texture, however that failed to load in game. Pretty sure my naming conventions are right and this is a problem with mutlitexture pathing within in def.

Ideally the mod would have south and east/west facing textures. Any help in solving this would be great! Have attached a picture to make up for explaination
Title: Re: Texture Issues: Tattoo Mod
Post by: Shinzy on August 17, 2021, 07:04:56 PM
Could you show the xml and the texture path/filenames of the textures?
It's incredibly hard to say what could be wrong without some extra info

thank you ;D
Title: Re: Texture Issues: Tattoo Mod
Post by: Grailnight on August 19, 2021, 06:32:35 AM
Apologies, first time modder fail there.

XML:
<Defs>
<TattooDef>
<defName>Avatar_Arrow</defName>
<label>avatar</label>
<texPath>Things/Pawn/Humanlike/Tattoos/Avatar_Arrow</texPath>
<tattooType>Face</tattooType>
<category>Tribal</category>
<visibleNorth>false</visibleNorth>
<styleTags>
<li>TattooFaceTribal</li>
</styleTags>
</TattooDef>
</Defs>

Texture path:
Textures/Things/Pawn/Humanlike/Tattoos/Avatar_Arrow/Avatar_Arrow_south & Avatar_Arrow_east

Above version gives shows no graphics at all. I have a version that runs which just has the one graphic. The tattoo shows up by causes the east/west facing bug. Texture path had no _south or _east in the last folder, just had one jpg named Avatar_Arrow

texpath for that is Things/Pawn/Humanlike/Tattoos/Avatar_Arrow/Avatar_Arrow
Title: Re: Texture Issues: Tattoo Mod
Post by: Shinzy on August 19, 2021, 08:17:00 AM
a ha! I believe your problem lies with the texpath:

with <texPath>Things/Pawn/Humanlike/Tattoos/Avatar_Arrow</texPath>
the path should be
Textures/Things/Pawn/Humanlike/Tattoos/Avatar_Arrow_south & Avatar_Arrow_east
not
Textures/Things/Pawn/Humanlike/Tattoos/Avatar_Arrow/Avatar_Arrow_south & Avatar_Arrow_east
Title: Re: Texture Issues: Tattoo Mod
Post by: Grailnight on August 19, 2021, 01:16:14 PM
Completely solved! Thanks you legend!