Skip to content

Commit

Permalink
feat: Update 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiga74164 committed May 8, 2024
1 parent 9d8efd9 commit 3c071f6
Show file tree
Hide file tree
Showing 9 changed files with 316 additions and 308 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@
[submodule "injector/vendor/simpleini"]
path = injector/vendor/simpleini
url = https://github.com/brofield/simpleini.git
[submodule "cheat/vendor/UnityResolve"]
path = cheat/vendor/UnityResolve
url = https://github.com/issuimo/UnityResolve.hpp
4 changes: 3 additions & 1 deletion cheat/SoloLevelling.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<LanguageStandard>stdcpp20</LanguageStandard>
<AdditionalIncludeDirectories>$(ProjectDir)src\;$(ProjectDir)vendor\CommandMenu\include\;$(ProjectDir)vendor\imgui\;$(ProjectDir)vendor\detours\;$(ProjectDir)vendor\magic_enum\include\magic_enum;$(ProjectDir)vendor\json\single_include\nlohmann;$(ProjectDir)vendor\xorstr</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>$(ProjectDir)src\;$(ProjectDir)vendor\CommandMenu\include\;$(ProjectDir)vendor\imgui\;$(ProjectDir)vendor\detours\;$(ProjectDir)vendor\magic_enum\include\magic_enum;$(ProjectDir)vendor\json\single_include\nlohmann;$(ProjectDir)vendor\xorstr;$(ProjectDir)vendor\UnityResolve</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand Down Expand Up @@ -136,6 +136,7 @@
<ClInclude Include="src\Render\Gui\utils\gui-util.hpp" />
<ClInclude Include="src\Render\Renderer.h" />
<ClInclude Include="src\Singleton.h" />
<ClInclude Include="src\Unity\methods.hpp" />
<ClInclude Include="src\Utils.h" />
<ClInclude Include="res\resource.h" />
<ClInclude Include="vendor\detours\detours.h" />
Expand All @@ -156,6 +157,7 @@
<ClInclude Include="vendor\magic_enum\include\magic_enum\magic_enum_iostream.hpp" />
<ClInclude Include="vendor\magic_enum\include\magic_enum\magic_enum_switch.hpp" />
<ClInclude Include="vendor\magic_enum\include\magic_enum\magic_enum_utility.hpp" />
<ClInclude Include="vendor\UnityResolve\UnityResolve.hpp" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="src\appdata\helpers.cpp" />
Expand Down
15 changes: 12 additions & 3 deletions cheat/SoloLevelling.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
<Filter Include="vendor\magic_enum">
<UniqueIdentifier>{2a119d21-8c9d-4511-8a47-58d1fc8f7710}</UniqueIdentifier>
</Filter>
<Filter Include="vendor\UnityResolve">
<UniqueIdentifier>{43f0f444-1a9b-41d8-99cc-395a2a4292dc}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="res\SoloLevelling.rc">
Expand Down Expand Up @@ -205,9 +208,6 @@
<ClInclude Include="src\Hotkey.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="src\HotkeyManager.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="src\appdata\il2cpp-api-functions.h">
<Filter>Header Files</Filter>
</ClInclude>
Expand Down Expand Up @@ -289,6 +289,15 @@
<ClInclude Include="src\Render\Gui\fonts\Rubik.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="src\HotkeyManager.hpp">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="vendor\UnityResolve\UnityResolve.hpp">
<Filter>vendor\UnityResolve</Filter>
</ClInclude>
<ClInclude Include="src\Unity\methods.hpp">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="vendor\imgui\misc\cpp\imgui_stdlib.cpp">
Expand Down
7 changes: 7 additions & 0 deletions cheat/src/Unity/methods.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include "global.h"

namespace methods
{
const auto coreModule = UnityResolve::Get("UnityEngine.CoreModule.dll");
const auto pTransform = coreModule->Get("GameObject");
}
474 changes: 237 additions & 237 deletions cheat/src/appdata/il2cpp-api-functions-ptr.h

