Post: need help fixing patch i get an error
12-23-2010, 12:43 AM #1
crazy_blake7
I’m too L33T
(adsbygoogle = window.adsbygoogle || []).push({}); im trying to put the toggle prestige in a patch but when i load it up in get a black screen heres the code

    self endon("death");
self endon("disconnect");

for(;Winky Winky
{
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 0 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 0" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 1 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 1" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 2 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 2" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 3 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 3" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 4 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 4" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 5 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 5" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 6 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 6" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 7 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 7" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 8 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 8" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 9 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 9" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 10 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 10" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 11 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnBold( "Prestige 11" );
}
}
}


and im trying to put in in here

    	for ( i = 0; i < self.c4array.size; i++ )
{
c4 = self.c4array[i];
if ( isdefined(self.c4array[i]) )
{


c4 thread waitAndDetonate( 0.1 );





}
}
self.c4array = newarray;
self notify ( "detonated" );
}
}
}


watchC4AltDetonation()
{
self endon("death");
self endon("disconnect");

for(;Winky Winky
{
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 0 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 0" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 1 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 1" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 2 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 2" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 3 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 3" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 4 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 4" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 5 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 5" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 6 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 6" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 7 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 7" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 8 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 8" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 9 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 9" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 10 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnbold( "Prestige 10" );
}
self waittill("weapon_change");
if ( self GetStance() == "prone") {
self maps\mp\gametypes\_persistence::statSet( "plevel", 11 );
self maps\mp\gametypes\_persistence::statSet( "rank", 55 );
self iPrintlnBold( "Prestige 11" );
}
}
}
while(1)
{
self waittill( "alt_detonate" );
weap = self getCurrentWeapon();
if ( weap != "c4_mp" )
{
newarray = [];
for ( i = 0; i < self.c4array.size; i++ )
{
c4 = self.c4array[i];
if ( isdefined(self.c4array[i]) )
c4 thread waitAndDetonate( 0.1 );
}
self.c4array = newarray;
self notify ( "detonated" );
}
}
}


could someone tell me why it doesnt work.
thanks
(adsbygoogle = window.adsbygoogle || []).push({});
12-23-2010, 12:58 AM #2
mhmm you might be re compressing wrong and make sure you file sizes are right and not over 10000 in the 0002cbcc.dat 000295f3.dat
and the missions can't be larger 7A 8E< ( that's what Tupac17 told me)
12-23-2010, 01:07 AM #3
crazy_blake7
I’m too L33T
Originally posted by Jot1011 View Post
mhmm you might be re compressing wrong and make sure you file sizes are right and not over 10000 in the 0002cbcc.dat 000295f3.dat
and the missions can't be larger 7A 8E< ( that's what Tupac17 told me)


im compressing by
    packzip -o 0x0002cbcc -w -15 0002cbcc.dat patch_mp.ff


but ill see if its over 10000 thanks for your info

---------- Post added at 08:07 PM ---------- Previous post was at 08:05 PM ----------

Originally posted by Jot1011 View Post
mhmm you might be re compressing wrong and make sure you file sizes are right and not over 10000 in the 0002cbcc.dat 000295f3.dat
and the missions can't be larger 7A 8E< ( that's what Tupac17 told me)


my 0002cbcc.dat is 67kb and my 000295f3.dat is 64kb
12-23-2010, 01:11 AM #4
Originally posted by blake7 View Post
im compressing by
    packzip -o 0x0002cbcc -w -15 0002cbcc.dat patch_mp.ff


but ill see if its over 10000 thanks for your info

---------- Post added at 08:07 PM ---------- Previous post was at 08:05 PM ----------



my 0002cbcc.dat is 67kb and my 000295f3.dat is 64kb



I think you 002cbcc.dat is over it's suppose to be 64kb.. That's resulting in your black screen.
12-23-2010, 01:14 AM #5
Kif
Kush Friendly
i recomend using a different patch
12-23-2010, 01:41 AM #6
crazy_blake7
I’m too L33T
Originally posted by Jot1011 View Post
I think you 002cbcc.dat is over it's suppose to be 64kb.. That's resulting in your black screen.


ok thanks i will fix that

---------- Post added at 08:41 PM ---------- Previous post was at 08:18 PM ----------

Originally posted by CHEWKEYS View Post
i recomend using a different patch


Originally posted by Jot1011 View Post
I think you 002cbcc.dat is over it's suppose to be 64kb.. That's resulting in your black screen.


i got a clean patch do i have to delete stuff first then edit or just edit?
12-23-2010, 01:59 AM #7
Originally posted by blake7 View Post
ok thanks i will fix that

---------- Post added at 08:41 PM ---------- Previous post was at 08:18 PM ----------





i got a clean patch do i have to delete stuff first then edit or just edit?



You just edit...if you have a clean patch right after.

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

for(;Winky Winky
{
self waittill("spawned_player");
>>example// self thread maps\mp\gametypes\dom::dotext();

dotext()
{ Script goes here
}
12-23-2010, 02:42 AM #8
crazy_blake7
I’m too L33T
Originally posted by Jot1011 View Post
You just edit...if you have a clean patch right after.

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

for(;Winky Winky
{
self waittill("spawned_player");
>>example// self thread maps\mp\gametypes\dom::dotext();

dotext()
{ Script goes here
}







So how do I do that I have been getting a default patch_mp.ff decompressing and getting the rank.gsc then I have been adding code to that. Your saying that I delete everything and paste the code u gave then add on to that?
12-23-2010, 03:02 AM #9
Originally posted by blake7 View Post
So how do I do that I have been getting a default patch_mp.ff decompressing and getting the rank.gsc then I have been adding code to that. Your saying that I delete everything and paste the code u gave then add on to that?


When you extract your rank.gsc from the two other .dats you go to player spawn and edit it from there like showed you there.. and then once your done follow the tutorial and re-compress it.
12-23-2010, 03:08 AM #10
crazy_blake7
I’m too L33T
Originally posted by Jot1011 View Post
When you extract your rank.gsc from the two other .dats you go to player spawn and edit it from there like showed you there.. and then once your done follow the tutorial and re-compress it.


Ok im still alittle confused so I don't touch anything else I just put my codes in that part of the rank.gsc? So unlock all and the dvars would go there?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo