pkhead / rained

Rain World level editor
MIT License
18 stars 5 forks source link

(Bug) Prop editor: some props are transparent in editor #22

Closed tvardero closed 1 week ago

tvardero commented 1 week ago

Some props in prop editor are missing their preview image, are not visible in editor window (viewport).

However they are successfuly placed (cant place another prop in place) and they are rendered. (See screenshots, Giant pipe horizontal is used as an example).

image LR_SU1_1

Have tried reinstalling Rained, using Data folder from RWE+ - results are all same.

Following props are invalid:

Pipes - Giant pipe horizontal
Special pipes - insidePipeHorizontalB
Special pipes - insidePipeVerticalB
Custom - braintree (has huge X axis offset)
pkhead commented 1 week ago

I'm pretty sure those tile inits are just broken; they appear that way in the community editor.

For instance, the init for Giant Pipe Horizontal specifies that the image has 34 slices when it actually has 32, making the expected location of the tile preview in the image out of bounds. Removing the first two entries from the repeatL list fixes the issue. I don't feel like bothering figuring out how to fix the rest of the inits, so I'll leave that as an exercise for you, though I think someone somewhere has the fixed inits.