-
Notifications
You must be signed in to change notification settings - Fork 0
/
defaults.yaml
81 lines (67 loc) · 2.81 KB
/
defaults.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
---
## YAML Documentation
# |, |-, |+ block chomping indicators https://yaml.org/spec/1.2/spec.html#id2794534 (|- to strip final linebreaks)
# ~ null type https://yaml.org/type/null.html (~ is same as blank)
# "" vs '' https://yaml.org/spec/1.2/spec.html#id2787109 ("" will interpret \n as a newline)
# yaml multiline interactive summary http://yaml-multiline.info/
## MAIN
# {local_dir} is the (true) folder of the .yaml file given to the program
# {working_dir} is set by the user (generally where the program is executed from)
out_dir: '{local_dir}\_ModDescriptionTool' # for safety so as not to overwrite files unexpectedly
preview_path: '{out_dir}\About\Preview.png'
preview_from_path: ~ # when provided, copy an image to preview_path
published_file_id_path: '{out_dir}\About\PublishedFileId.txt'
published_file_id: ~ # when provided, write to PublishedFileId.txt
updates: [ ]
settings: [ ]
update_format: "{desc+\n}\
\n"
# translate steam markup to xml
xml_url_format: '<color=grey><b>{text}</b></color>' # l.url, l.text
xml_u_format: '<color=grey>{text}</color>' # l.text
## ABOUT
about_path: '{out_dir}\About\About.xml'
ModMetaData:
name: ''
packageId: ''
author: ''
url: ~
supportedVersions:
- 1.3
modDependencies: [ ]
incompatibleWith: [ ]
loadBefore: [ ]
loadAfter: [ ]
description: !steam2xml "{description}\n" # \n avoids text cut-off in-game
## UPDATES
updates_path: '{out_dir}\1.3\News\UpdateFeatures.xml'
UpdateFeatureDefBase:
_Abstract: true
_Name: &update_base_name '{ModMetaData.packageId}_UpdateFeatureBase'
# https://github.com/UnlimitedHugs/RimworldHugsLib/blob/477aa179dbedf5d02ce8ede361a42c45af24b746/Source/News/UpdateFeatureDef.cs#L23
# doesn't hurt to include this
modNameReadable: '{ModMetaData.name}'
modIdentifier: '{ModMetaData.packageId}'
linkUrl: '{ModMetaData.url}'
UpdateFeatureDef:
_ParentName: *update_base_name
# https://github.com/UnlimitedHugs/RimworldHugsLib/blob/477aa179dbedf5d02ce8ede361a42c45af24b746/Source/News/UpdateFeatureDef.cs#L106
# doesn't seem optional in reality; get 'Adding duplicate HugsLib.UpdateFeatureDef name: UnnamedDef'
defName: '{ModMetaData.packageId}_{version}'
assemblyVersion: '{version}'
content: !steam2xml "{content}\n" # \n avoids text cut-off in-game
titleOverride: ~
linkUrl: ~
# https://github.com/UnlimitedHugs/RimworldHugsLib/blob/477aa179dbedf5d02ce8ede361a42c45af24b746/Source/News/UpdateFeatureDef.cs#L64
#trimWhitespace: true # default
## KEYS
keys_path: '{out_dir}\1.3\Languages\English\Keyed\Keys.xml'
key_prefix: '{ModMetaData.packageId}'
KeyLanguageData:
'{key_prefix}_{name}': !steam2xml '{value}'
## SETTINGS
settings_path: '{keys_path}'
setting_prefix: '{key_prefix}'
SettingLanguageData:
'{setting_prefix}_SettingTitle_{name}': !steam2xml '{title}'
'{setting_prefix}_SettingDesc_{name}': !steam2xml '{desc?}'