Jump to content

Please Help ME. I made ESP with Open Source file But Game Crash when i open


aQReh

4 posts in this topic

Recommended Posts

Hello Please i need Help with my ESP. After installing esp deb my game not opening direct crashing. 

Game i use is Forward Assualt  ( its Unity Game )

here is all Code

 

Tweal.xm Code
[code]

#import "Macros.h"
#import "Vector3.h"
#import "esp.h"
#import "Obfuscate.h"


//добавление офсетов игрока
int get_Team(void *Player){
  return *(int *)((uint64_t)Player + 0x19BC818);
}

float get_Health(void *Player){
  return *(float *)((uint64_t)Player + 0x19BBE6C);
}

bool get_isMine(void *Player){
  return *(bool *)((uint64_t)Player + 0x19980A8);
}
bool get_isLiving(void *Player){
  return get_Health(Player) > 1;
}

bool IsCharacterDead(void *Player){
    return get_Health(Player) < 1;
}

//добавление офсетов передвижения
 void *(*Component$$get_transform)(void *component) = (void *(*)(void *))getRealOffset(0x27F82A0);
void (*Transform$$get_position_Injected)(void *Transform, Vector3 *outPosition) = (void (*)(void *, Vector3 *))getRealOffset(0x2828340);
// оффсет камеры
void *camera(){

void *(*get_main)() = (void *(*)())getRealOffset(0x27F6344);

return (void *) get_main();
 
}
//оффсет World to screen
Vector3 WorldToScreenPoint(void *transform, Vector3 test) {
    
    Vector3 position;

    void (*Camera$$WorldToViewport_Injected)(void *, Vector3, int, Vector3&) = (void (*)(void *,Vector3, int, Vector3&))getRealOffset(0x27F5D78);

    Camera$$WorldToViewport_Injected(transform, test, 2, position);

    return position;

Vector3 getPosition(void *component){

  Vector3 out;
 
  void *transform = Component$$get_transform(component);
  
  Transform$$get_position_Injected(transform, &out);

  return out;
}

struct enemy_t {
void *object;
Vector3 location;
Vector3 worldtoscreen;
bool dead;
float distance;
bool enemy;
bool visible;
float health;
};

void *myObject = NULL;
class EntityManager {
public:
    std::vector<enemy_t *> *enemies;

    EntityManager() {
        enemies = new std::vector<enemy_t *>();
    }

    bool isEnemyPresent(void *enemyObject) {
        for (std::vector<enemy_t *>::iterator it = enemies->begin(); it != enemies->end(); it++) {
            if ((*it)->object == enemyObject) {
                return true;
            }
        }

        return false;
    }

    void removeEnemy(enemy_t *enemy) {
        for (int i = 0; i < enemies->size(); i++) {
            if ((*enemies)[i] == enemy) {
                enemies->erase(enemies->begin() + i);

                return;
            }
        }
    }

    void tryAddEnemy(void *enemyObject) {
        if (isEnemyPresent(enemyObject)) {
            return;
        }

        if (IsCharacterDead(enemyObject)) {
            return;
        }

        enemy_t *newEnemy = new enemy_t();

        newEnemy->object = enemyObject;

        enemies->push_back(newEnemy);
    }

    void updateEnemies(void *enemyObject) {
        for (int i = 0; i < enemies->size(); i++) {
            enemy_t *current = (*enemies)[i];

            if(IsCharacterDead(current->object)) {
                enemies->erase(enemies->begin() + i);
            }

            if((get_Team(myObject) == get_Team(current->object))) {
                enemies->erase(enemies->begin() + i);
            }
        }
    }

    void removeEnemyGivenObject(void *enemyObject) {
        for (int i = 0; i < enemies->size(); i++) {
            if ((*enemies)[i]->object == enemyObject) {
                enemies->erase(enemies->begin() + i);

                return;
            }
        }
    }
std::vector<enemy_t *> *GetAllEnemies() {
    return enemies;
  }
};


static esp* es;
EntityManager *entityManager = new EntityManager();
//enemy_t *enemies = new enemy_t();
void(*old_Player_PPGKGAFINLF)(void *Player);
void Player_PPGKGAFINLF(void *Player){

entityManager->tryAddEnemy(Player);
entityManager->updateEnemies(Player);

std::vector<enemy_t *> *enemies = entityManager->GetAllEnemies();
std::vector<player_t *> *pplayers = nullptr;

UIWindow *main = [UIApplication sharedApplication].keyWindow;

void *mycam = camera();

if(get_isMine(Player)){
   myObject = Player;
return;
}
if(myObject && get_Team(myObject) != get_Team(Player)){
Vector3 mPos = getPosition(myObject);

for(int i =0; i<entityManager->enemies->size(); i++){

(*enemies)[i]->location = getPosition((*enemies)[i]->object);
(*enemies)[i]->worldtoscreen = WorldToScreenPoint(mycam, (*enemies)[i]->location);
(*enemies)[i]->enemy = true;
(*enemies)[i]->health = get_Health((*enemies)[i]->object);
float xd = pow(mPos.x - (*enemies)[i]->location.x, 2);
float xd1= pow(mPos.y - (*enemies)[i]->location.y, 2);
float xd2 = pow(mPos.z - (*enemies)[i]->location.z, 2);
float dist = sqrt(xd + xd1 + xd2);
(*enemies)[i]->distance = dist;

if(!pplayers){
    pplayers = new std::vector<player_t *>();
  }

if(!enemies->empty()){
for(int i = 0; i < enemies->size(); i++) {

if([switches isSwitchOn:@"esp on/off"]){
if((*enemies)[i]->worldtoscreen.z > 0){
player_t *newplayer = new player_t();
Vector3 newvec = (*enemies)[i]->worldtoscreen;
    newvec.y = fabsf(1-newvec.y);
    float dx = 100.0f/(newvec.z/4);//main.frame.size.width/17.92
    float dy = 200.0f/(newvec.z/4);//main.frame.size.width/4.14
    float xxxx = (main.frame.size.width*newvec.x)-dx/2;
    float yyyy = (main.frame.size.height*newvec.y)-dy/4;
    
    newplayer->health = (*enemies)[i]->health;
    newplayer->enemy = (*enemies)[i]->enemy;
    newplayer->distance = (*enemies)[i]->distance;
    newplayer->rect = CGRectMake(xxxx, yyyy, dx, dy);
    newplayer->healthbar = CGRectMake(xxxx, yyyy, 1, dy);
    newplayer->topofbox = CGPointMake(xxxx, yyyy);
    pplayers->push_back(newplayer);
}
}
}

es.players = pplayers;
  old_Player_PPGKGAFINLF(Player);
}

if([switches isSwitchOn:@"esp box"]){

es.espboxes = true;  
}
else{
es.espboxes = false;
}
}

}

old_Player_PPGKGAFINLF(Player);
}

void (*old_Player_Destroy)(void *Player);

void Player_Destroy(void *Player){

        entityManager->removeEnemyGivenObject(Player);

old_Player_Destroy(Player);
}

 %ctor {

HOOK(0x19C5EB4, Player_PPGKGAFINLF, old_Player_PPGKGAFINLF);

HOOK(0x19CDCF0, Player_Destroy, old_Player_Destroy);

}


void setup(){


  [switches addSwitch:@"esp on/off"
              description:@"Teleport all enemies to you without them knowing"];
              
  [switches addSwitch:@"esp box"
              description:@"Teleport all enemies to you without them knowing"];


}

void setupMenu() {

 
  [menu setFrameworkName:"UnityFramework"];

  menu = [[Menu alloc]  
            


       initWithTitle:@"esp by rudolf"
            titleColor:[UIColor whiteColor]
            titleFont:@"Copperplate-Bold"
            credits:@"This Mod Menu has been made by esp, do not share this without proper credits and my permission. \n\nEnjoy!"
            headerColor:UIColorFromHex(0x000)
            switchOffColor:[UIColor darkGrayColor]
            switchOnColor:UIColorFromHex(0x00ADF2)
            switchTitleFont:@"Copperplate-Bold"
            switchTitleColor:[UIColor whiteColor]
            infoButtonColor:UIColorFromHex(0xBD0000)
         maxVisibleSwitches:4 
            menuWidth:360

menuIcon: @"i removed icon code it will make this post bigger"
menuButton: @"i removed icon code it will make this post bigger"];

    setup();
}


static void didFinishLaunching(CFNotificationCenterRef center, void *observer, CFStringRef name, const void *object, CFDictionaryRef info) {
  timer(5) {
        UIWindow *main = [UIApplication sharedApplication].keyWindow;
es = [[esp alloc]initWithFrame:main];
        setupMenu();
      });     
}


