AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   Solved [HELP][CS:S] Fast download server (https://forums.alliedmods.net/showthread.php?t=334287)

axelnieves2012 09-12-2021 17:44

[HELP][CS:S] Fast download server
 
2 Attachment(s)
Hello, I need help with my fast download server.
Everytime I connect to my server, files seems to download, I can see progress bar.
I notice they download too quickly considerating their sizes.

After download complete, I connect to my server but I got files downloaded corrupt.
All of them sizes 1kb orr less.

I tried downloading manually using my web browser, and they are not corrupt on my fast-dl server;
they download ok using chrome.

I'm not sure how fast-dl servers works and all the steps I need to follow.
I set my server without knowing, but here I post exactly what I did:

My server.cfg
Spoiler


I compressed all file to bz2 format on my server, check them out. I don't know if I have to upload uncompressed files too. I also did it just to test and it did not made difference:
http://axelmod.great-site.net/cstrike/sound/quake/axel/

Above example was my sounds folders. I also tested /models/ folder and I got the same problem.

Finally, i've got cl_allowdownload 1 on my client.

I don't know if other people joining the server has this problems.
I would like to solve without bothering my friends, and trying to guessing what is wrong and searching thounsand forums.

P.D.: Is any way to check if fast-dl server is correctly set on sv_downloadurl ?

Screenshots:
Attachment 191349
Attachment 191352

Failed to load sound "quake\axel\headshot.wav", file probably missing from disk/repository


Thank you-

EDIT:
All file permisions on my fast-dl server are: 755

Added to server.cfg:
Code:

sv_allowdownload 1
sv_allowupload 1


Bacardi 09-17-2021 07:46

Re: [HELP][CS:S] Fast download server
 
- this is old fashion way upload custom files to clients, but this list work on each map.
...maps/de_dust2.res
Code:

"resourefiles"
{
        "sound/quake/axel/acomerla.wav"        "file"
        "sound/quake/axel/aguanta.wav"        "file"
        "sound/quake/axel/headshot.wav"        "file"
}


*Dam, this not work with sound files.

But there are SourceMod plugins which will help upload custom files easier.

- Another thing, I say you have bzip2 server files wrong. What I have tested.
When client own GAME try to unpack those your bzip2 files, it's corrupt 1KB size file. (Because in-game zip compressor is likely very old program)

*seems resource list not handle sound files perfectly.

So delete all bzip2 files from upload host. Use regular files for now.

Clients also need delete those files in they own game folder. Those already exist files can't be replace.
Or create new folder path to upload files again.

Austin 09-18-2021 15:06

Re: [HELP][CS:S] Fast download server
 
Bacardi is right.
CSGO / CSS is broken using .bz2 files with fast DL.
I think it been broken for like ten years no fix.

It does work but only with maps I think that are smaller than like 50 Megs.
I just got done reviewing and testing over 300 CSGO maps and had notes on the exact size that would still work with bz2+fast dl but I can’t find them. It was either maps with original size of 50 or 150 megs. Since this is very small maps it isn’t worth the effort to use bz2.

Your fast dl set up looks good
But I also have this setting on my server that is working with fast dl.
sv_allowdownload 1

1) Point to the root game folder on some web site that has a maps folder in it.
sv_downloadurl "http://axelmod.great-site.net/cstrike/"
Looks good and it works.

2) Test your web server to make sure it is allowing to download all files types needed for maps
I can’t test this for you since I don’t see any .bsp files in you maps folder.
You need to have the .bsp files in this maps folder on your web server and you have to be able to DL them in a web browser as a test to make sure it is all working.

3) I don’t see this in your server’s config. You need that.
sv_allowdownload 1

Put the bsp files in you maps folder on your server, test you can dl them in a browser, and add
sv_allowdownload 1
the and it should work.

My fast DL server currently has a map that is 747 Megs and it is DL just fast and fine in CSGO.

CryWolf 09-19-2021 02:22

Re: [HELP][CS:S] Fast download server
 
@Austin CSS , works just fine by 150mb map, i have this.

I can see only one problem your fastdl is out of response time, it responds verry hard, with a timeout - gateway sometimes , Source Engine is verry simple as client, you only have a few retryes before client time out.

Bacardi 09-19-2021 07:08

Re: [HELP][CS:S] Fast download server
 
Quote:

Originally Posted by Austin (Post 2758159)
...
CSGO / CSS is broken using .bz2 files with fast DL.
I think it been broken for like ten years no fix.
...

