yonilerner / cs2-retakes-allocator

Advanced weapon allocation for B3none/cs2-retakes
GNU General Public License v3.0
53 stars 14 forks source link

MaxNades config not working? #142

Closed MickaNoob closed 4 months ago

MickaNoob commented 5 months ago

HI, i'm not sure i think max nade config by maps are not working. I put this config in config.json

  "MaxNades": {
    "GLOBAL": {
      "Terrorist": {
        "Flashbang": 2,
        "Smoke": 1,
        "Molotov": 1,
        "HighExplosive": 1
      },
      "CounterTerrorist": {
        "Flashbang": 2,
        "Smoke": 1,
        "Molotov": 1,
        "HighExplosive": 1
      }
    },
    "de_dust2": {
      "Terrorist": {
        "Flashbang": 1,
        "Smoke": 1,
        "Molotov": 0,
        "HighExplosive": 2
      },
      "CounterTerrorist": {
        "Flashbang": 2,
        "Smoke": 0,
        "Molotov": 1,
        "HighExplosive": 3
      }
    },
    "de_mirage": {
      "Terrorist": {
        "Flashbang": 1,
        "Smoke": 1,
        "Molotov": 1,
        "HighExplosive": 1
      },
      "CounterTerrorist": {
        "Flashbang": 1,
        "Smoke": 0,
        "Molotov": 1,
        "HighExplosive": 1
      }
    },
    "de_inferno": {
      "Terrorist": {
        "Flashbang": 1,
        "Smoke": 1,
        "Molotov": 1,
        "HighExplosive": 1
      },
      "CounterTerrorist": {
        "Flashbang": 1,
        "Smoke": 1,
        "Molotov": 1,
        "HighExplosive": 1
      }
    },
    "de_overpass": {
      "Terrorist": {
        "Flashbang": 1,
        "Smoke": 1,
        "Molotov": 1,
        "HighExplosive": 1
      },
      "CounterTerrorist": {
        "Flashbang": 1,
        "Smoke": 1,
        "Molotov": 1,
        "HighExplosive": 1
      }
    },
    "de_nuke": {
      "Terrorist": {
        "Flashbang": 1,
        "Smoke": 1,
        "Molotov": 1,
        "HighExplosive": 1
      },
      "CounterTerrorist": {
        "Flashbang": 1,
        "Smoke": 1,
        "Molotov": 1,
        "HighExplosive": 1
      }
    },
    "de_vertigo": {
      "Terrorist": {
        "Flashbang": 1,
        "Smoke": 1,
        "Molotov": 1,
        "HighExplosive": 1
      },
      "CounterTerrorist": {
        "Flashbang": 1,
        "Smoke": 1,
        "Molotov": 1,
        "HighExplosive": 1
      }
    },
    "de_ancient": {
      "Terrorist": {
        "Flashbang": 1,
        "Smoke": 1,
        "Molotov": 1,
        "HighExplosive": 1
      },
      "CounterTerrorist": {
        "Flashbang": 1,
        "Smoke": 1,
        "Molotov": 1,
        "HighExplosive": 1
      }
    },
    "de_anubis": {
      "Terrorist": {
        "Flashbang": 1,
        "Smoke": 1,
        "Molotov": 1,
        "HighExplosive": 1
      },
      "CounterTerrorist": {
        "Flashbang": 1,
        "Smoke": 1,
        "Molotov": 1,
        "HighExplosive": 1
      }
    }
  },
  "MaxTeamNades": {
    "GLOBAL": {
      "Terrorist": {
        "Pistol": "AverageOnePerPlayer",
        "HalfBuy": "AverageOnePointFivePerPlayer",
        "FullBuy": "AverageOnePointFivePerPlayer"
      },
      "CounterTerrorist": {
        "Pistol": "AverageOnePerPlayer",
        "HalfBuy": "AverageOnePointFivePerPlayer",
        "FullBuy": "AverageOnePointFivePerPlayer"
      }
    }
  },
    "de_dust2": {
      "Terrorist": {
        "Flashbang": 1,
        "Smoke": 1,
        "Molotov": 0,
        "HighExplosive": 2
      },
      "CounterTerrorist": {
        "Flashbang": 2,
        "Smoke": 0,
        "Molotov": 1,
        "HighExplosive": 3
      }
    },

For example, for dust2 i put 0 moly in Terrorist but, i got moly For CT i put 0 smoke and i got smoke Can you tell me if this configuration are good? Or if my miss something?

yonilerner commented 5 months ago

Sorry to hear that. Its been a while since I tested it so its possible something broke.

Does the GLOBAL setting work, just not the individual maps?

MickaNoob commented 5 months ago

Hi, Yes, global settings is working but individual maps nor working.

yonilerner commented 4 months ago

This should be fixed now in https://github.com/yonilerner/cs2-retakes-allocator/pull/124