Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Releases & Resources
  3. [Release] Black ops II Mapvote for Zombies and Multiplayer

[Release] Black ops II Mapvote for Zombies and Multiplayer

Scheduled Pinned Locked Moved BO2 Modding Releases & Resources
gscgsc scriptmapvote
167 Posts 41 Posters 39.1k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Sorexundefined Offline
    Sorexundefined Offline
    Sorex
    Contributor
    wrote on last edited by
    #46

    chacha18
    You need this Server Config, inside this folders there gamesetings folder and inside this there all the gamemode files you can call. There no default files for the gamemode

    chacha18undefined 1 Reply Last reply
    0
    • Sorexundefined Sorex

      chacha18
      You need this Server Config, inside this folders there gamesetings folder and inside this there all the gamemode files you can call. There no default files for the gamemode

      chacha18undefined Offline
      chacha18undefined Offline
      chacha18
      wrote on last edited by
      #47

      Sorex
      that's what I have except GameSetting was in main/.
      I tested again with putting everything at the right place.
      Its better ! I was able to use the menu one time, the second time the server crashed…

      But I'm on Linux/Wine, maybe it is the reason, my server used to crash once / twice a day those time...

      1 Reply Last reply
      0
      • Sorexundefined Offline
        Sorexundefined Offline
        Sorex
        Contributor
        wrote on last edited by
        #48

        chacha18
        Can be wine, wine use a lot of CPU. You can ask on the forum if someone have any hint to host on linux in a better way.
        I used windows and everything work fine

        chacha18undefined 1 Reply Last reply
        0
        • Sorexundefined Sorex

          chacha18
          Can be wine, wine use a lot of CPU. You can ask on the forum if someone have any hint to host on linux in a better way.
          I used windows and everything work fine

          chacha18undefined Offline
          chacha18undefined Offline
          chacha18
          wrote on last edited by
          #49

          Sorex

          Yes.. A lot is even not enough to describe how much it consumes 🙂
          Thats annoying .. But virtualized windows consume more RAM, so I had to make a choice... !

          1 Reply Last reply
          0
          • JezuzLizardundefined Offline
            JezuzLizardundefined Offline
            JezuzLizard
            Plutonium Staff
            wrote on last edited by
            #50

            Nice to see this is complete. Is it possible for you to make a zombies version in a similar way?

            1 Reply Last reply
            0
            • Sorexundefined Offline
              Sorexundefined Offline
              Sorex
              Contributor
              wrote on last edited by
              #51

              JezuzLizard Yes it is possibile, make it when game start is easier but make when the game end is a little bit harder. But i will make it 🙂

              1 Reply Last reply
              0
              • TTV_WIZEQCundefined Offline
                TTV_WIZEQCundefined Offline
                TTV_WIZEQC
                Contributor
                wrote on last edited by
                #52

                hi i put your mod on my server for now all working good but i have aonly one problem when exemple we vote hijacked the server will put an other map why ? here is my sv_maprotation "exec tdm.cfg map mp_nuketown_2020 map mp_la map mp_dockside map mp_carrier map mp_drone map mp_express map mp_hijacked map mp_meltdown map mp_overflow map mp_nightclub map mp_raid map mp_slums map mp_village map mp_turbine map mp_socotra"

                i need to put only one map in ?

                1 Reply Last reply
                0
                • Sorexundefined Offline
                  Sorexundefined Offline
                  Sorex
                  Contributor
                  wrote on last edited by
                  #53

                  TTV_WIZEQC Yes, you have to put only one map. My bad. I did not make this step on the video and i did not added this on the guide. Now i add this information.

                  1 Reply Last reply
                  1
                  • Sorexundefined Offline
                    Sorexundefined Offline
                    Sorex
                    Contributor
                    wrote on last edited by
                    #54

                    New Update

                    I made a big update, I recommend anyone who was using my mapvote to upgrade to the new version. I fixied some issues and optimizied the code. I added the Mapselection. In case of testing you can use map selection to change the map. I find mapselection very useful when testing things on specific maps.
                    I am doing this replay to highlight the new update and that if any bugs occur it would be very helpful to report the issue under this post. Unfortunately, I don't have the opportunity to test it sufficiently.
                    Thanks for reading

                    1 Reply Last reply
                    0
                    • Thanatosundefined Offline
                      Thanatosundefined Offline
                      Thanatos
                      wrote on last edited by
                      #55

                      Sorex Really nice mod ! I have 2 questions :

                      • Is it possible to use the mapvote offline, I mean with bots but not on server ?
                      • I downloaded the Server config folder but I don't have the maps/mp/... folder in data. How to have it ?
                      1 Reply Last reply
                      0
                      • Sorexundefined Offline
                        Sorexundefined Offline
                        Sorex
                        Contributor
                        wrote on last edited by
                        #56

                        Thanatos

                        • Probably can be used also offline, i did not test it on private match. Is server sided dedicated
                        • Create the folder, if you don't have it just create the missing folders
                        1 Reply Last reply
                        0
                        • Scriptoundefined Offline
                          Scriptoundefined Offline
                          Scripto
                          wrote on last edited by
                          #57

                          the map vote does not work, well it does but every time i add it it gives me a blue screen on the maps. doesn't show the maps AT all..

                          rupxundefined 1 Reply Last reply
                          0
                          • Scriptoundefined Scripto

                            the map vote does not work, well it does but every time i add it it gives me a blue screen on the maps. doesn't show the maps AT all..

                            rupxundefined Offline
                            rupxundefined Offline
                            rupx
                            wrote on last edited by
                            #58

                            Scripto I'm having the same issue here.

                            1 Reply Last reply
                            0
                            • Skiddlzundefined Offline
                              Skiddlzundefined Offline
                              Skiddlz
                              wrote on last edited by
                              #59

                              I am having problems with the latest version, every time I choose a map it always rotates to the map cargo, and the map images don't show up so I don't actually know what I am choosing, there are just 3 empty boxes...

                              1 Reply Last reply
                              0
                              • Skiddlzundefined Offline
                                Skiddlzundefined Offline
                                Skiddlz
                                wrote on last edited by
                                #60

                                Also, I don't have a main/ folder, is this a bad thing?
                                I downloaded the Server Config Sorex sent to chacha18 and I already have the dedicated files found in main/ on my t6r/ folder.

                                1 Reply Last reply
                                0
                                • Sorexundefined Sorex

                                  Black ops II Mapvote for Zombies and Multiplayer

                                  Developed by DoktorSAS

                                  Special thanks to @ZECxR3ap3r & @JezuzLizard for their contributions to the development. Additional thanks to @John Kramer for image editing and birchy for the LUI starting point.

                                  Introduction

                                  This project, initiated in March 2020, enables players to vote for the next map and/or game mode in upcoming matches. The project does not provide compiled files; if needed, compile the file using the gsc-tool.

                                  Black Ops II: multiplayer

                                  Preview

                                  How to setup the mapvote step by step

                                  1. Compile the Script:
                                    Compile the mapvote.gsc file using a GSC Compiler. This step is not required if you are working with the plutonium client.

                                  2. Place the Compiled File:
                                    Copy the compiled file into your directory %localappdata%\Plutonium\storage\t6\scripts\mp\.

                                  3. Configure Server File:
                                    Copy the content of mapvote.cfg into your server configuration file (e.g., server.cfg, dedicated_mp.cfg, dedicated.cfg, etc.) that manages the Multiplayer server.

                                  4. Edit Dvars for Aesthetic Parameters:

                                    • Set the Dvar mv_maps to specify the maps shown in the mapvote. For example:
                                      set mv_maps "mp_studio mp_nuketown_2020 mp_carrier mp_drone mp_slums"
                                      
                                    • Set the Dvar mv_enable to 1 to activate the mapvote on your Multiplayer server.
                                    • For random gametypes, set the Dvar mv_gametypes specifying the gametype ID (dm, war, sd, etc.) and the file to run if necessary. For example:
                                      set mv_gametypes "[email protected] [email protected]"
                                      
                                  5. (Plutonium ONLY) LUI UI with mod support:

                                    • Take the content of the folder T6Mapvote and place it in your folder %localappdata%\Plutonium\storage\t6\mods\
                                    • Set the dvar fs_game in your server configuration file (e.g., server.cfg, dedicated_zm.cfg, dedicated.cfg, etc.)
                                    • Set the dvar mv_lui to in your server configuration file (e.g., server.cfg, dedicated_zm.cfg, dedicated.cfg, etc.)
                                  6. Run the Server:
                                    Start the server and immerse yourself in the map voting experience. You're done!

                                  Settings: dvars

                                  Dvar Default Value Description
                                  mv_enable 1 Enable/Disable the mapvote (1 for enable, 0 for disable).
                                  mv_maps "" List of maps that can be voted on the mapvote; leave empty for all maps.
                                  mv_time 20 Time (in seconds) allotted for voting.
                                  mv_credits 1 Enable/Disable credits of the mod creator.
                                  mv_socialname "SocialName" Name of the server's social platform (Discord, Twitter, Website, etc.).
                                  mv_sentence "Thanks for playing" Thankful sentence displayed.
                                  mv_votecolor "5" Color of the vote number.
                                  mv_arrowcolor "white" RGB color of the arrows.
                                  mv_selectcolor "lighgreen" RGB color when a map gets voted.
                                  mv_backgroundcolor "grey" RGB color of the map background.
                                  mv_blur "3" Blur effect power.
                                  mv_gametypes "" Dvar to have multiple gametypes with different maps. Specify gametype IDs and associated files.
                                  mv_extramaps 0 Enable 6 maps mapvote when set to 1.
                                  mv_allowchangevote 1 Enable/Disable the possibility to change vote while the time is still running (1 for enable, 0 for disable).
                                  mv_randomoption 1 If set to 1 it will not display which map and which gametype the last option will be (Random)
                                  mv_minplayerstovote 1 Set the minimum number of players required to start the mapvote
                                  mv_lui 1 If set to 1 it will use the LUA/LUI ui interface (It required the mod support and the lua files)

                                  Black ops II: zombies

                                  Preview

                                  How to setup the mapvote step by step

                                  1. Compile the Script:
                                    Compile the mapvote.gsc file using a GSC Compiler. This step is not required if you are working with the plutonium client.

                                  2. Place the Compiled File:
                                    Copy the file into your directory %localappdata%\Plutonium\storage\t6\scripts\zm\.

                                  3. Configure Server File:
                                    Copy the content of mapvote.cfg into your server configuration file (e.g., server.cfg, dedicated_zm.cfg, dedicated.cfg, etc.) that manages the Zombies server.

                                  4. Edit Dvars on your configuration file:

                                    • Set the Dvar mv_maps to specify the maps shown in the mapvote. For example:
                                      set mv_maps "zm_tomb zm_buried zm_town zm_busdepot zm_farm zm_transit zm_prison zm_highrise zm_nuked"
                                      
                                    • Set the Dvar mv_enable to 1 to activate the mapvote on your Zombies server.
                                  5. Run the Server:
                                    Start the server and enjoy the map voting experience. You're done!

                                  Download

                                  It is possbile to download either the source code or the released code. The source code is not fully test and could run into issue that need to be reported while the release is tested code that could have some bug not fixed but working as intended.

                                  I highly recommend using the unreleased version and keeping it up to date for implementing features and patching reported bugs.
                                  The following buttons will direct you to the corresponding pages:

                                  Download from release

                                  Download from git

                                  ox0badErr0rundefined Offline
                                  ox0badErr0rundefined Offline
                                  ox0badErr0r
                                  wrote on last edited by
                                  #61

                                  Sorex can i use it in custom games?

                                  1 Reply Last reply
                                  0
                                  • Sorexundefined Offline
                                    Sorexundefined Offline
                                    Sorex
                                    Contributor
                                    wrote on last edited by
                                    #62

                                    ox0badErr0r No, its made to be server side. To make it work you have to edit the gsc code. But at the moment the script is getting re-worked

                                    1 Reply Last reply
                                    0
                                    • LeonFullundefined Offline
                                      LeonFullundefined Offline
                                      LeonFull
                                      wrote on last edited by
                                      #63

                                      That's what happens when i set the mv_enable dvar to 0.

                                      error.png

                                      1 Reply Last reply
                                      0
                                      • Sorexundefined Offline
                                        Sorexundefined Offline
                                        Sorex
                                        Contributor
                                        wrote on last edited by Sorex
                                        #64

                                        LeonFull Sorry my bad, i find an issue with a function and insteed of using

                                        maps\mp\gametypes\_globallogic_utils::registerpostroundevent(::mv_Begin);
                                        

                                        i used

                                        replaceFunc( maps\mp\gametypes\_killcam::finalkillcamwaiter, ::mv_finalkillcamwaiter);
                                        

                                        and i did not changed the code to make the mapvote get ignored.
                                        In a few minutes will be updated and fixed

                                        Updated, is on the same link of the 4.0.0 so press on this

                                        1 Reply Last reply
                                        0
                                        • A Former User? Offline
                                          A Former User? Offline
                                          A Former User
                                          wrote on last edited by
                                          #65

                                          Hey Sorex, nice mod 🙂

                                          The maps vote work well overall but I'm having trouble to make it work throught multiple gametype.
                                          I have try to make it work with:

                                          • set sv_maprotation "map mp_nuketown_2020" and set mv_gametype "gun shrp dm sas" --> the game load as tdm and the mv_gametype does not work properly

                                          • set sv_maprotation "exec gun.cfg map mp_nuketown_2020" and set mv_gametype "gun shrp dm sas" --> while the gametype load correctly, the mv_gametype still does not work properly

                                          I tryed on my own to make some tweaks to the base .gsc (implementing random gametype with the dvar gametypes, adding it to votes manager and trying to add the gametype name to server ui, adding the winner vote gametype to setrotation) but i'm not really a good c++ programmer.

                                          Here is what i attempted to do :
                                          2021_10_12_16_47_00_Window.png

                                          Thanks in advance for any help you are able to provide.

                                          1 Reply Last reply
                                          1
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 8
                                          • 9
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Donate