Jump to content

H5GG Enhanced Menu Tutorial - JSPlug-in Advanced


Happy Secret

42 posts in this topic

Recommended Posts

This is my game looks like

 

public class GWEconomyModel // TypeDefIndex: 9184
{
	public int LoyaltyBonusPerDay_Gold; // 0x288
}

and my plug-in code 

 

try {
    script = initializeUnitySupport();
    aryObj = script.call("findUnityObjectOfType", ["$GWEconomyModel", true]);
    
    if (!aryObj) {
        alert("Cannot find object to cheat. Engine stopped.");
    } else if (aryObj.length == 0) {

          var GWEconomyModel = new UnityObject(aryObj[0])
          GWEconomyModel.loadFields(['DelveAttemptsPerDay'])
          var DelveAttemptsPerDay = new UnityObject(GWEconomyModel.DelveAttemptsPerDay)
          DelveAttemptsPerDay = 50

        //CharacterMotor.loadFields(['DelveAttemptsPerDay'])
        //var DelveAttemptsPerDay = aryObj[0].DelveAttemptsPerDay
        alert(aryObj.length)
        
    }

} catch (e) {
    //reset Unity Support
    gIl2cppInit = false;
    var script = initializeUnitySupport();
    alert("Unity support crashed and reset complete");
}

 

 

The result is app always crash at var GWEconomyModel = new UnityObject(aryObj[0])
the aryObj.length is always 0, but not able to load the field.

 

Can you correct my understand and educate how to fix this error?

 

 

Link to comment
Share on other sites

1 hour ago, ada1016 said:

This is my game looks like

 

public class GWEconomyModel // TypeDefIndex: 9184
{
	public int LoyaltyBonusPerDay_Gold; // 0x288
}

and my plug-in code 

 

try {
    script = initializeUnitySupport();
    aryObj = script.call("findUnityObjectOfType", ["$GWEconomyModel", true]);
    
    if (!aryObj) {
        alert("Cannot find object to cheat. Engine stopped.");
    } else if (aryObj.length == 0) {

          var GWEconomyModel = new UnityObject(aryObj[0])
          GWEconomyModel.loadFields(['DelveAttemptsPerDay'])
          var DelveAttemptsPerDay = new UnityObject(GWEconomyModel.DelveAttemptsPerDay)
          DelveAttemptsPerDay = 50

        //CharacterMotor.loadFields(['DelveAttemptsPerDay'])
        //var DelveAttemptsPerDay = aryObj[0].DelveAttemptsPerDay
        alert(aryObj.length)
        
    }

} catch (e) {
    //reset Unity Support
    gIl2cppInit = false;
    var script = initializeUnitySupport();
    alert("Unity support crashed and reset complete");
}

 

 

The result is app always crash at var GWEconomyModel = new UnityObject(aryObj[0])
the aryObj.length is always 0, but not able to load the field.

 

Can you correct my understand and educate how to fix this error?

 

 

Have you try using Unity Static Analyser to see if you can find that object? 

Normally we need to find one related on scene object that you can get object with Unity's Object.FindObjectOfType. Then use it as root to navigate to your desired object. 

In my example, I do not directly use findUnityObjectOfType to reach ItemStat. Instead, I use Gameplay.m_ItemStat to connect Gameplay object (on scene) to ItemStat(not on scene). Then I can create Unity Object on ItemStat.

On scene is a logical one. You cannot guess if it is available especially for those virtual / intangible things. 

Use Unity Static Analyser to test it out. If you can use Unity Static Analyser to directly retrieve object, that mean you can use get the object with findUnityObjectOfType.

Another note is, as whether on scene or not is important. So, be cautious on where you trigger to cheat...Some object only available on certain screen/scene. Say the some shop related object would only available when you open the shop UI in the game. 

All in all, test it with Unity Static Analyser first...confirmed you can cheat the value you want before you try to prepare the cheat with JSPlug-in. Some games create lots of copy of a game value. You might not cheat the value if you modify the wrong one. 

Link to comment
Share on other sites

9 hours ago, Happy Secret said:

Have you try using Unity Static Analyser to see if you can find that object? 

Normally we need to find one related on scene object that you can get object with Unity's Object.FindObjectOfType. Then use it as root to navigate to your desired object. 

In my example, I do not directly use findUnityObjectOfType to reach ItemStat. Instead, I use Gameplay.m_ItemStat to connect Gameplay object (on scene) to ItemStat(not on scene). Then I can create Unity Object on ItemStat.

On scene is a logical one. You cannot guess if it is available especially for those virtual / intangible things. 

Use Unity Static Analyser to test it out. If you can use Unity Static Analyser to directly retrieve object, that mean you can use get the object with findUnityObjectOfType.

