feldoh / PawnStorages

Homebound - An experimental mod offering a variety of ways to tuck pawns away when they're not needed in order to preserve system resources
https://steamcommunity.com/sharedfiles/filedetails/?id=2674603226
MIT License
0 stars 3 forks source link

#14 Allow Entites and Animals to be stored #16

Closed keyz182 closed 4 months ago

keyz182 commented 4 months ago

I've been through a few iterations. Originally I tried to subclass the Anomaly platforms, but ran into issues with the rendering. The platforms appear to have a completely different pawn rendering flow, and I couldn't figure out how to inject the material grayscaling without mucking about with harmony transpiliers (cannea be arsed with that).

It means if you want to handle containment levels, and have the escape events it'll have to be pulled out and added, rather than getting it for free. Doesn't look too hard though, it's all just a few calls from the Tick() call.

Bonus from doing it this alternative way - animals can be stored now :)

This isn't 100% ready, animals are looking away from the camera, and entities draw in their downed state. Haven't even tried to look at that yet. Other than the visual issue, I think it's all good.

keyz182 commented 4 months ago

Downed entities now draw as mobile.

Added a button to the UI to let the user override the rotation of drawn pawn. Quick button image thrown together in Inkscape, exported png seems to be quite jagged in-game though, not entirely sure why.

feldoh commented 4 months ago

My understanding is that the jagged image thing is just an issue with images that aren't in content bundles, but I'm no artist. I do think it should be renamed though, given a prefix specifically. Given Rimworld overrides based on path, it's quite likely this would accidentally replace rotate textures from other mods. PS_Rotate is probably enough

feldoh commented 4 months ago

Awesome work though, looks good. Happy to merge after the Rotation save / rename. I can do that myself if you'd prefer; I don't want to frighten you away XD your PRs are too good <3

keyz182 commented 4 months ago

Awesome work though, looks good. Happy to merge after the Rotation save / rename. I can do that myself if you'd prefer; I don't want to frighten you away XD your PRs are too good <3

All done :)