Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: Chiller252 on December 19, 2012, 10:04:13 PM
-
Heyyyy, I'm a noob to gmod servers and earlier today I started my own gmod server for the first time ever. I set up all of ULX admin mod and wanted to force download/ fast download a bunch of addons. I heard from a friend/server owner that ULX has a force download feature built-in! so I quickly tried it with ME2Models (player models) to no avail. At first it was'nt downloading at all, then I fixed it and now it won't show up in GM13 player model menu. The contents of ME2Models was 4 different player models, separated into folders. I placed all 4 folders named: "garrus" "loki" "tali" and "legion" into garrysmod/models/player/. Then, in the Downloads.txt i wrote this...
models/player/garrus
models/player/legion
models/player/LOKI
models/player/tali
I did everything right in my mind and the models and files downloaded but still the player models were not available in the player model menu. And the download took like 5 minutes.
I tried the Downloads.txt file with a .mp3 like 7 times placing the .mp3 in garrysmod/sound and listing as sound/"name". I REALLY want to see an example of a working Download.txt and the file locations for player models, weapons and sounds... this took me like 4 hours just to come to no conclusion. I am angry and want answers now >:(
-love chiller
-
I don't know about any ULX force downloads type thing, but this can be done without ULX by creating a downloads.lua file in lua/autorun/server.
Mine looks like this:
function AddDir(dir) // recursively adds everything in a directory to be downloaded by client
local list = file.FindDir("../"..dir.."/*")
for _, fdir in pairs(list) do
if fdir != ".svn" then // don't spam people with useless .svn folders
AddDir(fdir)
end
end
for k,v in pairs(file.Find("../"..dir.."/*")) do
resource.AddFile(dir.."/"..v)
end
end
//MATERIALS
resource.AddFile( "materials/icons/ragMorphIco.vtf" )
AddDir("materials/vgui/entities")
//MODELS
AddDir("models/parachute")
AddDir("models/pyroteknix")
//SOUND
resource.AddFile( "sound/pyroteknix/skyrocket_explode.mp3" )
resource.AddFile( "sound/pyroteknix/skyrocket_launch.wav" )
For adding single files use "resource.AddFile" then link directly to the file.
For adding folders use "AddDir", then link to the dir, as seen in the example above.
On a side note, this is usually ran in conjunction with a "fastdl server".
Specified in server.cfg as
sv_downloadurl "http://YourDomain.com/Link/To/DownloadFolder"
Otherwise it will be extremely slow, or might not work at all.
-
ULX forced downloads is doing exactly what it's supposed to do -- it's downloading the models to the clients. Getting the models to show up on the player model menu is something else entirely; sounds like you may need a lua script to add them.
-
Hold up, there is a forced downloads in ULX??
What are the benefits of the ULX method vs. the standard method that I use?
-
Hold up, there is a forced downloads in ULX??
What are the benefits of the ULX method vs. the standard method that I use?
Not needing to know how to code mostly. :)
-
um... back on topic?
So you are saying that if i tried with player models that don't need lua scripts it would work?
and if I need lua scripts how would I go about doing that?
Basically I just want everybody to download 4 player models so that they are both on the server-side and all clients and are accessible by evetryone. I don't have nor want a fastdl domain (sounds complicated and I don't need a domain) That's all I want to know how to do.
-
bumpppppppppppppp
-
OH MY GOD I have tried to find the answer to this for about a year. I wanted my friend to add a player model to his server for me and he didn't know how to find this either so i tried to look. WHY is it sooo god <censor> hard to find someone who knows how to fix this so I can add one set of mother trucking models. the last time I asked, it was on FacePunch's forums and I was told to "shut the <censor> up." in the one of 2 places I only knew to find the answer, and youtube didn't have it. someone just please give me like a checklist or something to add a forcedownload to send a set of player models to all clients on my server I am hosting. I know you're out there, Lifepunch and DarkRP has this...
-EDIT: Ok, how the do I add anything? I tried to add stacker stool the same way that I installed WireMod and it didn't work... WHY are all my answers inconsistent?
-
I just found another post about how to do something similar but it is unclear...
http://forums.ulyssesmod.net/index.php/topic,3072.0.html
Insert the files you want people to download into a ULX config file (server.ini, per-map configs, per-gamemode configs).
the problem is idk what "a ULX config file" is.
and I don't have a server.ini
-
Thanks for pointing out that that post was outdated, Chiller. We have updated it.
As far as your question, as I said above, you are already getting the models to the clients (forced download). Adding the models to the client's options of player models is an entirely different question that is up to you to solve!
-
so you are saying that someone with no garry'smod server making experience should figure out on his own (on a site where information is given out) how to make models, that are correctly configured to download to all clients correctly, work?
-
This happened last year when I came to a site made for answering my question and was told to " off" when I asked my question.
-
You came to a forum about a specific product (Ulysses code/ULib/ULX)
You asked about getting ULX to force download.
-Krooks answered - (gave non-ULX code example that ULX already does through the downloads.txt)
-We answered - (Your ULX setup as shown in your post is already forcing the download)
You asked about having player models appear in your player model menu.
-We answered - (That is beyond ULX scope)
Gmod doesn't automatically add everything you force download your players to get to the appropriate places, you must have code that does that on it's own.
ULX is an admin mod, not a mod that cares about sounds/models/materials/all the items you can force download.
This community provided thought out answers to your questions.
Not once did we every say go 'Off'
It's no wonder with your current attitude that you may think we're saying that.
If you want help with code for adding items to models menu, then make a post in the developers corner. It's non-ULX specific.
We've answered your questions regarding ULX.
I can say this. Continue with the attitude, and I or my team with admin access to the forums might say just exactly that.
Live by your handle. "Chill". Don't be mad.