Another note is, as whether on scene or not is important. So, be cautious on where you trigger to cheat...Some object only available on certain screen/scene. Say the some shop related object would only available when you open the shop UI in the game. 

All in all, test it with Unity Static Analyser first...confirmed you can cheat the value you want before you try to prepare the cheat with JSPlug-in. Some games create lots of copy of a game value. You might not cheat the value if you modify the wrong one. 

thanks @Happy Secret

Still much to learn..  I made a recording on what I am experiencing below and found two new things

1. I was able to locate GWEconomyModel as class in UA, but when I click, it always goes to something else (e.g GWGameState). Please see the clip at 17 second.  What does this tells me?  Please educate

2. I love your tutorial, but if possible, can you share what the code looks like at dump.cs that leads you made aware that instead of tracking GamePlay directly, it is Gameplay.m_ItemStat that you are interested?  Wanted to learn you thinking path as well.

 

Thank you so much

 

 

Link to comment
Share on other sites

5 hours ago, ada1016 said:

1. I was able to locate GWEconomyModel as class in UA, but when I click, it always goes to something else (e.g GWGameState). Please see the clip at 17 second.  What does this tells me?  Please educate

 

Pink Color means it can be reached in one Hop, but not directly. For those can reach directly, it will be in Yellow.

In GWGameState, if you scroll down the field list, there is one row highlight in yellow. That is the field that point to GWEconomyModel. If the address there is not bill/0x0, click on it. It will bring you to the GWEconomyModel object view.

Try edit the gold value there by clicking on the 0x288 offset, it will bring up editor. Just put in the number you want. See if it work in game, try spending gold etc, if you conclude the cheat is working fine.

Go back to your script, use GWGameState as the base object to navigate to what you need 

Link to comment
Share on other sites

On 9/1/2023 at 2:07 PM, Happy Secret said:

Pink Color means it can be reached in one Hop, but not directly. For those can reach directly, it will be in Yellow.

In GWGameState, if you scroll down the field list, there is one row highlight in yellow. That is the field that point to GWEconomyModel. If the address there is not bill/0x0, click on it. It will bring you to the GWEconomyModel object view.

Try edit the gold value there by clicking on the 0x288 offset, it will bring up editor. Just put in the number you want. See if it work in game, try spending gold etc, if you conclude the cheat is working fine.

Go back to your script, use GWGameState as the base object to navigate to what you need 

Thank you.. I had very weak sense of Unity Game development, sorry for my further more question....

Objective: change the remaining attempts of a dungen

from Dump.cs, I captured this

public class GWGameState : MonoBehaviour // TypeDefIndex: 9219
{
:
public int DelveAttempts { get; }
public int get_DelveAttempts() { }
:
}

 

my Plug.js code

try {
    script = initializeUnitySupport();
    //[STEP 2][MODIFY]Change the root object of interest, which should able to link to your other cheat object
    aryObj = script.call("findUnityObjectOfType", ["$GWGameState", true]);
    
    if (!aryObj || aryObj.length == 0) {
    }
    
    for (let i = 0; i < aryObj.length; i++) {    
        let GWGameState = new UnityObject(aryObj[i]);
        GWGameState.loadFields(['int32 DelveAttempts']);
        GWGameState.loadMethods(["int32 get_DelveAttempts()"]);
        GWGameState.DelveAttempts=5
        alert("GWGameState (" + aryObj[i].toString(16) + ") with UnityObject:" + GWGameState.DelveAttempts+"get_DelveAttempts="+GWGameState.get_DelveAttempts())
        GWGameState.loadFields(['int32 DelveAttempts']);
        alert(GWGameState.DelveAttempts)
        
    }


} catch (e) {
    //reset Unity Support
    gIl2cppInit = false;
    var script = initializeUnitySupport();
}

 

Result

GWGameState (0x13125ba80) with UnityObject: 5. get_DelveAttempts=3

Unity support crashed and reset completeTypeError: Attempting to change the setter of an unconfigurable property.

 

I believe I didn't change the object value at all, I just changed the object that I initiated, can you please educate ?

 

 

  • Like 1
Link to comment
Share on other sites

2 hours ago, ada1016 said:
public int DelveAttempts { get; }
public int get_DelveAttempts() { }

You can see it only provide getter but there is no setter. That is why, you cannot change the Attempts. You need to find if there are other method allow you to change the Attempts.

 

Can you change attempts using Unity Object explorer or Unity Static Analyzer? 

Link to comment
Share on other sites

4 minutes ago, Happy Secret said:

You can see it only provide getter but there is no setter. That is why, you cannot change the Attempts. You need to find if there are other method allow you to change the Attempts.

 

