[B18][Patch] Artful Robots

Started by patientsomeone, August 13, 2017, 01:59:59 AM

Previous topic - Next topic

patientsomeone

[B18][Patch] Artful Robots

Description:
Gone are the days where your builder bots destroy furniture in a fit of binary rage upon realization that they do not have a name!

Fixes issues with unnamed pawns creating art, especially on furniture items.
- Named Pawns will still create art with a proper Author
- Unnamed Pawns such as Robots (or animals, if such a mod is created) will create art with the Author set to "Unknown"
- MiscRobots ++ compatibility patches
    - Static Quality Plus
        - https://ludeon.com/forums/index.php?topic=24718.0
    - No More Random Build Quality
        - https://steamcommunity.com/sharedfiles/filedetails/?id=773918229


Update
Patch has been updated for B18. Secondary file generated for A17.

Requirements
HugsLib required.

Technical Details:
When a pawn (such as a robot) creates an item which contains art (such as a dining chair) the base game passes through a function which attempts to apply logic to the pawn's name. This patch has tweaked that function slightly so that if the Pawn's name is null (I mean come on, even my roomba is named "Gadget", you heartless savages!), it stops the function without causing an Object reference error.

If you've experienced an object reference error resulting in furniture being destroyed and resources lost after a Builder Bot has completed his job, this patch is for you!

Patch assists:
- Miscellaneous Robots: https://ludeon.com/forums/index.php?topic=3612.0
- Robots ++: https://ludeon.com/forums/index.php?topic=26151.0


Author
PatientSomeone

Thanks to:
- alaestor for creating Misc Robots ++ and answering questions
- Haplo for creating Miscellaneous Robots
- UnlimitedHugs for creating Hugslib (and subsequently doing most of the C# work for me!)

Download
Download B18: https://gitlab.com/grizzgrizz87/artful-robots/raw/b8d27ac1de91d7dd4ebe118feffc5cfe7a217d68/artfulRobot.zip
Download A17: https://gitlab.com/grizzgrizz87/artful-robots/raw/b8d27ac1de91d7dd4ebe118feffc5cfe7a217d68/artfulRobot_A17.zip
Download Source: https://gitlab.com/grizzgrizz87/artful-robots

How to install:
- Unzip the contents and place them in your RimWorld/Mods folder.
- Activate the mod in the mod menu in the game.
  - Ensure patch is activated after HugsLib in modlist


Donate:
- If you feel like it, I thank you, in any case enjoy! https://www.patreon.com/patientsomeone


[attachment deleted by admin: too old]

Tenshi~Akari

Sorry for the necromance.  :-[

I know this is a long shot & hasn't been noted this was here the whole time, but is there any way possible to get a link to the B18 version here as well? The problem seems to still persist with Robots breaking random quality constructs.

I see it on Steam, but I have no intentions on hooking up a game with Steam ever again after a prior bad experience years ago...

patientsomeone

Apologies, thought I had updated this already. B18 update is uploaded, and A17 has a new home. B18 is at https://gitlab.com/grizzgrizz87/artful-robots/raw/b8d27ac1de91d7dd4ebe118feffc5cfe7a217d68/artfulRobot.zip

Harry_Dicks

"- Unnamed Pawns such as Robots (or animals, if such a mod is created) will create art with the Author set to "Unknown""

All I can think about is that video of the elephant painting. :P

Tenshi~Akari

Quote from: patientsomeone on February 18, 2018, 02:08:44 AM
Apologies, thought I had updated this already. B18 update is uploaded, and A17 has a new home. B18 is at https://gitlab.com/grizzgrizz87/artful-robots/raw/b8d27ac1de91d7dd4ebe118feffc5cfe7a217d68/artfulRobot.zip

Thanks a ton for this! ;D This will definitely save me from lost resources.