Before I move on to the more complex part, I wanted to start with getting a new 'outhouse' object to appear on the objects screen, and figure out how to properly define it's sprite so that this new object will look right when placed in-game. For some reason, I just can't seem to get Prison Architect to load the sprites I want to use correctly. In the course of troubleshooting, I simplified my mod to the following:
materials.txt
Code: Select all
BEGIN Object
Name Outhouse
ConstructionTime 3.00000
MoveSpeedFactor 0.500000
Toughness 15.0000
Price -100
RenderDepth 1
NumSlots 1
AttachToWall true
Group StaticObject
BlockedBy Wall
BlockedBy StaticObject
BlockedBy UtilityStation
MadeOf Composite
Properties StaticObject
BEGIN Sprite
x 0
y 0
w 1
h 2
RotateType 3
END
END
sprites.png
This works as I expect, and in-game I see the following when placing my 'outhouse' in the 4 different rotations, side-by-side.
I then copy-pasted the sprites I actually wanted to use, into the working sprites.png, and left everything else the same.
This fails, and when placed in-game in the same manner as for the working sprites, I get this.
Can someone enlighten me as to how Prison Architect, managed to pull that out of my sprites.png file? Naturally, I didn't expect it to look right since my outhouse sprites don't perfectly line up with the nice 32x32 squares, but there's no way it should look like it does in my screenshot. I should also state for the record, that I made no changes to the overall pixel size of sprites.png, in both cases it was 128x96, and I can't for the life of me, figure out the relevant difference between the sprites.png with my outhouse sprites in it, and the one with squares and transparency.