Can you change attempts using Unity Object explorer or Unity Static Analyzer? 

No, I cannot change via US Analyser as well. But I should be able to find the address and patch it. So.. if the value cannot be change by UA, it cannot be altered by plugin?

 

 

Link to comment
Share on other sites

6 minutes ago, ada1016 said:

No, I cannot change via US Analyser as well. But I should be able to find the address and patch it. So.. if the value cannot be change by UA, it cannot be altered by plugin?

 

 

sorry, ,really interested in this but really got a lot to learn.

The more I play with this, the more unknown I realises.    

 

Q:Is this script worked like one time thing? That, the script only get executed when the code path get there, and you have to run the script before it trigger.  For some method that happened at battle, such as adjust mana when take damage, you cannot use this script as it does not work like a hook.  Is this understand correct?

 

Q: if a method has game object in parameter, how do I loadMethods it?e.g.

public void AdjustPlayerMana(int playerIndex, int[] manaCollected, ref bool activateManaMatchTraits, bool collectedFromBoard = False, bool wasMatch = False, PuzzleTroop pAdjustmentCause) { }

thank you for your time.

Link to comment
Share on other sites

9 hours ago, ada1016 said:

No, I cannot change via US Analyser as well. But I should be able to find the address and patch it. So.. if the value cannot be change by UA, it cannot be altered by plugin?

 

 

Normally, if you cannot change value with Unity Static Analyzer, you would also can do simple memory patch with JSPlug-in.

