Jump to content

 Something great is coming! 🤖

Stay tuned for the big reveal happening here on iOSGods on the 20th of February!

Struggles with MSHook New way


Go to solution Solved by Rook,

43 posts in this topic

Recommended Posts

Posted

oh yeah, it's actually the same almost

_bikeInfo_isAllWheel

_bikeInfo_isExtraChance

_bikeInfo_isGhost

_bikeInfo_isHog

_bikeInfo_isReverse

_bikeInfo_isReverse

 

 

Some example code:

 

 

float (*crosshairOld)(void *self);
 
%ctor{
if(GetPrefBool(@"key")) {
MSHookFunction((void*)(_dyld_get_image_vmaddr_slide(0) + 0x231DB8 + 1),(void*)crosshair,(void**)&crosshairOld);
//but you would replace what's above with your MSHook since you are hooking symbols and not offsets
}
}
 
  • Replies 42
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted

 

Some example code:

float (*crosshairOld)(void *self);
 
%ctor{
if(GetPrefBool(@"key")) {
MSHookFunction((void*)(_dyld_get_image_vmaddr_slide(0) + 0x231DB8 + 1),(void*)crosshair,(void**)&crosshairOld);
//but you would replace what's above with your MSHook since you are hooking symbols and not offsets
}
}
 

uhmm, I don't understand it xD, can you make an example with one of the functions I wanna use?

Posted

uhmm, I don't understand it xD, can you make an example with one of the functions I wanna use?

 

if you paste your tweak.xm here :p

Posted

if you paste your tweak.xm here :p

#include <substrate.h>

bool isGhost()
{
return true;
}

bool isHog()
{
return true;
}

bool isAllWheel()
{
return true;
}

bool isReverse()
{
return true;
}

bool isExtraChance()
{
return true;
}

bool isUnbreakable()
{
return true;
}

%ctor{
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isGhost")),(void*)isGhost, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isHog")),(void*)isHog, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isAllWheel")),(void*)isAllWheel, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isReverse")),(void*)isReverse, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isExtraChance")),(void*)isExtraChance, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isUnbreakable")),(void*)isUnbreakable, NULL);
}
Posted

 

#include <substrate.h>

bool isGhost()
{
return true;
}

bool isHog()
{
return true;
}

bool isAllWheel()
{
return true;
}

bool isReverse()
{
return true;
}

bool isExtraChance()
{
return true;
}

bool isUnbreakable()
{
return true;
}

%ctor{
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isGhost")),(void*)isGhost, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isHog")),(void*)isHog, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isAllWheel")),(void*)isAllWheel, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isReverse")),(void*)isReverse, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isExtraChance")),(void*)isExtraChance, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isUnbreakable")),(void*)isUnbreakable, NULL);
}

shmoo, on 21 Feb 2016 - 9:31 PM, said:
if you paste your tweak.xm here 
#include <substrate.h>

bool isGhost()
{
if(GetPrefBool(@"key")){
return true;
}
return %orig;
}

bool isHog()
{
if(GetPrefBool(@"key")){
return true;
}
return %orig;
}

bool isAllWheel()
{
if(GetPrefBool(@"key")){
return true;
}
return %orig;
}

bool isReverse()
{
if(GetPrefBool(@"key")){
return true;
}
return %orig;
}

bool isExtraChance()
{
if(GetPrefBool(@"key")){
return true;
}
return %orig;
}

bool isUnbreakable()
{
if(GetPrefBool(@"key")){
return true;
}
return %orig;
}

%ctor{
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isGhost")),(void*)isGhost, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isHog")),(void*)isHog, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isAllWheel")),(void*)isAllWheel, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isReverse")),(void*)isReverse, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isExtraChance")),(void*)isExtraChance, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isUnbreakable")),(void*)isUnbreakable, NULL);
}

Have you made a patcher before?

Posted
shmoo, on 21 Feb 2016 - 9:31 PM, said:
if you paste your tweak.xm here 
#include <substrate.h>

