You can use this application to synchronize all your addon resources and all maps to your FastDL directory. All files will be compressed with BZip2.
[B]This will only work if your gmod- and webserver are on the same machine. There is no support for FTP.[/B]
[B]Requirements[/B]
- 7Zip
- .NET Core Runtime 2.0 ([URL="https://www.microsoft.com/net/download/core#/runtime"]Windows[/URL] / [URL="https://www.microsoft.com/net/core#linuxubuntu"]Linux[/URL])
[B]Usage[/B]
Execute the following command to run the application:
[CODE]dotnet GmodResourceSync.dll <PathToGmod> <PathToFastDL> <PathTo7Zip> [<Force>][/CODE]
Examples:
[CODE]
Windows:
dotnet GmodResourceSync.dll "C:\servers\ttt-01\garrysmod" "C:\www\fastdownload" "C:\Program Files\7-Zip\7z.exe"
dotnet GmodResourceSync.dll "C:\servers\ttt-01\garrysmod" "C:\www\fastdownload" "C:\Program Files\7-Zip\7z.exe" force
Linux:
dotnet GmodResourceSync.dll "/servers/ttt-01/garrysmod" "/www/fastdownload" "7z"
dotnet GmodResourceSync.dll "/servers/ttt-01/garrysmod" "/www/fastdownload" "7z" force
[/CODE]
Adding "force" will force to sync and compress all resources again, even if they already exist in the FastDownload directory.
The application will crash if something is wrong.
[B]Supported directories[/B]
[CODE]
garrysmod/addons/.../materials
garrysmod/addons/.../models
garrysmod/addons/.../resource
garrysmod/addons/.../sound
garrysmod/addons/.../particles
garrysmod/addons/.../maps
garrysmod/maps/*.bsp
garrysmod/maps/graphs/*.ain
[/CODE]
[B]Download[/B]
GitHub: [URL="https://github.com/ibot3/GmodResourceSync"]https://github.com/ibot3/GmodResourceSync[/URL]
You might want to post the source so people trust it more.
[QUOTE=xbeastguyx;52720063]You might want to post the source so people trust it more.[/QUOTE]
I uploaded the source code to GitHub.
The application files can be found here:
[URL="https://github.com/ibot3/GmodResourceSync/tree/master/GmodResourceSync/bin/Release/netcoreapp2.0"]https://github.com/ibot3/GmodResourceSync/tree/master/GmodResourceSync/bin/Release/netcoreapp2.0[/URL]
[QUOTE=ibot3;52720163]I uploaded the source code to GitHub.
The application files can be found here:
[URL="https://github.com/ibot3/GmodResourceSync/tree/master/GmodResourceSync/bin/Release/netcoreapp2.0"]https://github.com/ibot3/GmodResourceSync/tree/master/GmodResourceSync/bin/Release/netcoreapp2.0[/URL][/QUOTE]
He meant the DLL.
[QUOTE=txike;52720241]He meant the DLL.[/QUOTE]
You can compile the DLL with Visual Studio and the given source code.
[QUOTE=xbeastguyx;52720063]You might want to post the source so people trust it more.[/QUOTE]
For future reference if you find a .Net app you don't trust use this.
[URL="https://github.com/0xd4d/dnSpy"]https://github.com/0xd4d/dnSpy[/URL]
Sorry, you need to Log In to post a reply to this thread.