RimWorld

RimWorld

Majestic Foliage Framework[HH]
Taggerung Jul 31, 2024 @ 1:50pm
1.5 Update
So I've been able to update this to 1.5 with very minimal changes but due to the lack of license can't upload the update. If @Hohen you'd approve I'm happy to dump the update on Github for you or anywhere else. I had to work from the DLL so it'd be better to apply the patch to the original code rather than the decompiled version.

Just needed a small tweak to the PlantGraphic harmony patch, the annotations weren't quite sufficient to hit that getter:
[HarmonyPatch(typeof(Plant), nameof(Plant.Graphic), MethodType.Getter)]

And swapping over to MapMeshFlagDefOf.Things instead of casting 1 to MapMeshFlag.

Those are the only changes needed.
< >
Showing 1-9 of 9 comments
BigJoeSteel Aug 4, 2024 @ 5:50am 
Could you tell me where to change this information? I can't find the plantgraphic harmony patch.
Taggerung Aug 4, 2024 @ 8:12am 
Assuming you decompile the dll with Dotpeek and save it as a project which is what I did to get a base to work from it makes `Plant_GraphicPatch.cs` which contains `public static class Plant_GraphicPatch` but the annotations are wrong and need to be ` [HarmonyPatch(typeof(Plant), nameof(Plant.Graphic), MethodType.Getter)]`
BigJoeSteel Aug 4, 2024 @ 3:33pm 
MajesticFramework.dll ya? thanks ill take a crack at it
Could you point me where to find MapMeshFlag? I canot find It in the PlantGraphicPatch
Taggerung Aug 9, 2024 @ 4:27pm 
The MapMeshFlag uses aren't in that patch, they're in the MapWorker.cs. If you've got it open in an editor it's just the bits that don't compile old code was like:

(MapMeshFlag) 1
Thanks for the reply, Will do that.
batatspamavert Aug 21, 2024 @ 1:48pm 
Can say that the instructions worked. To remove remaining errors you can copy the trees from the tree pack you use with the Framework, append '_Immature' to the name and move the new files to the `Textures/Things/Plant` folder.
Archie Aug 31, 2024 @ 7:00pm 
How did you resolve the make transparent and make leafless errors? Those do not seem to be fixed by doing that.
batatspamavert Sep 24, 2024 @ 2:16am 
Originally posted by Archie:
How did you resolve the make transparent and make leafless errors? Those do not seem to be fixed by doing that.
I didn't, I just never turned the transparency really on. But from what I understand you just need to repeat the process for immature transparent trees and immature leafless by just copying the files yet again and adding the same suffixes?
Last edited by batatspamavert; Sep 24, 2024 @ 2:17am
< >
Showing 1-9 of 9 comments
Per page: 1530 50