I just tell my experience, from few - five years ago.
It's not broken, people are using new modern zip compressor.
Wrong settings and then old hl2 games can't uncompress files anymore.

I managed bzip files to work with this (last time) bzip2-1.0.5
Binaries = http://gnuwin32.sourceforge.net/packages/bzip2.htm

axelnieves2012 09-20-2021 02:09

Re: [HELP][CS:S] Fast download server
 
Quote:

Originally Posted by CryWolf (Post 2758197)
@Austin CSS , works just fine by 150mb map, i have this.

I can see only one problem your fastdl is out of response time, it responds verry hard, with a timeout - gateway sometimes , Source Engine is verry simple as client, you only have a few retryes before client time out.

Thanks, you were right. I installed XAMPP on my PC and now files downlaod correctly

axelnieves2012 09-20-2021 02:11

Re: [HELP][CS:S] Fast download server
 
Quote:

Originally Posted by Bacardi (Post 2758208)
I just tell my experience, from few - five years ago.
It's not broken, people are using new modern zip compressor.
Wrong settings and then old hl2 games can't uncompress files anymore.

I managed bzip files to work with this (last time) bzip2-1.0.5
Binaries = http://gnuwin32.sourceforge.net/packages/bzip2.htm

Hello, my zip compressor was ok. As I told above, I tested files without compressing too.
I solved it installing an own web host. TYhanks

DarkDeviL 09-20-2021 06:32

Re: [HELP][CS:S] Fast download server
 
Quote:

Originally Posted by Austin (Post 2758159)
3) I don’t see this in your server’s config. You need that.
sv_allowdownload 1

Put the bsp files in you maps folder on your server, test you can dl them in a browser, and add
sv_allowdownload 1
the and it should work.

And here, Austin isn't really providing 100% true information either:

sv_allowdownload and sv_allowupload is only touching the downloads from/uploads to the game server directly, and as such, are completely useless when you have sv_downloadurl set up.


sv_downloadurl "https://some.example.invalid/cstrike/"
sv_allowdownload 0
sv_allowupload 0

is working just fine, when the sv_downloadurl you have set works perfectly (and have all the required content).

Austin 09-20-2021 15:52

Re: [HELP][CS:S] Fast download server
 
Bacardi,
Very interesting.
You have given me something to investigate to try to get large bz2 files working on CSGO fast DL.

I downloaded that version of bz2 and used the default compression.
Still no joy. CSGO errors out on the DL.

I read the docs and it seems the only compress options is the block size, which I think only affects memory used during compression but still compressing with block size -1 still doesn’t work.

I found my notes and bz2 files over 43,556K error out in CSGO during download from my fast DL web site.

The same files unzipped download just fine and even uncompressed files over 450,000K DL just fine.


CryWolf.
For CSS is your fast DL server working with bz2 files over 50MB zipped size?
Or are you saying bsp files over 50MB are working?

There seems to be no problem with size+uncompressed files,
but I may be fabricating a memory with CSS+>50MB+bz2 not working…

DarkDeviL,
thank you for this information.
I had that set to 1 for years on my servers and just tested and it definitely has nothing to do with DL or fast DL + maps.

Apparently there is a lot of dis-information out there.
Be careful who you follow including me!

https://totalcsgo.com/commands
sv_allowdownload [0 / 1] This command sets whether or not clients can download files from the server (e.g. map files). Default is 1 (allowed).

CryWolf 09-20-2021 16:30

Re: [HELP][CS:S] Fast download server
 
Bouth, since im not limited by Apache, only using Nginx as FastDL
Simple way to archive under linux bz2
Code:

apt-get install bzip2
and the with recursive and keep files
Code:

bzip2 * -k
Will archive all files at once in bz2 format and keep the original files, since server needs them.
I have 256mb map on CSS BZ2 witch downloads just fine,archive at 130mb without -f FORCE parameter.

sv_download 1/0 will allow you to download files from server itself doesn't affect FastDL, but in some cases, as i limited nginx not to allow .TXT files etc because server's itself and fastdl is on the same place, for hdd space, irestricted important files as .cfg / .txt / addons dir, i need to leave sv_download to 1 , to download small files from server, but in some cases if you fail to download files from fastdl and reconnect you will recive files from server "sv_download 1" if it is set to 0 (NULL) you will be disconnected and not allowed on the server so it's best on bouth cases to leave it to 1.


All times are GMT -4. The time now is 12:10.

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