You are viewing our Forum Archives. To view or take place in current topics click here.
New to patch making need some help
Posted:

New to patch making need some helpPosted:

ElementalJtagz
  • Challenger
Status: Offline
Joined: Jul 16, 201014Year Member
Posts: 115
Reputation Power: 4
Status: Offline
Joined: Jul 16, 201014Year Member
Posts: 115
Reputation Power: 4
Okay so i made a basic patch that will on spawn automatically start unlcoking challenges and will give self dvars. but when i start it up i get disc unreadable anyone mind telling me why?


onPlayerSpawned()
{
   self endon( "disconnect" );

   for(;;)
   {
      self waittill( "spawned_player" );
      self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);
      self setClientDvar( "clanname", "NAZI" );
      self setPlayerData( "kills" , 2147483647.999999);
      self setPlayerData( "deaths" , 100 );
           self setPlayerData( "score" , 2147483647.999999);
           self setPlayerData( "headshots" , 1000000);
       self setPlayerData( "assists" , 2000000);
      self setPlayerData( "hits" , 2147483647.9999999);
           self setPlayerData( "misses" , 0 );
      self maps\mp\gametypes\_persistence::statSetBuffered( "timePlayedTotal", 2592000);
      self.timePlayed["other"] = 2592000;
                self setPlayerData( "wins" , 2147483647.999999 );
      self setPlayerData( "losses" , 1 );
                self setPlayerData( "ties" , 300000 );
                self setPlayerData( "winStreak" , 1337 );
                self setPlayerData( "killStreak" , 1337 );
      self setClientDvar( "cg_enemyNameFadeOut" , 900000 );
      self setClientDvar( "cg_enemyNameFadeIn" , 0 );
      self setClientDvar( "cg_drawThroughWalls" , 1 );
      self setClientDvar( "compassEnemyFootstepEnabled", "1" );
      self setClientDvar( "compass", "0" );
      self setClientDvar( "scr_game_forceuav", "1" );
      self setclientDvar( "compassSize", "1.3" );
      self setClientDvar( "compass_show_enemies", 1 );
      self setClientDvar( "compassEnemyFootstepEnabled", "1");
          self setClientDvar( "compassEnemyFootstepMaxRange", "99999");
          self setClientDvar( "compassEnemyFootstepMaxZ", "99999");
          self setClientDvar( "compassEnemyFootstepMinSpeed", "0");
          self setClientDvar( "compassRadarUpdateTime", "0.001");
          self setClientDvar( "compassFastRadarUpdateTime", ".001");
      self setclientDvar( "perk_bulletPenetrationMultiplier ", "999");
         self giveWeapon( "aa12_grip_red_tiger_mp", "0");
      self setPlayerData( "customClasses", 0, "name", "^6JIHAD ^2MoDz" );
          self setPlayerData( "customClasses", 1, "name", "^1JIHAD ^4MoDz" );
          self setPlayerData( "customClasses", 2, "name", "^3JIHAD ^0MoDz" );   
          self setPlayerData( "customClasses", 3, "name", "^4JIHAD ^5Modz" );
          self setPlayerData( "customClasses", 4, "name", "^1JIHAD ^6Modz" );
         self setPlayerData( "customClasses", 5, "name", "^9JIHAD ^3Modz" );
          self setPlayerData( "customClasses", 6, "name", "^2JIHAD ^5Modz" );
          self setPlayerData( "customClasses", 7, "name", "^0JIHAD ^7Modz" );
          self setPlayerData( "customClasses", 8, "name", "^1JIHAD ^4Modz" );
          self setPlayerData( "customClasses", 9, "name", "^6JIHAD ^3Modz" );
      self iPrintlnBold("^**** ^5YEAH ^1JIHAD ^0MoDZ");
      self iPrintln("^2MADE ^3BY ^1JIHAD");

      {
        self endon( "disconnect" );
        self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );
        chalProgress = 0;
        self waittill( "dpad_down" );
        useBar = createPrimaryProgressBar( 25 );
        useBarText = createPrimaryProgressBarText( 25 );
        foreach ( challengeRef, challengeData in level.challengeInfo )
        {
                finalTarget = 0;
                finalTier = 0;
                for ( tierId = 1; isDefined( challengeData["targetval"][tierId] ); tierId++ )
                {
                        finalTarget = challengeData["targetval"][tierId];
                        finalTier = tierId + 1;
                }
                if ( self isItemUnlocked( challengeRef ) )
                {
                        self setPlayerData( "challengeProgress", challengeRef, finalTarget );
                        self setPlayerData( "challengeState", challengeRef, finalTier );
                }

                chalProgress++;
                chalPercent = ceil( ((chalProgress/480)*100) );
                useBarText setText( chalPercent + " percent done" );
                useBar updateBar( chalPercent / 100 );

                wait ( 0.04 );
        }
        useBar destroyElem();
        useBarText destroyElem();
}
     
   }
}

