边缘世界 RimWorld

边缘世界 RimWorld

评价数不足
Patch Example mod
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
3.814 KB
2017 年 10 月 28 日 上午 8:19
2017 年 11 月 4 日 上午 6:51
2 项改动说明 ( 查看 )

订阅以下载
Patch Example mod

描述
This mod contains a patch of how to use the patch operators to make updates to mods.

I have made this mod public as it explains how to use the patches to update defs of other mods. In the case of this example I have made an exampledef in the defs folder while the patch is in the patch folder which is required by the game to make sure the patch works. Subfolders in the defs and patches folders can be made as you wish. i hope this will help other modders to better understand how to use patches.

To get a working example of a patchmod take a look at the Firepit and Sconces + Enhanced woodworking patch I have published as I made it for myself.
8 条留言
TurtleShroom 2021 年 9 月 26 日 下午 5:37 
Are you still making these tutorials?
AncientGatekeeper 2019 年 6 月 6 日 下午 6:28 
Can you update this mod since with 1.0, some of the older coding reqs changed. Would really help when I create patches for some of my fave mods. Thanks!
Raszagal  [作者] 2017 年 11 月 4 日 上午 6:51 
Updated to use the more performance efficient xpathing
Raszagal  [作者] 2017 年 11 月 3 日 上午 11:01 
Yeah, I need to update that. I just wrote the xpath queries quickly so that they would function and made an explenation for the xpathing itself and what is possible to filter with it.
FrozenSnowFox 2017 年 11 月 1 日 下午 3:31 
Why are all of your examples using // ? They should be using */, using // absolutely murders performance. You comment in the file even mentions this.

https://ludeon.com/forums/index.php?topic=32874.0
Raszagal  [作者] 2017 年 10 月 29 日 上午 4:19 
Especially the need to have the patch in a patches folder is something one can read over so make sure you don't forget that if you make your own
Raszagal  [作者] 2017 年 10 月 29 日 上午 4:17 
I hope it helps cause I had to dig on the forums and tutorials to see how it works and even then you need to look at a different tutorial for xpathing. I included in the patch file a basic xpath tutorial with examples of what they can be.
Joseph 2017 年 10 月 28 日 下午 8:48 
Thanks!