You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-11Lines changed: 19 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,42 +3,50 @@ This golang library is intended to be able to convert source-controllable config
3
3
and luascript into a functioning json file that can be loaded into TTS as a
4
4
workshop mod.
5
5
6
+
# Getting the binary
7
+
8
+
The binary is built by slsa-framework/slsa-github-generator and can be found attached to the latest release, for example: https://github.com/argonui/TTSModManager/releases/tag/v0.2.4/TTSModManager.exe for windows. In the examples i'll refer to the exe, but you can use the TTSModManager-Liunux with the same expected behavior.
9
+
6
10
# Example Usage
7
11
## Generate json from a directory
8
12
$moddir = directory to read from
9
13
10
-
$config/output.json = file to output to
11
14
```
12
-
go run main.go --moddir="C:\Users\USER\Documents\Projects\MyProject"
The finished json file is found in $moddir/output.json by default. if you'd like
19
+
to specify the output file you can use the `modfile` argument.
20
+
15
21
## Generate a directory from existing json file
16
-
$config = directory to write to
22
+
$moddir = directory to write to
23
+
$modfile = existing tts mod file to read from
17
24
18
-
$ttsmodfile = existing tts mod file to read from
19
25
```
20
-
go run main.go --reverse --moddir="C:\Users\USER\Documents\Projects\MyProject" --modfile="C:\Users\USER\Documents\My Games\Tabletop Simulator\Mods\Workshop\existingMod.json"
If you'd like the bundled lua requirements to be written to the `src/` folder, pass `--writesrc`.
30
+
23
31
## Testing a TTS mod conversion
24
32
### reverse existing modfile into directory
25
33
$ttsmodfile = existing tts mod file to read from
26
34
27
35
$moddir = directory to write to
28
36
```
29
-
go run main.go --reverse --moddir="C:\Users\USER\Documents\Projects\MyProject" --modfile="C:\Users\USER\Documents\My Games\Tabletop Simulator\Mods\Workshop\existingMod.json"
### compare the original modfile with new generated modfile
39
-
$ttsmodfile = original tts mod file
46
+
## Running a local copy
47
+
48
+
If you are developing a feature and would like to run the tool, use this instead of `TTSModManager.exe`
40
49
41
-
$altmodfile = new generated modfile to compare to
42
50
```
43
-
go test . --modfile="C:\Users\USER\Documents\My Games\Tabletop Simulator\Mods\Workshop\existingMod.json" --altmodfile="C:\Users\USER\Documents\Projects\MyProject\output.json"
0 commit comments