Large diffs are not rendered by default.

111 changes: 46 additions & 65 deletions cheat/src/appdata/il2cpp-functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,88 +6,69 @@
// ******************************************************************************
using namespace app;

DO_APP_FUNC(0x00455F30, void, GameFrameWork_Update, (void/*GameFrameWork*/* __this, MethodInfo* method));
DO_APP_FUNC(0x0048CF50, void, GameFrameWork_Update, (void/*GameFrameWork*/* __this, MethodInfo* method));

DO_APP_FUNC(0x0208ABF0, String*, Marshal_PtrToStringAnsi, (void* ptr, MethodInfo* method));
DO_APP_FUNC(0x0208AC10, String*, Marshal_PtrToStringUni, (void* ptr, MethodInfo* method));
DO_APP_FUNC(0x028E7220, String*, Marshal_PtrToStringAnsi, (void* ptr, MethodInfo* method));
DO_APP_FUNC(0x028E7240, String*, Marshal_PtrToStringUni, (void* ptr, MethodInfo* method));

// FovChanger
DO_APP_FUNC(0x030797E0, void, Camera_set_fieldOfView, (void* __this, float value, MethodInfo* method));
DO_APP_FUNC(0x03953C40, void, Camera_set_fieldOfView, (void* __this, float value, MethodInfo* method));

// FPSUnlock
DO_APP_FUNC(0x03072580, int, Application_get_targetFrameRate, (MethodInfo* method));
DO_APP_FUNC(0x03072CA0, void, Application_set_targetFrameRate, (int value, MethodInfo* method));
DO_APP_FUNC(0x0394C9E0, int, Application_get_targetFrameRate, (MethodInfo* method));
DO_APP_FUNC(0x0394D100, void, Application_set_targetFrameRate, (int value, MethodInfo* method));

DO_APP_FUNC(0x03096A60, void, QualitySettings_set_vSyncCount, (int value, MethodInfo* method));
DO_APP_FUNC(0x03970F60, void, QualitySettings_set_vSyncCount, (int value, MethodInfo* method));

// TimeScale
DO_APP_FUNC(0x030CF0A0, float, Time_get_timeScale, (MethodInfo * method));
DO_APP_FUNC(0x030CF190, void, Time_set_timeScale, (float value, MethodInfo * method));
DO_APP_FUNC(0x039A9F10, float, Time_get_timeScale, (MethodInfo* method));
DO_APP_FUNC(0x039AA000, void, Time_set_timeScale, (float value, MethodInfo* method));

// Unity & C# Stuff
DO_APP_FUNC(0x030BE050, GameObject*, GameObject_Find, (String* name, MethodInfo* method));
DO_APP_FUNC(0x030BBE00, GameObject*, Component_get_gameObject, (Component* __this, MethodInfo* method));
DO_APP_FUNC(0x030BE2A0, Component*, GameObject_GetComponent, (GameObject* __this, Type* type, MethodInfo* method));
DO_APP_FUNC(0x030BF0A0, Transform*, GameObject_get_transform, (GameObject* __this, MethodInfo* method));
DO_APP_FUNC(0x010B2BD0, GameObject*, GameObject_get_gameObject, (GameObject* __this, MethodInfo* method));
DO_APP_FUNC(0x021BFF00, Type*, Type_GetType_3, (String* typeName, MethodInfo* method));
DO_APP_FUNC(0x020A21F0, Type*, Assembly_GetType, (Assembly* __this, String* name, MethodInfo* method));
DO_APP_FUNC(0x020A2310, Assembly*, Assembly_LoadWithPartialName, (String* partialName, MethodInfo* method));
DO_APP_FUNC(0x030B8BB0, Vector3, Vector3_Lerp, (Vector3 a, Vector3 b, float t, MethodInfo* method));
DO_APP_FUNC(0x030B8940, float, Vector3_Distance, (Vector3 a, Vector3 b, MethodInfo* method));
DO_APP_FUNC(0x030C4320, String*, Object_1_get_name, (Object_1* __this, MethodInfo* method));
DO_APP_FUNC(0x030C23D0, void, Object_1_Destroy_1, (Object_1* obj, MethodInfo* method));
DO_APP_FUNC(0x030C2E40, Object_1__Array*, Object_1_FindObjectsOfType_1, (Type* type, bool includeInactive, MethodInfo* method));
DO_APP_FUNC(0x030D3C30, Vector3, Transform_get_position, (Transform* __this, MethodInfo* method));
DO_APP_FUNC(0x030D44A0, void, Transform_set_position, (Transform* __this, Vector3 value, MethodInfo* method));
DO_APP_FUNC(0x030D3900, Vector3, Transform_get_localPosition, (Transform* __this, MethodInfo* method));
DO_APP_FUNC(0x030D4200, void, Transform_set_localPosition, (Transform* __this, Vector3 value, MethodInfo* method));
DO_APP_FUNC(0x030D0CA0, Vector3, Transform_GetLocalEulerAngles, (Transform* __this, RotationOrder__Enum order, MethodInfo* method));
DO_APP_FUNC(0x030D25E0, void, Transform_SetLocalEulerAngles, (Transform* __this, Vector3 euler, RotationOrder__Enum order, MethodInfo* method));
DO_APP_FUNC(0x030D2690, void, Transform_SetLocalEulerHint, (Transform* __this, Vector3 euler, MethodInfo* method));
DO_APP_FUNC(0x030D3560, Vector3, Transform_get_eulerAngles, (Transform* __this, MethodInfo* method));
DO_APP_FUNC(0x030D3FB0, void, Transform_set_eulerAngles, (Transform* __this, Vector3 value, MethodInfo* method));
DO_APP_FUNC(0x030D37D0, Vector3, Transform_get_localEulerAngles, (Transform* __this, MethodInfo* method));
DO_APP_FUNC(0x030D4110, void, Transform_set_localEulerAngles, (Transform* __this, Vector3 value, MethodInfo* method));
DO_APP_FUNC(0x030D3C80, Vector3, Transform_get_right, (Transform* __this, MethodInfo* method));
DO_APP_FUNC(0x030D44F0, void, Transform_set_right, (Transform* __this, Vector3 value, MethodInfo* method));
DO_APP_FUNC(0x030D3DF0, Vector3, Transform_get_up, (Transform* __this, MethodInfo* method));
DO_APP_FUNC(0x030D4640, void, Transform_set_up, (Transform* __this, Vector3 value, MethodInfo* method));
DO_APP_FUNC(0x030D3640, Vector3, Transform_get_forward, (Transform* __this, MethodInfo* method));
DO_APP_FUNC(0x030D4050, void, Transform_set_forward, (Transform* __this, Vector3 value, MethodInfo* method));
DO_APP_FUNC(0x030D3DA0, Quaternion, Transform_get_rotation, (Transform* __this, MethodInfo* method));
DO_APP_FUNC(0x030D45F0, void, Transform_set_rotation, (Transform* __this, Quaternion value, MethodInfo* method));
DO_APP_FUNC(0x030D39A0, Quaternion, Transform_get_localRotation, (Transform* __this, MethodInfo* method));
DO_APP_FUNC(0x030D42A0, void, Transform_set_localRotation, (Transform* __this, Quaternion value, MethodInfo* method));
DO_APP_FUNC(0x030D3520, int32_t, Transform_get_childCount, (Transform* __this, MethodInfo* method));
DO_APP_FUNC(0x030ECDC0, String*, Scene_GetNameInternal, (int32_t sceneHandle, MethodInfo* method));
DO_APP_FUNC(0x030EB790, Scene, SceneManager_GetActiveScene, (MethodInfo* method));
DO_APP_FUNC(0x03069410, float, Animator_get_speed, (Animator* __this, MethodInfo* method));
DO_APP_FUNC(0x03069E70, void, Animator_set_speed, (Animator* __this, float value, MethodInfo* method));
// C# methods
DO_APP_FUNC(0x02A29840, Type*, Type_GetType_3, (String* typeName, MethodInfo* method));
DO_APP_FUNC(0x028FE910, Type*, Assembly_GetType, (Assembly* __this, String* name, MethodInfo* method));
DO_APP_FUNC(0x028FEA30, Assembly*, Assembly_LoadWithPartialName, (String* partialName, MethodInfo* method));
// Unity methods
DO_APP_FUNC(0x03993A50, Vector3, Vector3_Lerp, (Vector3 a, Vector3 b, float t, MethodInfo* method));
DO_APP_FUNC(0x039937E0, float, Vector3_Distance, (Vector3 a, Vector3 b, MethodInfo* method));
DO_APP_FUNC(0x03999F40, Transform*, GameObject_get_transform, (GameObject* __this, MethodInfo* method));
DO_APP_FUNC(0x03998EF0, GameObject*, GameObject_Find, (String* name, MethodInfo* method));
DO_APP_FUNC(0x0399F1C0, String*, Object_1_get_name, (Object_1* __this, MethodInfo* method));
DO_APP_FUNC(0x039AEAA0, Vector3, Transform_get_position, (Transform* __this, MethodInfo* method));
DO_APP_FUNC(0x039AF310, void, Transform_set_position, (Transform* __this, Vector3 value, MethodInfo* method));
DO_APP_FUNC(0x039AEAF0, Vector3, Transform_get_right, (Transform* __this, MethodInfo* method));
DO_APP_FUNC(0x039AF360, void, Transform_set_right, (Transform* __this, Vector3 value, MethodInfo* method));
DO_APP_FUNC(0x039AEC60, Vector3, Transform_get_up, (Transform* __this, MethodInfo* method));
DO_APP_FUNC(0x039AF4B0, void, Transform_set_up, (Transform* __this, Vector3 value, MethodInfo* method));
DO_APP_FUNC(0x039AE4B0, Vector3, Transform_get_forward, (Transform* __this, MethodInfo* method));
DO_APP_FUNC(0x039AEEC0, void, Transform_set_forward, (Transform* __this, Vector3 value, MethodInfo* method));
DO_APP_FUNC(0x039AE390, int32_t, Transform_get_childCount, (Transform* __this, MethodInfo* method));
DO_APP_FUNC(0x039C7F90, String*, Scene_GetNameInternal, (int32_t sceneHandle, MethodInfo* method));
DO_APP_FUNC(0x039C6960, Scene, SceneManager_GetActiveScene, (MethodInfo* method));

