Quantcast

Jump to content

» «
Photo

c# teleport to coordonates

14 replies to this topic
paulicabos
  • paulicabos

    Player Hater

  • Members
  • Joined: 27 Jul 2012

#1

Posted 27 July 2012 - 06:50 AM Edited by paulicabos, 31 July 2012 - 05:30 AM.

Hello , i want to teleport to a specific coordonate.
What is the memory acces for x,y and z pos?

I need somethink like

0x....... [float] ( i think is float value )

Can you help me?


About GTA SA i'm talking

Barguast
  • Barguast

    Thy next foe is...

  • Andolini Mafia Family
  • Joined: 27 Jul 2002

#2

Posted 28 July 2012 - 03:41 PM

I suspect this is a modding question (is it?). Either way, you're going to need to be a bit more specific about what you're doing and what you're trying to do.

K^2
  • K^2

    Vidi Vici Veni

  • Moderator
  • Joined: 14 Apr 2004
  • United-States
  • Most Knowledgeable [Web Development/Programming] 2013
    Most Knowledgeable [GTA Series] 2011
    Best Debater 2010

#3

Posted 28 July 2012 - 03:52 PM

For starters, what game?

paulicabos
  • paulicabos

    Player Hater

  • Members
  • Joined: 27 Jul 2012

#4

Posted 31 July 2012 - 05:30 AM

Sorry i forgot to say is GTA San Andreas

K^2
  • K^2

    Vidi Vici Veni

  • Moderator
  • Joined: 14 Apr 2004
  • United-States
  • Most Knowledgeable [Web Development/Programming] 2013
    Most Knowledgeable [GTA Series] 2011
    Best Debater 2010

#5

Posted 31 July 2012 - 06:25 AM

SA Memory Addresses - Pedestrians. You want to use the fixed address that contains pointer to player to locate player pedestrian in memory. Then use offsets given relative to it to read/write memory addresses for position.

paulicabos
  • paulicabos

    Player Hater

  • Members
  • Joined: 27 Jul 2012

#6

Posted 02 August 2012 - 07:25 AM

QUOTE (K^2 @ Tuesday, Jul 31 2012, 06:25)
SA Memory Addresses - Pedestrians. You want to use the fixed address that contains pointer to player to locate player pedestrian in memory. Then use offsets given relative to it to read/write memory addresses for position.

Thx man but

(CPed+0x14) +0x30 = [dword] XPos
(CPed+0x14) +0x34 = [dword] YPos
(CPed+0x14) +0x38 = [dword] ZPos

I dont understand..what is the actual code? 0x1430 (x) , 0x1434(y) 0x1338 (z) ?

K^2
  • K^2

    Vidi Vici Veni

  • Moderator
  • Joined: 14 Apr 2004
  • United-States
  • Most Knowledgeable [Web Development/Programming] 2013
    Most Knowledgeable [GTA Series] 2011
    Best Debater 2010

#7

Posted 02 August 2012 - 01:03 PM

Do you understand hex numbers? What is 0x14+0x30? And do you understand how to work with pointers in C#? If not, you need to learn these things.

paulicabos
  • paulicabos

    Player Hater

  • Members
  • Joined: 27 Jul 2012

#8

Posted 02 August 2012 - 07:15 PM

QUOTE (K^2 @ Thursday, Aug 2 2012, 13:03)
Do you understand hex numbers? What is 0x14+0x30? And do you understand how to work with pointers in C#? If not, you need to learn these things.

I say this tut
http://tr7network.co...-gta-hack-in-c/


For editing money u use

uint money = 99999999;
EditMemory(0xB7CE50, money);

0xB70153 - [byte] Current Hour
0x8D5104 - [byte] Current blur level
0xB7014E - [byte] Current Weekday (1 through 7)

If i know this i will use

byte x=3;
EditMemory(0xB70153, x);

This changes the current hour in gta..
I cant find out how to edit

(CPed+0x14) +0x30 = [dword] XPos
(CPed+0x14) +0x34 = [dword] YPos
(CPed+0x14) +0x38 = [dword] ZPos
..
I'm really new in the memory thing and i will be grateful if you can help me..

K^2
  • K^2

    Vidi Vici Veni

  • Moderator
  • Joined: 14 Apr 2004
  • United-States
  • Most Knowledgeable [Web Development/Programming] 2013
    Most Knowledgeable [GTA Series] 2011
    Best Debater 2010

#9

