Sands of Salzaar

Sands of Salzaar

View Stats:
New Mod question
I am trying to create a mod that removes food and money as combat rewards. However, I have no clue what I am doing, and the website is unclear on how to change loot tables. I like the game but think this change will help smooth out faction interaction and add a bit more complicated gameplay, so any help is appreciated.
Originally posted by forknbeans:
Originally posted by They1AboveAl1:
Thank you so much however I cannot get it to work but I am having fun testing.
I think it is that "Index.xml" is not created until after I hit build once?
Also if you would be so kind as to tell me how to delete projects from the list because I have like ten useless one now.
I just checked and you're right that the project has to first be built to generate the Index.xml file. I usually delete the INDEX_Source.xml file after the Index.xml file is generated so I don't have to manage both and haven't had any issues. You can find and delete folders containing locally built mods at:
  • X:\...\Steam\steamapps\common\DesertLegend\DeployedMods.HS
  • X:\...\Steam\steamapps\common\DesertLegend\_HSTemp\ModGenDataRoot
< >
Showing 1-4 of 4 comments
forknbeans Dec 8, 2020 @ 7:31am 
If you're only wanting to prevent food and money from dropping as loot, then you may only need to change the initial setting table. You can find a list of settings that can be changed at:

https://blywd.hanjiasongshu.com/index.php?title=Common_Scenario_Directives#Built-in_Field_in_Initial_Setting_Table

As for changing the food and money drop settings in your own mod, first create/open the mod using the in-game mod developer. Press the "ID Reference" button to open the Excel reference directory for creating mods. Once open, navigate to "\excel\Main", copy the file "C初始设定表_Init.xlsx", and close the window. Back to the mod developer, press the "Configuration Table" button to open your mod's Excel directory ("...\MyMod\Excel") and paste the copied file. Open the newly pasted file and clear any rows containing text under the header row. Add each of the following rows beneath the header row:

battle_gain_money_scale | Scale coefficient of obtaining money in battles. | 0
loot_food_each_soldier | Probability of each group of soldiers dropping food. | 0
loot_food_each_hero | Probability of each hero dropping food. | 0

Save and close the Excel file. Navigate to the parent directory ("...\MyMod\Excel" to "...\MyMod") and open the "valuebundle" folder. Using a text editor, such as Notepad, add the following as a new line inside the "root" tag in "Index.xml" and "INDEX_SOURCE.xml":

<convert reg="initinfo_pojo.xml" from="C初始设定表_Init.xlsx" />

Press the "Build" button in the mod developer.
They1AboveAl1 Dec 8, 2020 @ 12:47pm 
Thank you so much however I cannot get it to work but I am having fun testing.
I think it is that "Index.xml" is not created until after I hit build once?
Also if you would be so kind as to tell me how to delete projects from the list because I have like ten useless one now.
Last edited by They1AboveAl1; Dec 8, 2020 @ 1:53pm
The author of this thread has indicated that this post answers the original topic.
forknbeans Dec 8, 2020 @ 9:30pm 
Originally posted by They1AboveAl1:
Thank you so much however I cannot get it to work but I am having fun testing.
I think it is that "Index.xml" is not created until after I hit build once?
Also if you would be so kind as to tell me how to delete projects from the list because I have like ten useless one now.
I just checked and you're right that the project has to first be built to generate the Index.xml file. I usually delete the INDEX_Source.xml file after the Index.xml file is generated so I don't have to manage both and haven't had any issues. You can find and delete folders containing locally built mods at:
  • X:\...\Steam\steamapps\common\DesertLegend\DeployedMods.HS
  • X:\...\Steam\steamapps\common\DesertLegend\_HSTemp\ModGenDataRoot
Last edited by forknbeans; Dec 8, 2020 @ 9:38pm
They1AboveAl1 Dec 21, 2020 @ 4:53am 
Originally posted by forknbeans:
Originally posted by They1AboveAl1:
Thank you so much however I cannot get it to work but I am having fun testing.
I think it is that "Index.xml" is not created until after I hit build once?
Also if you would be so kind as to tell me how to delete projects from the list because I have like ten useless one now.
I just checked and you're right that the project has to first be built to generate the Index.xml file. I usually delete the INDEX_Source.xml file after the Index.xml file is generated so I don't have to manage both and haven't had any issues. You can find and delete folders containing locally built mods at:
  • X:\...\Steam\steamapps\common\DesertLegend\DeployedMods.HS
  • X:\...\Steam\steamapps\common\DesertLegend\_HSTemp\ModGenDataRoot
Thanks you are a hero.
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Dec 8, 2020 @ 12:40am
Posts: 4