Script sync plugin

Roblox script sync

![](upload://kcuXzngzClSzDEijk82bAdQgz4g.png)

Why such plugin?


I know there are plenty of coders out there, who would rather use some other code editor instead of roblox studio built-in one(I just can’t live without vim keybindings). But I had hard time finding a proper plugin that would sync up local lua files with roblox studio, so I ended up making my own plugin.

Features:


  • Syncs changes done to local lua files with ROBLOX studio

  • Supports complex script hierarchy

  • Allows syncing multiple script locations

Usage:


Set up local folder by using the included “Project” folder as base, and create new folder for first script sync location. Any Lua file put inside it, will get synced. By default, all Lua files are interpreted as ModuleScripts. To change script type, on the first line of file have line like this:

-- ClassName: Script

Replace “Script” with “LocalScript” for local scripts. Creating new folders will also create folders within studio. To parent scripts to each other, create a folder with same name as the parent script.
Example for placing “Hello.lua” in “Parent.lua”:

Parent.lua Parent -- Hello.lua

To run the sync server(very bare php server), execute the “run.bat” file.

To use plugin itself, first enable HTTP requests for your place. After that, set the sync locations by pressing the set sync location button. It should display all the script locations from local folder. Select desired location in roblox object tree, and hit set button. Once you’ve set all locations, activate script sync button. You should see your script files appear, and they will continue updating as long as you have sync turned on and the php server is open.

Note: If you have already ran the sync for this project previously and the files does not appear, you will need to hit the resync all button, which will force load all scripts.

Download:


It’s a link to dropbox directory, with previews for all packaged files.

Other similar projects:


Once I had finished this plugin, someone messaged me that they had already done something very similar. The biggest difference is that his plugin only supports one script location. If you don’t feel like using my plugin, or don’t like my ugly, one night code, then make sure to check it out:

Latest updates:


  • Made “.git” directory to be ignored [17.02.2016]

  • Fixed location GUI for editing already existing locations [15.02.2015]

9 Likes

Wait so…

on my game I have two save files. Each of the maps are kept separate since the players are teleported to separate places. Both place file have EXACTLY the same code.

Is it possible to have me edit one script in one place file, and it changes it in the other place file?

In your case it could actually work. It wouldn’t work too well at updating both automatically, but you could have sync turned on for one place and once you are done coding it, you can open the other place and use the “Resync all” option. So you would still need to open the other place, but you wouldn’t have to copy all the code yourself.

Reason why you can’t have automatic sync for both places at same time, is because the php code will cache the already updated files, so it wouldn’t have to send all scripts every time it updated.

What great timing! I was actually planning to write something just like this last night, but now I don’t need to. I’ll give it a try later. ^^

Very cool, @badcc and I made something like this a while back, it’s awesome for using external code editors.

I’ll check yours out!

1 Like

Might be a bit late here, but this plugin is really awesome! I just recently got into using Sublime Text (which is awesome btw) instead of the standard Roblox editor. Might well be that I will use this with Git as well instead of just Google Drive.

1 Like