• Garry's Mod FastDL Generator
    26 replies, posted
[IMG]http://i.imgur.com/0fmsSMs.jpg[/IMG] [B]Introduction[/B] So, I've recently been spending a couple of hours working on a tool which scans through the given directory and pulls out and compresses any files that Clients need to download from a server. Once this tool has finished its scan, it will optionally generate a resource.AddFile lua file which will save you a lot of time and secures that you have all your Client-side files flagged for Client-download. [B]Screenshots[/B] Preview: [IMG]http://i.imgur.com/DoC8qtD.jpg[/IMG] Complete Preview: [IMG]http://i.imgur.com/DfiBCUf.jpg[/IMG] Desktop Preview: [URL="http://i.imgur.com/5sPw2D6.jpg"](Linked to save screen-space)[/URL] Desktop Preview (With Folder Explorer): [URL="http://i.imgur.com/WRYFi14.jpg"](Linked to save screen-space)[/URL] [B]Changelog[/B] 11/09/14: Dramatically updated the VGUI - Switched from TKinter to PyQt - as well as fixed a few very minor bugs in the code 10/09/14: Initial Release [B]Todo List[/B] - Blacklist all default Garry's Mod files from being processed - DONE | [I]In some cases, .bz2 compression actually increase file-size. If this is the case, just copy over the original file[/I] - DONE | [I]Unpack .gma files and process them appropriately[/I] - Any other features people request [B]Download[/B] Download Here: [url]https://github.com/Braden1996/garrysmod-fastdl-generator[/url] (Not yet the most updated version!)
This is really cool! Thanks for making it!:rock:
Very nice! Is this just for Windows servers or will this also work for Linux?
Currently it's just Windows, but when I do my next update; I'll add support for Linux.
pictures?
Why are you required to turn your server off/on?
[QUOTE=Pantho;45940602]Why are you required to turn your server off/on?[/QUOTE] Maybe it's his way of saying restart it? That's what I'm guessing.
[QUOTE=Pantho;45940602]Why are you required to turn your server off/on?[/QUOTE] Because you have to restart your server whenever you add/remove a file. E.g. 'lua/autorun/fastdl_####.lua'. [editline]10th September 2014[/editline] [QUOTE=CoreBase;45940559]pictures?[/QUOTE] No real need for pictures, you just double-click on the executable and you get a popup request a directory. Then you get another one after that. I probably should redo the VGUI. Also, does anybody think it will be useful if I 'whitelisted' all the default 'garrysmod/garrysmod' files; in case you fancy scanning that directory and obviously don't want to worry about them as everybody already has them downloaded?
Nice! I always used a batch file.
[QUOTE=Braden1996;45940878]Because you have to restart your server whenever you add/remove a file. E.g. 'lua/autorun/fastdl_####.lua'.. [editline]10th September 2014[/editline] No real need for pictures, you just double-click on the executable and you get a popup request a directory. Then you get another one after that. I probably should redo the VGUI. Also, does anybody think it will be useful if I 'whitelisted' all the default 'garrysmod/garrysmod' files; in case you fancy scanning that directory and obviously don't want to worry about them as everybody already has them downloaded?[/QUOTE] You don't have to if it's in lua/autorun.
[QUOTE=CoreBase;45941391]You don't have to if it's in lua/autorun.[/QUOTE] Is that so? I've never noticed to be honest. Does this apply to 'addons/xyz/lua/autorun'?
Core you always restart just to be safe.
Thanks, I have been needing a tool like this because I was just using the workshop fastdl thing what is annoying and does not work sometimes.
[URL="http://www.wiremod.com/forum/off-topic/30810-fox-warriors-resources-generator-updated-gmod-13-a.html"]FoxWarriors resource generator[/URL] is a lot better than this, but nice job anyhow.
[QUOTE=kibble;45943450][URL="http://www.wiremod.com/forum/off-topic/30810-fox-warriors-resources-generator-updated-gmod-13-a.html"]FoxWarriors resource generator[/URL] is a lot better than this, but nice job anyhow.[/QUOTE] Are we going to follow up with evidence on that argument or just leave it at that?
[QUOTE=kibble;45943450][URL="http://www.wiremod.com/forum/off-topic/30810-fox-warriors-resources-generator-updated-gmod-13-a.html"]FoxWarriors resource generator[/URL] is a lot better than this, but nice job anyhow.[/QUOTE] These are pretty much completely different tools... However, my tool not only generates a resource file; but also compresses your files into a Garry's Mod acceptable format; allowing for quick downloads. [editline]11th September 2014[/editline] Guys, I've just completely recreated the GUI for this tool. Please let me know what you think :) I haven't uploaded the latest version to GitHub yet, but I will after I compile this for Windows & Linux and finish the todo list :)
Hey, I download this and it doesn't look like your screenshots. Here is what it looks like for me. How can I fix this? [IMG]http://s15.postimg.org/c8ndx77p6/Untitled_1.jpg height="1280 " width="720" [/IMG]
[QUOTE=Braden1996;45946227] Guys, I've just completely recreated the GUI for this tool. Please let me know what you think :) [/QUOTE] See this post.
Oh, lol. Sorry.
[QUOTE=UnderYouFive;45960576]Hey, I download this and it doesn't look like your screenshots. Here is what it looks like for me. How can I fix this? [IMG]http://s15.postimg.org/c8ndx77p6/Untitled_1.jpg height="1280 " width="720" [/IMG][/QUOTE] I've seen you post on the forums a lot lately and I gotta say a lot of the times when you post a problem you're having it can be solved by reading the whole post.
[QUOTE=Nookyava;45943036]Core you always restart just to be safe.[/QUOTE] No you don't, this isn't Gmod 12 where you had to manually update the cache after every change, and even then you didn't have to fully restart the server. Live changes will work find, but if you're really paranoid about it not taking effect, just change map
I also disagree on the fox front. People act like the wheel can't be reinvented and the wheel can't improve. [B][U]- Blacklist all default Garry's Mod files from being processed[/U][/B] Also how long till this feature is active, Really awesome project!
[QUOTE=Harbu;45977564]I also disagree on the fox front. People act like the wheel can't be reinvented and the wheel can't improve. [B][U]- Blacklist all default Garry's Mod files from being processed[/U][/B] Also how long till this feature is active, Really awesome project![/QUOTE] Well, that feature wouldn't be difficult at all to implement. However, I'll have to reinstall Garry's Mod; so I can scan my own directory and just blacklist all the files it picks up. If anybody wants to volunteer, hit me up on Steam!! Also, I've been having compiling the Python code. (So it's runnable without a bunch of shit installed) If you really want it now and you're 'reasonably' technically competent; message me on Steam and I'll guide your through setting up the non-compiled version.
Just make a exclude type thing by folder or filetype.
Could you add support for FTP? If you look at the program "SourceRSC" (what I currently use), it'll scan a local folder, compress it, and upload it directly to our FastDL Server via FTP. Also, could you add an option to determine the filesize for compression, so if a file is less than 1MB, it won't compress it. The reason for this is tests have shown that files under 1MB may actually take longer to download/extract due to BZ2 decompression rates. Thanks!
Why does the resource file generate 2 )) at the end ? i must remove 1? i guess? Example: resource.AddFile("sound\weapons\ex41\m3_pump.mp3")) resource.AddFile("sound\weapons\knife\knife_draw_x.mp3")) resource.AddFile("sound\weapons\m79\40mmthump.wav")) resource.AddFile("sound\weapons\m79\barrelup.mp3"))
[QUOTE=Braden1996;45978951]Well, that feature wouldn't be difficult at all to implement. However, I'll have to reinstall Garry's Mod; so I can scan my own directory and just blacklist all the files it picks up. If anybody wants to volunteer, hit me up on Steam!! Also, I've been having compiling the Python code. (So it's runnable without a bunch of shit installed) If you really want it now and you're 'reasonably' technically competent; message me on Steam and I'll guide your through setting up the non-compiled version.[/QUOTE] Can't you just use SteamCMD to download a copy of the GMod dedicated server and run a script to generate that blacklist?
Sorry, you need to Log In to post a reply to this thread.