Quick C# Address Question

Posts 113 of 13 · Page 1 of 1
Quick C# Address Question
This is the address: iw6mp64_ship+4332B40

This is the code that it has to be implemented in: WriteInteger(0x000000, int.Parse(textBox1.Text));

How do I implement this in there? (C# noob)
assuming you got the functions to write in memory..
example:

int xp = Convert.ToInt32(textBox1.Text);
WriteInteger(your address, xp);

I always do it line by line, easier to debug incase shit hits the fan on more sophisticated projects

if the problem is the address itself..:
EZ way is to look in CE itself for the address since they are static anyway and the base address remains the same

If the base address would change you need to find the base addy then add 0x....

example:
Code:
private long BaseAddress(string Module_Name)
        {
            if (Process.GetProcessesByName("iw6BLABLABLA").Length != 0)
            {
                foreach (ProcessModule Mod in Process.GetProcessesByName("iw6BLABLABLA")[0].Modules)
                {
                    if (Mod.ModuleName == Module_Name)
                        return (long)Mod.BaseAddress.ToInt64();
                }
                return 0;
            }
            else return 0;
        }
then for example:

long address = base_address + 0x012345670;
Quote Originally Posted by distiny View Post
assuming you got the functions to write in memory..
example:

int xp = Convert.ToInt32(textBox1.Text);
WriteInteger(your address, xp);

I always do it line by line, easier to debug incase shit hits the fan on more sophisticated projects


Why the errors?
Quote Originally Posted by distiny View Post
assuming you got the functions to write in memory..
example:

int xp = Convert.ToInt32(textBox1.Text);
WriteInteger(your address, xp);

I always do it line by line, easier to debug incase shit hits the fan on more sophisticated projects

if the problem is the address itself..:
EZ way is to look in CE itself for the address since they are static anyway and the base address remains the same

If the base address would change you need to find the base addy then add 0x....

example:
Code:
private long BaseAddress(string Module_Name)
        {
            if (Process.GetProcessesByName("iw6BLABLABLA").Length != 0)
            {
                foreach (ProcessModule Mod in Process.GetProcessesByName("iw6BLABLABLA")[0].Modules)
                {
                    if (Mod.ModuleName == Module_Name)
                        return (long)Mod.BaseAddress.ToInt64();
                }
                return 0;
            }
            else return 0;
        }
then for example:

long address = base_address + 0x012345670;
But I don't need to type that :/

Look, this is my code:



Just alter it so that the address is implemented without typing that massive piece of code. Then I will learn
what is the error .....

u got Teamviewer or something ?
Quote Originally Posted by distiny View Post
what is the error .....

u got Teamviewer or something ?
Teamviewer licence finished. Add me on Skype: fadiastifan
because iw6mp64_ship isn't an address and you have to do + 0x1231654

I edited my first post

but for this game since the base address doesn't change just type the address the table in CE tells you. CE does base addy+0x13545 auto in the table
you forgot 0x at the beginning of your address; addy's are hexadecimal (0123456789ABCDEF) and not decimal (0123456789)
that's why you need to start with 0x so it knows it's a hex value

0x32 is not the same as 32
Quote Originally Posted by distiny View Post
you forgot 0x at the beginning of your address
Still an error

Quote Originally Posted by ImMalkah View Post
Still an error

Prestige isn't a value.
Atleast you haven't defined one for prestige.
teamviewer is free

i'll add you

EDIT Added you on skype
yes he has...
int prestige = Convert.To......

most likely his WriteInteger function has the address as an Int instead of long

but we need the full error message cuz red wavy lines can mean anything

problem was he didn't have the function WriteInteger... thought it was a standard function included in c#

soz for double posting, can't delete this post :s
Problem solved, thanks guys .
Posts 113 of 13 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?