// No Cooldown
DO_APP_FUNC(0x008546C0, void/*KAAIFMKPKAG*/*, KAAIFMKPKAG_IOFMGMJCCFO, (KAAIFMKPKAG* __this, bool DEJNILEHENL, MethodInfo* method));
DO_APP_FUNC(0x00913CD0, void/*KAAIFMKPKAG*/*, KAAIFMKPKAG_IOFMGMJCCFO, (KAAIFMKPKAG* __this, bool DEJNILEHENL, MethodInfo* method));
// Damage Hack
DO_APP_FUNC(0x00830370, void, PIPHNBOBFEF_KBCIIEFLPGB, (PIPHNBOBFEF* __this, ESpecialState__Enum OCKAHFDGNEL, int64_t MGFPJFANLBG, int64_t DIACKALMMKH, int64_t PBAPBJGDAPJ, String* DLOACPLHGMP, MethodInfo* method));
DO_APP_FUNC(0x008F8420, void, PIPHNBOBFEF_KBCIIEFLPGB, (PIPHNBOBFEF* __this, ESpecialState__Enum OCKAHFDGNEL, int64_t MGFPJFANLBG, int64_t DIACKALMMKH, int64_t PBAPBJGDAPJ, String* DLOACPLHGMP, MethodInfo* method));
// God Mode
DO_APP_FUNC(0x009D6CB0, int32_t, GHINOEFFMPN_EKHGIHBHEPL, (SkillIdentity* EKPKPIJBPKE, void/*IEnumerable_1_UnityEngine_Component_*/* FKJDKGJBGOD, TargetHitData* COFCDKGCOGJ, MethodInfo* method));
DO_APP_FUNC(0x00AA4D10, int32_t, GHINOEFFMPN_EKHGIHBHEPL, (SkillIdentity* EKPKPIJBPKE, void/*IEnumerable_1_UnityEngine_Component_*/* FKJDKGJBGOD, TargetHitData* COFCDKGCOGJ, MethodInfo* method));
// Dumb Enemies
DO_APP_FUNC(0x00A65FC0, void, EvadeProxy_Init, (EvadeProxy* __this, ENNEJEPMJLJ* IGBKKNODEGM, EvadePenetration* DHPMEMDBDMC, MethodInfo* method));
DO_APP_FUNC(0x00B3EC40, void, EvadeProxy_Init, (EvadeProxy* __this, ENNEJEPMJLJ* IGBKKNODEGM, EvadePenetration* DHPMEMDBDMC, MethodInfo* method));

