wc3edit.net
https://forum.wc3edit.net/

Cheat Packs Available On Our Site
http://forum.wc3edit.net/tutorials-cheatpacks-f80/cheat-packs-available-on-our-site-t5134-70.html
Page 8 of 10

Author:  haxorico [ May 17th, 2012, 5:03 pm ]
Post subject:  Re: Cheat Packs Available On Our Site

@Bart

I don't know if we were referring to same point. But let me demonstrate.

Some one made a map - For example - DotA
The map has alot of variables and function names etc...
The optimizer is going through the map, and does the following.

Before Optimization
Spoiler:
Code:
globals
constant integer AMOUNT_OF_PLAYERS_PLAYING=12
trigger Test_Trigger=CreateTrigger()
constant string ALL_PICK_COMMAND="ap"
constant string OPERATOR="-"
endglobals

function test takes nothing returns nothing
// stuff
endfunction

function main takes nothing returns nothing
local integer index=0
loop
exitwhen index>=AMOUNT_OF_PLAYERS
// do stuff
set index=index+1
endloop
endfunction


After you optimize it, it will look like this.

Spoiler:
Code:
globals
constant integer A=12
trigger B=CreateTrigger()
constant string C="ap"
constant string D="-"
endglobals

function a takes nothing returns nothing
//stuff
endfunction

function main takes nothing returns nothing
local integer i=0
loop
exitwhen i>=A
//stuff
set i=i+1
endloop
endfunction

Now, what happens if it runs through all the alpha bet? It makes 0A 0B.... ZZ
Whe if it runs out of 2 character combination? Go to 3 etc..
It will take a massive amount of variables and function to make it actually go to lets say..
local integer zzz=0

O wait, that loops so familiar..
Isn't that the code from JJ CP? (Check the function main part)
If you notice, JJ2197 used only 3 characters or more for the variables and function names..

Code:
local player p
wouldn't work on a map that is optimized. but
Code:
local player p2p
will, and now you have a method of remembring, instead of p or i or s or w/e you use. just use
i2i - p2p - s2s etc.. and see how easy it becomes. That is how JJ's CP is build
local unit u2u
local group g2g
local string s2s

and it goes on and on.
This way, optimized maps won't counter this.
That is also why, the way to delete dota anti-cheats is to optimize the map. As DotA has the same variable and function names as Fai and JJ's CPs.

Author:  naturesfury [ May 17th, 2012, 6:30 pm ]
Post subject:  Re: Cheat Packs Available On Our Site

thought it doesnt matter if you repeat locals o.o

ex:
function blank takes nothing returns nothing
local integer x=0
endfunction
function blank2 takes nothing returns nothing
local integer x=1
endfunction

would the two x's conflict? O.o

Author:  haxorico [ May 17th, 2012, 7:07 pm ]
Post subject:  Re: Cheat Packs Available On Our Site

No, that is the thing about a local variable.
But if its on the same function it will conflict. That is why the function-main part of JJ2197's CP, has local integer zzz=0
You will need a shitload of stuff to get a variable that is zzz!
But if you have the following.

globals
string s2s="test"
endglobals

function test takes nothing returns nothing
local string s2s
endfunction

it will crash.

Author:  Nuuby [ May 18th, 2012, 7:51 am ]
Post subject:  Re: Cheat Packs Available On Our Site

haxorico wrote:
And then it won't work because almost every map is optimzed and will have the same function and variable names.

>Use a custom charset. Problem solved

Author:  haxorico [ May 18th, 2012, 8:14 am ]
Post subject:  Re: Cheat Packs Available On Our Site

Nuuby wrote:
haxorico wrote:
And then it won't work because almost every map is optimzed and will have the same function and variable names.

>Use a custom charset. Problem solved


Wasn't that my whole point? Don't use stuff that are less than 3 characters long.

easiest way to do so is have some kind of definition.
On the CP I'm working on I have the following

string haxActivator

or you can use

string cpActivator.

Just make sure you have your definition word at the beginning of every function/variable and it will be easy to understand and remember.

Author:  anhMCP [ August 13th, 2012, 4:53 am ]
Post subject:  Re: Cheat Packs Available On Our Site

SgGuy's Cheat Menu, not to be download. please someone sends me a SgGuy's Cheat Menu, thanks in advance for anyone to do this

Author:  Bartimaeus [ August 13th, 2012, 7:49 pm ]
Post subject:  Re: Cheat Packs Available On Our Site

anhMCP wrote:
SgGuy's Cheat Menu, not to be download. please someone sends me a SgGuy's Cheat Menu, thanks in advance for anyone to do this


Please check the main post again. It's been edited to reflect a...policy change.

Author:  anhMCP [ August 14th, 2012, 7:39 am ]
Post subject:  Re: Cheat Packs Available On Our Site

Bartimaeus wrote:
anhMCP wrote:
SgGuy's Cheat Menu, not to be download. please someone sends me a SgGuy's Cheat Menu, thanks in advance for anyone to do this


Please check the main post again. It's been edited to reflect a...policy change.


sorry a few days ago I saw "SgGuy's Cheat Menu" not download anymore, so I asked for help, but i thank you for answering me quickly

Author:  kelvin5989 [ November 11th, 2012, 2:46 am ]
Post subject:  Re: Cheat Packs Available On Our Site

mods, I've make a new cheatpack and I requested to add it here.

My cheatpack: deprotection-cheating-f64/kelvin-s-cheatpack-v1-3-1-t26611.html

Author:  Apple [ November 11th, 2012, 8:34 am ]
Post subject:  Re: Cheat Packs Available On Our Site

kelvin5989 wrote:
mods, I've make a new cheatpack and I requested to add it here.

My cheatpack: deprotection-cheating-f64/kelvin-s-cheatpack-v1-3-1-t26611.html


Request rejected.
Reason: Firstly everyone can make that. Furthermore, it has no new features to original cp. Instead, you copyrighted, shouldn't even have your name for the work. And finally, it is useless and no one except you will use it.

Page 8 of 10 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/