forked from clshortfuse/renodx
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrenodx-metadata-schema.json
More file actions
328 lines (328 loc) · 9.81 KB
/
renodx-metadata-schema.json
File metadata and controls
328 lines (328 loc) · 9.81 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://clshortfuse.github.io/renodx/renodx-metadata-schema.json",
"title": "RenoDX Mod Metadata",
"description": "Schema for per-game metadata used by RenoDX tooling and the index page.",
"type": "object",
"additionalProperties": false,
"required": [
"id",
"title"
],
"properties": {
"$schema": {
"type": "string",
"description": "JSON Schema reference for validation."
},
"id": {
"type": "string",
"description": "Machine-safe ID for the game/mod (folder name)."
},
"title": {
"type": "string",
"description": "Human-friendly game title."
},
"summary": {
"type": "string",
"description": "One-sentence description of what the mod does (HDR, tone mapping, fixes)."
},
"tags": {
"type": "array",
"description": "Short labels for surfacing in the index (e.g., HDR, DLSS).",
"items": {
"type": "string"
},
"uniqueItems": true
},
"status": {
"type": "string",
"enum": [
"stable",
"beta",
"experimental"
],
"description": "Release channel indicator for the mod."
},
"urls": {
"type": "array",
"description": "List of relevant URLs with a descriptive tag (free-form kind, e.g., homepage/support/discord/donate/etc).",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"url",
"kind"
],
"properties": {
"url": {
"type": "string",
"format": "uri"
},
"kind": {
"type": "string",
"description": "Free-form label for this URL"
}
}
},
"uniqueItems": true
},
"images": {
"type": "array",
"description": "Screenshots or hero images (URLs/paths) for the index page.",
"items": {
"type": "string"
},
"uniqueItems": true
},
"notes": {
"type": "array",
"description": "Collection or notes/requirements/known issues.",
"items": {
"type": "string"
},
"uniqueItems": true
},
"version": {
"type": "string",
"description": "Semver-style version of the mod metadata.",
"pattern": "^\\d+\\.\\d+\\.\\d+(?:-[A-Za-z0-9.-]+)?$"
},
"deploy": {
"type": "object",
"description": "Machine-readable deployment and installer metadata.",
"additionalProperties": false,
"properties": {
"reshade_version_range": {
"type": "string",
"description": "Semver-style range (npm-style) for supported ReShade versions (e.g., >=5.9.0 <6.0.0).",
"pattern": "^[\\^~><=|*0-9A-Za-z.+-].*$"
},
"reshade_preferred_name": {
"type": "string",
"description": "Preferred ReShade loader DLL name to deploy (e.g., dxgi.dll default; some games require d3d12.dll)."
},
"reshade_ini_options": {
"type": "object",
"description": "Optional overrides for reshade ini sections/keys.",
"additionalProperties": {
"type": "object"
}
},
"game_exe": {
"type": "string",
"description": "Primary game executable filename."
},
"process_name": {
"type": "string",
"description": "Process name to attach/hook."
},
"api": {
"type": "string",
"description": "Graphics API used by the mod (e.g., d3d11, d3d12, vulkan)."
},
"hook": {
"type": "array",
"description": "DLLs the mod injects/replaces for hooking.",
"items": {
"type": "string"
},
"minItems": 1
},
"steam_appid": {
"type": [
"integer",
"null"
],
"description": "Steam appid if applicable."
},
"gog_product_id": {
"type": [
"integer",
"null"
],
"description": "GOG product id if applicable."
},
"nexus_mods_game_id": {
"type": [
"integer",
"null"
],
"description": "NexusMods game id if applicable."
},
"nexus_mods": {
"type": "object",
"additionalProperties": false,
"properties": {
"game_id": {
"type": "integer",
"description": "NexusMods game id."
},
"mod_id": {
"type": "integer",
"description": "NexusMods mod id."
}
},
"description": "NexusMods game and mod identifiers."
},
"xbox_game": {
"type": "boolean",
"description": "Whether this is an Xbox Game Pass game."
},
"microsoft_store_id": {
"type": [
"string",
"null"
],
"description": "Microsoft Store product ID if applicable."
},
"architecture": {
"type": "array",
"items": {
"type": "string",
"enum": [
"x86",
"x64",
"arm64"
]
},
"uniqueItems": true,
"default": ["x86", "x64"],
"description": "Target architectures for compilation (x86=32bit, x64=64bit, arm64=ARM 64-bit)."
},
"platform": {
"type": "string",
"description": "Platform hint (e.g., steam, gog)."
},
"detection": {
"type": "object",
"additionalProperties": false,
"properties": {
"default_install_paths": {
"type": "array",
"items": {
"type": "string"
},
"description": "Common install paths to probe for the game."
},
"probe_process_by_name": {
"type": "boolean",
"description": "Whether to probe running processes by name."
}
}
},
"installer": {
"type": "object",
"additionalProperties": false,
"properties": {
"requires_admin": {
"type": "boolean",
"description": "Whether installation requires elevation."
},
"backup": {
"type": "boolean",
"description": "Whether to back up existing targets before overwrite."
},
"targets": {
"type": "array",
"description": "Files to deploy for this mod.",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"source",
"destination",
"mode"
],
"properties": {
"source": {
"type": "string",
"description": "Relative filename to deploy (built artifact)."
},
"destination": {
"type": "string",
"description": "Relative path inside the game folder to place the file."
},
"mode": {
"type": "string",
"enum": [
"copy",
"symlink",
"hardlink"
],
"description": "Deployment mode."
},
"hash": {
"type": "string",
"description": "Optional integrity hash (e.g., sha256)."
}
}
}
},
"conflicts": {
"type": "array",
"description": "Filenames/patterns that conflict and should be removed or warned about.",
"items": {
"type": "string"
},
"uniqueItems": true
},
"optional_components": {
"type": "array",
"description": "Installer-selectable optional components.",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"id",
"label",
"files"
],
"properties": {
"id": {
"type": "string",
"description": "Stable identifier for the optional component."
},
"label": {
"type": "string",
"description": "Display name for the option."
},
"files": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"source",
"destination",
"mode"
],
"properties": {
"source": {
"type": "string"
},
"destination": {
"type": "string"
},
"mode": {
"type": "string",
"enum": [
"copy",
"symlink",
"hardlink"
]
},
"hash": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
}
}