[GUIDE] Deprotecting / Inserting a CP / Enabling SP

Cheatpacks and learning how to use them, as well as other guides for manipulating maps.

Moderator: Cheaters

Darkness568
Member
Posts: 97
Joined: June 18th, 2007, 12:45 am

Re: [Guide] Deprotecting / Inserting a Cheatpack / Enabling SP

Post by Darkness568 »

Interesting. It turns out that that version is indeed already cheated, but the one i have on my computer works with 1.24. I just put the link cause i thought it would be the same or near same, but like you said its not compatible with the new patch. Here is the one that works with 1.24, but one issue i have with it is is that the title in game when you try to open it to me saids its .16d.

This file should work it turns out the broken one i have is from epicwar and this one should be the working one with the patch (1 doesnt work ie the epicwar one)

Looked through at that map and i found the customdefeatbj heres the lines that i believe disable singleplayer plus the save codes if these are the correct lines do i just delete them?
Spoiler:

Code: Select all

function Trig_Firebolt_One_Actions takes nothing returns nothing
call CustomDefeatBJ(Player(0),"No Single Player.")
call CustomDefeatBJ(Player(1),"No Single Player.")
call CustomDefeatBJ(Player(2),"No Single Player.")
call CustomDefeatBJ(Player(3),"No Single Player.")
call CustomDefeatBJ(Player(4),"No Single Player.")
call CustomDefeatBJ(Player(5),"No Single Player.")
call CustomDefeatBJ(Player(6),"No Single Player.")
call CustomDefeatBJ(Player(7),"No Single Player.")
call CustomDefeatBJ(Player(8),"No Single Player.")
call ForGroupBJ(GetUnitsInRectAll(bj_mapInitialPlayableArea),function Trig_Firebolt_One_Func010A)
call DisableTrigger(gg_trg_Save)
call DisableTrigger(gg_trg_Load_Blue)
call DisableTrigger(gg_trg_Load_Gray)
call DisableTrigger(gg_trg_Load_Green)
call DisableTrigger(gg_trg_Load_Orange)
call DisableTrigger(gg_trg_Load_Pink)
call DisableTrigger(gg_trg_Load_Purple)
call DisableTrigger(gg_trg_Load_Red)
call DisableTrigger(gg_trg_Load_Teal)
call DisableTrigger(gg_trg_Load_Yellow)
endfunction
function Trig_Firebolt_Two_Func001001001001001 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction
function Trig_Firebolt_Two_Func001001001001002 takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())==MAP_CONTROL_USER)
endfunction
function Trig_Firebolt_Two_Func001001001001 takes nothing returns boolean
return GetBooleanAnd(Trig_Firebolt_Two_Func001001001001001(),Trig_Firebolt_Two_Func001001001001002())
endfunction
function Trig_Firebolt_Two_Conditions takes nothing returns boolean
return(CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Firebolt_Two_Func001001001001)))<2)
endfunction
function Trig_Firebolt_Two_Func002A takes nothing returns nothing
call RemoveUnit(GetEnumUnit())
endfunction
function Trig_Firebolt_Two_Actions takes nothing returns nothing
call ForGroupBJ(GetUnitsInRectAll(bj_mapInitialPlayableArea),function Trig_Firebolt_Two_Func002A)
call DisableTrigger(gg_trg_Save)
call DisableTrigger(gg_trg_Load_Blue)
call DisableTrigger(gg_trg_Load_Gray)
call DisableTrigger(gg_trg_Load_Green)
call DisableTrigger(gg_trg_Load_Orange)
call DisableTrigger(gg_trg_Load_Pink)
call DisableTrigger(gg_trg_Load_Purple)
call DisableTrigger(gg_trg_Load_Red)
call DisableTrigger(gg_trg_Load_Teal)
call DisableTrigger(gg_trg_Load_Yellow)
endfunction
To re enable patrol would i need to delete these lines then?
Spoiler:

Code: Select all

function Trig_No_Patrol_Conditions takes nothing returns boolean
return(GetIssuedOrderId()==851990)
endfunction
function Trig_No_Patrol_Actions takes nothing returns nothing
call IssueImmediateOrderById(GetTriggerUnit(),851972)
endfunction
You do not have the required permissions to view the files attached to this post.
User avatar
UndeadxAssassin
Grammar King
Posts: 2116
Joined: June 22nd, 2008, 10:11 pm
Title: Worst human for 4eva
Location: Mostly USEast

Re: [Guide] Deprotecting / Inserting a Cheatpack / Enabling SP

Post by UndeadxAssassin »

