Yes, my dedicated server has a fast download.
Not your typical, you have to upload everything to webspace kind of thing.
This one is an auto fastdl, that 1st time files are sent they are sent from server, and are then bziped, and placed on the provided fastdl webspace by the server provider.
however principle is "probably" the same on a fastdl that is user managed, move the materials and models out of the addons/Santa hat directory, to the garrysmod/ directory on both server and fastdl.
As i think (not too sure on this), that material, models, sounds, ect inside the addons/whatever folders never get sent correctly.
Yea then its def breaking when you use an alternative method of downloading files to users, ill quote that into the op.
I can't get the models and materials to download, I have it in addons and also have the models and materials in garrysmod/
I am really drawing a blank on the models not downloading, if I could get mine to not download I would be able to access the problem. I deleted my gmod folders and put the addon on my test server, which has the basics like phx and such and then goined and everything worked. I am really sorry guys, hopefully someone can come up with a reason and I can set it straight. :(
[url=http://naryan.ukgame.co.uk/gm_construct_flatgrass_v5-20000.jpg]Files are downloading ok, and hats are showing ok for me, while playing on dedicated server.[/url] (1680x1050 pic, sorry too tired and lazy to re-size it :P)
Although I have had a few people say they could not see the hats, but if they disconnected/crashed then re-connected they could see them ok.
*edit
Just noticed that, the hats do not always show up.
I joined the server on my main steam account 1st then joined with my other steam account not long after (was testing fixed ulx rocket).
I could not see the Santa hat on my other steam accounts "player", but looking at that screen I could see the Santa hat on my main accounts "player".
I took the models and materials out of addons and moved into their folders in garrysmod/ now it works.
But I have one problem, only some people have hats:
[img]http://www.cubeupload.com/files/257000untitled.jpg[/img]
:crying::crying::crying:
The error I posted was from the console.log: there was no other errors anywhere. The only thing I can think of is that it is conflicting with DarkRP because there are no errors on people's heads as if the entities were never created. The folders are in the addons directory and I am using sv_downloadurl.
[QUOTE='[ApS] Elf;18935309']The error I posted was from the console.log: there was no other errors anywhere. The only thing I can think of is that it is conflicting with DarkRP because there are no errors on people's heads as if the entities were never created. The folders are in the addons directory and I am using sv_downloadurl.[/QUOTE]
read the thread
Pretty neat looking
[QUOTE=CombineGuru;18935732]read the thread[/QUOTE]
I have read the thread and moving the files into models and materials has had no effect whatsoever. The santa hats aren't generated and show no errors.
Why are you calling resource.AddFile clientside?
Not sure, always worked for me so I just stuck with it.
Attempting to fix these one more time, if they don't work for others I will probly leave it at that since they work fine of my server, sorry guys.
[QUOTE=darklighte;18993516]Not sure, always worked for me so I just stuck with it.
Attempting to fix these one more time, if they don't work for others I will probly leave it at that since they work fine of my server, sorry guys.[/QUOTE]
What gamemode are you running?
[QUOTE=darklighte;18993516]Not sure, always worked for me so I just stuck with it.
Attempting to fix these one more time, if they don't work for others I will probly leave it at that since they work fine of my server, sorry guys.[/QUOTE]
[url]http://wiki.garrysmod.com/?title=Resource.AddFile[/url]
[img]http://wiki.garrysmod.com/images/9/9f/NewerServer.png[/img]
[QUOTE='[ApS] Elf;19008079']What gamemode are you running?[/QUOTE]
Running sandbox unmodified.
[QUOTE=|FlapJack|;19009082][url]http://wiki.garrysmod.com/?title=Resource.AddFile[/url][/QUOTE]
Yea deffinately going to switch to this, never really looked at it since it worked somehow for me in cl_init.
[QUOTE=darklighte;19014553]Running sandbox unmodified.
Yea deffinately going to switch to this, never really looked at it since it worked somehow for me in cl_init.[/QUOTE]
Probably because:
A) You were on a listen server, therefore the files didn't need to get sent
B) You batch add files via another script
Actually have been using it that way since I started, currently, need to change this, but right now on my server my cl_init in my addon is downloading quite a few silkicons and 3 custom models, there is nothing including cl_init or anything.
I see why it happened. Your current setup makes cl_init a shared file (And it's not running clientside on dedicated servers, but is on listen servers)
That explains why the models download, but nothing else works.
I had to do some small changes to get this working, and since Christmas is approaching I figured I'd share.
Now, I REALLY do suck at this type of thing. So my changes might be crap, laggy, fucked up, pile of shit, or just completely fucking stupid. But hey, the addon works now...
[URL]http://184.173.131.226/shat.rar[/URL]
Changes:
made cl_init.lua a shared file, not sure why... but it started working after that.
Made owners hat teleport to the owner upon spawning. For some reason if the hat isn't close to your body upon spawning it won't change it's position properly.
Added a loop to return hats to owners every 60 seconds, again for some reason great distances where messing it up.
-PS:
Yes, it's a bump. No point making a new thread for some crappy fixes on an old addon.
Thanks for the fix Pantho. It works fine here.
It's working fine on my server.
However I do see this in the HLSW console log.
[quote]
Lua Error: [addons\santa hat\lua\entities\santa\cl_init.lua:38] chunk has too many syntax levels
Lua Error: [addons\santa hat\lua\entities\santa\init.lua:1] ERROR PARSING CLIENTSIDE FILE: 'entities\santa/cl_init.lua'
Lua Error: [addons\santa hat\lua\entities\santa\cl_init.lua:38] chunk has too many syntax levels
Lua Error: [addons\santa hat\lua\entities\santa\init.lua:1] ERROR PARSING CLIENTSIDE FILE: 'entities\santa/cl_init.lua'
Lua Error: [addons\santa hat\lua\entities\santa\cl_init.lua:38] chunk has too many syntax levels
Lua Error: [addons\santa hat\lua\entities\santa\init.lua:1] ERROR PARSING CLIENTSIDE FILE: 'entities\santa/cl_init.lua'
Lua Error: [addons\santa hat\lua\entities\santa\init.lua:10] chunk has too many syntax levels[/quote]
Sorry, you need to Log In to post a reply to this thread.