// EntityManager
DO_APP_FUNC(0x00865E30, void, ENHPKNIEKMI_MIFDFEHDDDD, (ENHPKNIEKMI* __this, MethodInfo* method));
DO_APP_FUNC(0x00A3C540, ENHPKNIEKMI*, ENNEJEPMJLJ_FIGHFBNIDJA, (ENNEJEPMJLJ* __this, MethodInfo* method));
DO_APP_FUNC(0x00A32AE0, bool, PCILGJOEPJM_PPAKPBOJLIP, (ENNEJEPMJLJ* IGBKKNODEGM, MethodInfo* method)); // Check if Entity is alive????
DO_APP_FUNC(0x00926480, void, ENHPKNIEKMI_MIFDFEHDDDD, (ENHPKNIEKMI* __this, MethodInfo* method));
DO_APP_FUNC(0x00B082C0, ENHPKNIEKMI*, ENNEJEPMJLJ_FIGHFBNIDJA, (ENNEJEPMJLJ* __this, MethodInfo* method));
DO_APP_FUNC(0x00B0AE80, bool, PCILGJOEPJM_PPAKPBOJLIP, (ENNEJEPMJLJ* IGBKKNODEGM, MethodInfo* method)); // Check if Entity is alive????

// Mission Time
DO_APP_FUNC(0x00E40850, void, StageReadyPage_EnterUI, (StageReadyPage* __this, MethodInfo* method));
DO_APP_FUNC(0x00E42FE0, void, StoryQuestChapterPage_EnterUI, (StoryQuestChapterPage* __this,MethodInfo* method));
DO_APP_FUNC(0x00F3A7A0, void, StageReadyPage_EnterUI, (StageReadyPage* __this, MethodInfo* method));
DO_APP_FUNC(0x00F3E030, void, StoryQuestChapterPage_EnterUI, (StoryQuestChapterPage* __this,MethodInfo* method));
// Intro Movie
DO_APP_FUNC(0x00B40AC0, void, GameMovie_Update, (GameMovie* __this, MethodInfo* method));
DO_APP_FUNC(0x00B44FE0, void, IntroMovie_Update, (IntroMovie* __this, MethodInfo* method));
DO_APP_FUNC(0x00C16180, void, GameMovie_Update, (GameMovie* __this, MethodInfo* method));
DO_APP_FUNC(0x00C175B0, void, IntroMovie_Update, (IntroMovie* __this, MethodInfo* method));
// Disable Web View
DO_APP_FUNC(0x022E4BE0, void, WebViewDialog_Show, (void* __this, MethodInfo* method));
DO_APP_FUNC(0x022E6950, void, WebViewUI_RefreshSize, (void* __this, MethodInfo* method));
DO_APP_FUNC(0x02BD1040, void, WebViewDialog_Show, (void* __this, MethodInfo* method));
DO_APP_FUNC(0x02BD2ED0, void, WebViewUI_RefreshSize, (void* __this, MethodInfo* method));

