Jump to content

599 posts in this topic

Recommended Posts

On 3/3/2023 at 9:33 PM, ð“„¼ . f v c k . ð“„¹ said:

Oh okay, yeah afaik Unity5D do not have such features.

Tho if you could manage to do something like this, it would be insane PepeStop

I am getting good progress on it but got stuck on Javascript cannot pass primitive type as reference .

In cpp, we can do following

      void* fieldValue;

      IL2CPP_.il2cpp_field_get_value(objectIL_, fieldInfo, &fieldValue);

while, fieldValue will store the result.

But in Javascript, I can’t do primitive type passing by reference. fieldValue suppose will store an Integer. 
but in JavaScript, I will always get 0.

Is it possible to write a wrapper function in cpp and package as Dylib for H5GG to use?

What I need is a simple function that wrap the IL2CPP_.il2cpp_field_get_value and return fieldValue as usual.

I actually found something similar online.

Spoiler
#include <exception>
#include "GameObject.h"
 
/******************** External API ********************/
 
/******************** Module Typedefs ********************/
 
/******************** Module Constants ********************/
 
/******************** Module Variables ********************/
 
/* Declare the static reference to the IL2CPP object. */
IL2CPP GameObject::IL2CPP_ = IL2CPP();
 
/******************** Module Prototypes ********************/
 
/******************** Public Code ********************/
 
GameObject::GameObject(Il2CppObject* objectIL)
	:	objectIL_(objectIL), className_(getIL2CPPClassName(objectIL))
{
	/* Constructor that sets the objects base address. */
}
 
std::unique_ptr<GameObject> GameObject::getStaticGameObjectFromClass(const char* nameSpace, const char* className, const char* fieldName)
{
	std::unique_ptr<GameObject> result = nullptr;
 
	/* Get the IL2CPP object. */
	auto ilObject = (Il2CppObject*)getIL2CPPStaticFieldFromClass(nameSpace, className, fieldName);
	if (NULL != ilObject)
	{
		result = std::make_unique<GameObject>(ilObject);
	}
 
	return result;
}
 
void* GameObject::getStaticValueFromClass(const char* nameSpace, const char* className, const char* fieldName)
{
	return getIL2CPPStaticFieldFromClass(nameSpace, className, fieldName);
}
 
std::unique_ptr<GameObject> GameObject::getGameObjectFromField(const char* fieldName)
{
	std::unique_ptr<GameObject> result = nullptr;
 
	auto ilObject = (Il2CppObject*)getIL2CPPFieldFromObject(fieldName);
	if (NULL != ilObject)
	{
		result = std::make_unique<GameObject>(ilObject);
	}
 
	return result;
}
 
void* GameObject::getValueFromField(const char* fieldName)
{
	return getIL2CPPFieldFromObject(fieldName);
}
 
/******************** Private Code ********************/
 
std::string GameObject::getIL2CPPClassName(Il2CppObject* objectIL)
{
	TypeInfo* typeInfo = IL2CPP_.il2cpp_object_get_class(objectIL);
	if (NULL == typeInfo)
	{
		throw std::exception("Unable to get TypeInfo of object.");
	}
 
	return std::string(typeInfo->namespaze) + "::" + typeInfo->name;
}
 
void* GameObject::getIL2CPPStaticFieldFromClass(const char* nameSpace, const char* className, const char* fieldName)
{
	void* result = NULL;
 
	/* Attempt to find typeinfo of the class in all of the loaded assemblies. */
	TypeInfo* classTypeInfo = NULL;
 
	Il2CppDomain* domain = IL2CPP_.il2cpp_domain_get();
	if (NULL == domain)
	{
		throw std::exception("Unable to get domain.");
	}
 
	size_t assemblyListLength = 0;
	Il2CppAssembly** assemblyList = IL2CPP_.il2cpp_domain_get_assemblies(domain, &assemblyListLength);
 
	for (size_t i = 0; i < assemblyListLength; i++)
	{
		Il2CppAssembly* assembly = assemblyList[i];
 
		if (NULL != assembly)
		{
			Il2CppImage* image = IL2CPP_.il2pp_assembly_get_image(assembly);
			if (NULL != image)
			{
				classTypeInfo = IL2CPP_.il2cpp_class_from_name(image, nameSpace, className);
 
				if (NULL != classTypeInfo)
				{
					/* Class has been found, break from the loop. */
					break;
				}
			}
		}
	}
 
	/* If we managed to get the type information of the class, continue. */
	if (NULL != classTypeInfo)
	{
		/* Get the field information of the class. */
		FieldInfo* classFieldInfo = IL2CPP_.il2cpp_class_get_field_from_name(classTypeInfo, fieldName);
		if (NULL == classFieldInfo)
		{
			throw std::exception("Unable to get FieldInfo of the requested field.");
		}
 
		/* Retrieve the static value. */
		IL2CPP_.il2cpp_field_static_get_value(classFieldInfo, &result);
	}
	else
	{
		throw std::exception("Unable to get type information of class.");
	}
 
	return result;
}
 
