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

Plutonium

  1. Home
  2. MW3 Modding Releases & Resources
  3. [Release] VoteSystem

[Release] VoteSystem

Scheduled Pinned Locked Moved MW3 Modding Releases & Resources
12 Posts 5 Posters 1.2k Views 1 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.
  • LastDemon99undefined Offline
    LastDemon99undefined Offline
    LastDemon99
    wrote on last edited by LastDemon99
    #1

    [VoteSystem GSC script for IW5]


    Key Features

    This script will create a random list of maps and dsr at the end of the game with a drop down menu to vote the next rotation. The range of maps and dsr that will be displayed in the menu will be the one of your preference.



    IW5_VoteSystem.png



    How To Use


    • Place the script file at "%localappdata%/plutonium/storage/iw5/scripts" if the folder does not exist, create it

    • To configure the script you can set the following dvars in your server config or in the game console

    • Enable or disable voting at the end of the game

      vote_enable


    • Number of maps to be shown in the vote, maximum 6, if the value is 0 or 1 no map will be shown allowing to increase the maximum of vote_dsr_count as long as it does not exceed the length of the list

      vote_maps_count


    • Number of dsr to be shown in the vote, maximum 6, if the value is 0 or 1 no dsr will be shown allowing to increase the maximum of vote_map_count as long as it does not exceed the length of the list

      vote_dsr_count


    • Voting time in seconds
      vote_time

    • Either to set the map or the dsr you will have to use the following format "name;alias" to add more elements split it with a ":"

      vote_maps "name1;alias1:name2;alias2"
      vote_dsr "name1;alias1:name2;alias2"


    • To interact with the menu press the keys that appear at the bottom of the screen


    For more information about the script and its download: IW5_VoteSystem


    If you want to see some of my other work:

    • [GameMode]: Old School

    • [GameMode]: SharpShooter

    • [TextureMod]: Camo Pack

    Special thanks to Swifty for solving doubts, testing and fixing part of the code.

    Resxtundefined A Former User? AlphaBlackundefined 3 Replies Last reply
    3
    • LastDemon99undefined LastDemon99

      [VoteSystem GSC script for IW5]


      Key Features

      This script will create a random list of maps and dsr at the end of the game with a drop down menu to vote the next rotation. The range of maps and dsr that will be displayed in the menu will be the one of your preference.



      IW5_VoteSystem.png



      How To Use


      • Place the script file at "%localappdata%/plutonium/storage/iw5/scripts" if the folder does not exist, create it

      • To configure the script you can set the following dvars in your server config or in the game console

      • Enable or disable voting at the end of the game

        vote_enable


      • Number of maps to be shown in the vote, maximum 6, if the value is 0 or 1 no map will be shown allowing to increase the maximum of vote_dsr_count as long as it does not exceed the length of the list

        vote_maps_count


      • Number of dsr to be shown in the vote, maximum 6, if the value is 0 or 1 no dsr will be shown allowing to increase the maximum of vote_map_count as long as it does not exceed the length of the list

        vote_dsr_count


      • Voting time in seconds
        vote_time

      • Either to set the map or the dsr you will have to use the following format "name;alias" to add more elements split it with a ":"

        vote_maps "name1;alias1:name2;alias2"
        vote_dsr "name1;alias1:name2;alias2"


      • To interact with the menu press the keys that appear at the bottom of the screen


      For more information about the script and its download: IW5_VoteSystem


      If you want to see some of my other work:

      • [GameMode]: Old School

      • [GameMode]: SharpShooter

      • [TextureMod]: Camo Pack

      Special thanks to Swifty for solving doubts, testing and fixing part of the code.

      Resxtundefined Offline
      Resxtundefined Offline
      Resxt
      Plutonium Staff
      wrote on last edited by
      #2

      LastDemon99 Hey this looks very cool, nice release!

      I'm thinking of using this on my servers but while this works perfectly if you have several modes it doesn't really make sense to let players vote for a mode if you only have one mode.

      Do you think you could try to add a check to make it so that if level.dsr.size == 1 you don't display the mode part?
      I tried it myself for a good hour now but I couldn't find how to remove the lower part of the hud that lets you choose a mode.

      Also line 67 you should replace 4 by level.dsr.size

      LastDemon99undefined 1 Reply Last reply
      0
      • Resxtundefined Resxt

        LastDemon99 Hey this looks very cool, nice release!

        I'm thinking of using this on my servers but while this works perfectly if you have several modes it doesn't really make sense to let players vote for a mode if you only have one mode.

        Do you think you could try to add a check to make it so that if level.dsr.size == 1 you don't display the mode part?
        I tried it myself for a good hour now but I couldn't find how to remove the lower part of the hud that lets you choose a mode.

        Also line 67 you should replace 4 by level.dsr.size

        LastDemon99undefined Offline
        LastDemon99undefined Offline
        LastDemon99
        wrote on last edited by
        #3

        Resxt I have already updated the script and implemented what you mentioned, thanks for your feedback, and if there is any error you can comment again xD

        Resxtundefined 1 Reply Last reply
        1
        • LastDemon99undefined LastDemon99

          Resxt I have already updated the script and implemented what you mentioned, thanks for your feedback, and if there is any error you can comment again xD

          Resxtundefined Offline
          Resxtundefined Offline
          Resxt
          Plutonium Staff
          wrote on last edited by
          #4

          LastDemon99 I think you mixed the vote_dsr separators.
          Without changing anything it shows this at the end of the game

          [script]: IW5_VoteSystem:: [ERROR]
          [script]: check the lenght or format from your maps and dsr
          
          LastDemon99undefined 1 Reply Last reply
          0
          • Resxtundefined Resxt

            LastDemon99 I think you mixed the vote_dsr separators.
            Without changing anything it shows this at the end of the game

            [script]: IW5_VoteSystem:: [ERROR]
            [script]: check the lenght or format from your maps and dsr
            
            LastDemon99undefined Offline
            LastDemon99undefined Offline
            LastDemon99
            wrote on last edited by
            #5

            Resxt I've updated it again, i hope it's solved xd

            1 Reply Last reply
            0
            • LastDemon99undefined LastDemon99

              [VoteSystem GSC script for IW5]


              Key Features

              This script will create a random list of maps and dsr at the end of the game with a drop down menu to vote the next rotation. The range of maps and dsr that will be displayed in the menu will be the one of your preference.



              IW5_VoteSystem.png



              How To Use


              • Place the script file at "%localappdata%/plutonium/storage/iw5/scripts" if the folder does not exist, create it

              • To configure the script you can set the following dvars in your server config or in the game console

              • Enable or disable voting at the end of the game

                vote_enable


              • Number of maps to be shown in the vote, maximum 6, if the value is 0 or 1 no map will be shown allowing to increase the maximum of vote_dsr_count as long as it does not exceed the length of the list

                vote_maps_count


              • Number of dsr to be shown in the vote, maximum 6, if the value is 0 or 1 no dsr will be shown allowing to increase the maximum of vote_map_count as long as it does not exceed the length of the list

                vote_dsr_count


              • Voting time in seconds
                vote_time

              • Either to set the map or the dsr you will have to use the following format "name;alias" to add more elements split it with a ":"

                vote_maps "name1;alias1:name2;alias2"
                vote_dsr "name1;alias1:name2;alias2"


              • To interact with the menu press the keys that appear at the bottom of the screen


              For more information about the script and its download: IW5_VoteSystem


              If you want to see some of my other work:

              • [GameMode]: Old School

              • [GameMode]: SharpShooter

              • [TextureMod]: Camo Pack

              Special thanks to Swifty for solving doubts, testing and fixing part of the code.

              A Former User? Offline
              A Former User? Offline
              A Former User
              wrote on last edited by
              #6
              This post is deleted!
              1 Reply Last reply
              1
              • LastDemon99undefined LastDemon99

                [VoteSystem GSC script for IW5]


                Key Features

                This script will create a random list of maps and dsr at the end of the game with a drop down menu to vote the next rotation. The range of maps and dsr that will be displayed in the menu will be the one of your preference.



                IW5_VoteSystem.png



                How To Use


                • Place the script file at "%localappdata%/plutonium/storage/iw5/scripts" if the folder does not exist, create it

                • To configure the script you can set the following dvars in your server config or in the game console

                • Enable or disable voting at the end of the game

                  vote_enable


                • Number of maps to be shown in the vote, maximum 6, if the value is 0 or 1 no map will be shown allowing to increase the maximum of vote_dsr_count as long as it does not exceed the length of the list

                  vote_maps_count


                • Number of dsr to be shown in the vote, maximum 6, if the value is 0 or 1 no dsr will be shown allowing to increase the maximum of vote_map_count as long as it does not exceed the length of the list

                  vote_dsr_count


                • Voting time in seconds
                  vote_time

                • Either to set the map or the dsr you will have to use the following format "name;alias" to add more elements split it with a ":"

                  vote_maps "name1;alias1:name2;alias2"
                  vote_dsr "name1;alias1:name2;alias2"


                • To interact with the menu press the keys that appear at the bottom of the screen


                For more information about the script and its download: IW5_VoteSystem


                If you want to see some of my other work:

                • [GameMode]: Old School

                • [GameMode]: SharpShooter

                • [TextureMod]: Camo Pack

                Special thanks to Swifty for solving doubts, testing and fixing part of the code.

                AlphaBlackundefined Offline
                AlphaBlackundefined Offline
                AlphaBlack
                wrote on last edited by
                #7

                LastDemon99 As soon as I finish the game, the voting menu appears, but it only shows me the game types. I already configured vote_drs and vote_maps. And it shows me this error in the console.
                error_votesystem.png

                Resxtundefined 1 Reply Last reply
                0
                • AlphaBlackundefined AlphaBlack

                  LastDemon99 As soon as I finish the game, the voting menu appears, but it only shows me the game types. I already configured vote_drs and vote_maps. And it shows me this error in the console.
                  error_votesystem.png

                  Resxtundefined Offline
                  Resxtundefined Offline
                  Resxt
                  Plutonium Staff
                  wrote on last edited by
                  #8

                  AlphaBlack double check that you configured everything properly and read the instructions again. Maybe you did a typo somewhere for example. I think there is are limit dvars/limits in the code to how much you can display. It also depends on the mode. Which mode were you playing when this happened?

                  AlphaBlackundefined 1 Reply Last reply
                  0
                  • Resxtundefined Resxt

                    AlphaBlack double check that you configured everything properly and read the instructions again. Maybe you did a typo somewhere for example. I think there is are limit dvars/limits in the code to how much you can display. It also depends on the mode. Which mode were you playing when this happened?

                    AlphaBlackundefined Offline
                    AlphaBlackundefined Offline
                    AlphaBlack
                    wrote on last edited by AlphaBlack
                    #9
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • sica666undefined Offline
                      sica666undefined Offline
                      sica666
                      wrote on last edited by
                      #10

                      Noob question here. I am trying to run the script and I get this error
                      Com_ERROR: $Attempted to overrun string in call to va()

                      i noticed some scripts that i do not have on my folders
                      #include maps\mp\gametypes_hud_util;
                      #include common_scripts\utility;
                      #include maps\mp_utility;

                      Resxtundefined 1 Reply Last reply
                      0
                      • sica666undefined sica666

                        Noob question here. I am trying to run the script and I get this error
                        Com_ERROR: $Attempted to overrun string in call to va()

                        i noticed some scripts that i do not have on my folders
                        #include maps\mp\gametypes_hud_util;
                        #include common_scripts\utility;
                        #include maps\mp_utility;

                        Resxtundefined Offline
                        Resxtundefined Offline
                        Resxt
                        Plutonium Staff
                        wrote on last edited by
                        #11

                        sica666 these scripts are game's stock scripts, this is completely normal and unrelated to any issue

                        1 Reply Last reply
                        0
                        • sica666undefined Offline
                          sica666undefined Offline
                          sica666
                          wrote on last edited by
                          #12

                          So what might be the problem with the script then?

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


                          • Login

                          • Don't have an account? Register

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