Hello! My fastdl on my server not work. Here's my server.cfg:
[CODE]sv_downloadurl "http://dunkinrp.fr/fastdl"
sv_allowdownload 1
sv_allowupload 1[/CODE]
Here's my lua/autorun/server/fastdl.lua
[CODE]if ( SERVER ) then
resource.AddFile( "materials/BITMINER/BitMinerHeavy_Mat.vmt" )
resource.AddFile( "materials/BITMINER/BitMinerHeavy_Mat.vtf" )
resource.AddFile( "materials/BITMINER/BitMinerMedium.vmt" )
resource.AddFile( "materials/BITMINER/BitMinerMedium.vtf" )
resource.AddFile( "materials/BITMINER/BitMiner_1_Mat.vmt" )
resource.AddFile( "materials/BITMINER/BitMiner_1_Mat.vtf" )
resource.AddFile( "models/BITMINER/BitMinerHeavy.mdl" )
resource.AddFile( "models/BITMINER/BitMinerLight.mdl" )
resource.AddFile( "models/BITMINER/BitMinerMedium.mdl" )
end[/CODE]
And my web hosting the fastdl [url]http://dunkinrp.fr/fastdl[/url].
When I'm joining my server I'm not downloading any models so I see an ERROR for the skin of the bitminer.
INFO: I'm on a dedicated server (VPS)
[B]Thanks for help![/B]
(Sorry my bad english I'm french)
Are the files being downloaded when you join the server?
YES (every time you join the server) > Your FastDL server setup is wrong
NO > Your resource.AddFile set up is wrong.
This to do:
1) Add .bz2 variants of the files to your FastDL for compression
2) Post console log after joining the server ( all of it )
3) Name your like something more unique than a generic "fastdl.lua", which can very well be overridden by one of your addons or something.
4) GENERIC Lua DEBUGGING TUTORIAL: Put print("test") into various parts of your code to see what actually is being executed and what is not.
[QUOTE]1) Add .bz2 variants of the files to your FastDL for compression[/QUOTE]
Like that for example? [IMG]http://puu.sh/mbtyP/25efda4e45.png[/IMG]
[QUOTE]2) Post console log after joining the server ( all of it )[/QUOTE]
[CODE]Player ↖ ☰lectrizZ ↗ Dunkin has connected to the server.
Client "↖ ☰lectrizZ ↗ Dunkin" connected (XXXXXXXXXXXXX IP).
Attempted to create unknown entity type fists!
NULL Ent in GiveNamedItem!
Player John has spawned in the server.
[/CODE]
[QUOTE]3) Name your like something more unique than a generic "fastdl.lua", which can very well be overridden by one of your addons or something.[/QUOTE]
[IMG]http://puu.sh/mbtxg/31aa127b2f.png[/IMG]
[QUOTE]4) GENERIC Lua DEBUGGING TUTORIAL: Put print("test") into various parts of your code to see what actually is being executed and what is not. [/QUOTE]
Like that? [CODE]if ( SERVER ) then
resource.AddFile( "materials/BITMINER/BitMinerHeavy_Mat.vmt" ) print("test1")
resource.AddFile( "materials/BITMINER/BitMinerHeavy_Mat.vtf" ) print("test2")
resource.AddFile( "materials/BITMINER/BitMinerMedium.vmt" ) print("test3")
resource.AddFile( "materials/BITMINER/BitMinerMedium.vtf" ) print("test4")
resource.AddFile( "materials/BITMINER/BitMiner_1_Mat.vmt" ) print("test5")
resource.AddFile( "materials/BITMINER/BitMiner_1_Mat.vtf" ) print("test6")
resource.AddFile( "models/BITMINER/BitMinerHeavy.mdl" ) print("test7")
resource.AddFile( "models/BITMINER/BitMinerLight.mdl" ) print("test8")
resource.AddFile( "models/BITMINER/BitMinerMedium.mdl" ) print("test9")
end[/CODE]
Sorry, you need to Log In to post a reply to this thread.