//DO_APP_FUNC(0x00430040, EGLGAPIAANF__Enum, JIBDAHKJHOG_PCLINKFFGNE, (JIBDAHKJHOG* __this, MethodInfo* method));
//DO_APP_FUNC(0x00837FE0, void, JIBDAHKJHOG_KPDGECAFJKA, (JIBDAHKJHOG* __this, MethodInfo* method));
Expand All @@ -96,10 +77,10 @@ DO_APP_FUNC(0x022E6950, void, WebViewUI_RefreshSize, (void* __this, MethodInfo*
//DO_APP_FUNC(0x00836410, void, JIBDAHKJHOG_COLDHPFDOHG, (JIBDAHKJHOG* __this, MethodInfo* method)); // StageStart

// Shadow Cooldown And Limit
DO_APP_FUNC(0x00A57810, void, JLLMICINIDA_LFCGJLAFFOM, (JLLMICINIDA* __this, MethodInfo* method));
DO_APP_FUNC(0x00B202F0, void, JLLMICINIDA_LFCGJLAFFOM, (JLLMICINIDA* __this, MethodInfo* method));

// Singletons
DO_APP_FUNC(0x00345D80, void*, TSingleton_GetInstance, (MethodInfo* method)); // Search for this in IDA. Seems to be Singleton<T> class
DO_APP_FUNC(0x0042D0E0, Object*, TSingleton_1_System_Object__get_Instance, (MethodInfo* method)); // Get the instance of the singleton
DO_APP_FUNC(0x00387510, void*, TSingleton_GetInstance, (MethodInfo* method)); // Search for this in IDA. Seems to be Singleton<T> class
DO_APP_FUNC(0x0046F0E0, Object*, TSingleton_1_System_Object__get_Instance, (MethodInfo* method)); // Get the instance of the singleton
// DO_APP_FUNC_METHODINFO(0x04038380, TSingleton_1_JIBDAHKJHOG__get_Instance__MethodInfo);
// DO_APP_FUNC_METHODINFO(0x0403AC70, TSingleton_1_PJKMAOEINNH__get_Instance__MethodInfo); // Probably EntityManager or something similar
4 changes: 3 additions & 1 deletion cheat/src/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@
#include "events/handlers/methodeventhandler.hpp"
#include "events/handlers/functoreventhandler.hpp"
#include "events/joins/handlereventjoin.hpp"
#include "events/joins/eventjoinwrapper.hpp"
#include "events/joins/eventjoinwrapper.hpp"

#include "UnityResolve.hpp"
5 changes: 4 additions & 1 deletion cheat/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@ void Run(HMODULE hModule)
LOG(xorstr("[SoloLevelling] game not found, waiting 3 seconds..."));
Sleep(3000);
}

Utils::SetCurrentPath(Utils::GetModulePath(hModule));
ConfigManager::GetInstance().InitializeConfig((Utils::GetCurrentPath() / "config.json").string());

Init(Renderer::DXVersion::D3D11);

// UnityResolve::Init(GetModuleHandleA(xorstr("GameAssembly.dll")), UnityResolve::Mode::Il2Cpp);

init_il2cpp();
init_cheat();

Expand Down
1 change: 1 addition & 0 deletions cheat/vendor/UnityResolve
Submodule UnityResolve added at 855d1e

0 comments on commit 3c071f6

Please sign in to comment.