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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. Bug when modding gun.gsc

Bug when modding gun.gsc

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
8 Posts 3 Posters 181 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • zeroconzundefined Offline
    zeroconzundefined Offline
    zeroconz
    wrote on last edited by
    #1

    Hello.
    I'm trying to modify the gun.gsc to make a custom ladder but everytime I get to the last weapon of my custom ladder and get the last kill, instead of the game ending, it just gives me the weapons of the last ladder I played.
    I've also tried to use this script from JezuzLizard

    #include maps/mp/gametypes/gun;
    #include maps/mp/gametypes/_hud_util;
    #include maps/mp/_utility;
    #include common_scripts/utility;
    
    init()
    {
    	level.gunprogression = [];
    	addguntoprogression( "knife_ballistic_mp" );
    	addguntoprogression( "scar_mp" );
    	addguntoprogression( "tar21_mp" );
    	addguntoprogression( "an94_mp" );
    	addguntoprogression( "type95_mp" );
    	addguntoprogression( "xm8_mp" );
    	addguntoprogression( "sig556_mp" );
    	addguntoprogression( "sa58_mp" );
    	addguntoprogression( "saritch_mp" );
    	addguntoprogression( "hamr_mp" );
    	addguntoprogression( "lsat_mp" );
    	addguntoprogression( "qbb95_mp" );
    	addguntoprogression( "mk48_mp" );
    	addguntoprogression( "svu_mp" );
    	addguntoprogression( "as50_mp" );
    	addguntoprogression( "dsr50_mp" );
    	addguntoprogression( "ballista_mp+is" );
    	addguntoprogression( "usrpg_mp" );
    	addguntoprogression( "crossbow_mp" );
    	addguntoprogression( "knife_ballistic_mp" );
    	level.gungamekillscore = maps/mp/gametypes/_rank::getscoreinfovalue( "kill_gun" );
    	registerscorelimit( level.gunprogression.size * level.gungamekillscore, level.gunprogression.size * level.gungamekillscore );
    	setdvar( "scr_xpscale", 0 );
    	setdvar( "ui_weapon_tiers", level.gunprogression.size );
    	makedvarserverinfo( "ui_weapon_tiers", level.gunprogression.size );
    }
    

    but the game shows me this error when I try to start the match. 6c15c21d-43ed-46cd-88cf-c57eaf33bed5-image.png

    chicken emojiundefined JezuzLizardundefined zeroconzundefined 3 Replies Last reply
    0
    • chicken emojiundefined Offline
      chicken emojiundefined Offline
      chicken emoji
      replied to zeroconz on last edited by
      #2

      zeroconz For this script to work you have to change every / to a \ unless its part of a comment

      zeroconzundefined 1 Reply Last reply
      1
      • JezuzLizardundefined Offline
        JezuzLizardundefined Offline
        JezuzLizard Plutonium Staff
        replied to zeroconz on last edited by
        #3

        zeroconz Make sure you are using scripts from here https://github.com/plutoniummod/t6-scripts/blob/main/MP/Core/maps/mp/gametypes/gun.gsc

        These scripts are properly decompiled and compatible with the compiler we use and also don't have any bugs in them.

        1 Reply Last reply
        1
        • zeroconzundefined Offline
          zeroconzundefined Offline
          zeroconz
          replied to zeroconz on last edited by
          #4

          chicken emoji I've changed the / to \ and now I get this e98dbee8-92d2-4b41-8d3f-bc794a197676-image.png

          chicken emojiundefined 1 Reply Last reply
          0
          • chicken emojiundefined Offline
            chicken emojiundefined Offline
            chicken emoji
            replied to zeroconz on last edited by
            #5

            zeroconz It works for me. Are you sure you also changed it in this line?

            level.gungamekillscore = maps\mp\gametypes\_rank::getscoreinfovalue( "kill_gun" );
            
            1 Reply Last reply
            1
            • zeroconzundefined Offline
              zeroconzundefined Offline
              zeroconz
              replied to chicken emoji on last edited by
              #6

              JezuzLizard I've tried and it keeps happening the same thing 😞

              chicken emojiundefined 1 Reply Last reply
              0
              • chicken emojiundefined Offline
                chicken emojiundefined Offline
                chicken emoji
                replied to zeroconz on last edited by
                #7

                zeroconz What does your code look like you probably changed it since the original doesn't have that many lines

                zeroconzundefined 1 Reply Last reply
                1
                • zeroconzundefined Offline
                  zeroconzundefined Offline
                  zeroconz
                  replied to chicken emoji on last edited by
                  #8

                  chicken emoji yep, my bad. Now it works just fine. Thank you so much, I've trying to solve this shit for a week and I just couldn't find that.

                  1 Reply Last reply
                  0

                  • Login

                  • Don't have an account? Register

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