Page 2 of 6

Re: [Guide] Advanced Cheating

Posted: September 10th, 2010, 3:05 am
by haxorico
if you delete a function, then some where in the .j file it is being called or used in some way, and if you delete the function it will cause a syntax error.
If you delete a returned value, then that value probably has a purpose, and that purpose is written in a different function. So then if there is no value, it gets an error.

Re: [Guide] Advanced Cheating

Posted: September 10th, 2010, 4:22 am
by royalsymbol
so this is the way we can enable single players?
what do we need to look for?

Code: Select all

PLAYER_SLOT_STATE_PLAYING
customdefeatbj
singleplayer


i know there are more..
i've tried Defi4nc3 Open RPG (v0.17B)
http://www.mapgnome.org/map-download/213739

It's quite hard to enable Single Player.. can you make a guide on this map?
I've looked into
deprotection-cheating-f64/deprotecting-inserting-a-cheatpack-enabling-sp-t10059.html
where it says
Make sure you don't delete the function itself, but delete the functions that relate to "bj_isSinglePlayer".


deprotection-cheating-f64/how-to-enable-single-player-by-jj2197-t5725.

and finally

deprotection-cheating-f64/deprotecting-tools-a-guide-how-to-deprotect-any-map-t16357.html

The way I activate single player

Note : This doesn't work on highly corrupted maps.
1- Extract the .j file, open it in JassCraft included in the package.
2- Search on the text it gives when you try to save singleplayer
3- Remove all script from the "if" statement to the "endif" statement.
I know this is a 'noob' way of singleplayering a map, but it normally works (for me at least).


tried these ways, not sure which to delete or change to call DoNothing( )

Re: [Guide] Advanced Cheating

Posted: September 10th, 2010, 5:55 am
by Kyoshiro
There are easier ways than to delete or change all the triggers such as looking for triggers that count the number of players
In your map for example

Code: Select all

return(CountPlayersInForceBJ(GetPlayersMatching(Condition(function Trig_Firebolt_Two_Func001001001001)))<2)

Just change the < to a >. There are others in there but thats the gist of it.

Re: [Guide] Advanced Cheating

Posted: September 10th, 2010, 3:35 pm
by Pyro7778
Umm... Kyoshiro, if you change it from less than to greater than... Single Player would work, but if you tried to play it online with 3 or more people the game would end.

Re: [Guide] Advanced Cheating

Posted: September 10th, 2010, 4:16 pm
by Kyoshiro
Yeah but who'd be hosting the cheated version with sp enabled anyway.
Mostly it'd just be cheat/save code/play on official map. But to fix what pyro touched upon you can change the 2 to a 0.

Re: [Guide] Advanced Cheating

Posted: September 10th, 2010, 4:50 pm
by haxorico
wow? spam much?
next time I see a message that has nothing to do with this post, ill start giving warnings..
This isn't a guide on how to enable single player. Got a question? make your own post.

Re: [Guide] Advanced Cheating

Posted: September 11th, 2010, 11:22 pm
by Ken
Protip: Don't tell people to use MPQ Recover. Instead, use the auto search function of RMPQex, since it's got all the functionality and more.

Re: [Guide] Advanced Cheating

Posted: September 12th, 2010, 12:17 am
by haxorico
I'm not sure how its all working, yet auto-search at RMPQEx is kinda weird imo. I tried finding files with no listfile and it barely found any. And with MPQRecover it was.. good. It found stuff.

Re: [Guide] Advanced Cheating

Posted: September 18th, 2010, 10:02 pm
by Kyzerdrood
Nice guide :-) When do you plan on adding the "Fake version" guide to it?

Re: [Guide] Advanced Cheating

Posted: September 18th, 2010, 10:27 pm
by haxorico
I was planning on doing it when Ill get home.. tough things got kinda bad. In a week I should get some time to finish it.