Garry's Mod and WebSync

Post Reply
BaconMan
New to forums
New to forums
Posts: 3
Joined: Mon Jul 18, 2011 3:46 pm

Garry's Mod and WebSync

Post by BaconMan » Mon Jul 18, 2011 3:55 pm

Garry's Mod sadly makes a new cache file every time a single Lua file is changed for clients to download. When a game update is applied to the server most of the time a client lua file is changed and the server requires another websync. Making the server sometimes sit with 'Lua Cache could not be downloaded' errors because me or any other owner hasn't realized the update. I was wondering if it is possible to make it automatically websync after a game update is applied or just a websync for the cache folder only? It would be very helpful.

Now if possible it would be cool if you could just websync the cache folder after every map load. This would help the gameserver owners who change lua files a lot when players are still on. :3

User avatar
TimeX
Staff
Staff
Posts: 1390
Joined: Thu Jul 22, 2004 12:24 am
Location: Big Bear, CA

Re: Garry's Mod and WebSync

Post by TimeX » Mon Jul 18, 2011 4:06 pm

A web sync only copies over files that have changed or were added, so running one for just a cache file update would be just as fast as running one that only checks one folder.

Making it automatically sync after every server restart or map change may introduce new problems, so I am not sure how possible that would be. Perhaps John will be able to provide more detail.
TimeX

User avatar
Edge100x
Founder
Founder
Posts: 12238
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Garry's Mod and WebSync

Post by Edge100x » Mon Jul 18, 2011 4:15 pm

This is something that I do plan to implement.

BaconMan
New to forums
New to forums
Posts: 3
Joined: Mon Jul 18, 2011 3:46 pm

Re: Garry's Mod and WebSync

Post by BaconMan » Mon Jul 18, 2011 4:15 pm

I just don't see other providers seeing a performance lost when they do "Automatic FastDL" which makes sure all the files are updated on every map load.

BaconMan
New to forums
New to forums
Posts: 3
Joined: Mon Jul 18, 2011 3:46 pm

Re: Garry's Mod and WebSync

Post by BaconMan » Mon Jul 18, 2011 4:16 pm

Edge100x wrote:This is something that I do plan to implement.
Sounds good. :3

User avatar
Edge100x
Founder
Founder
Posts: 12238
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Garry's Mod and WebSync

Post by Edge100x » Mon Jul 18, 2011 4:28 pm

BaconMan wrote:I just don't see other providers seeing a performance lost when they do "Automatic FastDL" which makes sure all the files are updated on every map load.
Most other providers run webservers alongside the game servers, on the same machine. This makes syncs fairly cheap, but it also has performance and security implications, so we use a different system.

User avatar
Edge100x
Founder
Founder
Posts: 12238
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Garry's Mod and WebSync

Post by Edge100x » Mon Jul 18, 2011 6:25 pm

It looks like this is already implemented here, actually.

Post Reply