void* GameObject::getIL2CPPFieldFromObject(const char* fieldName)
{
	/* Get the type info of the current object. */
	TypeInfo* thisType = IL2CPP_.il2cpp_object_get_class(objectIL_);
	if (NULL == thisType)
	{
		throw std::exception("Unable to get TypeInfo of current object.");
	}
 
	/* Then get the field info from the type info. */
	FieldInfo* fieldInfo = IL2CPP_.il2cpp_class_get_field_from_name(thisType, fieldName);
	if (NULL != fieldInfo)
	{
		throw std::exception("Unable to get FieldInfo of the requested field.");
	}
 
	/* Then get the value from the object. */
	void* fieldValue;
	IL2CPP_.il2cpp_field_get_value(objectIL_, fieldInfo, &fieldValue);
 
	return fieldValue;
}

 

But I have no idea how to compile it as Dylib that H5GG can consume. Not much experience in cpp

  • Like 2

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

    • Sneaky Sasquatch Cheats v2.0.5 +3
      Modded/Hacked App: Sneaky Sasquatch By RAC7 Games
      Bundle ID: com.rac7.SneakySasquatch
      iTunes Store Link: https://apps.apple.com/us/app/sneaky-sasquatch/id1098342019?uo=4


      Hack Features:
      - Infinite Gold
      - Unlock All
      - No Hunger


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/148262-sneaky-sasquatch-v172-jailed-cheats-3/


      iOS Hack Download Link: https://iosgods.com/topic/148261-sneaky-sasquatch-cheats-v172-3/
      • 171 replies
    • Jetpack Joyride 2 v3.4.10 Jailed Cheats +1
      Modded/Hacked App: Jetpack Joyride 2 By Halfbrick
      Bundle ID: com.halfbrick.jetpackjoyride2
      iTunes Store Link: https://apps.apple.com/us/app/jetpack-joyride-2/id1598096399?uo=4


      Hack Features:
      - Infinite Currencies


      iOS Hack Download Link: https://iosgods.com/topic/141408-jetpack-joyride-2-v3410-jailed-cheats-1/
      • 201 replies
    • Asphalt 8: Airborne+ Cheats v2.3.0 +4 [ Apple Arcade ]
      Modded/Hacked App: Asphalt 8: Airborne+ By Gameloft
      Bundle ID: com.gameloft.asphalt8arcade
      iTunes Store Link: https://apps.apple.com/us/app/asphalt-8-airborne/id1563005359?uo=4


      Hack Features:
      - No Car Crash
      - Infinite Nitro
      - Unlock All Cars
      - No Speed Limit


      iOS Hack Download Link: https://iosgods.com/topic/148777-asphalt-8-airborne-cheats-v101-4/
      • 391 replies
    • My Cafe — Restaurant game Cheats v2024130.3.633 +3
      Modded/Hacked App: My Cafe — Restaurant game by Melsoft
      Bundle ID: com.Melesta.MyCafe
      iTunes Store Link: https://apps.apple.com/us/app/my-cafe-restaurant-game/id1068204657?uo=4&at=1010lce4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iFile / Filza / iFunBox / iTools or any other file managers for iOS.
      - Cydia Substrate or Substitute.
      - PreferenceLoader (from Cydia or Sileo).


      Hack Features:
      - Unlimited Gems
      - VIP Level 7 (probably visual)


      Notes:
      - To get unlimited gems, just get some gems from the customers.
      - If you purchase using gems from certain places like the VIP Store, it will cause you to restart the game
      - If you have "a lot" gems, you can turn off cheats to see if it works without the hax.
      - "a lot" means a lot of gems 

      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/


      iOS Hack Download Link:

      Hidden Content
      Download Hack







      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above.
      STEP 2: Copy the file over to your iDevice using any of the file managers mentioned above or skip this step if you're downloading from your iDevice.
      STEP 3: Using iFile or Filza, browse to where you saved the downloaded .deb file and tap on it.
      STEP 4: Once you tap on the file, you will then need to press on 'Installer' or 'Install' from the options on your screen.
      STEP 5: Let iFile / Filza finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 6: Now open your iDevice settings and scroll down until you see the settings for this cheat and tap on it. If the hack is a Mod Menu, the cheat features can be toggled in-game.
      STEP 7: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions topic. If you still haven't found a solution, post your issue down below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - @Zahir


      Cheat Video/Screenshots:
      • 632 replies
    • Township: Farm & City Building v24.0.0 Jailed Cheats +2
      Modded/Hacked App: Township by PLR Worldwide Sales Limited
      Bundle ID: com.playrix.township-ios
      iTunes Store Link: https://apps.apple.com/us/app/township/id638689075?uo=4&at=1010lce4


      Hack Features:
      - Freeze Currencies

      EDIT: Please be aware that this maybe cause your account banned, please use with caution and don’t abuse


      iOS Hack Download Link: https://iosgods.com/topic/116584-arm64-township-farm-city-building-v852-jailed-cheats-2/
      • 1,615 replies
    • (Resonance Solstice China) 雷索纳斯 v1.4.0 +2 Jailed Cheats
      Modded/Hacked App: 雷索纳斯 By Shanghai Leiyu Network Technology Co.,Ltd.
      Bundle ID: com.shanghaileiyu.lsns
      iTunes Store Link: https://apps.apple.com/cn/app/%E9%9B%B7%E7%B4%A2%E7%BA%B3%E6%96%AF/id6466783172?uo=4


      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Sideloadly / Cydia Impactor or alternatives.
      - A Computer Running Windows/macOS/Linux with iTunes installed.


      Hack Features:
      - Damage Multiplier
      - Defense Multiplier


      Jailbreak required hack(s): 


      iOS Hack Download IPA Link:

      Hidden Content

      Download via the iOSGods App








      PC Installation Instructions:
      STEP 1: If necessary, uninstall the app if you have it installed on your iDevice. Some hacked IPAs will install as a duplicate app. Make sure to back it up so you don't lose your progress.
      STEP 2: Download the pre-hacked .IPA file from the link above to your computer. To download from the iOSGods App, see this tutorial topic.
      STEP 3: Download Sideloadly and install it on your PC.
      STEP 4: Open/Run Sideloadly on your computer, connect your iOS Device, and wait until your device name shows up.
      STEP 5: Once your iDevice appears, drag the modded .IPA file you downloaded and drop it inside the Sideloadly application.
      STEP 6: You will now have to enter your iTunes/Apple ID email login, press "Start" & then you will be asked to enter your password. Go ahead and enter the required information.
      STEP 7: Wait for Sideloadly to finish sideloading/installing the hacked IPA. If there are issues during installation, please read the note below.
      STEP 8: Once the installation is complete and you see the app on your Home Screen, you will need to go to Settings -> General -> Profiles/VPN & Device Management. Once there, tap on the email you entered from step 6, and then tap on 'Trust [email protected]'.
      STEP 9: Now go to your Home Screen and open the newly installed app and everything should work fine. You may need to follow further per app instructions inside the hack's popup in-game.

      NOTE: iOS/iPadOS 16 and later, you must enable Developer Mode. For free Apple Developer accounts, you will need to repeat this process every 7 days. Jailbroken iDevices can also use Sideloadly/Filza/IPA Installer to normally install the IPA with AppSync. If you have any questions or problems, read our Sideloadly FAQ section of the topic and if you don't find a solution, please post your issue down below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
      • 3 replies
    • (Resonance Solstice China) 雷索纳斯 v1.4.0 +2 Cheats
      Modded/Hacked App: 雷索纳斯 By Shanghai Leiyu Network Technology Co.,Ltd.
      Bundle ID: com.shanghaileiyu.lsns
      iTunes Store Link: https://apps.apple.com/cn/app/%E9%9B%B7%E7%B4%A2%E7%BA%B3%E6%96%AF/id6466783172?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iGameGod / Filza / iMazing or any other file managers for iOS.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak.
      - PreferenceLoader (from Cydia, Sileo or Zebra).


      Hack Features:
      - Damage Multiplier
      - Defense Multiplier


      Non-Jailbroken & No Jailbreak required hack(s): 


      iOS Hack Download Link:

      Hidden Content

      Download Hack








      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above. Use Safari/Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If necessary, tap on the downloaded file, and then, you will need to press 'Install' from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 5: If the hack is a Mod Menu — which is usually the case nowadays — the cheat features can be toggled in-game. Some cheats have options that can be enabled from your iDevice settings.
      STEP 6: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue down below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - AlyssaX64


      Cheat Video/Screenshots:

      N/A
      • 2 replies
    • Cat Snack Bar Cheats v1.0.153 +1
      Modded/Hacked App: Cat Snack Bar By treeplla Inc.
      Bundle ID: com.tree.idle.catsnackbar
      iTunes Store Link: https://apps.apple.com/us/app/cat-snack-bar/id6443895159?uo=4


      Hack Features:
      - Freeze Currencies


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/170232-cat-snack-bar-v1036-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/170233-cat-snack-bar-cheats-v1036-1/
      • 66 replies
    • Cats & Soup Cheats v2.59.1 +2
      Modded/Hacked App: Cats & Soup By HIDEA Co.,Ltd
      Bundle ID: com.hidea.cat
      iTunes Store Link: https://apps.apple.com/us/app/cats-soup/id1581431235?uo=4


      Hack Features:
      - Infinite Currencies


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/157486-cats-soup-v196-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/157484-cats-soup-cheats-v196-1/
        • Informative
      • 277 replies
    • Toca Boca World Modded v1.100.1 +1
      Modded/Hacked App: Toca Boca World By Toca Boca AB
      Bundle ID: com.tocaboca.tocalifeworld
      iTunes Store Link: https://apps.apple.com/us/app/toca-boca-world/id1208138685?uo=4


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iFile / Filza / iFunBox / iTools or any other file managers for iOS.
      - Cydia Substrate (from Cydia).
      - PreferenceLoader (from Cydia).


      Hack Features:
      - Everything Purchased


      Non-Jailbroken & No Jailbreak required hack(s): 


      Hack Download Link:

      Hidden Content

      Download Hack








      Installation Instructions:
      STEP 1: Download the .deb Cydia hack file from the link above.
      STEP 2: Copy the file over to your iDevice using any of the file managers mentioned above or skip this step if you're downloading from your iDevice.
      STEP 3: Using iFile or Filza, browse to where you saved the downloaded .deb file and tap on it.
      STEP 4: Once you tap on the file, you will then need to press on 'Installer' or 'Install' from the options on your screen.
      STEP 5: Let iFile / Filza finish the cheat installation. Make sure it successfully installs, otherwise see the note below.
      STEP 6: Now open your iDevice settings and scroll down until you see the settings for this cheat and tap on it. If the hack is a Mod Menu, the cheat features can be toggled in-game.
      STEP 7: Turn on the features you want and play the game. You may need to follow further instructions inside the hack's popup in-game.

       

      NOTE: If you have any questions or problems, read our Troubleshooting topic & Frequently Asked Questions topic. If you still haven't found a solution, post your issue down below and we'll do our best to help! If the hack does work for you, post your feedback below and help out other fellow members that are encountering issues.


      Credits:
      - @Laxus


      Cheat Video/Screenshots:

      N/A

       
      • 1,325 replies
    • Alien Invasion: RPG Idle Space Cheats v4.01.00 +2
      Modded/Hacked App: Alien Invasion: RPG Idle Space By MULTICAST GAMES LIMITED
      Bundle ID: com.multicastgames.venomSurvive
      iTunes Store Link: https://apps.apple.com/us/app/alien-invasion-rpg-idle-space/id6443697602?uo=4


      Hack Features:
      - Infinite Currencies


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/167591-alien-invasion-rpg-idle-space-v204-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/167589-alien-invasion-rpg-idle-space-cheats-v204-1/
      • 383 replies
    • Idle MoonRabbit: AFK RPG Cheats v1.109.2 +4
      Modded/Hacked App: Idle MoonRabbit: AFK RPG By Able Games Co. ,Ltd.
      Bundle ID: com.TheAbleGames.DalToKi
      iTunes Store Link: https://apps.apple.com/us/app/idle-moonrabbit-afk-rpg/id1599684924?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Multiply Stats
      - Instant Kill


      iOS Hack Download Link: https://iosgods.com/topic/167497-idle-moonrabbit-afk-rpg-cheats-v1629-4/
      • 214 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