Ludeon Forums

RimWorld => Mods => Help => Topic started by: Napoleonite on April 16, 2019, 05:10:30 PM

Title: Simple XML Sandbags graphics problem
Post by: Napoleonite on April 16, 2019, 05:10:30 PM
Hello,

Problem:
(https://i.imgur.com/6zf4buR.jpg)
Somehow mine is all 'squared-like'?

Code:
https://pastebin.com/hqk6CTb7 (https://pastebin.com/hqk6CTb7)

My image:
(https://i.imgur.com/pZ9r6qe.png)


What am I doing wrong?
Title: Re: Simple XML Sandbags graphics problem
Post by: kaptain_kavern on April 16, 2019, 06:29:04 PM
Your texPath value may be wrong, depending on where you placed your texture file in your mod folder (you haven't provided this information)
Title: Re: Simple XML Sandbags graphics problem
Post by: Napoleonite on April 17, 2019, 03:54:35 AM
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.
Title: Re: Simple XML Sandbags graphics problem
Post by: Mehni on April 17, 2019, 05:50:39 AM
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".
Title: Re: Simple XML Sandbags graphics problem
Post by: 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 (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?
Title: Re: Simple XML Sandbags graphics problem
Post by: Shinzy on April 17, 2019, 09:11:11 AM
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
(https://i.imgur.com/O0pCKCI.png)

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

(https://i.imgur.com/i8kMGW4.png)


Title: Re: Simple XML Sandbags graphics problem
Post by: Mehni on April 17, 2019, 10:13:14 AM
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 (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.
Title: Re: Simple XML Sandbags graphics problem
Post by: Napoleonite on April 17, 2019, 10:58:20 AM
No problem Mehni ;)

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

Title: Re: Simple XML Sandbags graphics problem
Post by: Napoleonite on April 17, 2019, 11:04:04 AM
Where can I get the latest textures?

https://ludeon.com/forums/index.php?topic=2325.180 (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.