wc3edit.net

United Warcraft 3 map hacking!
It is currently May 28th, 2017, 10:28 pm

All times are UTC




Post new topic Reply to topic  [ 89 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9  Next
Author Message
PostPosted: May 17th, 2012, 5:03 pm 
Offline
Super Moderator
User avatar

Joined: February 24th, 2009, 1:31 pm
Posts: 3692
Location: JEW LAND
@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.


Top
 Profile  
 
PostPosted: May 17th, 2012, 6:30 pm 
Offline
Forum Spammer

Joined: March 30th, 2009, 9:02 pm
Posts: 682
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


Top
 Profile  
 
PostPosted: May 17th, 2012, 7:07 pm 
Offline
Super Moderator
User avatar

Joined: February 24th, 2009, 1:31 pm
Posts: 3692
Location: JEW LAND
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.


Top
 Profile  
 
PostPosted: May 18th, 2012, 7:51 am 
Offline
Forum Staff
User avatar

Joined: October 18th, 2010, 8:43 am
Posts: 626
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


Top
 Profile  
 
PostPosted: May 18th, 2012, 8:14 am 
Offline
Super Moderator
User avatar

Joined: February 24th, 2009, 1:31 pm
Posts: 3692
Location: JEW LAND
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.


Top
 Profile  
 
PostPosted: August 13th, 2012, 4:53 am 
Offline
Member
User avatar

Joined: March 18th, 2011, 1:05 pm
Posts: 65
Title: so sad
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


Top
 Profile  
 
PostPosted: August 13th, 2012, 7:49 pm 
Offline
Tyrannical Drama Queen
User avatar

Joined: November 19th, 2007, 5:05 am
Posts: 4944
Title: Αυτοκράτωρ
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.


Top
 Profile  
 
PostPosted: August 14th, 2012, 7:39 am 
Offline
Member
User avatar

Joined: March 18th, 2011, 1:05 pm
Posts: 65
Title: so sad
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


Top
 Profile  
 
PostPosted: November 11th, 2012, 2:46 am 
Offline
Newcomer

Joined: October 3rd, 2012, 7:39 am
Posts: 11
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


Top
 Profile  
 
PostPosted: November 11th, 2012, 8:34 am 
Offline
Moderator

Joined: November 3rd, 2010, 10:48 am
Posts: 1806
Location: Singapore
Title: Best Player
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 89 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)