• Problems with FASTDL
    7 replies, posted
Well, I know this question is rather dumb and old, but can you guys give me an instruction about forcing people download model/material use fast dl ? It's really easy to force people down the map, because it was auto-downloaded... But well, it's a hella of problem finding the right way to make them down the model/material. I have tried most of the resources generator, and most of them gave me a bad result: With Kogitsune resources generator: Nothing was downloaded, expect the map. (Yay, autodownload !) With Fox resources generator: It does force people download thingy, but still, people have to redownload everything again when they get out the server. (and most of the model is just a big-evil-red-error) So, well, this is my resource.lua file. If you guys found any problem, please help me out ! [url]http://pastebin.com/MzrBveCW[/url] Thanks first.
[QUOTE=minhmap512;31839257]Well, I know this question is rather dumb and old, but can you guys give me an instruction about forcing people download model/material use fast dl ? It's really easy to force people down the map, because it was auto-downloaded... But well, it's a hella of problem finding the right way to make them down the model/material. I have tried most of the resources generator, and most of them gave me a bad result: With Kogitsune resources generator: Nothing was downloaded, expect the map. (Yay, autodownload !) With Fox resources generator: It does force people download thingy, but still, people have to redownload everything again when they get out the server. (and most of the model is just a big-evil-red-error) So, well, this is my resource.lua file. If you guys found any problem, please help me out ! [url]http://pastebin.com/MzrBveCW[/url] Thanks first.[/QUOTE] It sounds like Fox's generator worked, but your FastDL is set up wrong. What generated that resource.lua file?
Kogitsune one. And I have changed it a little bit.
Well, you added more files than you should, err, the generator did. For models you just add the .mdl, for materials just the .vmt and it automatically adds the rest. However, I do not think this is the problem, I do think its from your FastDL not being setup. Also, could you upload that generator, I googled it but the link's broke and it would be really useful. :v:
Huh ? Both of them can be download here: Kogitsune: [url]http://www.facepunch.com/threads/842886-Resource-File-Generator[/url] Fox: [url]http://www.wiremod.com/forum/off-topic/18560-fox-warriors-resources-generator.html[/url] Anyway, i will check it again. Maybe it's the problem.
Okay, thanks for the help. It's minhmap859.
The steps I tell you to do may not be necessary but it is how I got it working. The generator has a leading slash, I removed this slash. Example of a good resources.lua file, taken from my file: [lua] resource.AddSingleFile( "sound/ambulance_siren.mp3" ) resource.AddSingleFile( "sound/beepbeep1.wav" ) resource.AddSingleFile( "sound/buzzerhorn.wav" ) resource.AddSingleFile( "sound/dixie Horn.wav" ) resource.AddSingleFile( "sound/firetruck_horn.mp3" ) resource.AddSingleFile( "sound/firetruck_siren.mp3" ) resource.AddSingleFile( "sound/lambohorn.wav" ) resource.AddSingleFile( "sound/siren_long.mp3" ) resource.AddSingleFile( "sound/siren_short.mp3" ) [/lua] If you decide to bz2 compress everything, be sure NOT to include .bz2 in the filename. The files mentioned above are actually bz2 compressed but having .mp3.bz2 for example will break the resources file, even though the actual physical filename is .mp3.bz2. This is what confused me and broke my resources file all along. So... mp3.bz2 would be .mp3... We should never see .bz2 in the resources file. After generating my resource file. I always use CTRL+H (in notepad) and replace all occurances of .bz2 with nothing (getting rid of .bz2) and replace "/ with " (getting rid of the trailing slash). The downloadurl has no trailing slash, just keep an eye out for the slashes. Good Example: [lua] sv_downloadurl "http://website.com/garrysmod" [/lua] I hope this helps you :D. Edit: I have made some changes to your resources file: [url]http://pastebin.com/SC86M3Ye[/url] My resources file actually has a AddSingleFile, but this should work for you. NutNuts is also right. If you add all of the files for each model, use AddSingleFile instead. AddFile automatically adds any associated files with MDL files for example. Edit: Your file looks like it should be using AddSingleFile instead of AddFile. V2 of your resources file: [url]http://pastebin.com/Yqzk5PQ5[/url] I hope this helps.
Sorry, you need to Log In to post a reply to this thread.