Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » TT downloader
TT downloader [message #442959] Wed, 19 January 2011 07:51 Go to next message
crysis992 is currently offline  crysis992
Messages: 314
Registered: June 2008
Karma: 0
Recruit

Hey,

so it is possible to auto download maps with the tt patch?
Now my question, some servers also my server run a custom sound pack, but the client need to download this pack to hear the sounds. Will it be possible that the tt patch also download the sounds?
Like you put wth.wav in the server data folder and the client download all .wav files before the map loads, like in Counterstrike Razz


,
crysis992
Re: TT downloader [message #442961 is a reply to message #442959] Wed, 19 January 2011 08:39 Go to previous messageGo to next message
Spyder
Messages: 1070
Registered: March 2006
Karma: 0
General (1 Star)
I don't think this will work with .wav files if every server starts publishing their custom sound packs like this. Files would have to be overwritten every time you join a server that is using the same filenames as your server is using.

I think it would be better if servers just used a .pkg or .dat archive holding all the files. Then the file will be renamed to, let's say a public key for that server. When a player wants to join the server, the server sends its public key to the client, which then loads all assets belonging to that specific server.

[Updated on: Wed, 19 January 2011 08:40]

Report message to a moderator

Re: TT downloader [message #442969 is a reply to message #442959] Wed, 19 January 2011 15:52 Go to previous messageGo to next message
GEORGE ZIMMER is currently offline  GEORGE ZIMMER
Messages: 2605
Registered: March 2006
Karma: 0
General (2 Stars)
A better idea is to just have one map in the rotation that contains all the sound files or something.

Toggle Spoiler
Re: TT downloader [message #442970 is a reply to message #442959] Wed, 19 January 2011 16:37 Go to previous messageGo to next message
Dover is currently offline  Dover
Messages: 2547
Registered: March 2006
Location: Monterey, California
Karma: 0
General (2 Stars)
"...like in Counterstrike"

Oh god no. I'd rather not have to wait an extra half hour to download a gigabyte in simpsons .wav files (Again. >:[) just because the server owner thinks he's funny.


DarkDemin wrote on Thu, 03 August 2006 19:19

Remember kids the internet is serious business.
Re: TT downloader [message #442975 is a reply to message #442959] Wed, 19 January 2011 17:11 Go to previous messageGo to next message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

Quote:

I think it would be better if servers just used a .pkg or .dat archive holding all the files. Then the file will be renamed to, let's say a public key for that server. When a player wants to join the server, the server sends its public key to the client, which then loads all assets belonging to that specific server.
Yes, it is possible and it works somewhat similar to that, just rather than a kind of server key it uses some kind of package files and corresponding identifiers; multiple servers can use the same package(s) if they want.

It's up to the server owner to decide what he thinks is funny, and it's up to the player to join a server that he thinks has a reasonable configuration. Wink


BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/
Re: TT downloader [message #442976 is a reply to message #442959] Wed, 19 January 2011 17:39 Go to previous messageGo to next message
GEORGE ZIMMER is currently offline  GEORGE ZIMMER
Messages: 2605
Registered: March 2006
Karma: 0
General (2 Stars)
Wait, is TT going to allow .pkg's to be downloaded? I thought you guys were going to make only .mix's downloadable.

Toggle Spoiler
Re: TT downloader [message #443022 is a reply to message #442959] Thu, 20 January 2011 16:10 Go to previous messageGo to next message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

Neither. It's something new, to avoid .mix files interfering with each other and to be a little more flexible in downloading.

BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/
Re: TT downloader [message #443025 is a reply to message #443022] Thu, 20 January 2011 19:09 Go to previous messageGo to next message
GEORGE ZIMMER is currently offline  GEORGE ZIMMER
Messages: 2605
Registered: March 2006
Karma: 0
General (2 Stars)
StealthEye wrote on Thu, 20 January 2011 17:10

Neither. It's something new, to avoid .mix files interfering with each other and to be a little more flexible in downloading.

Oh hey that's awesome.

So will .pkg mods and such still work?


Toggle Spoiler
Re: TT downloader [message #443037 is a reply to message #442959] Fri, 21 January 2011 05:29 Go to previous messageGo to next message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

Yes. Smile

BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/
Re: TT downloader [message #443550 is a reply to message #442959] Fri, 04 February 2011 17:58 Go to previous messageGo to next message
grant89uk is currently offline  grant89uk
Messages: 229
Registered: August 2006
Location: Glasgow, Scotland
Karma: 0
Recruit

Has the auto map downloader had any sort of stress test lol? Renegade lags already so much as it is nevermind having like 20 people downloading a map from the server at the same time possibly.
Re: TT downloader [message #443559 is a reply to message #442959] Sat, 05 February 2011 01:54 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
The maps are not downloaded from the server, they are downloaded from a URL, which could be hosted on a different machine to the server itself.

(As I understand it anyway, not really spent that much time setting it up)


http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Sat, 05 February 2011 01:54]

Report message to a moderator

Re: TT downloader [message #443564 is a reply to message #443559] Sat, 05 February 2011 04:27 Go to previous messageGo to next message
EvilWhiteDragon is currently offline  EvilWhiteDragon
Messages: 3751
Registered: October 2005
Location: The Netherlands
Karma: 0
General (3 Stars)

It should work with any webhost, so if say game-maps.net has the .mix or whatever uncompressed on their webserver, the game will download it. Either way, whether you download from the server or from a different server doesn't matter as it will need a separate process (like apache) to be made available, which means it will take none of the (singlethreaded) renegade thread.

http://www.blackintel.org/usr/evilwhitedragon/pointfix.gif
BlackIntel admin/founder/PR dude (not a coder)
Please visit http://www.blackintel.org/

V, V for Vendetta

People should not be afraid of their governments.
Governments should be afraid of their people.
Re: TT downloader [message #443598 is a reply to message #442959] Sun, 06 February 2011 00:39 Go to previous messageGo to next message
Goztow is currently offline  Goztow
Messages: 9737
Registered: March 2005
Location: Belgium
Karma: 13
General (5 Stars)
Goztoe
What if the url is down?

You can find me in The KOSs2 (TK2) discord while I'm playing. Feel free to come and say hi! TK2 discord
Re: TT downloader [message #443601 is a reply to message #442959] Sun, 06 February 2011 05:54 Go to previous messageGo to next message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

Then you won't be able to download the map and either have to play elsewhere or install the package manually.

BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/
Re: TT downloader [message #443604 is a reply to message #443601] Sun, 06 February 2011 09:17 Go to previous messageGo to next message
Spyder
Messages: 1070
Registered: March 2006
Karma: 0
General (1 Star)
StealthEye wrote on Sun, 06 February 2011 13:54

Then you won't be able to download the map and either have to play elsewhere or install the package manually.


Or you set up multiple mirror websites hosted by volunteers or communities...
Re: TT downloader [message #443625 is a reply to message #442959] Sun, 06 February 2011 17:25 Go to previous messageGo to next message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

For simplicity of implementation and configuration, that's not possible. There's only one location per server at which the client will look for packages. Although there's no direct support, there are still tricks to do it, for example it is possible to use HTTP redirects or whatever to get it to download from different locations if the actual HTTP server is not down. Or the server owner can (temporarily) change the repository URL to a different location.

BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/

[Updated on: Sun, 06 February 2011 17:25]

Report message to a moderator

Re: TT downloader [message #443626 is a reply to message #442959] Sun, 06 February 2011 17:29 Go to previous messageGo to next message
cAmpa is currently offline  cAmpa
Messages: 597
Registered: March 2006
Karma: 0
Colonel
Kinda the FastDL on CS?

Bückstabü!
Re: TT downloader [message #443639 is a reply to message #443625] Mon, 07 February 2011 03:28 Go to previous messageGo to next message
Spyder
Messages: 1070
Registered: March 2006
Karma: 0
General (1 Star)
I thought it wouldn't be too difficult to make one main server which holds a list with all mirrors. Then when the client requests a download from the server, it will connect to the main server, request the mirror list and check whether the requested mirror is up and running. If that's not the case, it will check the next mirror on the list.
Re: TT downloader [message #443646 is a reply to message #442959] Mon, 07 February 2011 07:48 Go to previous messageGo to next message
Goztow is currently offline  Goztow
Messages: 9737
Registered: March 2005
Location: Belgium
Karma: 13
General (5 Stars)
Goztoe
Until your main server gets DDOS'ed...

You can find me in The KOSs2 (TK2) discord while I'm playing. Feel free to come and say hi! TK2 discord
Re: TT downloader [message #443656 is a reply to message #442959] Mon, 07 February 2011 16:46 Go to previous messageGo to next message
Speedy059 is currently offline  Speedy059
Messages: 367
Registered: August 2003
Karma: 0
Commander
We wouldn't mind hosting this in our CDN, utilizing servers all over the world. 1 URL, and the client will be geo-routed to the closest server to them for the fastest download.

Someone specific can be granted access to the CDN to upload files for the renegade community to download from.

This kind of setup costs nearly $100,000 but I don't mind giving up some of the CDN for renegade downloads.


Oldest Renegade Repository (10yrs worth of maps!)
http://renegade.dmehosting.com/
Re: TT downloader [message #443665 is a reply to message #443656] Tue, 08 February 2011 01:37 Go to previous messageGo to next message
Spyder
Messages: 1070
Registered: March 2006
Karma: 0
General (1 Star)
Speedy059 wrote on Tue, 08 February 2011 00:46

We wouldn't mind hosting this in our CDN, utilizing servers all over the world. 1 URL, and the client will be geo-routed to the closest server to them for the fastest download.

Someone specific can be granted access to the CDN to upload files for the renegade community to download from.

This kind of setup costs nearly $100,000 but I don't mind giving up some of the CDN for renegade downloads.


That would be...EPIC! Big Ups
Re: TT downloader [message #443670 is a reply to message #443656] Tue, 08 February 2011 04:19 Go to previous messageGo to next message
EvilWhiteDragon is currently offline  EvilWhiteDragon
Messages: 3751
Registered: October 2005
Location: The Netherlands
Karma: 0
General (3 Stars)

Speedy059 wrote on Tue, 08 February 2011 00:46

We wouldn't mind hosting this in our CDN, utilizing servers all over the world. 1 URL, and the client will be geo-routed to the closest server to them for the fastest download.

Someone specific can be granted access to the CDN to upload files for the renegade community to download from.

This kind of setup costs nearly $100,000 but I don't mind giving up some of the CDN for renegade downloads.

Could however prove difficult with different files with the same name. Say NS wants EpicRenMap.mix on the server and Jelly wants EpicRenMap.mix on the server as well, but both changed tiny details without changing the name. Good luck with fixing that...


http://www.blackintel.org/usr/evilwhitedragon/pointfix.gif
BlackIntel admin/founder/PR dude (not a coder)
Please visit http://www.blackintel.org/

V, V for Vendetta

People should not be afraid of their governments.
Governments should be afraid of their people.
Re: TT downloader [message #443673 is a reply to message #442959] Tue, 08 February 2011 06:43 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Yes and for those servers they would have to host their own package server, but for servers which just want to run unmodified fanmaps or CP1 / CP2 maps then it would work great.

http://steamsignature.com/card/1/76561197975867233.png
Re: TT downloader [message #443680 is a reply to message #443673] Tue, 08 February 2011 07:33 Go to previous messageGo to next message
EvilWhiteDragon is currently offline  EvilWhiteDragon
Messages: 3751
Registered: October 2005
Location: The Netherlands
Karma: 0
General (3 Stars)

danpaul88 wrote on Tue, 08 February 2011 14:43

Yes and for those servers they would have to host their own package server, but for servers which just want to run unmodified fanmaps or CP1 / CP2 maps then it would work great.

True, but I'm saying is that while it's not bad to have such server network available, it's also a kind of overkill and it doesn't solve all difficulties.


http://www.blackintel.org/usr/evilwhitedragon/pointfix.gif
BlackIntel admin/founder/PR dude (not a coder)
Please visit http://www.blackintel.org/

V, V for Vendetta

People should not be afraid of their governments.
Governments should be afraid of their people.
Re: TT downloader [message #443684 is a reply to message #442959] Tue, 08 February 2011 09:29 Go to previous messageGo to previous message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

File names wouldn't be likely to cause problems, since files get stored based on file hashes.

A CDN would be cool. If it works transparently with HTTP it can be used easily.


BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/
Previous Topic: Suggestion/Question
Next Topic: Stuff that is incompatible with scripts 4.0
Goto Forum:
  


Current Time: Tue Nov 19 21:03:18 MST 2024

Total time taken to generate the page: 0.01293 seconds