Simple XML Sandbags graphics problem

Started by Napoleonite, April 16, 2019, 05:10:30 PM

Previous topic - Next topic

Napoleonite

Hello,

Problem:

Somehow mine is all 'squared-like'?

Code:
https://pastebin.com/hqk6CTb7

My image:



What am I doing wrong?

kaptain_kavern

Your texPath value may be wrong, depending on where you placed your texture file in your mod folder (you haven't provided this information)

Napoleonite

Ah yes sorry:

..\RimWorld\Mods\StrongerSandbags\Textures\Sandbags_Atlas_MK3.png
..\RimWorld\Mods\StrongerSandbags\Textures\Sandbags_MenuIcon_MK3.png


I think that the paths are good (because they color teal ingame as does their menu icon) but sandbags are like walls, they are special they use these linkflags (I think). But all I really did was change the textures and some xml values and somehow I broke it.

Mehni

Quote from: Napoleonite on April 17, 2019, 03:54:35 AM
But all I really did was change the textures and some xml values and somehow I broke it.

If you post your XML, we can play "spot the difference" rather than "guess the difference".

Napoleonite

#4
Quote from: Mehni on April 17, 2019, 05:50:39 AM
If you post your XML, we can play "spot the difference" rather than "guess the difference".

I did in my OP as a pastebin link because I wasn't sure if posting it on the forums would work out well:
QuoteCode:
https://pastebin.com/hqk6CTb7

I also did a text compare:
https://i.imgur.com/TTRyYVV.png

I'm completely puzzled. I assume that it must be something really silly somewhere that I messed up. But I see no differences so I assume that sandbags & walls require some extra action or XML edit to display properly?

Shinzy

The wall atlases changed between some alphas
See the image, from the above to the one below, I believe you'll need to shrink down each individual bit


Cupropanda *citation needed made this template a while back, it should help with aligning the bits!





Mehni

Quote from: Napoleonite on April 17, 2019, 07:18:33 AM
Quote from: Mehni on April 17, 2019, 05:50:39 AM
If you post your XML, we can play "spot the difference" rather than "guess the difference".

I did in my OP as a pastebin link because I wasn't sure if posting it on the forums would work out well:
QuoteCode:
https://pastebin.com/hqk6CTb7

I also did a text compare:
https://i.imgur.com/TTRyYVV.png

Apologies, I totally missed that!

Your XML looks correct to me, though I'm obviously not the most observant today.

Napoleonite

#7
No problem Mehni ;)

@Shinzy
Yep that seemed to be the problem, thanks I would have never figured that one out by myself.


Napoleonite

Where can I get the latest textures?

https://ludeon.com/forums/index.php?topic=2325.180

^ is not up2date sandbags for example are still 512x512 there instead of 256x256.

It appears that this also explains why the 1.0 version has that color-xml for sandbags because they use white ones in B19.