[A17] Change Dresser

Started by Kiame, March 07, 2017, 03:10:16 PM

Previous topic - Next topic

BlueWinds

Thanks for the excellent mod! There are some hair styles I just don't like, and a mirror in the dining room is much more convenient than editing the save files my hand. :) (I also use the gender swapping feature - thanks for including it!)

A bit of weirdness from Change Dresser in A17. I get an error about "incorrectly formatted version 'Unknown'" - even though, looking at the XML, I can see the version is set correctly, and in game the mod functions as expected.

https://gist.github.com/c364e98cc60e3429dfd71013a2361057

Screenshot of mod folder, just to show that I've extracted it correctly (I think).
http://imgur.com/a/QycBc

I'm on linux. The same thing happened with ChangeDresser in A16, and the mod worked back then as well.

AngleWyrm

Quote from: Kiame on May 26, 2017, 03:26:45 AM
Quote from: masterpain on April 02, 2017, 02:21:59 AM
Would it ever be possible to add changing weapons when drafted?

Currently not planned as weapons are handled differently than apparel so it's not a trivial thing to add. I'll keep it in the back of my mind though.

Check out the Simple Sidearms mod by PeteTimesSix
My 5-point rating system: Yay, Kay, Meh, Erm, Bleh

Kiame

Quote from: BlueWinds on May 27, 2017, 04:14:21 AM
Thanks for the excellent mod! There are some hair styles I just don't like, and a mirror in the dining room is much more convenient than editing the save files my hand. :) (I also use the gender swapping feature - thanks for including it!)

A bit of weirdness from Change Dresser in A17. I get an error about "incorrectly formatted version 'Unknown'" - even though, looking at the XML, I can see the version is set correctly, and in game the mod functions as expected.

Hmm how odd... I don't have a linux box to test this on. I'll look through other mods and see if I can't figure out what's up. Thanks for bringing this to my attention

https://gist.github.com/c364e98cc60e3429dfd71013a2361057

Screenshot of mod folder, just to show that I've extracted it correctly (I think).
http://imgur.com/a/QycBc

I'm on linux. The same thing happened with ChangeDresser in A16, and the mod worked back then as well.

Kiame

Quote from: Switter on May 27, 2017, 03:00:05 AM
i can't change a color :C, work only R: B: G:
https://youtu.be/mkCuPXboJrE
help :c

Hmm... Can you try running the game in Developer Mode? (Options->Development mod (bottom-middle))
With Dev Mode on, when you try to change color does a new window open with a lot of text? If so, at the bottom there's probably a line of red text. Can you take a screenshot of that?

Kiame

Quote from: Switter on May 27, 2017, 09:58:53 PM
No, lot's errors only when i start the game, in main menu, but it's because i have very lot mod's.
When i try change colors, error's don't show up in console.
https://youtu.be/Kq-vCOlB_ss
and i off all my mods. This had no effect. Just a window with a palette does not see my mouse clicks.
https://youtu.be/9jRpjoyKRU0

Not sure what's up.
Are you getting this from steam or direct download?

Switter

#50
Quote from: Kiame on May 27, 2017, 10:06:19 PM
Are you getting this from steam or direct download?
oops... i download with a direct and problem is gone)
http://lttlword.ru/rimworld-mod-change-dresser i download with this site.
And the admin of this site downloaded from steam. Either he downloaded badly and some files were damaged or lost, or the whole Steam version does not work.
I told him to download the working version)
Anyway, the problem is solved and forgive, which in vain bothered.

Kiame

Quote from: Switter on May 27, 2017, 10:24:02 PM
Quote from: Kiame on May 27, 2017, 10:06:19 PM
Are you getting this from steam or direct download?
oops... i download with a direct and problem is gone)
http://lttlword.ru/rimworld-mod-change-dresser i download with this site.
And the admin of this site downloaded from steam. Either he downloaded badly and some files were damaged or lost, or the whole Steam version does not work.
I told him to download the working version)
Anyway, the problem is solved and forgive, which in vain bothered.

Glad it's working!

gariba

Any chance we could get something similar for weapons? A weapon rack that can actually hold more than a single weapon in one tile would be nice. There were mods for that in previous versions, but none got updated that I know of.

Kiame

Done some major rework with the code to both clean it up and add something i've wanted to add for a while: A button to allow the user to manage the apparel in the dresser without a pawn!

Beta version: https://github.com/KiameV/rimworld-changedresser/releases/download/20170620/ChangeDresser.zip

