ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Tabletop Simulator Lua

by rolandostar ST3

A plugin for Sublime Text to load and write Lua Scripts for Tabletop Simulator.

Details

  • 0.1.2
  • github.​com
  • 9 years ago
  • 1 hour ago
  • 9 years ago

Installs

  • Total 781
  • Win 597
  • Mac 99
  • Linux 85
Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14
Windows 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
01234Apr 28Apr 25Apr 22Apr 19Apr 16Apr 13Apr 10Apr 7Apr 4Apr 1Mar 29Mar 26Mar 23Mar 20Mar 17Mar 14Apr 28 Linux: 0 Mac: 0 Windows: 0Apr 27 Linux: 0 Mac: 0 Windows: 0Apr 26 Linux: 0 Mac: 0 Windows: 0Apr 25 Linux: 0 Mac: 0 Windows: 0Apr 24 Linux: 0 Mac: 0 Windows: 0Apr 23 Linux: 0 Mac: 0 Windows: 0Apr 22 Linux: 0 Mac: 0 Windows: 1Apr 21 Linux: 0 Mac: 0 Windows: 0Apr 20 Linux: 0 Mac: 0 Windows: 0Apr 19 Linux: 0 Mac: 0 Windows: 0Apr 18 Linux: 0 Mac: 0 Windows: 0Apr 17 Linux: 0 Mac: 0 Windows: 0Apr 16 Linux: 0 Mac: 0 Windows: 0Apr 15 Linux: 0 Mac: 0 Windows: 0Apr 14 Linux: 0 Mac: 0 Windows: 0Apr 13 Linux: 0 Mac: 0 Windows: 1Apr 12 Linux: 0 Mac: 0 Windows: 0Apr 11 Linux: 0 Mac: 0 Windows: 0Apr 10 Linux: 0 Mac: 0 Windows: 0Apr 9 Linux: 0 Mac: 0 Windows: 0Apr 8 Linux: 0 Mac: 0 Windows: 0Apr 7 Linux: 0 Mac: 0 Windows: 0Apr 6 Linux: 0 Mac: 0 Windows: 0Apr 5 Linux: 0 Mac: 0 Windows: 0Apr 4 Linux: 0 Mac: 1 Windows: 0Apr 3 Linux: 0 Mac: 0 Windows: 0Apr 2 Linux: 0 Mac: 0 Windows: 0Apr 1 Linux: 0 Mac: 0 Windows: 0Mar 31 Linux: 0 Mac: 0 Windows: 0Mar 30 Linux: 0 Mac: 0 Windows: 0Mar 29 Linux: 0 Mac: 0 Windows: 0Mar 28 Linux: 0 Mac: 0 Windows: 0Mar 27 Linux: 0 Mac: 0 Windows: 0Mar 26 Linux: 0 Mac: 0 Windows: 0Mar 25 Linux: 0 Mac: 0 Windows: 1Mar 24 Linux: 0 Mac: 0 Windows: 0Mar 23 Linux: 0 Mac: 0 Windows: 0Mar 22 Linux: 0 Mac: 0 Windows: 0Mar 21 Linux: 0 Mac: 0 Windows: 0Mar 20 Linux: 0 Mac: 0 Windows: 0Mar 19 Linux: 0 Mac: 0 Windows: 0Mar 18 Linux: 0 Mac: 0 Windows: 0Mar 17 Linux: 0 Mac: 0 Windows: 0Mar 16 Linux: 0 Mac: 0 Windows: 0Mar 15 Linux: 0 Mac: 0 Windows: 0Mar 14 Linux: 0 Mac: 0 Windows: 1Apr 28 Linux: 0 Mac: 0 Windows: 0Apr 27 Linux: 0 Mac: 0 Windows: 0Apr 26 Linux: 0 Mac: 0 Windows: 0Apr 25 Linux: 0 Mac: 0 Windows: 0Apr 24 Linux: 0 Mac: 0 Windows: 0Apr 23 Linux: 0 Mac: 0 Windows: 0Apr 22 Linux: 0 Mac: 0 Windows: 1Apr 21 Linux: 0 Mac: 0 Windows: 0Apr 20 Linux: 0 Mac: 0 Windows: 0Apr 19 Linux: 0 Mac: 0 Windows: 0Apr 18 Linux: 0 Mac: 0 Windows: 0Apr 17 Linux: 0 Mac: 0 Windows: 0Apr 16 Linux: 0 Mac: 0 Windows: 0Apr 15 Linux: 0 Mac: 0 Windows: 0Apr 14 Linux: 0 Mac: 0 Windows: 0Apr 13 Linux: 0 Mac: 0 Windows: 1Apr 12 Linux: 0 Mac: 0 Windows: 0Apr 11 Linux: 0 Mac: 0 Windows: 0Apr 10 Linux: 0 Mac: 0 Windows: 0Apr 9 Linux: 0 Mac: 0 Windows: 0Apr 8 Linux: 0 Mac: 0 Windows: 0Apr 7 Linux: 0 Mac: 0 Windows: 0Apr 6 Linux: 0 Mac: 0 Windows: 0Apr 5 Linux: 0 Mac: 0 Windows: 0Apr 4 Linux: 0 Mac: 1 Windows: 0Apr 3 Linux: 0 Mac: 0 Windows: 0Apr 2 Linux: 0 Mac: 0 Windows: 0Apr 1 Linux: 0 Mac: 0 Windows: 0Mar 31 Linux: 0 Mac: 0 Windows: 0Mar 30 Linux: 0 Mac: 0 Windows: 0Mar 29 Linux: 0 Mac: 0 Windows: 0Mar 28 Linux: 0 Mac: 0 Windows: 0Mar 27 Linux: 0 Mac: 0 Windows: 0Mar 26 Linux: 0 Mac: 0 Windows: 0Mar 25 Linux: 0 Mac: 0 Windows: 1Mar 24 Linux: 0 Mac: 0 Windows: 0Mar 23 Linux: 0 Mac: 0 Windows: 0Mar 22 Linux: 0 Mac: 0 Windows: 0Mar 21 Linux: 0 Mac: 0 Windows: 0Mar 20 Linux: 0 Mac: 0 Windows: 0Mar 19 Linux: 0 Mac: 0 Windows: 0Mar 18 Linux: 0 Mac: 0 Windows: 0Mar 17 Linux: 0 Mac: 0 Windows: 0Mar 16 Linux: 0 Mac: 0 Windows: 0Mar 15 Linux: 0 Mac: 0 Windows: 0Mar 14 Linux: 0 Mac: 0 Windows: 1Apr 28 Linux: 0 Mac: 0 Windows: 0Apr 27 Linux: 0 Mac: 0 Windows: 0Apr 26 Linux: 0 Mac: 0 Windows: 0Apr 25 Linux: 0 Mac: 0 Windows: 0Apr 24 Linux: 0 Mac: 0 Windows: 0Apr 23 Linux: 0 Mac: 0 Windows: 0Apr 22 Linux: 0 Mac: 0 Windows: 1Apr 21 Linux: 0 Mac: 0 Windows: 0Apr 20 Linux: 0 Mac: 0 Windows: 0Apr 19 Linux: 0 Mac: 0 Windows: 0Apr 18 Linux: 0 Mac: 0 Windows: 0Apr 17 Linux: 0 Mac: 0 Windows: 0Apr 16 Linux: 0 Mac: 0 Windows: 0Apr 15 Linux: 0 Mac: 0 Windows: 0Apr 14 Linux: 0 Mac: 0 Windows: 0Apr 13 Linux: 0 Mac: 0 Windows: 1Apr 12 Linux: 0 Mac: 0 Windows: 0Apr 11 Linux: 0 Mac: 0 Windows: 0Apr 10 Linux: 0 Mac: 0 Windows: 0Apr 9 Linux: 0 Mac: 0 Windows: 0Apr 8 Linux: 0 Mac: 0 Windows: 0Apr 7 Linux: 0 Mac: 0 Windows: 0Apr 6 Linux: 0 Mac: 0 Windows: 0Apr 5 Linux: 0 Mac: 0 Windows: 0Apr 4 Linux: 0 Mac: 1 Windows: 0Apr 3 Linux: 0 Mac: 0 Windows: 0Apr 2 Linux: 0 Mac: 0 Windows: 0Apr 1 Linux: 0 Mac: 0 Windows: 0Mar 31 Linux: 0 Mac: 0 Windows: 0Mar 30 Linux: 0 Mac: 0 Windows: 0Mar 29 Linux: 0 Mac: 0 Windows: 0Mar 28 Linux: 0 Mac: 0 Windows: 0Mar 27 Linux: 0 Mac: 0 Windows: 0Mar 26 Linux: 0 Mac: 0 Windows: 0Mar 25 Linux: 0 Mac: 0 Windows: 1Mar 24 Linux: 0 Mac: 0 Windows: 0Mar 23 Linux: 0 Mac: 0 Windows: 0Mar 22 Linux: 0 Mac: 0 Windows: 0Mar 21 Linux: 0 Mac: 0 Windows: 0Mar 20 Linux: 0 Mac: 0 Windows: 0Mar 19 Linux: 0 Mac: 0 Windows: 0Mar 18 Linux: 0 Mac: 0 Windows: 0Mar 17 Linux: 0 Mac: 0 Windows: 0Mar 16 Linux: 0 Mac: 0 Windows: 0Mar 15 Linux: 0 Mac: 0 Windows: 0Mar 14 Linux: 0 Mac: 0 Windows: 1