bool isGhost()
{
if(GetPrefBool(@"key")){
return true;
}
return %orig;
}

bool isHog()
{
if(GetPrefBool(@"key")){
return true;
}
return %orig;
}

bool isAllWheel()
{
if(GetPrefBool(@"key")){
return true;
}
return %orig;
}

bool isReverse()
{
if(GetPrefBool(@"key")){
return true;
}
return %orig;
}

bool isExtraChance()
{
if(GetPrefBool(@"key")){
return true;
}
return %orig;
}

bool isUnbreakable()
{
if(GetPrefBool(@"key")){
return true;
}
return %orig;
}

%ctor{
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isGhost")),(void*)isGhost, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isHog")),(void*)isHog, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isAllWheel")),(void*)isAllWheel, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isReverse")),(void*)isReverse, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isExtraChance")),(void*)isExtraChance, NULL);
MSHookFunction(((void*)MSFindSymbol(NULL, "_bikeInfo_isUnbreakable")),(void*)isUnbreakable, NULL);
}
Have you made a patcher before?

 

the code you just did, I've tried before. I'm getting a error: %orig found outside of hook or subs class.

 

and yes, I did. Why ?

Posted

the code you just did, I've tried before. I'm getting a error: %orig found outside of hook or subs class.

 

and yes, I did. Why ?

Try http://armconverter.com/ to make an mshook patcher

 

I don't usually make mshook patchers that was a guess :p

Posted

The online generator works fine. You're just probably doing it all wrong.

 

Always check your keys, your plist name, your bundle ID and the features itself.