%ctor {
  CFNotificationCenterAddObserver(CFNotificationCenterGetLocalCenter(), NULL, &didFinishLaunching, (CFStringRef)UIApplicationDidFinishLaunchingNotification, NULL, CFNotificationSuspensionBehaviorDeliverImmediately);
}

[/code]

 

 

vector3.h code
[code]

struct Vector3{
  float x;
  float y;
  float z;

  Vector3();
  Vector3(float x, float y, float z);
  ~Vector3();
};

Vector3::Vector3() {}
Vector3::Vector3(float x, float y, float z) : x(x), y(y), z(z) {}
Vector3::~Vector3() {}

[/code]

 

 

 

Updated by aQReh
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below. For more information, please read our Posting Guidelines.
Reply to this topic... Posting Guidelines

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Our picks

    • Good Pizza, Great Pizza v5.15.6 +2 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Good Pizza, Great Pizza By TAPBLAZE, LLC
      Bundle ID: com.tapblaze.pizzabusiness
      iTunes Store Link: https://apps.apple.com/us/app/good-pizza-great-pizza/id911121200?uo=4


      Hack Features:
      - Unlimited Cash
      - Unlimited Diamonds


      Jailbreak required hack(s): [Mod Menu Hack] Good Pizza, Great Pizza v5.5.6 +2 Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 130 replies
    • Good Pizza, Great Pizza v5.15.6 +2 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Good Pizza, Great Pizza By TAPBLAZE, LLC
      Bundle ID: com.tapblaze.pizzabusiness
      iTunes Store Link: https://apps.apple.com/us/app/good-pizza-great-pizza/id911121200?uo=4


      Hack Features:
      - Unlimited Cash
      - Unlimited Diamonds


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Good Pizza, Great Pizza v5.5.6 +2 Jailed Cheats [ Unlimited Currencies ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 81 replies
    • MeChat v4.26.0 +1 Jailed Cheat [ Unlimited Gems ]
      Modded/Hacked App: MeChat By PlayMe Studio
      Bundle ID: world.playme.mechat
      iTunes Store Link: https://apps.apple.com/us/app/mechat/id1536157979
       

      Hack Features:
      - Unlimited Gems -> Will increase instead of decrease.
      - Unlimited Gems -> Earn some then uninstall this hack. DO NOT SPEND ANY GEMS WHILST THIS FEATURE IS ENABLED! [ VIP ]


      Free Jailbreak required hack(s): [Mod Menu Hack] [Free] MeChat - Love Secrets v3.3.2 +1 Cheat [ Unlimited Gems ] - Free Jailbroken Cydia Cheats - iOSGods
      ViP Jailbreak required hack(s): [Mod Menu Hack] MeChat - Love Secrets v3.3.2 +1 Cheat [ Unlimited Gems ] - ViP Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 678 replies
    • Monster Legends: Collect all Cheats v17.4.2 +8
      Modded/Hacked App: Monster Legends: Breeding RPG By Socialpoint
      Bundle ID: es.socialpoint.MonsterCity
      iTunes Store Link: https://apps.apple.com/us/app/monster-legends-breeding-rpg/id653508448?uo=4


      Hack Features:
      - 1 Hit Kill
      - Skip Enemy Turn
      - Insane Score (Always 3 Stars)
      - No Skill Cost
      - Auto Win


      iOS Hack Download Link: https://iosgods.com/topic/176914-monster-legends-collect-all-v1632-5-cheats/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 234 replies
    • [ VIP ] MeChat v4.26.0 +1 Cheat [ Unlimited Gems ]
      Modded/Hacked App: MeChat By PlayMe Studio
      Bundle ID: world.playme.mechat
      iTunes Store Link: https://apps.apple.com/us/app/mechat/id1536157979
       

      Hack Features:
      - Unlimited Gems -> Earn some then uninstall this hack. DO NOT SPEND ANY GEMS WHILST THIS FEATURE IS ENABLED!


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] MeChat - Love Secrets v3.3.2 +1 Jailed Cheat [ Unlimited Gems ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Free Jailbreak required hack(s): [Mod Menu Hack] [Free] MeChat - Love Secrets v3.3.2 +1 Cheat [ Unlimited Gems ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 116 replies
    • [ FREE ] MeChat v4.26.0 +1 Cheat [ Unlimited Gems ]
      Modded/Hacked App: MeChat By PlayMe Studio
      Bundle ID: world.playme.mechat
      iTunes Store Link: https://apps.apple.com/us/app/mechat/id1536157979
       

      Hack Features:
      - Unlimited Gems -> Will increase instead of decrease.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] MeChat - Love Secrets v3.3.2 +1 Jailed Cheat [ Unlimited Gems ] - Free Non-Jailbroken IPA Cheats - iOSGods
      ViP Jailbreak required hack(s): [Mod Menu Hack] MeChat - Love Secrets v3.3.2 +1 Cheat [ Unlimited Gems ] - ViP Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 268 replies
    • The Simpsons™: Tapped Out v4.69.5 +3 Cheats
      Modded/Hacked App: The Simpsons™: Tapped Out By Electronic Arts Inc.
      Bundle ID: com.ea.simpsonssocial.inc2
      iTunes Store Link: https://apps.apple.com/us/app/the-simpsons-tapped-out/id497595276?uo=4


      Hack Features:
      - Free Store
      - Free Skipping
      - Extra Rewards (Receive when enter the game)


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/83384-the-simpsons%E2%84%A2-tapped-out-v4648-3-cheats-for-jailed-idevices/


      Hack Download Link: https://iosgods.com/topic/79480-the-simpsons%E2%84%A2-tapped-out-v4648-3-cheats/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 3,341 replies
    • WAR OF THE VISIONS FFBE Cheats v10.5.0 +3 [ Multiply Damage & Defense ]
      Modded/Hacked App: FINAL FANTASY BE:WOTV By SQUARE ENIX Co., Ltd.
      Bundle ID: com.square-enix.WOTVffbeww
      iTunes Store Link: https://apps.apple.com/us/app/final-fantasy-be-wotv/id1484937345?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Full Map Movement


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/173485-final-fantasy-bewotv-v730-jailed-cheats-3/


      iOS Hack Download Link: https://iosgods.com/topic/173483-war-of-the-visions-ffbe-cheats-v740-3-multiply-damage-defense/
        • Informative
        • Agree
        • Thanks
        • Winner
        • Like
      • 184 replies
    • LAST CLOUDIA Cheats v5.6.2 +5
      Modded/Hacked App: LAST CLOUDIA By AIDIS Inc.
      Bundle ID: com.aidis.lastcloudiaen
      iTunes Store Link: https://apps.apple.com/us/app/last-cloudia/id1473588527?uo=4


      Hack Features:
      - God Mode
      - Infinite MP
      - Infinite SP
      - Infinite Ether


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/147069-last-cloudia-v1160-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/147068-last-cloudia-cheats-all-versions-1/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 441 replies
    • [ Last Cloudia TW ] 最後的克勞迪亞 Cheats v5.6.2 +5
      Modded/Hacked App: 最後的克勞迪亞 By Hong Kong Bao Chuan Software Technology Limited
      Bundle ID: com.boltrend.cloudia
      iTunes Store Link: https://apps.apple.com/tw/app/%E6%9C%80%E5%BE%8C%E7%9A%84%E5%85%8B%E5%8B%9E%E8%BF%AA%E4%BA%9E/id1530784975?uo=4



      Hack Features:
      - God Mode
      - Infinite MP
      - Infinite SP
      - Infinite Ether


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/139142-last-cloudia-tw-%E6%9C%80%E5%BE%8C%E7%9A%84%E5%85%8B%E5%8B%9E%E8%BF%AA%E4%BA%9E-v161-jailed-cheats-4/


      iOS Hack Download Link: https://iosgods.com/topic/139140-last-cloudia-tw-%E6%9C%80%E5%BE%8C%E7%9A%84%E5%85%8B%E5%8B%9E%E8%BF%AA%E4%BA%9E-cheats-all-versions-4/
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 381 replies
    • [ Seven Deadly Sins JP ] - 七つの大罪 光と闇の交戦 : グラクロ Cheats v8.6.47 +5
      Modded/Hacked App: 七つの大罪 光と闇の交戦 : グラクロ By Netmarble Corporation
      Bundle ID: com.netmarble.nanatsunotaizai
      iTunes Store Link: https://apps.apple.com/jp/app/七つの大罪-光と闇の交戦-グラクロ/id1268959718?uo=4&at=1010lce4


      Hack Features:
      - God Mode
      - OHK


      iOS Hack Download Link: https://iosgods.com/topic/112888-seven-deadly-sins-%E4%B8%83%E3%81%A4%E3%81%AE%E5%A4%A7%E7%BD%AA-%E5%85%89%E3%81%A8%E9%97%87%E3%81%AE%E4%BA%A4%E6%88%A6-%E3%82%B0%E3%83%A9%E3%82%AF%E3%83%AD-v340-god-mode-unlimited-mp/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 1,031 replies
    • Mighty Party: Heroes Clash v45.1.0 +4 Jailed Cheats [Unlimited Currencies]
      Modded/Hacked App: Mighty Party: Heroes Clash By Satege s.r.o.
      Bundle ID: com.panoramik.forgeofgodsblitz
      iTunes Store Link: https://itunes.apple.com/us/app/mighty-party-heroes-clash/id1163805393


      Mod Requirements:
      - Jailbroken or Non-Jailbroken iPhone/iPad/iPod Touch.
      - Cydia Impactor.
      - A Computer Running Windows/Mac/Linux.


      Hack Features:
      - Unlimited Currencies - Will not decrease.
      - Free Summoning
      - Complete All Quests
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 756 replies
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines