RimWorld

RimWorld

1,098 ratings
Optimization: Meats - C# Edition
9
4
12
3
7
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5
File Size
Posted
Updated
2.396 MB
Jul 10, 2021 @ 4:15am
Apr 28, 2024 @ 6:59am
51 Change Notes ( view )

Subscribe to download
Optimization: Meats - C# Edition

In 1 collection by SeoHyeon
Mods I made
6 items
Description
Save game compatible?
- Basically adding or removing this mod from mid-save will cause hash collision error.
But you can use Mid-saver Saver to fix those error. Try use 'Fix hash collision' method.
Instructions
1. Add Mid-saver Saver in your mods list and load your existing save. Make sure that you don't load this mod yet. then Turn on the 'Fix hash collision' in its mod settings and save the save and exit the game.
2. After that, remove Mid-saver Saver and add this mod and load the save.

This mod was inspired by Optimization: Meats made by Owlchemist.

This mod reduces the meat variety in the game.

So.. Who would want this?
- People who don't care about all animal meat because all animal meat will end up being treated the same.
- People who want to simplify their meat storage situation.
- People who use animal mods, but want to benefit from a slight performance increase. due to fewer defs.


Compatibility
- Most mods are compatible except other meat optimization mods.
- 'Meats that shouldn't be merged' doesn't merge into one automatically! (Aerofleet meat from Alpha Animals for example)
- If you're having problems with the mod, please let me know!


Known Issue
- Ideology DLC: Be careful when you create your own Ideo. If your ideo has venerated animals, Mood debuff: 'Ate venerated animal meat' won't work. Since these meats are merged into one. And if the animal was cow, your pawns will get mood debuff when eat meals consist of raw meat.


Load order
- It really doesn't matter. Auto sort is fine for it!
but I recommended...
Core, Royalty, Ideology
(Other animal, food mods)
This mod
RocketMan

or try to use RimPy!

For Modders
- If you want to add your races or meats to exclude from the optimization, then try to make patch like...
... <match Class="PatchOperationAdd"> <!-- If the race drops the meats below, Then excludes the race from the meat optimization. --> <xpath>/Defs/AlienMeatTest.MeatListDef[defName="WhiteList"]/meats</xpath> <value> <li>Meat_Alien_Moyo</li> </value> </match> ... <match Class="PatchOperationAdd"> <!-- Excludes the races below from the meat optimization. You don't have to make it both.--> <xpath>/Defs/AlienMeatTest.MeatListDef[defName="WhiteList"]/races</xpath> <value> <li>Alien_Anty</li> </value> </match> ...

- This mod has a harmony postfix patch for 'ThingDefGenerator_Meat.ImpliedMeatDefs()'.

Recommended mods
- Optimization: Leathers - C# Edition

Source code
https://github.com/csh1668/OptimizationMeat
Popular Discussions View All (3)
75
Jan 11 @ 9:01am
PINNED: Report red error or incompatibility issues in here
SeoHyeon
8
Apr 6, 2024 @ 9:14am
PINNED: Suggestions 모드 아이디어 제안
SeoHyeon
0
Jul 16, 2021 @ 4:42pm
Mid-Save Subscription Possible
Mr. Nekuromu
346 Comments
Witch ~ Mar 27 @ 2:29pm 
A lot. Luke roughly 5tps or more. However I was also using a lot of custom mob mods
Amroth Mar 27 @ 5:25am 
@Witch can you elaborate how much impact it actually had?
Witch ~ Feb 8 @ 1:04pm 
Insane what a performance impact meat was before this mod
SeoHyeon  [author] Feb 8 @ 7:09am 
@weregamer
In the early days, this mod had an optional feature to merge VFE's fish into one. However, due to bugs caused by an incomplete implementation, I eventually decided to remove that feature.

Looking at this issue again with my improved coding skills, I believe that merging VFE's fish can be accomplished with a simple XML Patch. You can refer to the XML version of the Optimizations: Meat mod( https://steamcommunity.com/sharedfiles/filedetails/?id=2193772059 ) for an example of how this can be done.
weregamer Jan 23 @ 8:51am 
This mod is on my "indispensible" list, thanks for writing it!

The author of Vanilla Fishing Expanded was categorically hostile to the idea of supporting this. I suspect he gets so many requests that he didn't even look at what it would take.

I am not entirely averse to writing a sub-mod in terms of writing some XML, but I've not done a RW mod before and my time is limited.

Also, your examples both show how to make a meat not optimize. What I want is either for all the varieties of "raw fish" to be merged into one, or just turned into "raw meat". This doesn't happen automatically, probably because he added a new category for "raw fish" under "meats". It may be the case that he did so much C# to add his fish that this can't be done with simple XML.

Do you have any words of guidance, or maybe some time to investigate this yourself?
Professional Pro Jan 17 @ 3:49pm 
Any chance to fix it so it's possible to venerate cow without going full vegan?
TehJustOne Dec 18, 2024 @ 7:26pm 
I tried adding this to my modlist but I can no longer use the raw meat to cook any dishes.
I'm unsure why it happens.
Witch Dec 14, 2024 @ 11:17pm 
Does this help with the TPS at all?
모르는사람 Dec 9, 2024 @ 1:19am 
이 모드 오래전부터 썼는데 예전부터 상인이 고기를 안팔게 되는 문제가 생기는거같아요
Nonno Smeraldo Sep 8, 2024 @ 5:39am 
for some reason adding this mod to a modded playthrough deletes all the ores in the map