Since I do it wrong, can you help with that online MSHook Patcher?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Our picks

    • Legend of Avatar v1.13.1 Jailed Cheats +3
      Modded/Hacked App: Legend of Avatar By billionairegames
      Bundle ID: com.billionairegames.serares
      App Store Link: https://apps.apple.com/us/app/legend-of-avatar/id6746192853?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      • 207 replies
    • Dawn of Ages: Medieval Games v2.8.0 +5 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Dawn of Ages: total war battle By BoomBit, Inc.
      Bundle ID: com.stratospheregames.dawnofages
      App Store Link: https://apps.apple.com/us/app/dawn-of-ages-total-war-battle/id6477473268?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Dumb Enemy
      - Premium Enabled
      • 126 replies
    • Resident Evil Survival Unit v1.4.4 +6 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Resident Evil Survival Unit By Aniplex Inc.
      Bundle ID: com.aniplex.resu
      App Store Link: https://apps.apple.com/us/app/resident-evil-survival-unit/id6744668327?uo=4

       
       

      🤩 Hack Features

      - Damage Multiplier [ Battle ]
      - Defence Multiplier [ Battle ]
      - God Mode [ Battle ]
      - God Mode [ Explore ]
      - One-Hit Kill [ Explore ]
      - Freeze Items & Ammo
      • 94 replies
    • Slime Castle - Idle TD v2.9.2 +8 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Slime Castle - Idle TD By AZUR INTERACTIVE GAMES LIMITED
      Bundle ID: com.redtailworks.slimetd
      iTunes Store Link: https://apps.apple.com/us/app/slime-castle-idle-td/id6480410032?uo=4


      Hack Features:
      - Unlimited Coins -> Will increase instead of decrease.
      - Unlimited Diamonds -> Will increase instead of decrease.
      - Unlimited Silver -> Will increase instead of decrease.
      - God Mode
      - x5 Speed Unlocked
      - No Ads


      Jailbreak required hack(s): [Mod Menu Hack] Slime Castle - Idle TD v0.9.2 +6 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/
      • 262 replies
    • Grimguard Tactics: Fantasy RPG v1.23.8 +3 Jailed Cheats [ Auto Win ]
      Modded/Hacked App: Grimguard Tactics: Fantasy RPG By Outerdawn Limited
      Bundle ID: com.outerdawn.grimguard
      iTunes Store Link: https://apps.apple.com/us/app/grimguard-tactics-fantasy-rpg/id1496893856?uo=4


      Hack Features:
      - Auto Win
      - Unlimited Daily Rewards
      - No Stamina Cost


      Jailbreak required hack(s): [Mod Menu Hack] Grimguard Tactics: Fantasy RPG v1.1.10 +3 Cheats [ Auto Win ] - 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/
      • 158 replies
    • Hungry Shark World v7.5.7 +9 Mods [ Unlimited Currencies ]
      Mod APK Game Name: Hungry Shark World By Ubisoft Entertainment
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.ubisoft.hungrysharkworld

       

      🤩 Hack Features

      - Unlimited Coins
      - Unlimited Gems
      - Unlimited Pearls
      - Unlock All
      - Freeze Health
      - Freeze Boost
      - Season Pass Unlocked
      - Score Multiplier
      - No Gravity 
      • 10 replies
    • Hungry Shark World v7.5.6 +9 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Hungry Shark World By Ubisoft
      Bundle ID: com.ubisoft.hungrysharkworld
      iTunes Store Link: https://apps.apple.com/us/app/hungry-shark-world/id1046846443?uo=4


      Hack Features:
      - Coin Modifier
      - Gem Modifier
      - Pearl Modifier
      - Unlock All
      - Freeze Health
      - Freeze Boost
      - Season Pass Unlocked
      - Score Multiplier
      - No Gravity
      • 330 replies
    • MY LITTLE PONY: MAGIC PRINCESS v10.9.1 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: MY LITTLE PONY: MAGIC PRINCESS By Gameloft
      Bundle ID: com.gameloft.mylittlepony
      App Store Link: https://apps.apple.com/us/app/my-little-pony-magic-princess/id533173905?uo=4

       


      🤩 Hack Features

      - Freeze Coins
      - Freeze Gems
      - Freeze Hearts
      • 420 replies
    • Mob Control v3.12.3 +7 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Mob Control By Voodoo
      Bundle ID: com.vincentb.MobControl
      iTunes Store Link: https://apps.apple.com/us/app/mob-control/id1562817072?uo=4


      Hack Features:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Skip'Its -> Earn or spend some.
      - Unlimited Stars -> Earn some.
      - Unlimited Bricks
      - Unlimited Earnt Bricks
      - Unlimited Cards -> Will increase instead of decrease.
      - No Card Requirement


      Jailbreak required hack(s): [Mod Menu Hack] Mob Control v2.78.0 +7 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/
      • 315 replies
    • Mob Control v3.12.3 +7 Mods [ Unlimited Currencies ]
      Mod APK Game Name: Mob Control
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.vincentb.MobControl

       

      🤩 Hack Features

      - Unlimited Coins -> Will increase instead of decrease.
      - Unlimited Skip'Its -> Will increase instead of decrease.
      - Unlimited Stars -> Earn some.
      - Unlimited Bricks
      - Unlimited Earnt Bricks
      - Unlimited Cards -> Will increase instead of decrease.
      - No Card Requirement
      • 11 replies
    • Love Eden: Chapters of Romance v2.0.5 +10++ Jailed Cheats [ Debug Menu ]
      Modded/Hacked App: Love Eden: Chapters of Romance By NODERNO LIMITED
      Bundle ID: com.noderno.loveeden
      App Store Link: https://apps.apple.com/us/app/love-eden-chapters-of-romance/id6471411677?uo=4

       


      🤩 Hack Features

      - Debug Menu -> Head over to your profile and then tap on Settings.
      • 14 replies
    • Love Eden: Interactive Stories v2.0.5 +10++ Mods [ Debug Menu ]
      Mod APK Game Name: Love Eden: Interactive Stories By Noderno Limited
      Rooted Device: Not Required.
      Google Play Store Link: https://play.google.com/store/apps/details?id=com.noderno.loveeden

       

      🤩 Hack Features

      - Debug Menu -> Head over to your profile and then tap on Settings. 
      • 6 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