generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Feature Request: Filesystem Sync

Previous Thread :: Next Thread 
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
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
AbsoluteLOL is not online. AbsoluteLOL
Joined: 01 Dec 2012
Total Posts: 3939
13 Dec 2012 08:46 PM
Support.
Because, this sounds awesome. Awesome things deserve support.
Report Abuse
mew903 is not online. 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
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
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 is not online. stravant
Forum Moderator
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 is not online. TeamDman
Joined: 04 Dec 2009
Total Posts: 897
14 Dec 2012 06:17 AM
Could we have loadfile? :D

§TeamDman§ Anti-Jared
Report Abuse
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
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
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
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
popinman322 is not online. popinman322
Joined: 04 Mar 2009
Total Posts: 5184
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image