콘텐츠로 건너뛰기
라이엇 비트

라이엇 비트

  • 집
  • 소식
  • 가이드
  • 비디오 가이드
  • 패치 노트
  • 남용 신고
  • 검색 양식 전환
Settlement Survival

Settlement Survival – XML Modding Guide

에 게시됨 11/11/2021 에 의해 River System 코멘트 없음 ~에 Settlement Survival – XML Modding Guide
  • 제목: Settlement Survival
  • 출시일:
  • 개발자:
  • 발행자:
Information about Settlement Survival is still incomplete. 이것을 사용하여 게임의 세부 정보를 입력할 수 있도록 도와주세요. 문의 양식.

A step-by-step guide for how to get started with modding the game. Note that at the time of writing this guide, only modifying XML files is possible. 다시 말해서, you can change for example values or text, but you can’t code whole new game mechanics at this point.

시작하기

Modding Settlement Survival is not completely straightforward, but with a few hints, it is pretty easy.

글을 쓰는 시점에 (2021-11-11), only basic XML editing is supported. That means that you can change values or text, 그러나 당신은 할 수 있습니다’t code in completely new game mechanics. 아직, you can change a number of things doing that.

I’d recommend using Notepad++ to edit files. It will detect that you’re dealing with XML files and for example mark comments accordingly, which you can ignore when editing the files.

시작하려면, go to your Settlement Survival folder which you can do by going to your game library, opening the properties of the game, and under “local files” 클릭하다 “browse”.

지금, you will need to make a new folder called “MyMods” in the following location:

Settlement Survival\Settlement Survival_Data\MyMods

그 다음에, create a folder for your mod with the name of your mod so that the structure will be \MyMods\YourModName

Substituting “YourModName” with the actual name of your mod.

In that folder, your mod will need 3 basic components:

  1. AModConfig.xml with some basic data about the mod, like title and description
  2. PreviewIcon.png which will show up as the picture in the Steam Workshop
  3. ㅏ “zipConfig” folder which will include the modified XML files which will actually be modifying the game

We’ll go through these step by step, but here is what the contents of your MyMods\YourModName folder should look like in the end:

AModConfig.xml

The AModConfig.xml carries the metadata of the mod, so for example its name.

Below is what the file needs to contain, where you just need to fill in the following parts yourself:

  • The mod name / 제목
  • 설명
  • Your name under auther (예, 그것’에스 “auther”, not a typo in this guide)
  • ChangeNote

You can either create an XML file with the content below (and your changes to it) or copy the file from another mod and then modify that file accordingly. If you take an existing mod’s file, make sure you delete the steam key in SteamKey_Str. It will automatically be filled in after you publish the mod to the Workshop with a unique ID and it needs to be empty for a new mod as you can see here:

<?xml version="1.0" encoding="utf-8"?>
<UGCItemInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<제목>A Mod Title</제목>
<Des>Description of what your mod does</Des>
<Auther>Your Name</Auther>
<Lang>schinese</Lang>
<ChangeNote>Changed a thing</ChangeNote>
<SteamKey_Str></SteamKey_Str>
</UGCItemInfo>

PreviewIcon.png

This step is pretty simple. You’ll need a png file that will be displayed in the Workshop. The official guide recommends a size of 200×120 pixels for the icon.

Editing the Game Files

Now that everything else is set up, we can get started with actually modifying the game files.

첫 번째, we’ll need to find where we can find the entry that we want to modify. 그 다음에, we can make an XML file with the changes we want to make.

If you struggle following what you need to do, ~에 4.3 there will be a full example file so you can see the end results of all the steps. 일반적으로, it’s also a good idea to look at other, existing mods and learn from how they work. 그리고 물론, don’t hesitate to ask questions in the comments either if something is unclear or you have any questions.

Finding the File/Entry

Sometimes it can be obvious which file an entry is in and where you need to make the changes. 자주, it’s not obvious because of the way the game stores information.