Readme

Source
raw.​githubusercontent.​com

Tabletop Simulator Lua Plugin for Sublime Text

A plugin for Sublime Text to load and write Lua Scripts for Tabletop Simulator.

Featured Theme is PlasticCodeWrap

Features

  1. Get Scripts
  2. Send Scripts

That's it. I'll work on stuff like console output and Get Scripts on reload and such but for now this simple plugin will do.

Quick Installation

You can install this plugin through Package Control

Step-By-Step:

  1. Install Package Control
  2. Press “Ctrl + Shift + P” to open the Command Palette
  3. Type “Install Package” and select “Package Control: Install Package”
  4. Search for “Tabletop Simulator Lua” and press enter
  5. [Optional] Search and install for “Folder2Project” v0.1.5 by divinites (You'll need to modify the config to use it)

Manual Installation

Download the latest release.

These files should be placed into the “TTSLuaPlugin” package directory. This can be found at:

C:\Users\[USERNAME]\AppData\Roaming\Sublime Text 3\Packages\TTSLuaPlugin

Create the folder if you can't find it. So that file structure is as follows:

..\Sublime Text 3\Packages\TTSLuaPlugin\TTSLuaPlugin.py

..\Sublime Text 3\Packages\TTSLuaPlugin\TTSLuaPlugin.sublime-settings

..\Sublime Text 3\Packages\TTSLuaPlugin\Main.sublime-menu

..\Sublime Text 3\Packages\TTSLuaPlugin\Context.sublime-menu

Etc...

How to Use

Once installed you should see a menu at the top labeled “Tabletop Simulator”

“Get Lua Scripts” (Ctrl + Alt + Space): This will open a connection with the game and request all scripts to be loaded into Sublime.

“Save and Play” (Ctrl + Alt + S): This will save and send all currently changed scripts to TTS.

You can check which scripts have changes in them if the “X” next to their filename on the tabs is a filled circle instead.

Which should revert to “X” once you use “Save and Play”

Configuration

The only configuration is to wether open all files on tabs or open the folder where all the files are stored.

You'll can find this file in (Preferences > Package Settings > Tabletop Simulator > Settings - Default)

{
    // When getting files from the game should they be opened as a project or individually?
    "open_as_project": 0

    // Changing this to 1 will try to use the plugin "Folder2Project" by divinites (Found in Package Control)
    // If the plugin is not found it'll pull the files from TTS but they won't be opened.

    // Files are stored in /Packages/Lua (Preferences > Browse Packages...)
}

To modify it you'll need to open a new config file (Preferences > Package Settings > Tabletop Simulator > Settings - User)

And change “open_as_project” to 1

{
    "open_as_project": 1
}

About

I created this project since Atom was crashing all the time for me, I have no prior knowledge of Python and was my first time using the Sublime Plugin API so please forgive this hacked up together plugin.

It was created in a day and copy-pasting whatever I found worked all around tutorial sites.

I will appreacciate any contributions and improvements that anyone can come up with.

Contact

You can find me on Steam and Reddit!