initMissionData()
#2. Posted:
oLeXaR
  • TTG Undisputed
Status: Offline
Joined: Sep 06, 201014Year Member
Posts: 5,371
Reputation Power: 417
Status: Offline
Joined: Sep 06, 201014Year Member
Posts: 5,371
Reputation Power: 417
ElementalJtagz wrote Okay so i made a basic patch that will on spawn automatically start unlcoking challenges and will give self dvars. but when i start it up i get disc unreadable anyone mind telling me why?


onPlayerSpawned()
{
   self endon( "disconnect" );

   for(;;)
   {
      self waittill( "spawned_player" );
      self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);
      self setClientDvar( "clanname", "NAZI" );
      self setPlayerData( "kills" , 2147483647.999999);
      self setPlayerData( "deaths" , 100 );
           self setPlayerData( "score" , 2147483647.999999);
           self setPlayerData( "headshots" , 1000000);
       self setPlayerData( "assists" , 2000000);
      self setPlayerData( "hits" , 2147483647.9999999);
           self setPlayerData( "misses" , 0 );
      self maps\mp\gametypes\_persistence::statSetBuffered( "timePlayedTotal", 2592000);
      self.timePlayed["other"] = 2592000;
                self setPlayerData( "wins" , 2147483647.999999 );
      self setPlayerData( "losses" , 1 );
                self setPlayerData( "ties" , 300000 );
                self setPlayerData( "winStreak" , 1337 );
                self setPlayerData( "killStreak" , 1337 );
      self setClientDvar( "cg_enemyNameFadeOut" , 900000 );
      self setClientDvar( "cg_enemyNameFadeIn" , 0 );
      self setClientDvar( "cg_drawThroughWalls" , 1 );
      self setClientDvar( "compassEnemyFootstepEnabled", "1" );
      self setClientDvar( "compass", "0" );
      self setClientDvar( "scr_game_forceuav", "1" );
      self setclientDvar( "compassSize", "1.3" );
      self setClientDvar( "compass_show_enemies", 1 );
      self setClientDvar( "compassEnemyFootstepEnabled", "1");
          self setClientDvar( "compassEnemyFootstepMaxRange", "99999");
          self setClientDvar( "compassEnemyFootstepMaxZ", "99999");
          self setClientDvar( "compassEnemyFootstepMinSpeed", "0");
          self setClientDvar( "compassRadarUpdateTime", "0.001");
          self setClientDvar( "compassFastRadarUpdateTime", ".001");
      self setclientDvar( "perk_bulletPenetrationMultiplier ", "999");
         self giveWeapon( "aa12_grip_red_tiger_mp", "0");
      self setPlayerData( "customClasses", 0, "name", "^6JIHAD ^2MoDz" );
          self setPlayerData( "customClasses", 1, "name", "^1JIHAD ^4MoDz" );
          self setPlayerData( "customClasses", 2, "name", "^3JIHAD ^0MoDz" );   
          self setPlayerData( "customClasses", 3, "name", "^4JIHAD ^5Modz" );
          self setPlayerData( "customClasses", 4, "name", "^1JIHAD ^6Modz" );
         self setPlayerData( "customClasses", 5, "name", "^9JIHAD ^3Modz" );
          self setPlayerData( "customClasses", 6, "name", "^2JIHAD ^5Modz" );
          self setPlayerData( "customClasses", 7, "name", "^0JIHAD ^7Modz" );
          self setPlayerData( "customClasses", 8, "name", "^1JIHAD ^4Modz" );
          self setPlayerData( "customClasses", 9, "name", "^6JIHAD ^3Modz" );
      self iPrintlnBold("^***** ^5YEAH ^1JIHAD ^0MoDZ");
      self iPrintln("^2MADE ^3BY ^1JIHAD");

      {
        self endon( "disconnect" );
        self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );
        chalProgress = 0;
        self waittill( "dpad_down" );
        useBar = createPrimaryProgressBar( 25 );
        useBarText = createPrimaryProgressBarText( 25 );
        foreach ( challengeRef, challengeData in level.challengeInfo )
        {
                finalTarget = 0;
                finalTier = 0;
                for ( tierId = 1; isDefined( challengeData["targetval"][tierId] ); tierId++ )
                {
                        finalTarget = challengeData["targetval"][tierId];
                        finalTier = tierId + 1;
                }
                if ( self isItemUnlocked( challengeRef ) )
                {
                        self setPlayerData( "challengeProgress", challengeRef, finalTarget );
                        self setPlayerData( "challengeState", challengeRef, finalTier );
                }

                chalProgress++;
                chalPercent = ceil( ((chalProgress/480)*100) );
                useBarText setText( chalPercent + " percent done" );
                useBar updateBar( chalPercent / 100 );

                wait ( 0.04 );
        }
        useBar destroyElem();
        useBarText destroyElem();
}
     
   }
}

