Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » Resource Manager
Resource Manager [message #475177] Tue, 25 September 2012 09:50 Go to next message
trunkskgb is currently offline  trunkskgb
Messages: 214
Registered: September 2003
Karma: 0
Recruit
Why is it, that if I have a map in my data folder, lets say "C&C Mars", and I join a server hosting that map, the resource manager STILL downloads the map?

Are server owners now editing ALL these fan maps that's been released over the years, negating the fact that I took time to download it myself and install it? (I have not downloaded maps in awhile as I have them on another hard drive).

If this is the case, then this REALLY sucks because despite my fast connection, some servers only upload it to me very slow.

The resource manager tool is wonderful, but if server owners are not editing ALL these maps, well hell, there's got to be now like a bunch of different versions of these maps out there now.

Sad


My Renegade Maps
C&C Backstab || Rigdeline_b8 || C&C Halloween 2014 || Iron City (LE design) || Christmas Map (drafting)
Re: Resource Manager [message #475178 is a reply to message #475177] Tue, 25 September 2012 10:01 Go to previous messageGo to next message
Ethenal is currently offline  Ethenal
Messages: 2532
Registered: January 2007
Location: US of A
Karma: 0
General (2 Stars)

Not to hijack your topic, but great job on the resource manager! I joined a modified C&C_Tutorial while it was changing to the next map, and it began downloading Tutorial and then switched to C&C_Joipa when it changed the map without a hitch.

This is a very good question, though. I've been wondering that myself.

Either way, keep up the good work! Big Ups


-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29

Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade Thumbs Up

Re: Resource Manager [message #475189 is a reply to message #475177] Tue, 25 September 2012 15:23 Go to previous messageGo to next message
trunkskgb is currently offline  trunkskgb
Messages: 214
Registered: September 2003
Karma: 0
Recruit
Thank you for mentioning that Ethenal, that's a nice feature as well. Also, any map that it begins to download, if it gets disconnected or something happens, it will pickup right where it left off, just like a torrent file.

I also have another question. If it has to download a map in order for you too join, how come it doesn't keep downloading after each map ends, and the next begins?


My Renegade Maps
C&C Backstab || Rigdeline_b8 || C&C Halloween 2014 || Iron City (LE design) || Christmas Map (drafting)
Re: Resource Manager [message #475191 is a reply to message #475177] Tue, 25 September 2012 16:01 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)

While I'm not 100% sure on the technical implementation of the resource manager, I am fairly confident that it downloads the next map while playing.

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: Resource Manager [message #475197 is a reply to message #475191] Tue, 25 September 2012 17:55 Go to previous messageGo to next message
trunkskgb is currently offline  trunkskgb
Messages: 214
Registered: September 2003
Karma: 0
Recruit
Hmm, could that possibly slow down your connection in-game? Add to the lag?

My Renegade Maps
C&C Backstab || Rigdeline_b8 || C&C Halloween 2014 || Iron City (LE design) || Christmas Map (drafting)
Re: Resource Manager [message #475240 is a reply to message #475177] Wed, 26 September 2012 13:05 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)

The way it's currently implemented, the files are downloaded separately instead of as a single .mix. Downloaded files are stored in the TT filesystem (TTFS) with some metadata to determine which files belong to which packages (the .tpi files in the TTFS). Therefore, having a .mix with the same files is not identical to having the files and metadata in the TTFS. There are various reasons why it was implemented this way:

- .mix archives often contain the same files. For example, almost every map has the same version of scripts.dll (or one of the few versions of custom scripts.dll). I found that for the ubermappack, iirc, about 85% of the space was wasted by duplication. In the TTFS, there are no duplicate files, which makes it smaller and reduces the amount of data to be downloaded for new packages.
- Multiple variants of the same map (with the same name) could not be stored and referenced properly using .mix files. This could for example let one server install a cheat-modified map on your client, and then your client would use it on other servers.
- There were several problems loading and unloading .mix archives dynamically, so we either had to fix .mix packages or come up with something new (TTFS).

Note that, initially, we wanted to store downloaded files in a virtual filesystem for efficient access, and we wanted to make stand-alone packages that would be easy to download and install. In fact, we wanted to provide some kind of "store" in the launcher, where you would be able to list and download maps.


As for lag caused by downloading: it will not really decrease the server to client data stream, but it can make it less reliable (packets not arriving, causing latency) if your connection is exhausted. The download should theoretically automatically throttle back in that case, although I have never carefully studied this.


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

[Updated on: Wed, 26 September 2012 13:09]

Report message to a moderator

Re: Resource Manager [message #475269 is a reply to message #475177] Thu, 27 September 2012 07:28 Go to previous message
trunkskgb is currently offline  trunkskgb
Messages: 214
Registered: September 2003
Karma: 0
Recruit
Ah,thanks Stealth. Always a boatload of information.

My Renegade Maps
C&C Backstab || Rigdeline_b8 || C&C Halloween 2014 || Iron City (LE design) || Christmas Map (drafting)
Previous Topic: rc1 client problem.
Next Topic: ref hop
Goto Forum:
  


Current Time: Sat Dec 07 20:28:24 MST 2024

Total time taken to generate the page: 0.00735 seconds