|
| 13 Dec 2012 08:45 PM |
I would like to request that scripts may be loaded from a file and synced with that file so as to facilitate external editors or version control systems...
Of course, the sync would be lost between sessions, but I can live with that. |
|
|
| Report Abuse |
|
|
|
| 13 Dec 2012 08:46 PM |
Support. Because, this sounds awesome. Awesome things deserve support. |
|
|
| Report Abuse |
|
|
mew903
|
  |
| Joined: 03 Aug 2008 |
| Total Posts: 22071 |
|
|
| 13 Dec 2012 08:46 PM |
| So, kind of like a git for roblox? Sounds neat. |
|
|
| Report Abuse |
|
|
|
| 13 Dec 2012 08:48 PM |
I like using MoonScript, but I don't want to compile my scripts in-game(would take too long/be more insecure). I have moonc set to watch mode and it builds each revision I make, but I still have to paste the output into a script and re-run it.
Time wasted == Robux lost |
|
|
| Report Abuse |
|
|
stravant
|
  |
 |
| Joined: 22 Oct 2007 |
| Total Posts: 2893 |
|
|
| 13 Dec 2012 11:21 PM |
Quite complicated to implement.
What happens when you edit both, and then save one? It would have to have full merge capabilities to deal with that, which most people wouldn't really understand or be able to deal with. |
|
|
| Report Abuse |
|
|
TeamDman
|
  |
| Joined: 04 Dec 2009 |
| Total Posts: 897 |
|
|
| 14 Dec 2012 06:17 AM |
Could we have loadfile? :D
§TeamDman§ Anti-Jared |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2012 05:47 PM |
@strav
The one in studio is locked to prevent modification. In scenarios such as mine, the file is being generated dynamically, and editing it within studio would cause complications. |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2012 07:26 PM |
I have an idea of how this could be done:
1. Have a program constantly check the filesize of a file 2. When a change is detected, copy the contents of that file into the correct position of the place's XML file 3. Repeat
That way any changes you make to the script will be instantaneously replicated to the place file without even needing Studio to be open.
Of course the problem with this is that you can't make changes within Studio, and you have to reload the place every time you want to see a change.
Oh well.
--- This message brought to you by the numbers 1 and 0. |
|
|
| Report Abuse |
|
|
|
| 14 Dec 2012 08:22 PM |
local syncServ = game:GetService("FileSyncService") local sync = syncServ:NewSync([[C:\Users\MagiSun\Documents\Lua Scripts\Gricapita\Server.lua]], Workspace.ServerScript) sync.FileChanged:connect(function(name) -- Define re-run qualities end) sync.Error:connect(function(error) print("There was an error:", error) end)
sync:Synchronize() wait(5) sync:Cancel()
==--==
Woo, sync plugin |
|
|
| Report Abuse |
|
|