War Rock Cheat Programming Discussion

11/09/2013 10:14 Alliance™#256
Help me!
I search of plugin Sig MAke 0.3 the pattern of NoFall Damage but the output is incorrect:
Code:
Pattern:     \x8D\xB7\x00\x00\x00\x00\xD9\x1C\x24
Mask:      xx????xxx
Output:  0x102E8[COLOR="Red"]B7[/COLOR]

[COLOR="red"]B7[/COLOR] is incorrect
[COLOR="DarkGreen"]0x102E8[/COLOR] is correct
11/09/2013 11:24 Kazbah__#257
Quote:
i has it working in other way.
but has i noticed on code i saw some changment.
its working on the old way too

Quote:
Help me!
I search of plugin Sig MAke 0.3 the pattern of NoFall Damage but the output is incorrect:
do it by hand lol?
11/09/2013 11:45 Alliance™#258
i delete manually the last byte?
Example:

Code:
Output: 0x102E8B7
Correct:0x102E8
Delete manually B7?
11/09/2013 14:13 Cyanstack#259
Quote:
Originally Posted by Alliance™ View Post
i delete manually the last byte?
Example:

Code:
Output: 0x102E8B7
Correct:0x102E8
Delete manually B7?

You made the pattern like this right?
Code:
FindPattern((PBYTE)"\xpattern..","mask" , 1 , true );
The corret one is
Quote:
FindPattern((PBYTE)"\xpattern..","mask" , 2 , true );
Because the 3rd parameter of findpattern is like say :
jump tot bytes and find the addy, so,
if the pattern is this

Code:
 \x8D\xB7\x00\x00\x00\x00\xD9\x1C\x24
You must jump 2 bytes ( 8D B7 ) and find the addy .

if u put 1 the logger take also B7 because you jump just 8D
11/09/2013 14:18 Alliance™#260
My pattern is this:

Code:
DWORD OFS_NoFallDamage=FindPattern((PBYTE)"\x8D\xB7\x00\x00\x00\x00\xD9\x1C\x24\xE8\x00\x00\x00\x00\xA1\x00","xx????xxxx????x?",true,2);

Output: 0x102E8B7
Correct:0x102E8

DWORD OFS_X=FindPattern((PBYTE)"\x8D\x86\x00\x00\x00\x00\x8D\x4B\x74\xE8\x00\x00\x00\x00\xE8\x00","xx????xxxx????x?",true,2);


Output: 0x1030086
Correct:0x10300
What is the problem in my addylog?
I considered 16bit HEX
11/09/2013 14:22 Cyanstack#261
Quote:
Originally Posted by Alliance™ View Post
My pattern is this:

Code:
DWORD OFS_NoFallDamage=FindPattern((PBYTE)"\x8D\xB7\x00\x00\x00\x00\xD9\x1C\x24\xE8\x00\x00\x00\x00\xA1\x00","xx????xxxx????x?",true,2);

Output: 0x102E8B7
Correct:0x102E8

DWORD OFS_X=FindPattern((PBYTE)"\x8D\x86\x00\x00\x00\x00\x8D\x4B\x74\xE8\x00\x00\x00\x00\xE8\x00","xx????xxxx????x?",true,2);


Output: 0x1030086
Correct:0x10300
What is the problem in my addylog?

try these

FindPattern((PBYTE)"\x8D\xB7\x00\x00\x00\x00\xD9\x 1C\x24\xE8\x00\x00\x00\x00\xA1\x00","xx????xxxx??? ?x?",2,true);

FindPattern((PBYTE)"\x8D\x86\x00\x00\x00\x00\x8D\x 4B\x74\xE8\x00\x00\x00\x00\xE8\x00","xx????xxxx??? ?x?",2,true);
11/09/2013 14:40 Alliance™#262
Quote:
Originally Posted by Cyanstack View Post
try these

FindPattern((PBYTE)"\x8D\xB7\x00\x00\x00\x00\xD9\x 1C\x24\xE8\x00\x00\x00\x00\xA1\x00","xx????xxxx??? ?x?",2,true);

FindPattern((PBYTE)"\x8D\x86\x00\x00\x00\x00\x8D\x 4B\x74\xE8\x00\x00\x00\x00\xE8\x00","xx????xxxx??? ?x?",2,true);
don't work man
11/09/2013 16:22 Combatdafuq#263
DWORD ADR_OFFSET_LOCALPLAYERSIZE = 0xA1DC; // 06/11/2013

for what do you use it @kazbah just wondering ?
11/09/2013 19:31 kevin0152#264
request latest dump for warrock int
11/09/2013 23:23 Kazbah__#265
Quote:
DWORD ADR_OFFSET_LOCALPLAYERSIZE = 0xA1DC; // 06/11/2013

for what do you use it @kazbah just wondering ?
i dont use it it was on my old logger
11/10/2013 12:07 Combatdafuq#266
Quote:
Originally Posted by Kazbah__ View Post
i dont use it it was on my old logger
if it's is real local size..
you can use it with cPlayer Info
to retrive your all local information with out using the index ;)

normaly all using like this for retrive local information
getplayerinfor ( pPlayer->Index );
11/10/2013 13:31 +Yazzn#267
Instead of using GetPlayerInfo you should make the class/struct exactly ADR_OFFSET_LOCALPLAYERSIZE bytes big and simply use an array (preferable std::array and not a c array).

[Only registered and activated users can see links. Click Here To Register...]
(offsets and addresses outdated)

Now you can easily iterate over all player_infos like that:

Code:
	for (auto &cur_player : warrock::player_infos) {
		std::cout << cur_player.name << std::endl;
	}
11/10/2013 14:41 __BuRn3R#268
#define ASM_AUTOHEAL1 0x50674F // Updated
#define ASM_AUTOHEAL2 ASM_AUTOHEAL1 + 0x26D // Updated
#define ASM_AUTOAMMO1 0x506646 // Updated
#define ASM_AUTOAMMO2 ASM_AUTOAMMO1 + 0x40 // Updated
11/10/2013 15:22 Raz9r#269
Quote:
Originally Posted by Yazzn (: View Post
Code:
	for (auto &cur_player : warrock::player_infos) {
		std::cout << cur_player.name << std::endl;
	}
FTFY.

e/ Er hat's übernommen, für die Leute die es nicht mitbekommen hatten: Vorher stand da auto cur_player, was eine Kopie erstellt hätte anstatt auf die richtige Stelle im Speicher zu referenzieren.
11/11/2013 01:12 Combatdafuq#270
its the current way that i'm using to iterate