Posted 02 August 2012 - 07:44 PM

No, what you wrote will not work to edit current hour, etc., because EditMemory takes a uint, and will over-write 4 bytes of data. It might let you pass a byte parameter to it, but it will overwrite not only the hour byte, but also 3 following bytes with 0s. That's not what you want.

You are trying to hack somebody else's code without understanding how it works. Learn first. Go through EditMemory() line by line, and understand what every line does. Also, learn how to work with pointers. You will never be able to complete this code if you don't understand how pointers are handled.

paulicabos
  • paulicabos

    Player Hater

  • Members
  • Joined: 27 Jul 2012

#10

Posted 03 August 2012 - 06:29 AM Edited by paulicabos, 03 August 2012 - 07:35 AM.

QUOTE (K^2 @ Thursday, Aug 2 2012, 19:44)
No, what you wrote will not work to edit current hour, etc., because EditMemory takes a uint, and will over-write 4 bytes of data. It might let you pass a byte parameter to it, but it will overwrite not only the hour byte, but also 3 following bytes with 0s. That's not what you want.

You are trying to hack somebody else's code without understanding how it works. Learn first. Go through EditMemory() line by line, and understand what every line does. Also, learn how to work with pointers. You will never be able to complete this code if you don't understand how pointers are handled.

Thx so much for your posts but what i dont understand is this

(CPed+0x14) +0x30 = [dword] XPos

I need and 0x.......... location...
o i can edit it.. how can i find it

0xB6F5F0 - Player pointer (CPed)
(CPed+0x14) +0x30 = [dword] XPos

Ths means that (0xB6F5F0+0x14) +0x30 = [dword] XPos ?

If i use cheat engine what should i type when i choose manualy the adress?

What I really dont understand is that "+" between..

K^2
  • K^2

    Vidi Vici Veni

  • Moderator
  • Joined: 14 Apr 2004
  • United-States
  • Most Knowledgeable [Web Development/Programming] 2013
    Most Knowledgeable [GTA Series] 2011
    Best Debater 2010

#11

Posted 03 August 2012 - 08:15 AM

No. At 0xB6F5F0 is an address you need to add 0x14 and 0x30 to. So I can't give you the exact number. Nobody can. It has to be computed on the fly. That's why I'm telling you to read up on how pointers work. You will need to write code to read memory from certain address, convert it to pointer, apply offsets, and only then use it with the function EditMemory, after you modify it appropriately to handle floating point values.

You can't take shortcuts. In order to modify a program, you need to understand how it works.

paulicabos
  • paulicabos

    Player Hater

  • Members
  • Joined: 27 Jul 2012

#12

Posted 04 August 2012 - 06:55 AM

QUOTE (K^2 @ Friday, Aug 3 2012, 08:15)
No. At 0xB6F5F0 is an address you need to add 0x14 and 0x30 to. So I can't give you the exact number. Nobody can. It has to be computed on the fly. That's why I'm telling you to read up on how pointers work. You will need to write code to read memory from certain address, convert it to pointer, apply offsets, and only then use it with the function EditMemory, after you modify it appropriately to handle floating point values.

You can't take shortcuts. In order to modify a program, you need to understand how it works.

But if i want to use cheat engine how do I use that ? Because is not working with + .. Will show up error


And in c# will be like

EditMemory(0xB6F5F0+0x14+0x30,DWARD Value); ?

K^2
  • K^2

    Vidi Vici Veni

  • Moderator
  • Joined: 14 Apr 2004
  • United-States
  • Most Knowledgeable [Web Development/Programming] 2013
    Most Knowledgeable [GTA Series] 2011
    Best Debater 2010

#13

Posted 04 August 2012 - 04:59 PM

No, that is completely wrong. You are not going to get it without learning C#.

Bad.boy!
  • Bad.boy!

    SA modder

  • Feroci
  • Joined: 20 Jun 2010
  • Netherlands

#14

Posted 04 August 2012 - 07:39 PM

It's best to learn c++ if so that you can also call functions.

K^2
  • K^2

    Vidi Vici Veni

  • Moderator
  • Joined: 14 Apr 2004
  • United-States
  • Most Knowledgeable [Web Development/Programming] 2013
    Most Knowledgeable [GTA Series] 2011
    Best Debater 2010

#15

Posted 05 August 2012 - 10:20 PM

C# calls are also made by reference. You can execute a function via a pointer. It's just a bit more of a pain to set up due to all the "protection".




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users