How do you update multiple offsets?

Posts 115 of 15 · Page 1 of 1
How do you update multiple offsets?
I wanted to ask you guys how do you update multiple offsets?

For example lets say I these 5 offsets:

0x1213221
0x1213222
0x1213223
0x1213224
0x1213225

and the new offsets for these are by adding 4567.

Now I can easily do this with the windows calculator however is there a way to do this all in one go so rather having me add 4567 to each offset manually, i could run a script in c# or program to automatically update these offsets in one go.

If that makes any sense? These are just made up offsets.
Code:
DWORD AddrList[] = { 0x1213221, 0x1213222, 0x1213223, 0x1213224, 0x1213225 }, UpdateValue = 4567;

for( int i = 0; i < sizeof( AddrList ); i++ )
        AddrList[ i ] += UpdateValue;
Quote Originally Posted by Kenshin13 View Post
Code:
DWORD AddrList[] = { 0x1213221, 0x1213222, 0x1213223, 0x1213224, 0x1213225 }, UpdateValue = 4567;

for( int i = 0; i < sizeof( AddrList ); i++ )
        AddrList[ i ] += UpdateValue;
thanks for the reply but how do i use this? I'm new to c# so i'm still a noob at it.
Quote Originally Posted by Jarniboi786 View Post
thanks for the reply but how do i use this? I'm new to c# so i'm still a noob at it.
I would like to have more info like:
-Do you want to update the addresses then save them to a file?
-Do you want to update them within the program?
-How is your code like? (Write(0xAddress, Value)) [Or like: int XP = 0xAddress;]


To use it, would mainly just be useful if you're doing a write to all.
Make a function to do this for you, is also an option.
Quote Originally Posted by Jorndel View Post


I would like to have more info like:
-Do you want to update the addresses then save them to a file?
-Do you want to update them within the program?
-How is your code like? (Write(0xAddress, Value)) [Or like: int XP = 0xAddress;]


To use it, would mainly just be useful if you're doing a write to all.
Make a function to do this for you, is also an option.
I'd like for a program to update the offsets and put them in a txt file.

so -Do you want to update the addresses then save them to a file? thats what i want
Quote Originally Posted by Jarniboi786 View Post
I'd like for a program to update the offsets and put them in a txt file.

so -Do you want to update the addresses then save them to a file? thats what i want
Ah, as I've done before then, released
My Tool: http://www.mpgh.net/forum/404-call-d...t-updater.html


Well, let's try to code without any VC#
Code:
int UpdateValue = 0x0;

SaveFileDialog sF = new SaveFileDialog();
sF.ShowDialog();



foreach(string address in richTextBox1.Lines)
{
try
{
     System. I O .File.AppendText(sF.FileName + ".txt", (int.Parse(address.Replace("0x",""), System.Globalization.NumberStyles.HexNumber) + UpdateValue).ToString() + "\n");
}
catch{}

}
Suppose something like that
Quote Originally Posted by Jorndel View Post


Ah, as I've done before then, released
My Tool: http://www.mpgh.net/forum/404-call-d...t-updater.html


Well, let's try to code without any VC#
Code:
int UpdateValue = 0x0;

SaveFileDialog sF = new SaveFileDialog();
sF.ShowDialog();



foreach(string address in richTextBox1.Lines)
{
try
{
     System. I O .File.AppendText(sF.FileName + ".txt", (int.Parse(address.Replace("0x",""), System.Globalization.NumberStyles.HexNumber) + UpdateValue).ToString() + "\n");
}
catch{}

}
Suppose something like that
like i said I'm still a noob this to me means "huh" lol I just wanted a simple copy and paste code so when i click the button it updates the offsets and generates a txt file with the updated offsets. Then if i want to update another offset i can just simply replace the code in c# and build the program over again.
Quote Originally Posted by Jarniboi786 View Post
like i said I'm still a noob this to me means "huh" lol I just wanted a simple copy and paste code so when i click the button it updates the offsets and generates a txt file with the updated offsets. Then if i want to update another offset i can just simply replace the code in c# and build the program over again.
Then you might want to use the tool I already released then?
(tho, you need to copy & paste the addresses )
Quote Originally Posted by Jorndel View Post


Ah, as I've done before then, released
My Tool: http://www.mpgh.net/forum/404-call-d...t-updater.html


Well, let's try to code without any VC#
Code:
int UpdateValue = 0x0;

SaveFileDialog sF = new SaveFileDialog();
sF.ShowDialog();



foreach(string address in richTextBox1.Lines)
{
try
{
     System. I O .File.AppendText(sF.FileName + ".txt", (int.Parse(address.Replace("0x",""), System.Globalization.NumberStyles.HexNumber) + UpdateValue).ToString() + "\n");
}
catch{}

}
Suppose something like that
sorry mate didn't see your program link, thanks for that.
Quote Originally Posted by Jarniboi786 View Post
sorry mate didn't see your program link, thanks for that.
So, it's solved for you or?
Still need a "Working" code?
Quote Originally Posted by Jorndel View Post


Then you might want to use the tool I already released then?
(tho, you need to copy & paste the addresses )
one last question. when i open up the cheat tables users have released most offsets are like this "t6mp.exe+2B155A2" but in cheat engine they are like this 2F17990.

how would you change the addresses in the .ct file for them to be readable in notepad like this 2F17990 rather then t6mp.exe+2B155A2
Quote Originally Posted by Jarniboi786 View Post
one last question. when i open up the cheat tables users have released most offsets are like this "t6mp.exe+2B155A2" but in cheat engine they are like this 2F17990.

how would you change the addresses in the .ct file for them to be readable in notepad like this 2F17990 rather then t6mp.exe+2B155A2
For Cheat Engine Table Updats, you just do this:
-NOTE: You don't have to mark them all

http://www.mpgh.net/forum/675-call-d...-tutorial.html
Quote Originally Posted by Jorndel View Post


For Cheat Engine Table Updats, you just do this:
-NOTE: You don't have to mark them all

http://www.mpgh.net/forum/675-call-d...-tutorial.html
i'm trying to view them in notepad so i can apply them to ps3. Don't ask me how I get them to work for PS3 i just know.

I basically take the difference from the PS3 offset and PC offset away from the PC offset to find the real PS3 offset, might be confusing but thats what i do.
Quote Originally Posted by Jarniboi786 View Post
i'm trying to view them in notepad so i can apply them to ps3. Don't ask me how I get them to work for PS3 i just know.

I basically take the difference from the PS3 offset and PC offset away from the PC offset to find the real PS3 offset, might be confusing but thats what i do.
Um, wrong. Besides the different architecture, the binaries don't always have the same update value.

Quote Originally Posted by PunisherOfCod View Post
To make it easy for you, if you use visual basic this is what you do:

&H"YOU ADDRESS HERE" + &H"UPDATE VALUE HERE"

remove the quotations.
He wants to do it in one swoop.
To make it easy for you, if you use visual basic this is what you do:

&H"YOU ADDRESS HERE" + &H"UPDATE VALUE HERE"

remove the quotations.
Posts 115 of 15 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?