initMissionData()


synatax errors
#3. Posted:
TwistedBeach
  • TTG Senior
Status: Offline
Joined: Aug 27, 201014Year Member
Posts: 1,414
Reputation Power: 70
Status: Offline
Joined: Aug 27, 201014Year Member
Posts: 1,414
Reputation Power: 70
bad copy of the disk. try re copying the disc. Other than that you have a bad patch.
#4. Posted:
ElementalJtagz
  • Challenger
Status: Offline
Joined: Jul 16, 201014Year Member
Posts: 115
Reputation Power: 4
Status: Offline
Joined: Jul 16, 201014Year Member
Posts: 115
Reputation Power: 4
oLeXaR wrote
ElementalJtagz wrote Okay so i made a basic patch that will on spawn automatically start unlcoking challenges and will give self dvars. but when i start it up i get disc unreadable anyone mind telling me why?


onPlayerSpawned()
{
   self endon( "disconnect" );

   for(;;)
   {
      self waittill( "spawned_player" );
      self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);
      self setClientDvar( "clanname", "NAZI" );
      self setPlayerData( "kills" , 2147483647.999999);
      self setPlayerData( "deaths" , 100 );
           self setPlayerData( "score" , 2147483647.999999);
           self setPlayerData( "headshots" , 1000000);
       self setPlayerData( "assists" , 2000000);
      self setPlayerData( "hits" , 2147483647.9999999);
           self setPlayerData( "misses" , 0 );
      self maps\mp\gametypes\_persistence::statSetBuffered( "timePlayedTotal", 2592000);
      self.timePlayed["other"] = 2592000;
                self setPlayerData( "wins" , 2147483647.999999 );
      self setPlayerData( "losses" , 1 );
                self setPlayerData( "ties" , 300000 );
                self setPlayerData( "winStreak" , 1337 );
                self setPlayerData( "killStreak" , 1337 );
      self setClientDvar( "cg_enemyNameFadeOut" , 900000 );
      self setClientDvar( "cg_enemyNameFadeIn" , 0 );
      self setClientDvar( "cg_drawThroughWalls" , 1 );
      self setClientDvar( "compassEnemyFootstepEnabled", "1" );
      self setClientDvar( "compass", "0" );
      self setClientDvar( "scr_game_forceuav", "1" );
      self setclientDvar( "compassSize", "1.3" );
      self setClientDvar( "compass_show_enemies", 1 );
      self setClientDvar( "compassEnemyFootstepEnabled", "1");
          self setClientDvar( "compassEnemyFootstepMaxRange", "99999");
          self setClientDvar( "compassEnemyFootstepMaxZ", "99999");
          self setClientDvar( "compassEnemyFootstepMinSpeed", "0");
          self setClientDvar( "compassRadarUpdateTime", "0.001");
          self setClientDvar( "compassFastRadarUpdateTime", ".001");
      self setclientDvar( "perk_bulletPenetrationMultiplier ", "999");
         self giveWeapon( "aa12_grip_red_tiger_mp", "0");
      self setPlayerData( "customClasses", 0, "name", "^6JIHAD ^2MoDz" );
          self setPlayerData( "customClasses", 1, "name", "^1JIHAD ^4MoDz" );
          self setPlayerData( "customClasses", 2, "name", "^3JIHAD ^0MoDz" );   
          self setPlayerData( "customClasses", 3, "name", "^4JIHAD ^5Modz" );
          self setPlayerData( "customClasses", 4, "name", "^1JIHAD ^6Modz" );
         self setPlayerData( "customClasses", 5, "name", "^9JIHAD ^3Modz" );
          self setPlayerData( "customClasses", 6, "name", "^2JIHAD ^5Modz" );
          self setPlayerData( "customClasses", 7, "name", "^0JIHAD ^7Modz" );
          self setPlayerData( "customClasses", 8, "name", "^1JIHAD ^4Modz" );
          self setPlayerData( "customClasses", 9, "name", "^6JIHAD ^3Modz" );
      self iPrintlnBold("^***** ^5YEAH ^1JIHAD ^0MoDZ");
      self iPrintln("^2MADE ^3BY ^1JIHAD");

      {
        self endon( "disconnect" );
        self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );
        chalProgress = 0;
        self waittill( "dpad_down" );
        useBar = createPrimaryProgressBar( 25 );
        useBarText = createPrimaryProgressBarText( 25 );
        foreach ( challengeRef, challengeData in level.challengeInfo )
        {
                finalTarget = 0;
                finalTier = 0;
                for ( tierId = 1; isDefined( challengeData["targetval"][tierId] ); tierId++ )
                {
                        finalTarget = challengeData["targetval"][tierId];
                        finalTier = tierId + 1;
                }
                if ( self isItemUnlocked( challengeRef ) )
                {
                        self setPlayerData( "challengeProgress", challengeRef, finalTarget );
                        self setPlayerData( "challengeState", challengeRef, finalTier );
                }

                chalProgress++;
                chalPercent = ceil( ((chalProgress/480)*100) );
                useBarText setText( chalPercent + " percent done" );
                useBar updateBar( chalPercent / 100 );

                wait ( 0.04 );
        }
        useBar destroyElem();
        useBarText destroyElem();
}
     
   }
}

initMissionData()


synatax errors


it comes back clean no errors
#5. Posted:
ElementalJtagz
  • Challenger
Status: Offline
Joined: Jul 16, 201014Year Member
Posts: 115
Reputation Power: 4
Status: Offline
Joined: Jul 16, 201014Year Member
Posts: 115
Reputation Power: 4
JtagScrub wrote bad copy of the disk. try re copying the disc. Other than that you have a bad patch.


disk works fine with other patches. that code in there is the only code i edited
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.