File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -374,6 +374,16 @@ def Developer_ValidateVersionDataJSON(modList):
374
374
"DEVELOPER ERROR: versionData.json is missing the game/submod pair: {}" .format (subModID ))
375
375
continue
376
376
377
+ # Check for duplicate ids in versionData.json
378
+ dup_ids_check = set ()
379
+ for file in subMod .files + subMod .fileOverrides :
380
+ if file .id in dup_ids_check :
381
+ failureStrings .append (
382
+ "DEVELOPER ERROR: In versionData.json, [{}] is has duplicate id [{}]" .format (
383
+ subModID , file .id ))
384
+ else :
385
+ dup_ids_check .add (file .id )
386
+
377
387
# Check each file in the submod exists in the versionData.json
378
388
for file in subMod .files + subMod .fileOverrides :
379
389
# Items with file.url = None are not downloaded/installed, so skip them
You can’t perform that action at this time.
0 commit comments