This repo is for development of the KT Map Base Table steam workshop mod
- Subscribe to the workshop item
- Open Tabletop simulator
- Create a multiplayer game and select "KT Map Base Table"
- Invite a friend and play
- Select desired branch from current dev branches
- Download
2574389665.json
and2574389665.png
- Save files to
%HOMEPATH%\Documents\My Games\Tabletop Simulator\Saves
- Open TTS and load save game called "KT Map Base Table"
- Install git if not already installed
- Open a Command Prompt
%HOMEDRIVE% cd %HOMEPATH%\Documents\My Games\Tabletop Simulator\Saves
- Clone this repository:
git clone [email protected]:feuerfritas/kt-map-base-table.git
- Open Tabletop Simulator
- Create a new game
- Load save game in kt-map-base-table folder
- Install atom and tabletop simulator plugin. See this guide
- Once installed tabletop-simulator-plugin lookup path
File->Settings ->filter by writing tabletop-simulator-lua on the package search bar ->Settings ->Base path for files you wish to bundle or #include write C:\Users\Feuer\Documents\My Games\Tabletop Simulator\Saves\KT Map Base Table replacing "Feuer" with your username
- We are almost there! now add the repo to atom by doing:
File->Add project folder %HOMEPATH%\Documents\My Games\Tabletop Simulator\Saves\kt-map-base-table
- Last Step!
Packages->Tabletop Simulator->Get Lua Scripts
- Happy Coding!
- Ideally we don't want to have the big savefile blob here.
- We need somewhere else to store it
- It seemed easier to go this way instead of adding more repos and making dev setup harder.
- We might have to do it if savefile becomes larger than github's limit (100Mb?)
- Maybe switch dev environment to vscode
- Github is sunsetting Atom Editor
- There seems to be a tabletop simulator plugin for vscode here
- Not official yet
- Image generation uses json data from killteamjson project
- Requires gimp development version to support markup in text: https://www.gimp.org/downloads/devel/
Commands doc here: https://github.com/Berserk-Games/Tabletop-Simulator-Console-Commands/blob/main/Commands.md
exec chat_tab_game; chat_copy
rewind_interval
defines how often onSave
will be called for each object. Given that JSON.encode
is pretty slow for large objects, the default setting of 10
might make the game lag quite a lot. I recommend setting it to something closer to the autosave interval.
rewind_interval 150
Move camera around and save current view with with CTRL+1
spectator_screen 1
spectator_camera_load 1
spectator_show_ui 1
highlight guid [duration] [color]
Extract player rolls from save game (requires jq tool)
cat TS_Save_13231.json | jq -r '.ObjectStates[] | select (.GUID == "bafa93") | .LuaScriptState ' 2>&1 | grep -Ev '^$' | jq 'select(.type == "roll") | select(.player=="Feuerfritas") | .rolls[]'
cat TS_Save_13250.json | jq -r '.ObjectStates[] | select(.GUID == "bafa93") | .LuaScriptState' | jq -r '. | select(.type == "scoring") | .score' | jq -cs '.[]' | tail -n 1 | jq .
- Structured kill team data (ploys, tac ops, etc) killteamjson
cat compendium.json | jq '.[].killteams[] | select(.killteamname == "Pathfinders") | .ploys[][] | {name: .ployname, description: .description}' | jq -s .
"Full screen" (https://skfb.ly/6TO9E) by ChesterGames is licensed under Creative Commons Attribution (http://creativecommons.org/licenses/by/4.0/).