边缘世界 RimWorld

边缘世界 RimWorld

评价数不足
YADA
   
奖励
收藏
已收藏
取消收藏
Mod, 1.4
文件大小
发表于
更新日期
309.483 KB
2023 年 5 月 4 日 下午 10:08
2023 年 5 月 19 日 上午 11:20
10 项改动说明 ( 查看 )
在 Zed 的 1 个合集中
Zed's mods
18 件物品
描述
YADA: Yet Another Dev Assistant

0. XML Harmony patches!
So simple!

<YADA.PatchDef> <defName>YADA_freezeNeedsAtHalf</defName> <className>Need</className> <methodName>get_CurLevel</methodName> <postfix> <setResult>0.5</setResult> </postfix> </YADA.PatchDef>
Or a bit more complex:

<YADA.PatchDef> <defName>YADA_freezeNeedsAtMax</defName> <label>Freeze needs at max</label> <className>Need</className> <methodName>get_CurLevel</methodName> <postfix> <arguments> <li>ref __result</li> <li>__instance</li> </arguments> <opcodes> <!-- checkbox code is added automagically --> <li>Ldarg_0</li> <li>Ldarg_1</li> <li>Callvirt RimWorld.Need::get_MaxLevel</li> <li>Stind_R4</li> <!-- ret is added automagically --> </opcodes> </postfix> <debugSettingsCheckbox/> </YADA.PatchDef>
See the Patches[github.com] dir for more examples.

I bet you've dreamt of writing the CIL opcodes in XML )) Can be done now!

And as a bonus you'd get a free checkbox if <debugSettingsCheckbox/> is there. Category and default value is configurable.



1. .rimignore
Now you can filter files you upload to Steam, similar to .gitignore.

Add default .rimignore[github.com] file to your mod with a single click.

2. mod size is now shown before upload



3. All dev flags are now saved with the game
Like "god mode", "unlimited power", all draw flags, etc etc.
Only if dev mode is on.



4. Add translucent debug log overlay
toggled by "§" key, totally configurable.



5. Hediff severity +/- buttons
standard ctrl/shift modifier keys are honored



You may also like...


Links:

License: MIT
6 条留言
Cedaro 2024 年 5 月 11 日 上午 3:58 
wish it can update to 1.5
Mute 2023 年 7 月 8 日 下午 3:47 
The ExpCompiler implementation is fascinating, I never considered just importing code from XML.
glencoe2004 2023 年 6 月 26 日 下午 4:19 
Harmony postfixes in XML? Absolutely wild
Lord Felix 2023 年 6 月 3 日 下午 8:15 
This mod is amazing thank you
Zed  [作者] 2023 年 5 月 6 日 下午 12:24 
@Mute cool! added my comments there)
Mute 2023 年 5 月 6 日 上午 12:34 
Nice! I've opened a pull request with some changes, hope they're useful to you.