边缘世界 RimWorld

边缘世界 RimWorld

Majestic Foliage Framework[HH]
Taggerung 2024 年 7 月 31 日 下午 1: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.
< >
正在显示第 1 - 9 条,共 9 条留言
BigJoeSteel 2024 年 8 月 4 日 上午 5:50 
Could you tell me where to change this information? I can't find the plantgraphic harmony patch.
Taggerung 2024 年 8 月 4 日 上午 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 2024 年 8 月 4 日 下午 3:33 
MajesticFramework.dll ya? thanks ill take a crack at it
kmiloesproncedal43 2024 年 8 月 8 日 下午 5:58 
Could you point me where to find MapMeshFlag? I canot find It in the PlantGraphicPatch
Taggerung 2024 年 8 月 9 日 下午 4: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 2024 年 8 月 14 日 下午 9:23 
Thanks for the reply, Will do that.
batatspamavert 2024 年 8 月 21 日 下午 1: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 2024 年 8 月 31 日 下午 7:00 
How did you resolve the make transparent and make leafless errors? Those do not seem to be fixed by doing that.
batatspamavert 2024 年 9 月 24 日 上午 2:16 
引用自 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?
最后由 batatspamavert 编辑于; 2024 年 9 月 24 日 上午 2:17
< >
正在显示第 1 - 9 条,共 9 条留言
每页显示数: 1530 50