AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   TF2 Steamcmd Server FastDL Tutorial!!! (https://forums.alliedmods.net/showthread.php?t=214276)

Wazman 04-25-2013 03:03

TF2 Steamcmd Server FastDL Tutorial!!!
 
Yeah, I figured out a little method to distribute my custom sounds and models through fastdownload on the server.

Here's a little guide.
STEP 1.
Enter into your /tf directory, and create directories for "sound" and "models"

STEP 2.
Upload all your custom sounds and models to the directories like you would normally on the old TF2 server format.

STEP 3.
Enter the folder in the /tf directory named "downloadlists"

STEP 4.
Create a .lst file and name it the sound or model's title.
FOR EXAMPLE:
Let's say you have goomba sounds. After you upload the files to the "sound" directory, go to the "downloadlists" directory and make a .lst file for each goomba sound.
now you have
rebound.lst and
stomp.lst

STEP 5.
Now edit each file and write down inside them where to find the rebound and stomp sounds.
FOR EXAMPLE:
Inside the rebound.lst file, make it look like this.
PHP Code:

"sound/goomba/rebound.wav" 

This tells the server where to load the sound files for users.

STEP 6.
The final step is to upload .bzp2 files of the sounds or models on to your webhost. Users will be able to download them now.

BTW
You do not need to make .lst files for maps, just upload the map in the "map" directory, upload the .bzp2 file to your webhost, and the server will automatically make the .lst file for the map.

DONE
This method I figured out works for me, i'm now able to download all custom sounds and models. If you're having any issues with downloads not working, please comment bellow!

Bacardi 04-25-2013 04:28

Re: TF2 Steamcmd Server FastDL Tutorial!!!
 
so this
...downloadlists/map_name.lst
works same way as


*edit
interesting, some one, try make a file
...downloadlists/all.lst
and add your content there.
Will it work every map ? I haven't tested.

Wazman 04-25-2013 07:09

Re: TF2 Steamcmd Server FastDL Tutorial!!!
 
Quote:

Originally Posted by Bacardi (Post 1939485)
so this
...downloadlists/map_name.lst
works same way as


*edit
interesting, some one, try make a file
...downloadlists/all.lst
and add your content there.
Will it work every map ? I haven't tested.

Hmm, you know what, I have a little test I wanna try with your threory.
Like, for multiple files to download.
Make a .lst called funmodels.lst
Edit the file, add the directory of all the custom models like this.
PHP Code:

"models/custom/mario"
"models/custom/bug"
"models/custom/Block_Man" 

And then see if all the files will download.
I'm sleepy though, i'll try it later lol.

Bacardi 04-25-2013 09:12

Re: TF2 Steamcmd Server FastDL Tutorial!!!
 
Ok, what I have tested, this (tutorial) not going to work. (for me at least).

First for all, my pure guess about all.lst file not work.
Secondly, *.lst files start work when that same named map is loaded, like *.res files.
Thirdly, *.lst files get overwriten everytime when server load that same named map.

ugh! I have spoken

friagram 04-25-2013 13:24

Re: TF2 Steamcmd Server FastDL Tutorial!!!
 
I can get vpks to load... providing they are signed by the RSA key i generate, but when I try to push to download table, the client appears to download them, got it to download to their tf/download folder, but the the server crashes when the client connects... Don't know if the clients can read/if the engine mounts files int he download folder that are vpk.

Edit: the server crashes when referencing data from custom vpks as well. What a mess. Even if i don't add them to download table, it crashes when i try to use the data in the vpks.

files will normally download download to their downloads folder.

xConrex 01-07-2015 16:56

Re: TF2 Steamcmd Server FastDL Tutorial!!!
 
Sorry for the bump;

Does this also work in CSGO?
I'm having issues clients not being able to download everything.

If not, is there an alternative like this?

Powerlord 01-07-2015 17:31

Re: TF2 Steamcmd Server FastDL Tutorial!!!
 
Quote:

Originally Posted by xConrex (Post 2246195)
Sorry for the bump;

Does this also work in CSGO?
I'm having issues clients not being able to download everything.

If not, is there an alternative like this?

Honestly, the plugin that uses the file should just add the file to the downloads list.

There's at least one plugin to do this if a plugin doesn't add the files itself.

Nosaj 07-25-2015 17:46

Re: TF2 Steamcmd Server FastDL Tutorial!!!
 
Quote:

Originally Posted by Wazman (Post 1939454)
Yeah, I figured out a little method to distribute my custom sounds and models through fastdownload on the server.

Here's a little guide.
STEP 1.
Enter into your /tf directory, and create directories for "sound" and "models"

STEP 2.
Upload all your custom sounds and models to the directories like you would normally on the old TF2 server format.

STEP 3.
Enter the folder in the /tf directory named "downloadlists"

STEP 4.
Create a .lst file and name it the sound or model's title.
FOR EXAMPLE:
Let's say you have goomba sounds. After you upload the files to the "sound" directory, go to the "downloadlists" directory and make a .lst file for each goomba sound.
now you have
rebound.lst and
stomp.lst

STEP 5.
Now edit each file and write down inside them where to find the rebound and stomp sounds.
FOR EXAMPLE:
Inside the rebound.lst file, make it look like this.
PHP Code:

"sound/goomba/rebound.wav" 

This tells the server where to load the sound files for users.

STEP 6.
The final step is to upload .bzp2 files of the sounds or models on to your webhost. Users will be able to download them now.

BTW
You do not need to make .lst files for maps, just upload the map in the "map" directory, upload the .bzp2 file to your webhost, and the server will automatically make the .lst file for the map.

DONE
This method I figured out works for me, i'm now able to download all custom sounds and models. If you're having any issues with downloads not working, please comment bellow!

What are good webhosts that work and are free?

Potato Uno 07-25-2015 19:23

Re: TF2 Steamcmd Server FastDL Tutorial!!!
 
Install Apache and you can run it on the same box as your current server (assuming you are allowed to - I did this).

Akuba 07-26-2015 08:23

Re: TF2 Steamcmd Server FastDL Tutorial!!!
 
Quote:

Originally Posted by Potato Uno (Post 2324432)
Install Apache and you can run it on the same box as your current server.

I think that depence on your hostserver. Some servers might getting lagspikes when clients download content. I prefer using nginx for fastdownload servers. Atleast on my server nginx is using less memory than apache does. But this is probably differend on other servers, maybe it even depends on the os.


All times are GMT -4. The time now is 13:57.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.