Where to start - making a custom floor that affects comfort

Started by tommiethegun, August 26, 2016, 01:34:42 AM

Previous topic - Next topic

tommiethegun

Hi all! first post ever :)

I've just started playing Rimworld in the past few weeks, and I made my first mod that adds a "polished wood floor" that takes additional wood+time but adds beauty. Since then I've found some awesome floor mods in this forum that render mine obsolete :P

Next, I'd like to add new a flooring type: shag carpet! negative beauty but gives a buff to comfort.

I don't seem to be able to modify a pawn's comfort from the floor XML, is the right? would this require coding, or can it be done in XML, and if so - how?

Thanks!

1000101

(2*b)||!(2*b) - That is the question.
There are 10 kinds of people in this world - those that understand binary and those that don't.

Powered By

CallMeDio

You will probably have to code something that detects pawns standing in the floor and adds to the pawn comfort, the thing that floors don't have stats will not enable to do it from xml

edit: You asked where to start on the title so a good place would be the tutorials on the wiki about .dll modding and how to set up a solution, decompiling also
QuoteYou may need a rubber duck.  Also, try some caveman debugging.

Released mods: No Mood Loss on Prisoner Sold or Died

1000101

It would actually take a lot of work to give floors comfort.

You said you were new to modding, for such a simple thing it really is like being a new swimmer diving into the deep-end.  ;)
(2*b)||!(2*b) - That is the question.
There are 10 kinds of people in this world - those that understand binary and those that don't.

Powered By

tommiethegun

Awesome - thanks for the help :) I'll read up on the wiki about dll modding and decompiling, but it sounds like i should think of a simpler mod to try out next.

I assume accuracy is a similar stat to comfort? My other idea was to make a build-able 'lookout tower' object that would increase the shooting accuracy when a pawn was standing on it. it'd have super slow movement to simulate climbing up/down the ladder, so retreat would be harder if you got swarmed as a balance to the higher shooting accuracy on that tile.