Tabletop Simulator

Tabletop Simulator

View Stats:
The Luggage Apr 10, 2020 @ 3:40am
Easy cameras for TTS
So, I've been playing a lot of TTS and I wished there were an easier way of using the cameras. I use them a lot, but ctrl-1/2/3 etc isn't the easiest way to bring up a new camera. The newest build of TTS seems to have provided an answer. I've adapted some code found on one of the developers sites (which works for Spectator cams) and now I have a solution, or one that suits me, at any rate.

Here's what you need to do:

1) Create a file in Documents\My Games\Tabletop Simulator - call it Autoexec.cfg. You can do that by creating a Notepad file and changing the .txt extension to .cfg

2) Copy and paste this into the file (without the quotes):

"# make right shift cycle through first 6 camera positions
alias next_camera add camera_load_zero 1 6
alias prev_camera add camera_load_zero -1 6
bind right_shift next_camera
bind alt+right_shift prev_camera

# make some buttons to load specific camera positions
ui_button 1 600 0 camera_load 1
ui_button 2 600 -30 camera_load 2
ui_button 3 600 -60 camera_load 3
ui_button 4 600 -90 camera_load 4
ui_button 5 600 -120 camera_load 5
ui_button 6 600 -150 camera_load 6"

3) Save the file. That's basically it.

4) Now run TTS. Choose a game. You should see 6 small buttons onscreen. Use Shift-1/2/3 etc to set cameras and voila, your 6 buttons will move you via a left-click to the specified camera.

5) As a bonus, Right Shift will cycle through the cams (I think you need to set all 6 for this).


I hope someone else finds this as handy as me.
< >
Showing 1-6 of 6 comments
Hikaru Jun 4, 2020 @ 4:07pm 
Thank you! I'd spent probably the better part of an hour messing with my steam controller in an attempt to get the camera states mapped to a single button only to find that it won't register pressing shift and a number as the input to snap to a camera state unless shift has been held for some fraction of a second before the number key is pressed, making it a whole lot harder to reduce the action down to taking a single input like it should to begin with. Glad to have the camera states set up in such a way that they're worth using!
kurt622 Jan 12 @ 7:44am 
For some reason this will not work on my PC. Any ideas why? I made sure to follow the instructions carefully; correct spelling, location of file, etc. Works for my friends. FYI, my TTS is on D: and the MyDocuments folder is on C: if that matters.
@Kurt622 - are you using Documents on C:, or My Documents? I honestly don't know what the difference is, but on my PC there are 2 entries, and it's the Documents one you want. Beyond that, all I can think is to recheck all the spelling/formatting - make sure e.g. that the "" are removed from my text block, and give it another go. Hope it works. Paul
kurt622 Jan 29 @ 12:56pm 
Originally posted by The Luggage:
@Kurt622 - are you using Documents on C:, or My Documents? I honestly don't know what the difference is, but on my PC there are 2 entries, and it's the Documents one you want. Beyond that, all I can think is to recheck all the spelling/formatting - make sure e.g. that the "" are removed from my text block, and give it another go. Hope it works. Paul

Well, this is embarrassing. I wasn't saving as "all files" so it was saving as a default text file instead of a config file (even though it was named .cfg). Problem easily solved, heh.
Last edited by kurt622; Jan 29 @ 12:56pm
Methba Feb 6 @ 2:11am 
Just wanted to say a BIG thank you for this. I am using it all the time for our Star Wars RPG group and Agricola
I placed the camera buttons along the bottom of the screen:
(This is the Agricola version)
ui_button WHITE -400 -500 camera_load 1
ui_button PURPLE -300 -500 camera_load 2
ui_button ORANGE -200 -500 camera_load 3
ui_button YELLOW -100 -500 camera_load 4
ui_button GREEN 0 -500 camera_load 5
ui_button BLUE 100 -500 camera_load 6
ui_button MAIN_BOARD 200 -500 camera_load 7
ui_button MAJORS 300 -500 camera_load 8
ui_button RESOURCES 400 -500 camera_load 9
ui_button SPACE BAR 500 -500 camera_load 0

Now I just have to figure out how to change the labels "on-the-fly". At present I have to make a copy of the current autoexec.cfg then edit the current file every time I want different button labels.
Methba Feb 6 @ 2:17am 
ALSO NOTE: Pre-saved cameras are NOT shared with any player who joins AFTER the game has loaded. This is a feature of TTS NOT this autoexec.cfg script!
Our Star Wars RPG table has quite a lot of objects and takes some time to load for players with lower spec PCs. Therefore we meet and choose player colour on a simplified table before loading the main game table.
< >
Showing 1-6 of 6 comments
Per page: 15 30 50

Date Posted: Apr 10, 2020 @ 3:40am
Posts: 6