However, you could try using method call.

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

    • MARVEL Contest of Champions v45.0.0 +11++ Amazing Cheats!
      Modded/Hacked App: MARVEL Contest of Champions By Kabam
      Bundle ID: com.kabam.marvelbattle
      iTunes Link: https://itunes.apple.com/us/app/marvel-contest-of-champions/id896112560?mt=8&uo=4&at=1010lce4


      Hack Features
      - Enemy/AI Doesn't Attack
      - Special Attack/Skill Always Available
      - No Knockbacks When Hit
      - No Knockdowns When Hit
      - Enemy Doesn't Block
      - Auto Win - Whoever Attacks first, loses. Disable AI Doesn't Attack for this to work.
      - One Hit Kill / High Damage - Linked. Attack first or use with Enemy Doesn't Attack.

      Non-Jailbroken version of this hack: https://iosgods.com/topic/44075-marvel-contest-of-champions-v1311-2-cheats-for-jailed-devices/
        • Informative
        • Agree
        • Haha
        • Thanks
        • Winner
        • Like
      • 3,290 replies
    • Duskwood - Detective Story v1.10.14 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Duskwood - Detective Story By Everbyte GmbH
      Bundle ID: com.everbytestudio.interactive.text.chat.story.rpg.cyoa.duskwood
      iTunes Store Link: https://apps.apple.com/us/app/duskwood-detective-story/id1479430106?uo=4


      Hack Features:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Hearts -> Earn or spend some.
      - Free In-App Purchases -> Toggle via iGMenu.


      Jailbreak required hack(s): [Mod Menu Hack] Duskwood - Detective Story v1.10.14 +3 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/
      • 0 replies
    • Duskwood - Detective Story v1.10.14 +3 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Duskwood - Detective Story By Everbyte GmbH
      Bundle ID: com.everbytestudio.interactive.text.chat.story.rpg.cyoa.duskwood
      iTunes Store Link: https://apps.apple.com/us/app/duskwood-detective-story/id1479430106?uo=4


      Hack Features:
      - Unlimited Coins -> Earn or spend some.
      - Unlimited Hearts -> Earn or spend some.
      - Free In-App Purchases


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Duskwood - Detective Story v1.10.14 +3 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/
      • 0 replies
    • MY LITTLE PONY: MAGIC PRINCESS v9.4.0 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: MY LITTLE PONY: MAGIC PRINCESS By Gameloft
      Bundle ID: com.gameloft.mylittlepony
      iTunes Store Link: https://apps.apple.com/us/app/my-little-pony-magic-princess/id533173905
       

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


      Jailbreak required hack(s): https://iosgods.com/topic/169980-my-little-pony-magic-princess-all-versions-3-cheats-unlimited-currencies/
      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
      • 192 replies
    • MY LITTLE PONY: MAGIC PRINCESS ( All Versions ) +3 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: MY LITTLE PONY: MAGIC PRINCESS By Gameloft
      Bundle ID: com.gameloft.mylittlepony
      iTunes Store Link: https://apps.apple.com/us/app/my-little-pony-magic-princess/id533173905
       

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


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      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
      • 68 replies
    • Idle Ninja Online v2141 Cheats +15
      Modded/Hacked App: Idle Ninja Online By Puzzle Monsters Inc.
      Bundle ID: com.puzzlemonsters.growninja
      iTunes Store Link: https://apps.apple.com/us/app/idle-ninja-online/id1559182313?uo=4


      Hack Features:
      - no cool skill
      - no need mana
      - speed
      - max level
      - fast shot
      - penetration
      - multi shot
      - far FOV (in setting)
      - can move 
      - reduce animation
      - skin dame (need show damege skin in setting, from 1 to 23)
      - antiban (not sure 100%) 


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/forum/79-no-jailbreak-section/
      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
      • 557 replies
    • BIG NAME: City Lovin v0.30.5 +3 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: BIG NAME: City Lovin By Shanghai zhuomian Network Technology Co., Ltd
      Bundle ID: com.facetgame.citylovin
      iTunes Store Link: https://apps.apple.com/us/app/big-name-city-lovin/id6443984911?uo=4


      Hack Features:
      - Unlimited Cash -> Earn some.
      - Unlimited Diamonds -> Earn some.
      - Unlimited Lives -> Will not decrease.


      Jailbreak required hack(s): [Mod Menu Hack] BIG NAME: City Lovin v0.29.3 +3 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/
        • Winner
        • Like
      • 6 replies
    • BIG NAME: City Lovin v0.30.5 +3 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: BIG NAME: City Lovin By Shanghai zhuomian Network Technology Co., Ltd
      Bundle ID: com.facetgame.citylovin
      iTunes Store Link: https://apps.apple.com/us/app/big-name-city-lovin/id6443984911?uo=4


      Hack Features:
      - Unlimited Cash -> Earn some.
      - Unlimited Diamonds -> Earn some.
      - Unlimited Lives -> Will not decrease.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] BIG NAME: City Lovin v0.29.3 +3 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/
        • Thanks
        • Winner
        • Like
      • 8 replies
    • Critical Strike CS: Online FPS v12.906 +3 Jailed Cheats [ Unlimited Ammo ]
      Modded/Hacked App: Critical Strike CS: Online FPS By VERTIGOGAMES OU
      Bundle ID: com.vertigo.criticalforce
      iTunes Store Link: https://apps.apple.com/us/app/critical-strike-cs-online-fps/id1467648713?uo=4


      Hack Features:
      - Unlimited Ammo -> Will not decrease.
      - All Weapon Skins Unlocked
      - All Gloves Unlocked


      Jailbreak required hack(s): [Mod Menu Hack] Critical Strike CS: Online FPS v12.709 +6 Cheats [ Damage + More ] - 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
      • 59 replies
    • Critical Strike CS: Online FPS v12.906 +6 Cheats [ Damage + More ]
      Modded/Hacked App: Critical Strike CS: Online FPS By VERTIGOGAMES OU
      Bundle ID: com.vertigo.criticalforce
      iTunes Store Link: https://apps.apple.com/us/app/critical-strike-cs-online-fps/id1467648713?uo=4


      Hack Features:
      - Damage Multiplier
      - Fire Rate Multiplier
      - Move Speed Multiplier
      - Unlimited Ammo -> Will not decrease.
      - All Weapon Skins Unlocked
      - All Gloves Unlocked


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Critical Strike CS: Online FPS v12.709 +3 Jailed Cheats [ Unlimited Ammo ] - 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
      • 66 replies
    • Monster Survivors v1.9.1 +4 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Monster Survivors By Voodoo
      Bundle ID: games.rivvy.monstersurvivors
      iTunes Store Link: https://apps.apple.com/us/app/monster-survivors/id6463493974?uo=4


      Hack Features:
      - God Mode
      - One-Hit Kill
      - Unlimited Currencies -> Spend some.
      - Unlock All -> Head over to Settings and toggle the Music button.


      Jailbreak required hack(s): [Mod Menu Hack] Monster Survivors v1.5 +5 Cheats [ Damage & Defence ] - 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
        • Thanks
        • Winner
        • Like
      • 36 replies
    • Monster Survivors v1.9.1 +5 Cheats [ Damage & Defence ]
      Modded/Hacked App: Monster Survivors By Voodoo
      Bundle ID: games.rivvy.monstersurvivors
      iTunes Store Link: https://apps.apple.com/us/app/monster-survivors/id6463493974?uo=4


      Hack Features:
      - Damage Multiplier
      - Defence Multiplier
      - Move Speed Multiplier
      - Unlimited Currencies -> Spend some.
      - Unlock All -> Head into Settings and toggle the Music button.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] Monster Survivors v1.5 +4 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
      • 21 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