RimWorld

RimWorld

Majestic Foliage Framework[HH]
Taggerung 31. juli 2024 kl. 13:50
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.
< >
Viser 1-9 af 9 kommentarer
BigJoeSteel 4. aug. 2024 kl. 5:50 
Could you tell me where to change this information? I can't find the plantgraphic harmony patch.
Taggerung 4. aug. 2024 kl. 8:12 
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 4. aug. 2024 kl. 15:33 
MajesticFramework.dll ya? thanks ill take a crack at it
kmiloesproncedal43 8. aug. 2024 kl. 17:58 
Could you point me where to find MapMeshFlag? I canot find It in the PlantGraphicPatch
Taggerung 9. aug. 2024 kl. 16:27 
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
kmiloesproncedal43 14. aug. 2024 kl. 21:23 
Thanks for the reply, Will do that.
batatspamavert 21. aug. 2024 kl. 13:48 
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 31. aug. 2024 kl. 19:00 
How did you resolve the make transparent and make leafless errors? Those do not seem to be fixed by doing that.
batatspamavert 24. sep. 2024 kl. 2:16 
Oprindeligt skrevet af 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?
Sidst redigeret af batatspamavert; 24. sep. 2024 kl. 2:17
< >
Viser 1-9 af 9 kommentarer
Per side: 1530 50