Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: ngc0202 on May 02, 2010, 11:47:34 AM
-
ULX for some reason won't force people to download the addons in the 'force download' section.
-
I believe forcedownload is broken in the release version due to Gmod updates.
Also, make sure you're following the details here - http://forums.ulyssesmod.net/index.php/topic,3072.0.html
-
Are you using SVN? It's a bit different now.
-
@Megiddo Yes, I am using the SVN. What do you mean its different?
-
See the file data/ulx/downloads.txt for information on how to set downloads up. It was removed from the other config file (server.ini).
-
How do you do map specific forced downloads in the new system? I saw the map- and gamemode- but I don't understand how to use them.
-
Under your data/ulx folder, you'd create a /data/ulx/gamemodes folder, then place a <gamemode name>.txt file in that for each gamemode you want to control.
Within each gamemode file, you could set up forceddownloads or just about any ulx function you wanted (and even some non ulx commands)
The same for data/ulx/maps/<each_map_file_you_want_specific_different_than_normal>.txt
The code from ULX is below (no, you don't have to code the txt files, just posting below how I got the answer)
-- Per gamemode config
if file.Exists( "ulx/gamemodes/" .. gamemode_name .. "/" .. filename ) then
fn( "ulx/gamemodes/" .. gamemode_name .. "/" .. filename )
end
-- Per map config
if file.Exists( "ulx/maps/" .. map_name .. "/" .. filename ) then
fn( "ulx/maps/" .. map_name .. "/" .. filename )
end
end
-
Ahh! Thank you so much JamminR for clearing that up. Should also consider putting that info in the SVN downloads.txt file so people can know how to be more in depth with it.
-
We probably will. Will probably add in the folder names and example.txt files too.
Consdering the SVN config system was just completely moved over the past few days, we just haven't gotten there yet.
-
JamminR, sorry to contradict you but the file system works under data/maps/<map_name>/<config_name> or data/gamemodes/<gamemode_name>/<config_name>, where config names are config.txt (the equivalent to server.ini), gimps.txt, adverts.txt, downloads.txt, and votemaps.txt.
That brings up an issue... all the configs currently add to another as it goes down. Config.txt ends up with the most specific configuration since it's changing variables, but the others are all adding new stuff to the old. This makes sense for downloads.txt and maybe adverts.txt, but not a whole lot of sense for gimps.txt, and votemaps.txt. Maybe those last two should wipe the slate clean with each more specific config it comes to?
-
No worries Megiddo. That's not so much a contradiction as a correction. Being that it's so 'new', I just hadn't learned yet.
Since I'd not tested my theory, I didn't give 100% accurate information.
As for the whole slew of configuration files, wouldn't specifying commands in the config.txt overwrite previous ones already?
I could see instances where I'd want the slate clean so to speak, but most of the time, to keep things 'clean' in my mind, I'd rather just have the sub-specific game or map folders have less commands in them to keep track of what I'm doing/changing.
I guess it is a design decision that needs to be considered.
Possible way.. instead of having slate cleared, which MAY not be wanted by the user, make a clear command that can be run before other commands.
That idea mostly works with gimps, but, could be used for downloads/adverts too. As for the normal configs, I'd leave as is...just have the 'default' config items change only if specifed in the <sub_folder>/<map or gamemode> configs file.
-
Sorry for epic late response, I got really busy and forgot all about gmod. Anyway, I know perfectly well how to use the downloads, I've put the downloads in, but the models don't download!
-
Show us your file
-
Which file? The downloads file?
// You can add forced downloads here. Add as many as you want, one file or
// folder per line. You can also add these to your map- or game-specific files.
// You can add a folder to add all files inside that folder recursively.
// Any line starting with '//' is a comment and WILL NOT be processed!!!
// Examples:
//sound/cheeseman.mp3 <-- Adds the file 'cheeseman.mp3' under the sound folder
//sound/my_music <-- Adds all files within the my_music folder, inside the sound folder
/addons
-
You're trying to make them download all your addons? That's never going to work. What you pasted isn't even valid in SVN! We're using a different form of commenting now.
-
Oh? Then what should I do instead? I'll fix the /addons thing later, I just got lazy lol.
-
Oh? Then what should I do instead? I'll fix the /addons thing later, I just got lazy lol.
You can't add anything under addons like that (should add that to the instructions). If you have addons/mysoundpack/sound/cool.mp3, add sound/cool.mp3 instead.
-
It loaded all the files under Addons -- It took about 10 minutes!
-
And even though our FAQ regarding forced downloads is out of date regarding SVN, we specifically mention in it and several other forum posts around here... "addons" is NOT the proper folder to use to force downloads. I'm reasonably sure that hasn't changed.