[MP] Modern Warfare 3 Mapvote
-
One question... Is it normal for domination mode to reach 500 points? I haven't changed anything; I don't have any mods or scripts other than the one you created. I've also tried changing the values you put in "config_mp.cfg," but it's still the same...
sorry for the poor englishabaddonbalban I had the same issues using several different map rotation scripts so I just added my own scripted fix for it by adding a gsc file to my scripts directory and had it set the score value to 200 for domination and koth. Here is a link to my script that sets these up: https://github.com/bblack16/plutonium-waypoints/blob/main/iw5/scripts/bb_settings.gsc#L29
-
One question... Is it normal for domination mode to reach 500 points? I haven't changed anything; I don't have any mods or scripts other than the one you created. I've also tried changing the values you put in "config_mp.cfg," but it's still the same...
sorry for the poor englishabaddonbalban gunmd0wn I don't see how a mapvote script that simply sets the built-in rotation dvar to the built-in default Domination mode DSR would do that
What is
gameOpt commonOption.scoreLimit
set to inDOM_default.dsr
inCall of Duty Modern Warfare 3\admin
?
Also are you 100% sure you don't have a script or a mod that sets the score limit?I tried it on a clean dedicated server and it loaded 200 points domination just as expected
- Untouched server files
- Untouched modes DSR files
- Untouched mapvote dvars
- No scripts other than the mapvote
-
abaddonbalban I had the same issues using several different map rotation scripts so I just added my own scripted fix for it by adding a gsc file to my scripts directory and had it set the score value to 200 for domination and koth. Here is a link to my script that sets these up: https://github.com/bblack16/plutonium-waypoints/blob/main/iw5/scripts/bb_settings.gsc#L29
This post is deleted! -
Thank you both very much, I was able to solve it with gunmd0wn's setting.
-
abaddonbalban gunmd0wn I don't see how a mapvote script that simply sets the built-in rotation dvar to the built-in default Domination mode DSR would do that
What is
gameOpt commonOption.scoreLimit
set to inDOM_default.dsr
inCall of Duty Modern Warfare 3\admin
?
Also are you 100% sure you don't have a script or a mod that sets the score limit?I tried it on a clean dedicated server and it loaded 200 points domination just as expected
- Untouched server files
- Untouched modes DSR files
- Untouched mapvote dvars
- No scripts other than the mapvote
Resxt I found it odd as well, but I did find posts from others saying they experienced the same issues with map rotation back when I started using it and there were no solutions posted at the time that seemed to fix things or get the settings to stick (until I scripted it).
I did check the DOM dsr file on my system and the score limit is set to 500 there. I'm not entirely sure what set it to 500 though the file appears to be unchanged from what Steam installed (same modified time as all other files) and a verify via Steam found no changes.
I think the reason this gets linked with map rotation is that starting DOM from the UI works fine and defaults to 200, but once a map rotation script is used, any of them, not just this one, it starts to pick up that 500 value. I have no idea if it is relevant, but I am running on Linux so it could be possible that Steam has differing files for some reason.
As always, thanks for all your support here!
-
Resxt I found it odd as well, but I did find posts from others saying they experienced the same issues with map rotation back when I started using it and there were no solutions posted at the time that seemed to fix things or get the settings to stick (until I scripted it).
I did check the DOM dsr file on my system and the score limit is set to 500 there. I'm not entirely sure what set it to 500 though the file appears to be unchanged from what Steam installed (same modified time as all other files) and a verify via Steam found no changes.
I think the reason this gets linked with map rotation is that starting DOM from the UI works fine and defaults to 200, but once a map rotation script is used, any of them, not just this one, it starts to pick up that 500 value. I have no idea if it is relevant, but I am running on Linux so it could be possible that Steam has differing files for some reason.
As always, thanks for all your support here!
gunmd0wn if the file is set to 500 then setting the value to 200 should fix the issue
My guess is UI loads a built-in config while rotation loads the DSR file so if you tell it to have 500 score then it will have 500. Nothing that seems too weird there to me
Curious why you'd have a file set to 500 too unless you both downloaded some mod at some point or some game files etc whatever
-
Hi Resxt, sorry to bother you again regarding the mapvote. I tried putting the Face-Off maps but they never appear, is that not possible? I tried adding to the existing list and also using the additional maps dvar.
Another thing is that there are many maps that never appear, I believe it's only DLC maps except Terminal, which does appear, and I have them installed correctly and can start private matches in all maps.
And also, when I put more modes, it always only shows 4 "Team Deathmatch, Kill Confirmed, Domination and Search and Destroy". I changed the values to max 4 maps and 8 modes, and then I put 0 max modes but 4 max maps to see if it would readjust but no luck. Here's the modified script. Thanks in advance!InitDvars()
{
SetDvarIfNotInitialized("mapvote_debug", false);
SetDvarIfNotInitialized("mapvote_maps", "Seatown,mp_seatown:Dome,mp_dome:Arkaden,mp_plaza2:Bakaara,mp_mogadishu:Resistance,mp_paris:Downturn,mp_exchange:Bootleg,mp_bootleg:Carbon,mp_carbon:Hardhat,mp_hardhat:Lockdown,mp_alpha:Village,mp_village:Fallen,mp_lambeth:Outpost,mp_radar:Interchange,mp_interchange:Underground,mp_underground:Mission,mp_bravo:Piazza,mp_italy:Liberation,mp_park:Overwatch,mp_overwatch:Black Box,mp_morningwood:Sanctuary,mp_meteora:Foundation,mp_cement:Oasis,mp_qadeem:Terminal,mp_terminal_cls:Decommission,mp_shipbreaker:Off Shore,mp_roughneck:Gulch,mp_moab:Boardwalk,mp_boardwalk:Parish,mp_nola:Favela,mp_favela:Highrise,mp_highrise:Skidrow,mp_nightshift:Nuketown,mp_nuked:Rust,mp_rust");
SetDvarIfNotInitialized("mapvote_modes", "Team Deathmatch,TDM_default:Domination,DOM_default:Free for All,FFA_default:Gun Game,GG_default:One in the Chamber,OIC_default:Headquarters,HQ_default:Kill Confirmed,KC_default:Search & Destroy,SD_default");
SetDvarIfNotInitialized("mapvote_additional_maps_dvars", "Lookout,mp_restrepo_ss:Getaway,mp_hillside_ss:Erosion,mp_courtyard_ss:Aground,mp_aground_ss:Vortex,mp_six_ss:U-Turn,mp_burn_ss:Intersection,mp_crosswalk_ss");
SetDvarIfNotInitialized("mapvote_limits_maps", 4);
SetDvarIfNotInitialized("mapvote_limits_modes", 0);
SetDvarIfNotInitialized("mapvote_limits_max", 12);
SetDvarIfNotInitialized("mapvote_sounds_menu_enabled", 1);
SetDvarIfNotInitialized("mapvote_sounds_timer_enabled", 1);
SetDvarIfNotInitialized("mapvote_colors_selected", "blue");
SetDvarIfNotInitialized("mapvote_colors_unselected", "white");
SetDvarIfNotInitialized("mapvote_colors_timer", "blue");
SetDvarIfNotInitialized("mapvote_colors_timer_low", "red");
SetDvarIfNotInitialized("mapvote_colors_help_text", "white");
SetDvarIfNotInitialized("mapvote_colors_help_accent", "blue");
SetDvarIfNotInitialized("mapvote_colors_help_accent_mode", "standard");
SetDvarIfNotInitialized("mapvote_vote_time", 25);
SetDvarIfNotInitialized("mapvote_blur_level", 2.5);
SetDvarIfNotInitialized("mapvote_blur_fade_in_time", 2);
SetDvarIfNotInitialized("mapvote_horizontal_spacing", 75);
SetDvarIfNotInitialized("mapvote_display_wait_time", 1);
SetDvarIfNotInitialized("mapvote_default_rotation_enable", false);
SetDvarIfNotInitialized("mapvote_default_rotation_maps", "mp_dome:mp_nuked:mp_rust");
SetDvarIfNotInitialized("mapvote_default_rotation_modes", "TDM_default");
SetDvarIfNotInitialized("mapvote_default_rotation_min_players", 0);
SetDvarIfNotInitialized("mapvote_default_rotation_max_players", 0);
} -
Hi Resxt, sorry to bother you again regarding the mapvote. I tried putting the Face-Off maps but they never appear, is that not possible? I tried adding to the existing list and also using the additional maps dvar.
Another thing is that there are many maps that never appear, I believe it's only DLC maps except Terminal, which does appear, and I have them installed correctly and can start private matches in all maps.
And also, when I put more modes, it always only shows 4 "Team Deathmatch, Kill Confirmed, Domination and Search and Destroy". I changed the values to max 4 maps and 8 modes, and then I put 0 max modes but 4 max maps to see if it would readjust but no luck. Here's the modified script. Thanks in advance!InitDvars()
{
SetDvarIfNotInitialized("mapvote_debug", false);
SetDvarIfNotInitialized("mapvote_maps", "Seatown,mp_seatown:Dome,mp_dome:Arkaden,mp_plaza2:Bakaara,mp_mogadishu:Resistance,mp_paris:Downturn,mp_exchange:Bootleg,mp_bootleg:Carbon,mp_carbon:Hardhat,mp_hardhat:Lockdown,mp_alpha:Village,mp_village:Fallen,mp_lambeth:Outpost,mp_radar:Interchange,mp_interchange:Underground,mp_underground:Mission,mp_bravo:Piazza,mp_italy:Liberation,mp_park:Overwatch,mp_overwatch:Black Box,mp_morningwood:Sanctuary,mp_meteora:Foundation,mp_cement:Oasis,mp_qadeem:Terminal,mp_terminal_cls:Decommission,mp_shipbreaker:Off Shore,mp_roughneck:Gulch,mp_moab:Boardwalk,mp_boardwalk:Parish,mp_nola:Favela,mp_favela:Highrise,mp_highrise:Skidrow,mp_nightshift:Nuketown,mp_nuked:Rust,mp_rust");
SetDvarIfNotInitialized("mapvote_modes", "Team Deathmatch,TDM_default:Domination,DOM_default:Free for All,FFA_default:Gun Game,GG_default:One in the Chamber,OIC_default:Headquarters,HQ_default:Kill Confirmed,KC_default:Search & Destroy,SD_default");
SetDvarIfNotInitialized("mapvote_additional_maps_dvars", "Lookout,mp_restrepo_ss:Getaway,mp_hillside_ss:Erosion,mp_courtyard_ss:Aground,mp_aground_ss:Vortex,mp_six_ss:U-Turn,mp_burn_ss:Intersection,mp_crosswalk_ss");
SetDvarIfNotInitialized("mapvote_limits_maps", 4);
SetDvarIfNotInitialized("mapvote_limits_modes", 0);
SetDvarIfNotInitialized("mapvote_limits_max", 12);
SetDvarIfNotInitialized("mapvote_sounds_menu_enabled", 1);
SetDvarIfNotInitialized("mapvote_sounds_timer_enabled", 1);
SetDvarIfNotInitialized("mapvote_colors_selected", "blue");
SetDvarIfNotInitialized("mapvote_colors_unselected", "white");
SetDvarIfNotInitialized("mapvote_colors_timer", "blue");
SetDvarIfNotInitialized("mapvote_colors_timer_low", "red");
SetDvarIfNotInitialized("mapvote_colors_help_text", "white");
SetDvarIfNotInitialized("mapvote_colors_help_accent", "blue");
SetDvarIfNotInitialized("mapvote_colors_help_accent_mode", "standard");
SetDvarIfNotInitialized("mapvote_vote_time", 25);
SetDvarIfNotInitialized("mapvote_blur_level", 2.5);
SetDvarIfNotInitialized("mapvote_blur_fade_in_time", 2);
SetDvarIfNotInitialized("mapvote_horizontal_spacing", 75);
SetDvarIfNotInitialized("mapvote_display_wait_time", 1);
SetDvarIfNotInitialized("mapvote_default_rotation_enable", false);
SetDvarIfNotInitialized("mapvote_default_rotation_maps", "mp_dome:mp_nuked:mp_rust");
SetDvarIfNotInitialized("mapvote_default_rotation_modes", "TDM_default");
SetDvarIfNotInitialized("mapvote_default_rotation_min_players", 0);
SetDvarIfNotInitialized("mapvote_default_rotation_max_players", 0);
}Farrokh you should not be editing the script, instead edit the dvars in your game/server like the documentation recommends
You probably just didn't configure dvars properly
-
Farrokh you should not be editing the script, instead edit the dvars in your game/server like the documentation recommends
You probably just didn't configure dvars properly
Resxt It turns out the mapvote wasn't updating the changes because I had an older version that I had renamed because I thought the game would only load exactly "mapvote.gsc". I deleted it and the changes appeared.
Regarding the maps not showing, I read the readme once again and the problem was that I had added the face off maps after the other ones and I probably exceeded the 1024 limit. When I created a dvar "mapvote_maps_face_off" and put it inside the additional maps dvar, it worked, now those maps appear on the mapvote.I can confirm that, via the console, I was able to get the 8 modes and 4 maps to show, I did exactly what was on the script, "set mapvote_modes Team Deathmatch,TDM_default:Domination,DOM_default:Free for All,FFA_default:Gun Game,GG_default:One in the Chamber,OIC_default:Headquarters,HQ_default:Kill Confirmed,KC_default:Search & Destroy,SD_default"
I was editing the script because dvars like set_mapvote_debug 1 do not save when restarting the game. Is it just that one that doesn't save? I tested and the modes seem to appear fine even after restarting, just wanted to make sure the console saves the script?
Thanks!
-
Resxt It turns out the mapvote wasn't updating the changes because I had an older version that I had renamed because I thought the game would only load exactly "mapvote.gsc". I deleted it and the changes appeared.
Regarding the maps not showing, I read the readme once again and the problem was that I had added the face off maps after the other ones and I probably exceeded the 1024 limit. When I created a dvar "mapvote_maps_face_off" and put it inside the additional maps dvar, it worked, now those maps appear on the mapvote.I can confirm that, via the console, I was able to get the 8 modes and 4 maps to show, I did exactly what was on the script, "set mapvote_modes Team Deathmatch,TDM_default:Domination,DOM_default:Free for All,FFA_default:Gun Game,GG_default:One in the Chamber,OIC_default:Headquarters,HQ_default:Kill Confirmed,KC_default:Search & Destroy,SD_default"
I was editing the script because dvars like set_mapvote_debug 1 do not save when restarting the game. Is it just that one that doesn't save? I tested and the modes seem to appear fine even after restarting, just wanted to make sure the console saves the script?
Thanks!
Farrokh everything you imply or ask about how the script works is not tied to the script itself, it's just how the game works
Scripts don't somehow check for their filenames, the game handles loading scripts, any script in the scripts folder is loaded, no reason to have name checks for files
Scripts cannot permanently change dvar values in the game. You could potentially have a more complex system now with the recent Plutonium updates that reads another file but it's not really needed in my opinion
If you want to have dvars set when starting your game then you can edit the game's CFG (assuming we're talking about private games), or yeah edit the script
Permanently save dvars values
Press Win + R, paste%localappdata%\Plutonium\storage\iw5\players\config_mp.cfg
If asked how to open it use Notepad (or any text editor)Go at the very bottom of the file and add
seta dvar_name dvar_value
Change dvar_name and dvar_value with the corresponding values
For exampleseta g_speed "800"
This also works for any custom dvar created by a script or any other source