RecompiledBirds / RimVali

The RimVali: Far From Avalon code repository.
https://discord.gg/RpCM3RU
9 stars 17 forks source link

A patch for 2D beds/pillow piles #76

Closed Fluxic closed 2 years ago

Fluxic commented 2 years ago

Figured I'd make a new thread for this instead of having it in an old closed issue. I made a patch mod that I'd love to see implemented in the base mod. It allows 2D beds and it will give the pawns random position and angle offsets. It should work with any dimension beds so 2x1, 2x2, 3x2, 5x8, etc. If you want to look into implementing this, I give full permission without restriction to use any/all of my code. The only dependency for this mod is Harmony and, if using Vanilla Expanded Framework, this mod has to be loaded first or else only 1 pawn can use an affected bed at a time. This patch also will only affect specific defNames so other beds are unaffected.

Currently, the mod can be downloaded from the link below and put into the mod folder like any other mod.
https://github.com/Fluxic/RW-2D-Beds

There's also an issue where if you have Vanilla Expanded Framework active, body parts of rotated pawns will sometimes detach. This is an issue that affects other mods that rotate pawns too. The rotation part of this can effectively be disabled by commenting out this line and there's also some harmony paches that only deal with rotation that could also be commented out.

Avali using 2x1 and 2x2 pillow piles from RimVali: Far From Avalon Avali using a 3x2 pillow pile from RimVali: Far From Avalon

RecompiledBirds commented 2 years ago

Heya!!

Sorry for my slow reply; Things have been a bit busy. Would it be alright for me to include a tweaked version of this in RimVali? (with credit, and anything else (eg. a kofi link))?

I really like you did with the idea, and how they sleep on them- It's way cooler then anything I would've whipped up

Fluxic commented 2 years ago

Yeah you can do whatever you want with this. I don't have a kofi or anything like that though.

RecompiledBirds commented 2 years ago

Thank you!

Fluxic commented 2 years ago

Also sidenote but this would open up possibilities for bigger beds that aren't just a long line e.g. you could make one that holds an entire late-game colony or something.

RecompiledBirds commented 2 years ago

Yee, it would. There's honestly a lot of really cool possibilities to experiment with; I really can't thank you enough lol -I'll probably make some minor tweaks to this (eg. It shouldn't be too hard to add a tag to the bed, then have it check that) This might actually go really well with the add-on for RimVali I've been busy with.

Fluxic commented 2 years ago

Missed a couple elses affecting south facing beds with a z dimension of 1 and fixed it... just letting you know in case you already downloaded the code to get that.

RecompiledBirds commented 2 years ago

Alrighty, thanks for the heads up^^