Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Metal Gear Survive (Single Player Mode) Teleport to waypoint
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Sat Mar 10, 2018 2:43 pm    Post subject: Reply with quote

XaneXXXX wrote:
Thank you very much!

so i followed the steps but at step 8:

Enable the injection script and let it run to set the coordinate base.

Same "issue" as before. The script won't activate.

Code:
[ENABLE]

aobscanmodule(cords,mgv.exe,0F 28 40 20 0F 29 4F 10) // should be unique
alloc(newmem,$100,"mgv.exe"+A9F292)

label(code)
label(return)
newmem:

code:
mov [ptrI2CETeleporterCoord],rax //// Change *** to the registry of the coordinates base.
add [ptrI2CETeleporterCoord],0 //// Change 0000 to the offset of the first aligned coordinate (i.e.: X coord. offset).

  movaps xmm0,[rax+20]
  movaps [rdi+10],xmm1
  jmp return

cords:
  jmp newmem
  nop
  nop
  nop
return:
registersymbol(cords)

[DISABLE]

cords:
  db 0F 28 40 20 0F 29 4F 10

unregistersymbol(cords)
dealloc(newmem)


As soon as i remove the:

mov [ptrI2CETeleporterCoord],rax
add [ptrI2CETeleporterCoord],0

The script activates. hmm


Check the debug section, see if the memory has been allocated.

You can also try this:
Code:
[ENABLE]

aobscanmodule(cords,mgv.exe,0F 28 40 20 0F 29 4F 10) // should be unique
alloc(newmem,$100,"mgv.exe"+A9F292)

label(ptrCoord)
registersymbol(ptrCoord)

label(code)
label(return)
newmem:
  code:
    mov [ptrCoord],rax //// Change *** to the registry of the coordinates base.
    add [ptrCoord],0 //// Change 0000 to the offset of the first aligned coordinate (i.e.: X coord. offset).
    movaps xmm0,[rax+20]
    movaps [rdi+10],xmm1
    jmp return

  ptrCoord:
    dq 0


cords:
  jmp newmem
  nop
  nop
  nop
return:
registersymbol(cords)

{$lua}
I2CETeleporter.CoordPointerSymbol = 'ptrCoord'
{$asm}

[DISABLE]

cords:
  db 0F 28 40 20 0F 29 4F 10

unregistersymbol(cords)
unregistersymbol(ptrCoord)
dealloc(newmem)

_________________
Back to top
View user's profile Send private message Visit poster's website
XaneXXXX
Expert Cheater
Reputation: 0

Joined: 29 Nov 2012
Posts: 212

PostPosted: Sat Mar 10, 2018 2:45 pm    Post subject: Reply with quote

Well that did the trick! Now the script activates. Gonna continue with the next steps and report back! Very Happy

Alright followed all the steps. It seems to work fine except that it saves the wrong coordinates. In the txt files it created:

lol1<sep>8.1210418346747e+026<sep>4.5905136392817e-041<sep>0.0

Gonna recheck the offsets etc.

There we go! i changed the offset from 0 to 20 (my bad) haha

So! Thanks to you, teleport to locations i saved works like a charm! Now i just need to figure out how to add the teleport to waypoint function! hehe


UPDATE: I did it! Very Happy

Code:
[ENABLE]

aobscanmodule(wayppp,mgv.exe,0F 28 01 0F 29 06 8B 41 10) // should be unique
alloc(newmem,$100,"mgv.exe"+FBA7E4)

label(ptrI2CETeleporterWayPoint)
registersymbol(ptrI2CETeleporterWayPoint)

label(code)
label(return)
newmem:
code:
mov [ptrI2CETeleporterWayPoint],rcx
add [ptrI2CETeleporterWayPoint],0
  movaps xmm0,[rcx]
  movaps [rsi],xmm0
  jmp return

    ptrI2CETeleporterWayPoint:
    dq 0

wayppp:
  jmp newmem
  nop
return:
registersymbol(wayppp)

{$lua}
I2CETeleporter.CoordPointerSymbol = 'ptrI2CETeleporterWayPoint'
{$asm}

[DISABLE]

wayppp:
  db 0F 28 01 0F 29 06

unregistersymbol(wayppp)
unregistersymbol(ptrI2CETeleporterWayPoint)
dealloc(newmem)


But since he falls through the ground, i need to add an offset for the Z coordinate. Could you explain how i do that? And in which file?

Atm i have two scripts:



Gonna merge them into one once i got it all working.
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Sat Mar 10, 2018 3:20 pm    Post subject: Reply with quote

XaneXXXX wrote:
...But since he falls through the ground, i need to add an offset for the Z coordinate. Could you explain how i do that? And in which file?...



Set it in any Lua code really, but in the script where you set "CoordPointerSymbol" would be a good spot. Set "YaddOnRead" or "YaddOnWrite".
Code:
I2CETeleporter.WayYaddOnRead = 15.125

OR
Code:
I2CETeleporter.YaddOnRead = 15.125



EDIT:
I prefer "add on read" so it won't mess with the waypoint coordinates; or say a player vehicle, or any other coordinates you want to use with the "writeToCoords" function.
i.e.:
Code:
{$lua}
[Enable]
if syntaxcheck then return end
local x = readFloat('[ptrPlayerVehicleCoordHook]')
local y = 3 + readFloat('[ptrPlayerVehicleCoordHook]+4')
local z = readFloat('[ptrPlayerVehicleCoordHook]+8')
I2CETeleporter.writeToCoords(x, y, z)
[Disable]

_________________


Last edited by TheyCallMeTim13 on Sat Mar 10, 2018 3:28 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
XaneXXXX
Expert Cheater
Reputation: 0

Joined: 29 Nov 2012
Posts: 212

PostPosted: Sat Mar 10, 2018 3:25 pm    Post subject: Reply with quote

Worked like a charm! Thank you very much for this and all of your help! Very Happy
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Sat Mar 10, 2018 3:33 pm    Post subject: Reply with quote

XaneXXXX wrote:
Worked like a charm! Thank you very much for this and all of your help! Very Happy


Very good to hear. Let me know if there is some thing you want help with or just to know how it works. And any improvement, bug reports, and suggestions; are always welcomed. Just post in the extension's topic, to make it easy to find for others, and files can still be posted there.

_________________
Back to top
View user's profile Send private message Visit poster's website
majdrunk
How do I cheat?
Reputation: 0

Joined: 17 May 2018
Posts: 1

PostPosted: Thu May 17, 2018 8:48 am    Post subject: Help? Reply with quote

I was wondering if you'd be willing to help me add some things to the game? I want the advanced workshops and was also wondering if there was a way to change the grade or attributes of your survivors. I'd even be willing to pay a little if needed. This game is getting boring and I need to learn how to do this stuff!
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Thu May 17, 2018 10:52 am    Post subject: Reply with quote

If you are still new to game hacking. I think you would be better off just learning game hacking, and not commit to any one game just yet (come back to it after learning a bit).

Start with the CE tutorial in the help menu.
https://wiki.cheatengine.org/index.php?title=Tutorials:Cheat_Engine_Tutorial_Guide_x32
https://wiki.cheatengine.org/index.php?title=Tutorials:Cheat_Engine_Tutorial_Guide_x64

If you meant Lua.
https://wiki.cheatengine.org/index.php?title=Tutorials:Lua:Basics

But I don't have this game, and generally unlocking stuff is just a lot of guessing, scanning, reversing, and trial and error. And to actually add stuff is more modding then memory editing.

_________________
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites