Author Topic: Batch Scenery Compression  (Read 3057 times)

0 Members and 1 Guest are viewing this topic.

Offline ElephantHunter

  • Retired Administrator
  • Camper
  • *****
  • Posts: 431
  • Third President
    • - home of the admins -
Batch Scenery Compression
« on: October 01, 2008, 02:29:32 pm »
Since many custom maps (especially the CS maps) use tons of custom images, I'm suggesting that all of the needed images get compressed into a single file, transferred, then uncompressed. This would save time and bandwidth at the negligible expense of CPU and drive space.

Obviously if Soldat uncompressed directly into the Soldat folder, issues would arise (like overwriting default scenery and other files). Instead it should uncompress into a temporary folder then move the scenery files one at a time as it checks for such issues.

One more time:

  • Host sends map
  • Client asks for images
  • Host compresses, sends packed images
  • Client uncompresses packed images into temp folder
  • Client moves images to rightful places

« Last Edit: October 01, 2008, 03:15:54 pm by ElephantHunter »
Everything you have done in life is measured by the DASH on your gravestone.
Stop wasting time.
Make your dash count.

Offline LtKillroy

  • Flagrunner
  • ****
  • Posts: 779
  • Killroy was here
Re: Scenery/Texture Compression
« Reply #1 on: October 01, 2008, 02:54:43 pm »
Disclaimer: I know nothing of computers, If I am wrong just say so.
So would this process have to happen every time you join the game, or once you download it would it be saved?
L'audace, l'audace, toujours l'audace

Offline ElephantHunter

  • Retired Administrator
  • Camper
  • *****
  • Posts: 431
  • Third President
    • - home of the admins -
Re: Scenery/Texture Compression
« Reply #2 on: October 01, 2008, 03:13:48 pm »
Disclaimer: I know nothing of computers, If I am wrong just say so.
So would this process have to happen every time you join the game, or once you download it would it be saved?

Whenever you join a game that uses a map with custom scenery, Soldat must download that scenery. This only happens if you have never downloaded the map before. This download often takes a long time (sometimes minutes.) My suggestion would make the download much faster.
Everything you have done in life is measured by the DASH on your gravestone.
Stop wasting time.
Make your dash count.

Offline BombSki

  • Flagrunner
  • ****
  • Posts: 927
    • Climbing-soldiers.net
Re: Batch Scenery Compression
« Reply #3 on: October 01, 2008, 03:27:01 pm »
good idea, but enesce already said that the file transfers will be completely renewed

Offline ElephantHunter

  • Retired Administrator
  • Camper
  • *****
  • Posts: 431
  • Third President
    • - home of the admins -
Re: Batch Scenery Compression
« Reply #4 on: October 01, 2008, 03:35:07 pm »
good idea, but enesce already said that the file transfers will be completely renewed

How so?
Everything you have done in life is measured by the DASH on your gravestone.
Stop wasting time.
Make your dash count.

Offline BombSki

  • Flagrunner
  • ****
  • Posts: 927
    • Climbing-soldiers.net
Re: Batch Scenery Compression
« Reply #5 on: October 01, 2008, 05:20:54 pm »
Quote
- Added completely new File Downloading code

http://forums.soldat.pl/index.php?topic=25949.0

edit: ok i hadnt seen the screenie under it, showing that its not archive-based. ill support this then, a lot of servers use custom maps.

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Batch Scenery Compression
« Reply #6 on: October 02, 2008, 05:48:41 am »
I have recoded the file downloading code in 1.5.0, and am experimenting with compressed file 'packages'. At the moment its not used for map scenery, but it does path the road towards your suggestion.