Skip to content

Commit

Permalink
Let the rules directory of the engine be used
Browse files Browse the repository at this point in the history
  • Loading branch information
MyNameIsTrez committed Aug 18, 2024
1 parent 4e6d1b6 commit f3ff99e
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 1,188 deletions.
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/zig-out/bin/cc-legacy-mod-converter",
"args": [],
"args": ["../Cortex-Command-Mod-Converter-Engine/rules"],
"cwd": "${workspaceFolder}",
"console": "integratedTerminal",
"preLaunchTask": "Build mod converter"
}
]
}
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ See the [releases page](https://github.com/cortex-command-community/Cortex-Comma

## Conversion rules

This line from `rules/ini_copy_of_rules.json`:
This line from the [Cortex Command Mod Converter Engine](https://github.com/MyNameIsTrez/Cortex-Command-Mod-Converter-Engine)'s' `rules/ini_copy_of_rules.json`:

`"Round M16": "Round Ronin M16",`

states that whenever `CopyOf = Round M16` is encountered by the converter, it should change it to `CopyOf = Round Ronin M16`.

This means you can make the converter "smarter" by adding more rules to the JSON files in the `rules/` directory.
The releases of this GUI program contain a copy of the engine's `rules` directory, which this GUI program uses. This means you can make the converter "smarter" by adding more rules to the JSON files in the `rules/` directory.

Look at the names of the JSON files (or check how they're used in the [Engine repository's src/main.zig](https://github.com/MyNameIsTrez/Cortex-Command-Mod-Converter-Engine/blob/master/src/main.zig)) to figure out how the converter uses each JSON file.

Expand Down
313 changes: 0 additions & 313 deletions rules/ini_copy_of_rules.json

This file was deleted.

Loading

0 comments on commit f3ff99e

Please sign in to comment.