Future references, when you remove an entire function, there could be anticheats that prevent the game from working if that specific function is missing (I've encountered this only once, though). The better thing to do is replace all the

call CustomDefeatBJ(Player(#),"No Single Player.")

with

call DoNothing ( )

And also all the disables with call DoNothing ( ).

Basically..
Spoiler:

Code: Select all

function Trig_Firebolt_One_Actions takes nothing returns nothing
[color=#FF0000]call DoNothing ( )[/color]
endfunction 
function Trig_Firebolt_Two_Func001001001001001 takes nothing returns boolean
return(GetPlayerSlotState(GetFilterPlayer())==PLAYER_SLOT_STATE_PLAYING)
endfunction [b][color=#FF0000]Leave these alone, they're just checking the amount of players and such. They don't kick you or anything.[/color][/b]
function Trig_Firebolt_Two_Func001001001001002 takes nothing returns boolean
return(GetPlayerController(GetFilterPlayer())==MAP_CONTROL_USER)
endfunction
function Trig_Firebolt_Two_Func001001001001 takes nothing returns boolean
return GetBooleanAnd(Trig_Firebolt_Two_Func001001001001001(),Trig_Firebolt_Two_Func001001001001002())
endfunction
function Trig_Firebolt_Two_Conditions takes nothing returns boolean
return(CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Firebolt_Two_Func001001001001)))<2)
endfunction
function Trig_Firebolt_Two_Func002A takes nothing returns nothing
[color=#FF0000]call DoNothing ( )[/color]
endfunction
function Trig_Firebolt_Two_Actions takes nothing returns nothing
[color=#FF0000]call DoNothing ( )[/color]
endfunction
This SHOULD work if there aren't any other anti-singles in there. I assume you are fully capable of finding them.

As for the patrol, DoNothing should work for that, too ;-) .
(20:53:52) Bartimaeus: Thank you, Jen.
(20:53:56) Bartimaeus: Truly, you are wise.
(23:44:12) Bartimaeus: I was in pubic school until middle school...
Learn how to extract and read RAW Codes here!

Need help? Click here and ask your question!
Darkness568
Member
Posts: 97
Joined: June 18th, 2007, 12:45 am

Re: [Guide] Deprotecting / Inserting a Cheatpack / Enabling SP

Post by Darkness568 »

Ok i was able to do all the do nothings and whatnot and i have reimported the new .j file, but now the map is incompatible for v 1.24 somehow.
angpenghian
Newcomer
Posts: 20
Joined: August 22nd, 2009, 10:19 am

Re: [Guide] Deprotecting / Inserting a Cheatpack / Enabling SP

Post by angpenghian »

i dont have the code can u give me
User avatar
UndeadxAssassin
Grammar King
Posts: 2116
Joined: June 22nd, 2008, 10:11 pm
Title: Worst human for 4eva
Location: Mostly USEast

Re: [Guide] Deprotecting / Inserting a Cheatpack / Enabling SP

Post by UndeadxAssassin »

That's strange, DoNothing wasn't one of the patches in 1.24 so it should still work.

I'll see what I can do when I get back home and access to my tools and such.
(20:53:52) Bartimaeus: Thank you, Jen.
(20:53:56) Bartimaeus: Truly, you are wise.
(23:44:12) Bartimaeus: I was in pubic school until middle school...
Learn how to extract and read RAW Codes here!

Need help? Click here and ask your question!
Darkness568
Member
Posts: 97
Joined: June 18th, 2007, 12:45 am

Re: [Guide] Deprotecting / Inserting a Cheatpack / Enabling SP

Post by Darkness568 »

Well while doing that i found out that in the code there was another single player checker in the sga trigger (Stone Giant Assault) which is one of the dungeons in the game. I changed all that to do nothing and when i tried to reimport it it was working and i kept doing it and hitting flush over and over cause it wouldnt update.

Turns out that i had the game still open and when i closed it it finally worked, but i think somehow it may have messed with something. Also i deleted about 20do nothings to make it simpliar caused i had call do nothing like 8times in a row several times.
User avatar
UndeadxAssassin
Grammar King
Posts: 2116
Joined: June 22nd, 2008, 10:11 pm
Title: Worst human for 4eva
Location: Mostly USEast

Re: [Guide] Deprotecting / Inserting a Cheatpack / Enabling SP

Post by UndeadxAssassin »

Oh. Happens often. You can't modify a file that's being used by another program. Haven't you ever gotten those "System cannot close this file because it's in use by another program" or something like that? It annoys me.
(20:53:52) Bartimaeus: Thank you, Jen.
(20:53:56) Bartimaeus: Truly, you are wise.
(23:44:12) Bartimaeus: I was in pubic school until middle school...
Learn how to extract and read RAW Codes here!

Need help? Click here and ask your question!
Darkness568
Member
Posts: 97
Joined: June 18th, 2007, 12:45 am

Re: [Guide] Deprotecting / Inserting a Cheatpack / Enabling SP

Post by Darkness568 »

Yea i ive gotten that before just not with that program took me like 8mins to realize i still had the game open and then the import worked. Ive imported the new file several times, but it stopped working when i did that last SGA edit and shortened all of the do nothing parts of them.
angpenghian
Newcomer
Posts: 20
Joined: August 22nd, 2009, 10:19 am

Re: [Guide] Deprotecting / Inserting a Cheatpack / Enabling SP

Post by angpenghian »

SOME1 ANS ME ASAP I CANT FLUSH THE WAR3.j thing with the mpqmaster pls help me
No-sense
Old Wrinkly Member
Posts: 291
Joined: August 15th, 2009, 9:22 am
Title: senseR - No. 1

Re: [Guide] Deprotecting / Inserting a Cheatpack / Enabling SP

Post by No-sense »

angpenghian wrote:SOME1 ANS ME ASAP I CANT FLUSH THE WAR3.j thing with the mpqmaster pls help me
Download newest MPQMaster(CLICK!) . Or reopen your MPQMaster.

Edit: As for now , you no need flush the .J file anymore , because if you're using 1.24 , maximum map size is 8mb for now.

Uhh , so no need to flush anymore \\