A lot of files make use of IDs instead of names. So for example, the building Reservoir has the building ID 2036. To figure out the ID, you can search for the name in the lang.xml file. This file handles the names that end up getting actually displayed in the game, so if you search for “Reservoir” in this file, you will quickly find this entry:

<LangConfig>
<ID>Building_Name_ID_2036</ID>
<LangList>
<Lang>
<LangType>중국인</LangType>
<LangValue>蓄水池</LangValue>
</Lang>
<Lang>
<LangType>영어</LangType>
<LangValue>Reservoir</LangValue>
</Lang>
....

And at the top of that entry, you can see the ID.

One thing to keep in mind is that sometimes buildings have the same name as a technology, 예를 들어, so make sure you’re looking at the ID for the right type of entry – 건물, 목, technology etc. The same ID can also be used in several different contexts so if you want to do the opposite and look up the name of something based on the ID, again make sure you look for the right type.

Once you have the ID, then you can use that to find the actual entry you want to change. So for example, if we wanted to modify some values of the Reservoir, we could now search in the building.xml file for 2036 and we would get to the Reservoir entry.

Sometimes it can be difficult to find what you are looking for, especially when you’re not even sure which file something is located in. 그런 경우에는, I’d recommend using a grep tool, which basically allows you to search for some text (like an ID you found in lang.xml) is not just one text file, but all the text files in a folder.

Editing an Entry

When you have found the file/entry, you can start actually modifying it. 그것을 위해, 첫 번째, make a copy of the original file, and put it in the zipConfig folder in your mod folder (Settlement Survival\Settlement Survival_Data\MyMods\YourModName\zipConfig).

The files will have many individual entries. Every entry starts and ends with a tag, 예를 들어, building entries start with

<BuildingConfig>

and end with

</BuildingConfig>

If you just look at how the first proper entry starts (ignoring comments), you’ll know what to look for.

그 다음에, delete all other entries apart from the one you want to edit (or if you’re editing multiple buildings, keep all the ones you want to edit). Make sure to not delete the first 2 lines or the last line in the file, and only delete other entries.

For building.xml, that means making sure these lines don’t get deleted:

<?xml version="1.0"?>
<ArrayOfBuildingConfig xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

And the last line:

</ArrayOfBuildingConfig>

In between, there should only be the entry (or entries) you want to modify left.

Now you can make the changes you wanted. This is often pretty self-explanatory, but there are also comments at the beginning of a file with some descriptions. 예를 들어, if we wanted to change the output of the Reservoir, this would be the relevant part:

<ConsumeAddAbilityList>
<!--配方-->
<ConsumeAddAbility>
<ID>1</ID>
<이름>Building_Name_22</이름>
<Lable>Building_Lable_1031</Lable>
<ProduceType>
<GoodsList>
<상품>
<ID>1001</ID>
<UnEducated>24</UnEducated>
<Educated>24</Educated>
</상품>
</GoodsList>
</ProduceType>
</ConsumeAddAbility>
</ConsumeAddAbilityList>

So both uneducated and educated citizens produce 24 water by default. (To find out what item an ID refers to, you can look it up in the lang.xml file similar to earlier. The item ID 1001, 이 경우, refers to water, which is the only item the reservoir produces.)

Besides changing how much water gets produced, you could also change the ID to another item, or make it produce 2 다른 항목.

Example File

전체적으로, if our goal was to double the output of the reservoir, we would end up with a building.xml file in the zipConfig folder of our mod that looks like this:

<?xml version="1.0"?>
<ArrayOfBuildingConfig xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<BuildingConfig>
<ID>2036</ID>
<!--蓄水池-->
<!--特性-->
<ContentDes>Building_ContentDes_2036</ContentDes>
<!--建筑升级槽位数量-->
<RemouldSlot>2</RemouldSlot>
<!--是否可以建造地板-->
<CanFloor>거짓</CanFloor>
<!--表现类型-->
<ViewType>1</ViewType>
<!--建筑类型-->
<FuncType>3</FuncType>
<!--建筑名称-->
<이름>Building_Name_ID_2036</이름>
<!--建筑描述-->
<Des>Building_Des_ID_2036</Des>
<!--建筑序号-->
<주문하다>1</주문하다>
<!--建筑图标-->
<상>Icon_building_1011</상>
<!--建造的类型-->
<BuildType>1</BuildType>
<!--建筑边界道路-->
<Border> </Border>
<!--建筑方向-->
<BorderArrow>뒤쪽에</BorderArrow>
<!--建造次数=配置值-->
<AllConsumWorker>75</AllConsumWorker>
<!--最大耐久度-->
<MaxDurability>150</MaxDurability>
<!--该建筑工作职业-->
<WorkerCareer>22</WorkerCareer>
<!--最大建造人数-->
<MaxBuilder>2</MaxBuilder>
<!--默认工作人数-->
<DefaultWorkerNum>1</DefaultWorkerNum>
<!--工作动作-->
<DoAction>31</DoAction>
<!--点击音效-->
<ClickSound>
<길>Sound/Building/Build_Click8</길>
<Volumn>1</Volumn>
</ClickSound>
<!--建筑模型列表-->
<ModelsList>
<Models>Building/Building/Breservoir001</Models>
</ModelsList>
<!--建筑地面网格-->
<FixedSize>
<Condition>
4,4,4,4,4,4
4,4,4,4,4,4
7,7,7,7,7,7
7,7,7,7,7,7
1,1,1,1,1,1
1,1,1,1,1,1
1,1,1,1,1,1
</Condition>
<붙이다>
1,1,1,1,1,1
1,1,1,1,1,1
1,1,1,1,1,1
1,1,1,1,1,1
1,1,1,1,1,1
1,1,1,1,1,1
1,1,1,1,1,1
</붙이다>
</FixedSize>
<!--建造建筑点相对坐标-->
<BuildLocList>
<!--建筑建造位置-->
<BuildLoc>
</BuildLoc>
</BuildLocList>
<!--整体消耗资源-->
<AllConsumResList>
<!--整体消耗资源-->
<AllConsumRes>
<ID>33007</ID>
<Num>30</Num>
</AllConsumRes>
<AllConsumRes>
<ID>33008</ID>
<Num>30</Num>
</AllConsumRes>
<AllConsumRes>
<ID>4001</ID>
<Num>40</Num>
</AllConsumRes>
</AllConsumResList>
<!--维修材料消耗-->
<FixStaff>
<ID>3001</ID>
<Num>2</Num>
</FixStaff>
<!--消耗原材料获得能力-->
<ConsumeAddAbilityList>
<!--配方-->
<ConsumeAddAbility>
<ID>1</ID>
<이름>Building_Name_22</이름>
<Lable>Building_Lable_1031</Lable>
<ProduceType>
<GoodsList>
<상품>
<ID>1001</ID>
<UnEducated>48</UnEducated>
<Educated>48</Educated>
</상품>
</GoodsList>
</ProduceType>
</ConsumeAddAbility>
</ConsumeAddAbilityList>
<!--工作人数区间:额外控制界面上的开关按钮-->
<WorkerRange>
<낮추다>1</낮추다>
<Upper>2</Upper>
</WorkerRange>
<!--工作人数区间-->
<WorkRequired>
<!--产出物品所需工作总次数-->
<NeedWorkRequired>8</NeedWorkRequired>
<!--受教育者工作次数-->
<EducatedWork>2</EducatedWork>
<!--未受教育工作次数-->
<UnEducatedWork>2</UnEducatedWork>
</WorkRequired>
<!--一级物品上限-->
<CollectItemMainTagLimit>1</CollectItemMainTagLimit>
<!--建筑改造列表-->
<RemouldList>
<RemouldID>1</RemouldID>
<RemouldID>7</RemouldID>
</RemouldList>
</BuildingConfig>

</ArrayOfBuildingConfig>

Note how the whole BuildingConfig entry is included even though we just changed 2 숫자, for educated and uneducated workers, 여기:

...
<상품>
<ID>1001</ID>
<UnEducated>48</UnEducated>
<Educated>48</Educated>
</상품>
...

또한, note how the first 2 lines and the last lines of the file are preserved.

Combining Mods

Because the game only allows any entry to be modified by one mod, this means you may run into issues if you’re using several mods that want to modify the same things. So for example, our mods Simple Meat and More Fancy Food both make changes to recipes with meat and so change the entries for buildings processing meat. Installed together, the game will give an error because they both want to edit the same entry.

To deal with that, you can make a new mod that combines the functionalities. Our mod Food Overhaul is exactly that, the changes from Simple Meat and More Fancy Food combined. Most changes of the mods don’t conflict with each other so they can simply be added together, but for the mentioned recipe changes this mod then combines the change in item ID 그리고 양.

Enabling, Testing, and Publishing the Mod

After you made your changes, it’s time to test if it worked! To enable a mod, start up the game, go into the mod menu and tick the box at the right.

One important thing to keep in mind is that right now, the game does not automatically reload mod files after they were changed, even if you close the game! So any time you make changes to your mod, you need to manually tell the game to reload the mod files, which you do by going into the mod menu, disabling and reenabling your mod.

또한, some changes won’t be applied if you load a savegame. 예를 들어, if you change recipes that buildings are currently using, you will have to go through those buildings and reselect the recipes. In other cases rebuilding buildings may be necessary.

When you have tested your mod, confirmed it works and are ready to / want to publish it, all you need to do is to click the “publish” button in the mod menu in the game. 그게 다야! You’ve made a mod for Settlement Survival!

Updating a Mod

If you want to make additional changes to your mod, or need to fix bugs, that’s also pretty easy.

  1. Make the changes to the mod files as usual
  2. (선택 과목) Update the change notes in the AModConfig.xml file for what you changed
  3. Make sure the SteamKey_Str is now filled in with the ID of your mod
  4. Press publish

If the mod ID is not in the file and you’re not sure what it is: it’s the number string at the end of the link to your mod, so for example:

steamcommunity.com/sharedfiles/filedetails/?id=2644570870

The mod ID here would be 2644570870

이것이 오늘 우리가 공유하는 모든 것입니다. Settlement Survival 가이드. 이 가이드는 원래 작성자가 작성하고 작성했습니다. River System. 이 가이드를 업데이트하지 못한 경우, 다음을 수행하여 최신 업데이트를 찾을 수 있습니다. 링크.

이 사이트의 콘텐츠가 귀하의 권리를 침해한다고 생각하는 경우, 귀하의 지적 재산권을 포함하여, 문의 양식을 사용하여 즉시 문의하십시오..
가이드 태그:Settlement Survival

탐색 후

이전 게시물: 칼리지 킹스 – Two Timer Achievement Guide
다음 게시물: Bright Memory: Infinite Achievement Guide

답장을 남겨주세요 답장 취소

귀하의 이메일 주소는 공개되지 않습니다. 필수 입력란이 표시되어 있습니다 *

  • 제목: Settlement Survival
  • 출시일:
  • 개발자:
  • 발행자:
Information about Settlement Survival is still incomplete. 이것을 사용하여 게임의 세부 정보를 입력할 수 있도록 도와주세요. 문의 양식.

부인 성명

인용된 모든 콘텐츠는 해당 소스에서 파생됩니다.. 귀하의 콘텐츠를 허가 없이 사용했다고 생각되는 경우, 우리에게 연락하면 진지하게 받아 들일 것입니다..
  • 회사 소개
  • 문의하기
  • 개인 정보 정책
  • 서비스 약관

저작권 © 2025 라이엇 비트.

에 의해 구동 프레스북 뉴스 WordPress 테마