RimWorld
227 평점
PatchOperationHighlander
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
Mod, 1.1, 1.2, 1.3, 1.4, 1.5
파일 크기
게시일
업데이트일
83.180 KB
2021년 7월 19일 오후 4시 36분
2024년 4월 11일 오후 8시 54분
업데이트 노트 8개 (보기)

다운로드 위해 구독하기
PatchOperationHighlander

Charlotte님의 1 모음집
Multiplayer-able!
아이템 235개
설명
A library of useful patch operations intended for collaboration.

Due to the nature of RimWorld DLL loading, there can only be one Assembly for the PatchOperation namespace. Feel free to contribute.

PatchOperation.LoadOnDemand[github.com]
Given a set of mods and a set of folders, LoadOnDemand loads the defs found in the folders located inside Defs_OnDemand if the mods exist. Makes it easier to manage optional dependencies as you can combine it with other PatchOperations.

PatchOperation.Context[github.com]
Given a xpath, using the following operations, limit their context to the xpath and run them in sequence. Huge performance gain as multiple operations are limited to small portions of the xml document. Can apply to any xpath with children.

PatchOperation.Set[github.com]
Given a xpath, add or replace child elements. Useful to change a single element that contains multiple children without setting Context. It'll avoid adding duplicates or complain if any is missing.

PatchOperation.Evaluate[github.com]
Given a member field or property with the syntax Type:Member, compare the member's value with the given value. Optionally, log the current value.

PatchOperation.FindModByID[github.com]
Just like its vanilla PatchOperationFindMod counterpart, executes the PatchOperation in match if found otherwise nomatch. Optionally, match all mods in the list.

PatchOperation.LogXML[github.com]
Writes the XML in its current state to the log, very useful to find out what happened. xpath is optional, combos well with Context.

PatchOperation.LogText[github.com]
Writes text, very useful for debugging, don't understimate.

Visit the wiki[github.com] for documentation and examples.
Source at Github[github.com]
댓글 20
SnekiChaos 2024년 4월 12일 오전 7시 40분 
Yeah it was that, I did a clean reinstall and it did fix it, thank you <3
Charlotte  [작성자] 2024년 4월 12일 오전 7시 26분 
Probably steam hasn't updated it on your side. I checked my workshop folder and it's correctly updated to 1.5. Also steam wouldn't show the 1.5 otherwise.
SnekiChaos 2024년 4월 12일 오전 4시 25분 
Hey, so I see there was an update today...but for some reason the Mod still appears as outdated in both Mod settings and RimPy
Charlotte  [작성자] 2024년 2월 19일 오전 7시 34분 
Yeah, it's been mostly superseded. The only benefit from them is that you can combine them with other logic operations, you can't do that with the tools in base game. Some may find it useful to load on demand according to some variable from Evaluate or something.
Thundercraft 2024년 2월 15일 오후 6시 22분 
(Part 1)
Quote, "PatchOperation.LoadOnDemand
Given a set of mods and a set of folders, LoadOnDemand loads the defs found in the folders located inside Defs_OnDemand if the mods exist."


Quote, "PatchOperation.FindModByID
Just like its vanilla PatchOperationFindMod counterpart, executes the PatchOperation in match if found otherwise nomatch."


I'm sure these operations are useful in certain circumstances, such as FindModByID's ability to match all mods in a list. But - and correct me if I'm wrong - can't most of the functionality of these two operations now be found in the base vanilla game?
Thundercraft 2024년 2월 15일 오후 6시 22분 
(Part 2)
I did some searching and found the outdated mod ModCheck [ludeon.com] and ModCheck (Continued) . The description of the latter says:
"The primary task for ModCheck is to remove the need for patch mods. It's done by adding test operations, which can tell if another mod is loaded, if one mod is before another, is of at least a certain version, either in About or in ModSync."

But, it also says, quote:
"All functionality of this mod exists in the base-game now so it will not be updated further"
...-.. 2023년 11월 26일 오후 5시 56분 
@orravan kek
Orravan 2023년 11월 9일 오후 12시 47분 
@ZzZombo
POH literally predates XML Extensions.
Witch ~ 2022년 11월 16일 오전 3시 27분 
Hes just saying
Undeadbanana 2022년 11월 16일 오전 2시 22분 
@ZzZombo Are you getting paid for gatekeeping what people can do or is it just like a passion project?