RaidMax / IW4M-Admin

Complete administration tool for IW4x, Pluto T6, Pluto IW5, Pluto T5, Pluto T4, H1-Mod, CoD4x, IW6x, TeknoMW3, and most Call of Duty® dedicated servers.
MIT License
190 stars 40 forks source link

Doesn't display game type correctly in iw5 #222

Open Chenterito opened 2 years ago

Chenterito commented 2 years ago

image

As seen in the image. TDM type in iw5 is "war" and FFA type in iw5 is "dm"

image

image

RaidMax commented 2 years ago

Which IW5 are you using. Pluto or Tekno? Gamemodes were pulled from Pluto IW5:

image

RaidMax commented 2 years ago

After further investigation it looks like there's a discrepancy between the gametype and the dsr naming...

Chenterito commented 2 years ago

I mean pluto iw5

RaidMax commented 2 years ago

I don't have an easy solution for this currently. The default dsr (which drive changing the gametype) do not match the actual gametype value. I can't change the known gametypes as that breaks changing gametypes via mag command. If I add both war and tdm it might be tricky changing the gametype since there's essentially duplicates. I will think on this and see if I find a good solution.

Chenterito commented 2 years ago

In my opinion, the solution is simple. No longer do it search if the type of game matches with the default ones, but simply the command works with the name of the dsr that you want to place. It does not matter if it is a default dsr, the user must write the full name of the file. !mag dome TDM_default And so this part would correctly display the game mode on the web.