ติดตั้ง Steam
เข้าสู่ระบบ
|
ภาษา
简体中文 (จีนตัวย่อ)
繁體中文 (จีนตัวเต็ม)
日本語 (ญี่ปุ่น)
한국어 (เกาหลี)
български (บัลแกเรีย)
Čeština (เช็ก)
Dansk (เดนมาร์ก)
Deutsch (เยอรมัน)
English (อังกฤษ)
Español - España (สเปน)
Español - Latinoamérica (สเปน - ลาตินอเมริกา)
Ελληνικά (กรีก)
Français (ฝรั่งเศส)
Italiano (อิตาลี)
Bahasa Indonesia (อินโดนีเซีย)
Magyar (ฮังการี)
Nederlands (ดัตช์)
Norsk (นอร์เวย์)
Polski (โปแลนด์)
Português (โปรตุเกส - โปรตุเกส)
Português - Brasil (โปรตุเกส - บราซิล)
Română (โรมาเนีย)
Русский (รัสเซีย)
Suomi (ฟินแลนด์)
Svenska (สวีเดน)
Türkçe (ตุรกี)
Tiếng Việt (เวียดนาม)
Українська (ยูเครน)
รายงานปัญหาเกี่ยวกับการแปลภาษา
Directory will look like this for example
C:\Program Files (x86)\Steam\steamapps\workshop\content\294100\1522257424\Patches
Copy/paste the existing Patches.xml and name the new file something like "AM_Patch.xml"
Use a text editor inside the new file to add "AM_" before the StoneBlocksBase reference, and that'll get it working. The final patch file will look like this:
<Patch>
<Operation Class="PatchOperationReplace">
<xpath>*/ThingDef[@Name = "AM_StoneBlocksBase"]/tradeability</xpath>
<value>
<tradeability>All</tradeability>
</value>
</Operation>
</Patch>
If anyone can point me to a helpful youtube link, or know how I can do a test/verification if AM is installed to run the patch, I can make it part of the mod natively without everyone having to add patches manually.
The code posted below contains a bug. The second line uses "PatchOperationReplace" which does not work if there is no subsection "/tradeability" to replace.
It is not some other mod, it is this line of code in this mod.
#<Patch>
# <Operation Class="PatchOperationReplace">
# <xpath>*/ThingDef[@Name = "StoneBlocksBase"]/tradeability</xpath>
# <value>
# <tradeability>All</tradeability>
# </value>
# </Operation>
#</Patch>
If the subsection StoneBlocksBase/tradeability is something new added by this mod, then the problem is the patch fails because it cannot replace something that does not yet exist. Use the PatchOperationAdd to create new content.
I was able to get these mods to play together by placing “Tradable Stone Blocks” somewhere above these mods in the load order. I usually play with my mod right after the Core game file, as it doesn’t rely on HugsLib or any other script extenders to work.
Hope this helps!
I don't think this one is working on 1.0, I get the following error:
[Tradable Stone Blocks] Patch operation Verse.PatchOperationReplace(*/ThingDef[@Name = "StoneBlocksBase"]/tradeability) failed
file: C:\Games but Fast\SteamLibrary\steamapps\workshop\content\294100\1522257424\Patches\Patches.xml
Verse.Log:Error(String, Boolean)
Verse.PatchOperation:Complete(String)
Verse.LoadedModManager:ClearCachedPatches()
Verse.LoadedModManager:LoadAllActiveMods()
Verse.PlayDataLoader:DoPlayLoad()
Verse.PlayDataLoader:LoadAllPlayData(Boolean)
Verse.Root:<Start>m__1()
Verse.LongEventHandler:RunEventFromAnotherThread(Action)
Verse.LongEventHandler:<UpdateCurrentAsynchronousEvent>m__1()