Author Topic: [HOWTO] Prevent your players from having to redownload maps  (Read 1380 times)

0 Members and 1 Guest are viewing this topic.

Offline Caesim

  • Second Lieutenant
  • *
  • Posts: 21
  • With the edge of the sword.
    • View Profile
  • Nick: Caesim
  • Side: Neutral
[HOWTO] Prevent your players from having to redownload maps
« on: February 23, 2018, 07:42:03 pm »
When you join a server with a custom map, the game downloads that map to the cache. So on subsequent joins you don't have to redownload it. But if another server uses a custom map with the same file name, the cached map gets overwritten. That causes unnecessary redownloads for your players.

The solution is simple: change the map's file name so it doesn't get overwritten by other maps with the same file name.

For example if you want to do it with a map file named "scn_mp_custom_map_1.sco":
  • Rename the file to something unique. For example to "scn_mp_custom_map_1_minisiege.sco".
  • Edit "scenes.txt" to reflect the changed file name. In this example:

    Quote
    scn_mp_custom_map_1 mp_custom_map_1 256 none none 0.000000 0.000000 100.000000 100.000000 -100.000000 0x000000023002a1ba0004210900003ca000006a8900007a7b
      0
      0
     outer_terrain_plain
    to
    Quote
    scn_mp_custom_map_1_minisiege mp_custom_map_1 256 none none 0.000000 0.000000 100.000000 100.000000 -100.000000 0x000000023002a1ba0004210900003ca000006a8900007a7b
      0
      0
     outer_terrain_plain

Note that even though the file name has changed, the map ID hasn't. So you still use "mp_custom_map_1" in server settings.

That's it. Your players will now cache the map properly. This method has been used by Minisiege for a long time and it works great.
« Last Edit: May 21, 2018, 10:54:08 pm by Caesim »

Offline eggmalog

  • Sergeant
  • *
  • Posts: 29
  • 25th_Rgl_Eggmalog
    • View Profile
  • Side: Neutral
Re: [HOWTO] Prevent your players from redownloading maps
« Reply #1 on: February 23, 2018, 07:57:04 pm »
Thanks for sharing, I didn't know you could edit the filenames beyond replacing existing ones.

Offline Knightmare

  • Major General
  • **
  • Posts: 4828
    • View Profile
  • Side: Neutral
Re: [HOWTO] Prevent your players from redownloading maps
« Reply #2 on: February 23, 2018, 08:02:47 pm »
re-make the cheer mod plz

Offline Caesim

  • Second Lieutenant
  • *
  • Posts: 21
  • With the edge of the sword.
    • View Profile
  • Nick: Caesim
  • Side: Neutral
Re: [HOWTO] Prevent your players from redownloading maps
« Reply #3 on: February 23, 2018, 08:04:18 pm »
re-make the cheer mod plz
Impossible. The newest client fixed the bug. So now only server owners can do that.