wisp-gg / issue-tracker

0 stars 0 forks source link

Allow multiple games to use the same custom configuration (FastDl, backups etc) #11

Open pedrotski opened 4 months ago

pedrotski commented 4 months ago

Describe the feature and why you would like to see it.

At the moment, for lots of source games you must have a separate egg for each game solely for the FastDL and backup config even though the only difference of the egg is the APPID and Game Name variable.

Describe the solution you'd like.

Allow us to have a config like this to streamline egg management.

{
  "appid": 232330,
  "root": "cstrike",
  "fastdl": {
    "max_compression_size": 156286400,
    "folders": {
      "maps": true,
      "models": true,
      "materials": true,
      "overviews": true,
      "resource": true,
      "sound": true,
      "sprites": true,
      "gfx": true
    },
    "extensions": {
      "png": true,
      "jpg": true,
      "ttf": true,
      "mdl": true,
      "phy": true,
      "vvd": true,
      "vtx": true,
      "vmt": true,
      "vtf": true,
      "wav": true,
      "mp3": true,
      "ogg": true,
      "bsp": true,
      "nav": true,
      "pcf": true,
      "ain": true
    },
    "ignore": {
      "cstrike/maps/cs_assault.bsp": true,
      "cstrike/maps/cs_compound.bsp": true,
      "cstrike/maps/cs_havana.bsp": true,
      "cstrike/maps/cs_italy.bsp": true,
      "cstrike/maps/cs_militia.bsp": true,
      "cstrike/maps/cs_office.bsp": true,
      "cstrike/maps/de_aztec.bsp": true,
      "cstrike/maps/de_cbble.bsp": true,
      "cstrike/maps/de_chateau.bsp": true,
      "cstrike/maps/de_dust.bsp": true,
      "cstrike/maps/de_dust2.bsp": true,
      "cstrike/maps/de_inferno.bsp": true,
      "cstrike/maps/de_nuke.bsp": true,
      "cstrike/maps/de_piranesi.bsp": true,
      "cstrike/maps/de_port.bsp": true,
      "cstrike/maps/de_prodigy.bsp": true,
      "cstrike/maps/de_tides.bsp": true,
      "cstrike/maps/de_train.bsp": true
    }
  }
}
{
  "appid": 222860,
  "root": "left4dead2",
  "fastdl": {
    "max_compression_size": 156286400,
    "folders": {
      "materials": true,
      "models": true,
      "sound": true,
      "resource": true,
      "maps": true,
      "particles": true
    },
    "extensions": {
      "png": true,
      "jpg": true,
      "ttf": true,
      "mdl": true,
      "phy": true,
      "vvd": true,
      "vtx": true,
      "vmt": true,
      "vtf": true,
      "wav": true,
      "mp3": true,
      "ogg": true,
      "bsp": true,
      "nav": true,
      "pcf": true,
      "svg": true,
      "raw": true,
      "ain": true
    },
    "ignore": {
      "left4dead2/maps/soundcache": true,
      "left4dead2/maps/_exclude_extra.lst": true,
      "left4dead2/maps/zoo_trafficsigns.bsp": true,
      "left4dead2/maps/zoo_urban_foliage_01.bsp": true
    }
  },
  "move": {
    "files": {
      ".steam": true,
      "bin": true,
      "hl2": true,
      "left4dead2/bin": true,
      "left4dead2/cfg_disabled": true,
      "left4dead2.ico": true,
      "srcds_linux": true,
      "srcds_run": true,
      "steam_appid.txt": true,
      "steamclient.so": true
    }
  }
}

Optional additional context to this request.

No response

pedrotski commented 4 months ago

Actually, a better way to do this is to move away from using these Custom Configurations and move to a system like .pteroignore for backups with regex support.

Have a file called .fastdl and another called .wispignore for backups. That way the customer can add or remove things that get synced with FastDL as required too. That way you could generate the config files using the installation script based on the APPID etc.