I've been playing with it for a while now and everything seems to be working. Since so much did change I want to get some help testing. Before trying this please backup the save just in case!

Other additions:
- Show "Body Change" editor. For those looking for more immersion can now hide that editor altogether
- Link storage group to dresser
This last one will take some more explaining.
When checked, everything will behave like it did previously.
When unchecked, storage groups are no longer linked to any one change dresser. This means any dresser can access any storage group and when a dresser is destroyed or moved the storage groups are not lost. This also allows the user to modify any storage group from any dresser using the Manage Apparel button and same too for any pawn that interacts with the dresser.

Kiame

Beta version has been uploaded as the main version. Please let me know if there are any problems.

If anyone has a problem and really wants the previous version it can be downloaded here:
https://github.com/KiameV/rimworld-changedresser/releases/download/A1720170525/ChangeDresser.zip

Kiame

Looks like I still missed some bugs and an issue with loading pre-refactor (ie before June 22nd) saves. Steam and Direct Download have been updated.

SO sorry for any trouble this has caused  :(

Please let me know if there are any further issues and I will help address / fix lost items in saves.

Erratum

#56
I've been having problems with the change dresser not being destrucible - it can't be uninstalled or deconstructed, and pawns will try repeatedly to do so if the task is assigned to no effect.

Even using devmode tools to damage the dresser to 0 HP does nothing.

From the log:

Quote
Object reference not set to an instance of an object
  at ChangeDresser.StoredApparel.StoredApparelContainer.RemoveApparelSets (ChangeDresser.Building_Dresser dresser) [0x00000] in <filename unknown>:0
  at ChangeDresser.Building_Dresser.Dispose () [0x00000] in <filename unknown>:0
  at ChangeDresser.Building_Dresser.Destroy (DestroyMode mode) [0x00000] in <filename unknown>:0
  at RimWorld.Designator_Deconstruct.DesignateThing (Verse.Thing t) [0x00000] in <filename unknown>:0
  at RimWorld.Designator_Deconstruct.DesignateSingleCell (IntVec3 loc) [0x00000] in <filename unknown>:0
  at Verse.Designator.DesignateMultiCell (IEnumerable`1 cells) [0x00000] in <filename unknown>:0
  at Verse.DesignatorManager.ProcessInputEvents () [0x00000] in <filename unknown>:0
  at RimWorld.MapInterface.HandleMapClicks () [0x00000] in <filename unknown>:0
  at RimWorld.UIRoot_Play.UIRootOnGUI () [0x00000] in <filename unknown>:0
  at Verse.Root.OnGUI () [0x00000] in <filename unknown>:0

Edit: It corrected itself after I made a clothing group in one of the dressers, even though there were no items in the group. Looks like just an edge case.

Kiame

I'll take a look. Thank u for the log files.

Kiame

Quote from: Erratum on June 28, 2017, 05:51:09 PM
I've been having problems with the change dresser not being destrucible - it can't be uninstalled or deconstructed, and pawns will try repeatedly to do so if the task is assigned to no effect.

Even using devmode tools to damage the dresser to 0 HP does nothing.

From the log:

Quote
Object reference not set to an instance of an object
  at ChangeDresser.StoredApparel.StoredApparelContainer.RemoveApparelSets (ChangeDresser.Building_Dresser dresser) [0x00000] in <filename unknown>:0
  at ChangeDresser.Building_Dresser.Dispose () [0x00000] in <filename unknown>:0
  at ChangeDresser.Building_Dresser.Destroy (DestroyMode mode) [0x00000] in <filename unknown>:0
  at RimWorld.Designator_Deconstruct.DesignateThing (Verse.Thing t) [0x00000] in <filename unknown>:0
  at RimWorld.Designator_Deconstruct.DesignateSingleCell (IntVec3 loc) [0x00000] in <filename unknown>:0
  at Verse.Designator.DesignateMultiCell (IEnumerable`1 cells) [0x00000] in <filename unknown>:0
  at Verse.DesignatorManager.ProcessInputEvents () [0x00000] in <filename unknown>:0
  at RimWorld.MapInterface.HandleMapClicks () [0x00000] in <filename unknown>:0
  at RimWorld.UIRoot_Play.UIRootOnGUI () [0x00000] in <filename unknown>:0
  at Verse.Root.OnGUI () [0x00000] in <filename unknown>:0

Edit: It corrected itself after I made a clothing group in one of the dressers, even though there were no items in the group. Looks like just an edge case.

Thanks again for the stack trace. I was able to track the bug down and fix it. Updated both steam and direct download

Kiame