CoSMOS Gamehacking Tool

Page 1 of 1
Signup or Login to Post
aobscan stops working after game restart
  • Current rank: 1 Star. Next Rank at 100 Posts.
    Send a message to iBelg
    ELITE
    iBelg posted on Jul 24, 2020 5:58:07 AM - Report post
     
    Hi

    I am trying to write a script for Neon Abyss to make myself invincible (I know a trainer already exists, I just want to learn something new). I got everything working fine, but the script I wrote stops working after I restart the game, but the interesting thing is, if I go through the steps to find the spot to inject my script, the old script works again.

    Here are my steps to find the right place to inject my script:
    1. Open up a .NET Assembly Viewer
    2. Find the function I am interested in
    3. Right click function and click "Open In Disassembler"
    4. Right click a good spot "Inject here > AOB" (AOB Module doesn't work, empty script)
    5. Edit the script to make the cheat work
    6. Script works and can be disabled/enabled as you please

    If I restart the game I have to repeat the first three steps for the script to work again, otherwise I get this error: Link (SetInvincible, Script error in line 1: Cannot find aob for 'originalcode_8223')

    Anything to help me go in the right direction?
  • Trainer Maker
    Send a message to 0x90
    STAFF
    0x90 posted on Jul 24, 2020 7:10:58 AM - Report post
     
    Neon Abyss is a unity engine game. Unity Engine uses .NET, which itself creates code at runtime only. So the method/code you're injecting to must be created first by the game. The first three steps forces the game to create this method. And because of this, your AOB can be found.

    I recommend you perform an AOB REGION injection and use the method name. This way Cosmos will always force the game to create this method when you activate the script. Lets say you want to inject at Player:Update+20, then create an aob region injection and set the region start to Player:Update+0 and the end to Player:Update+40
  • Current rank: 1 Star. Next Rank at 100 Posts.
    Send a message to iBelg
    ELITE
    iBelg posted on Jul 24, 2020 7:36:39 AM - Report post
     
    Awesome! That did the trick. Thanks for the help!
Page 1 of 1
Signup or Login to Post
All times are (GMT -06:00) Central Time (US & Canada). Current time is 7:27:22 AM