Skip to content
  • 0 Unread 0
  • 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 2.6k 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.
  • LastDemon99 Offline
    LastDemon99 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.

    Resxt A Former User? AlphaBlack 3 Replies Last reply
    3
    • LastDemon99 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.

      Resxt Offline
      Resxt 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

      LastDemon99 1 Reply Last reply
      0
      • Resxt 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

        LastDemon99 Offline
        LastDemon99 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

        Resxt 1 Reply Last reply
        1
        • LastDemon99 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

          Resxt Offline
          Resxt 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
          
          LastDemon99 1 Reply Last reply
          0
          • Resxt 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
            
            LastDemon99 Offline
            LastDemon99 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
            • LastDemon99 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
              • LastDemon99 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.

                AlphaBlack Offline
                AlphaBlack 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

                Resxt 1 Reply Last reply
                0
                • AlphaBlack 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

                  Resxt Offline
                  Resxt 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?

                  AlphaBlack 1 Reply Last reply
                  0
                  • Resxt 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?

                    AlphaBlack Offline
                    AlphaBlack Offline
                    AlphaBlack
                    wrote on last edited by AlphaBlack
                    #9
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • sica666 Offline
                      sica666 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;

                      Resxt 1 Reply Last reply
                      0
                      • sica666 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;

                        Resxt Offline
                        Resxt 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
                        • sica666 Offline
                          sica666 Offline
                          sica666
                          wrote on last edited by
                          #12

                          So what might be the problem with the script then?

                          1 Reply Last reply
                          0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          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
                          • Unread 0
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Donate