ULX

Author Topic: delete this thread  (Read 4276 times)

0 Members and 1 Guest are viewing this topic.

Offline Chiller252

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 3
  • On a Journey to Combine Technology and Design
    • Personal Website
delete this thread
« 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...
 
Quote
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
« Last Edit: December 22, 2012, 01:39:41 PM by Chiller252 »

Offline krooks

  • Sr. Member
  • ****
  • Posts: 382
  • Karma: 32
  • I don't like video games.
    • Diamond Krooks
Re: Downloads.txt not working?
« Reply #1 on: December 19, 2012, 11:52:03 PM »
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:

Code: [Select]
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
Code: [Select]
sv_downloadurl       "http://YourDomain.com/Link/To/DownloadFolder"Otherwise it will be extremely slow, or might not work at all.
My TTT server. Join the fun!

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Downloads.txt not working?
« Reply #2 on: December 20, 2012, 06:25:46 AM »
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.
Experiencing God's grace one day at a time.

Offline krooks

  • Sr. Member
  • ****
  • Posts: 382
  • Karma: 32
  • I don't like video games.
    • Diamond Krooks
Re: Downloads.txt not working?
« Reply #3 on: December 20, 2012, 09:11:10 AM »
Hold up, there is a forced downloads in ULX??
What are the benefits of the ULX method vs. the standard method that I use?
My TTT server. Join the fun!

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Downloads.txt not working?
« Reply #4 on: December 20, 2012, 09:34:50 AM »
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. :)
Experiencing God's grace one day at a time.

Offline Chiller252

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 3
  • On a Journey to Combine Technology and Design
    • Personal Website
Re: Downloads.txt not working?
« Reply #5 on: December 20, 2012, 11:58:18 AM »
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.

Offline Chiller252

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 3
  • On a Journey to Combine Technology and Design
    • Personal Website
Re: Downloads.txt not working?
« Reply #6 on: December 21, 2012, 07:39:33 PM »
bumpppppppppppppp

Offline Chiller252

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 3
  • On a Journey to Combine Technology and Design
    • Personal Website
Re: Downloads.txt not working?
« Reply #7 on: December 21, 2012, 08:10:38 PM »
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?
« Last Edit: December 21, 2012, 08:40:24 PM by Chiller252 »

Offline Chiller252

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 3
  • On a Journey to Combine Technology and Design
    • Personal Website
Re: HELP ME FORCE DOWNLOAD TO ALL CLIENTS!
« Reply #8 on: December 21, 2012, 09:02:03 PM »
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
Quote
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

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: HELP ME FORCE DOWNLOAD TO ALL CLIENTS!
« Reply #9 on: December 22, 2012, 05:44:31 AM »
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!
Experiencing God's grace one day at a time.

Offline Chiller252

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 3
  • On a Journey to Combine Technology and Design
    • Personal Website
Re: HELP ME FORCE DOWNLOAD TO ALL CLIENTS!
« Reply #10 on: December 22, 2012, 12:21:06 PM »
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?

Offline Chiller252

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 3
  • On a Journey to Combine Technology and Design
    • Personal Website
Re: HELP ME FORCE DOWNLOAD TO ALL CLIENTS!
« Reply #11 on: December 22, 2012, 12:22:32 PM »
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.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: HELP ME FORCE DOWNLOAD TO ALL CLIENTS!
« Reply #12 on: December 22, 2012, 12:40:36 PM »
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.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming