RimWorld

RimWorld

Anthro Race
CE fix/bodge for 1.4
EDIT: as of 14/02/2023, the bug mentioned here is in the process of being fixed. If you applied our fix, you will need to undo the changes made when it comes out. Do this by uninstalling CE, deleting the patch manually if it still there, and reinstalling CE. Just a heads-up.




For all the people talking about the Combat Extended bugs: this mod is listed on the "Supported third-party mods" list on the CE github (https://github.com/CombatExtended-Continued/CombatExtended/blob/Development/SupportedThirdPartyMods.md). This means that the bug is on the CE end.

The specific problem, after some testing, appears to be that for reasons unknown to me, the "basepawn" type of the anthro race was changed on the 1.4 update, from "BasePawn" to "BaseAnthro". This breaks the inventory system, as CE core automatically patches the "BasePawn" and the "BasePawn" only, and the specific patch for this mod does not account for the change. This means that CE's special code for handling inventories (ammo and item bulk in particular) just flat out doesn't work. Thankfully this can be rectified in the patch easily. Here is a quick guide:


1: navigate to the anthro race CE patch .xml file (located at [steam directory]\steamapps\workshop\content\294100\2890901044\Patches\Anthro Race/Race_anthro.xml. MAKE A BACKUP IN CASE YOU SCREW UP. Open it using a text editor, i used notepad ++

2: Navigate to line 86 or 85, somewhere in that ballpark, create a blank line just above "/operations"

3: Copypaste in the following:

START PASTE

<li Class="PatchOperationReplace">
<xpath>*/ThingDef[@Name="BaseAnthro"]/inspectorTabs/li[.="ITab_Pawn_Gear"]</xpath>
<value>
<li>CombatExtended.ITab_Inventory</li>
</value>
</li>

<li Class="PatchOperationAdd">

<xpath>*/ThingDef[@Name="BaseAnthro"]/comps</xpath>
<value>
<li Class="CombatExtended.CompProperties_Inventory" />
</value>
</li>

END PASTE
(if you want to make it look prettier you can use tab presses to create indentations to match the other code; this isn't necessary for it to work)

4: save the file. Start the game, verify that anthro pawns have "bulk" and "weight" in their inventory tab. Try picking up ammo, reloading, all that ♥♥♥♥. It should work, but no guarantees. Note that any NPC anthro pawns (raiders, caravans) that are already on the map when you load will not have any ammo, as the game failed to spawn them earlier.

5: you're done!

Keep in mind that this is a temporary fix; the good people at the CE team are bound to notice sooner or later. Future updates may override this edit we just made, which may reintroduce the above bugs, or maybe not. Also, I'm not very good at code or modding. This may ♥♥♥♥ things up. Any changes made are easily reversible with the backup or deleting and redownloading of CE.
Last edited by ERE : Elden Ring Enjoyer; 14 Feb, 2023 @ 4:54am
< >
Showing 1-6 of 6 comments
Valargent 10 Dec, 2022 @ 8:02pm 
still not working sadly xwx
Originally posted by Valargent:
still not working sadly xwx
I can't really help you unless I can have a look at the debug log to see what's going on.

Also, what specific bugs are you running up against, and are you sure you followed the post to the letter, and didn't accidentally, say, edit the backup instead of the main .xml file?

Lastly, do you have any mods other than CE, Anthro Race, and their dependencies? It could be another mod interfering.
Last edited by ERE : Elden Ring Enjoyer; 11 Dec, 2022 @ 2:07am
Valargent 12 Dec, 2022 @ 10:35pm 
How do I share my debug log .o.?
And I do have a lot of mods, but the problem is just that there is no bulk to anthros so they can't carry ammunition for the guns xwx
Also sorry for late answer, I just saw that I was not notified when answers were made here xwx
Last edited by Valargent; 12 Dec, 2022 @ 10:36pm
Originally posted by Valargent:
How do I share my debug log .o.?
And I do have a lot of mods, but the problem is just that there is no bulk to anthros so they can't carry ammunition for the guns xwx
Also sorry for late answer, I just saw that I was not notified when answers were made here xwx

If the problem is that bulk still isn't showing up, that means that the patch isn't being applied. Here are all the reasons that come to mind:
1: you accidentally applied the patch to the backup and not to the patch file actually in use.
2: you are using the github version of CE, which is installed manually. Disregard this option if you are using the steam workshop version of CE
3: you didn't apply the patch we used
4: you applied the patch incorrectly.
5: your computer hates us. (miscellaneous glitch.)
6: your backup is in the same folder as the regular patch. This may cause the game to read and apply both, which may or may not cause problems. Move the backup to your desktop or something just in case.

To remedy the possibility of the issue being 1,3, or 4: download my anthro.xml patch:
https://drive.google.com/drive/folders/1DcqwYt2lrEUWHIZEPVgMQFJTiwejmynt. Your antivirus or browser may warn you it might be harmful, that's a false alarm. Move that file
into the patch folder (spelled out in step 1.) overwrite the previous race_anthro.xml, but keep the backup anyway just in case. Run the game with just Anthro race, CE, and their dependencies. make a test map. Use the dev mode menu to spawn in Anthro pawns (Debug actions menu -> spawn pawn -> any "Anthroguard"). If it still doesn't work, we're ♥♥♥♥ outta luck. If it does, reboot the game with your usual mod load order. If this doesn't cause errors, great! If it does, start slowly disabling mods and repeating the steps above until the errors stop, thus finding the true cause of the error.

Don't worry about the late answer, i'm not a busy man.
Last edited by ERE : Elden Ring Enjoyer; 13 Dec, 2022 @ 7:56am
Valargent 14 Dec, 2022 @ 3:31pm 
It worked, thank you!
Cass The Boi 20 Jan, 2023 @ 2:52pm 
You're awesome dude i was messing with my load order for so long wondering why it wasn't working, :steamthumbsup:
< >
Showing 1-6 of 6 comments
Per page: 1530 50