ScriptHub-AutomaticOffsets

所属分类:其他
开发工具:AutoHotkey
文件大小:0KB
下载次数:0
上传日期:2023-09-23 17:43:53
上 传 者sh-1993
说明:  Python脚本,采用ScriptHubExporter CE插件构建的json,并将其转换为脚本中心的AHK includes。,
(Python Script that takes json built by ScriptHubExporter CE addon and converts it to AHK includes for script hub.,)

文件列表:
CheatEngineMod/ (0, 2023-12-08)
CheatEngineMod/autorun/ (0, 2023-12-08)
CheatEngineMod/autorun/ScriptHubExport.lua (9228, 2023-12-08)
Imports/ (0, 2023-12-08)
Imports/ActiveEffectHandlers/ (0, 2023-12-08)
Imports/ActiveEffectHandlers/IC_BrivUnnaturalHasteHandler64_Import.ahk (1817, 2023-12-08)
Imports/ActiveEffectHandlers/IC_HavilarImpHandler64_Import.ahk (1781, 2023-12-08)
Imports/ActiveEffectHandlers/IC_HeroHandlerIncludes64_Import.ahk (814, 2023-12-08)
Imports/ActiveEffectHandlers/IC_HewMaanTeamworkHandler64_Import.ahk (615, 2023-12-08)
Imports/ActiveEffectHandlers/IC_JimMagicalMysteryTourHandler64_Import.ahk (929, 2023-12-08)
Imports/ActiveEffectHandlers/IC_NerdWagonHandler64_Import.ahk (1553, 2023-12-08)
Imports/ActiveEffectHandlers/IC_NordomModronCoreToolboxHandler64_Import.ahk (1034, 2023-12-08)
Imports/ActiveEffectHandlers/IC_NrakkUltimateAttackHandler64_Import.ahk (712, 2023-12-08)
Imports/ActiveEffectHandlers/IC_OminContractualObligationsHandler64_Import.ahk (1312, 2023-12-08)
Imports/ActiveEffectHandlers/IC_SpurtWaspirationHandlerV264_Import.ahk (301, 2023-12-08)
Imports/ActiveEffectHandlers/IC_ThelloraPlateausOfUnicornRunHandler64_Import.ahk (1849, 2023-12-08)
Imports/ActiveEffectHandlers/IC_TimeScaleWhenNotAttackedHandler64_Import.ahk (1409, 2023-12-08)
Imports/IC_CrusadersGameDataSet64_Import.ahk (1253, 2023-12-08)
Imports/IC_DialogManager64_Import.ahk (2205, 2023-12-08)
Imports/IC_EngineSettings64_Import.ahk (183, 2023-12-08)
Imports/IC_GameSettings64_Import.ahk (812, 2023-12-08)
Imports/IC_GameVersion64_Import.ahk (143, 2023-12-08)
Imports/IC_IdleGameManager64_Import.ahk (41445, 2023-12-08)
Imports/IC_UserData64_Import.ahk (526, 2023-12-08)
Imports/IC_UserStatHandler64_Import.ahk (199, 2023-12-08)
ScriptHubExport64.json (4539908, 2023-12-08)
ScriptHubImporter.py (20815, 2023-12-08)
Settings_BaseClassTypeList/ (0, 2023-12-08)
Settings_BaseClassTypeList/MemoryLocations_CrusadersGameDataSet.txt (335, 2023-12-08)
Settings_BaseClassTypeList/MemoryLocations_DialogManager.txt (510, 2023-12-08)
Settings_BaseClassTypeList/MemoryLocations_EngineSettings.txt (213, 2023-12-08)
Settings_BaseClassTypeList/MemoryLocations_GameSettings.txt (283, 2023-12-08)
Settings_BaseClassTypeList/MemoryLocations_IdleGameManager.txt (11327, 2023-12-08)
Settings_BaseClassTypeList/MemoryLocations_UserData.txt (231, 2023-12-08)
Settings_BaseClassTypeList/MemoryLocations_UserStatHandler.txt (231, 2023-12-08)
Settings_EffectClassTypeList/ (0, 2023-12-08)
Settings_EffectClassTypeList/MemoryLocations_BrivUnnaturalHasteHandler.txt (399, 2023-12-08)
Settings_EffectClassTypeList/MemoryLocations_HavilarImpHandler.txt (421, 2023-12-08)
... ...

# Script Hub Importer ## Exporting via cheat engine: * Place ScriptHubExport.lua in Cheat Engine's .\autorun folder while Cheat Engine is closed. * Run Cheat Engine * Open the game's process in cheat engine. * Go to the Script Hub menu item in Cheat Engine and choose Export. * Select a location to save the exported json file. * Wait patiently as the script can take several minutes to complete the export and CE will be frozen during this time. ## Importing using ScriptHubImporter.py: > Note: Before continuing, ensure Script Hub has been updated to have the automatic offsets update. `UPDATE 2023-04-25` ScriptHubExport.lua has been updated to be much faster. Depending on the speed of your system it may take as few as 10s! `UPDATE 2022-07-27` ScriptHubExport.lua has been updated so update the script in your Cheat Engine autorun folder! With this change, the ScriptHubImporter.py script no longer requires wheel or pythonnet. (Special thanks to Ismo for helping with this!) > Note: Requires [Python](https://www.python.org/) v3.9.2 or later to run. * Copy the exported json to the same folder as ``ScriptHubImporter.py`` replacing ScriptHubExport``32``.json or ScriptHubExport``64``.json depending on if you are exporting from steam (~~``32``~~) (``64``) or EGS (``64``) > Note: In late 2022 all PC platforms have switched to using the ``64`` bit versions of the game. * Run ``ScriptHubImporter.py`` * Copy the resulting ``Imports`` folder and files to Script Hub's ``.\SharedFunctions\MemoryRead\`` directory. * * Start Script Hub. > * Note: Alternatively ``ScriptHubImporter.py`` along with the ``MemoryLocations`` txt files and the ``ScriptHubExport`` json files may be placed in the ``.\SharedFunctions\MemoryRead\`` directory of Script Hub and run from there. ## Troubleshooting: ``game.gameInstances.Controller.userData.HeroHandler.heroes.[_level]`` or ``game.gameInstances.Controller.userData.HeroHandler.heroes.[k__BackingField]`` are not being found. * These are the same variable which was renamed. Both are being kept for backwards compatability to older DLL versions. If you wish to not see the error anymore, you can remove the associated line from the ``MemoryLocations_IdleGameManager.txt`` file. When running the script, the window immediately closes. * If the script runs successfully it will wait for a keypress before closing. If it is not then the script likely had an error and exited. Run the script from a command prompt/powershell window to see the error. The script worked before a game update but after there are multiple ``--ERROR--`` in the FullMemoryRead addon, even after importing pointers. * This typically means the pointers changed and not just the offsets.\ \ To update pointers in ``IdleGameManager`` and other dynamic pointers follow the instructions here:\ https://github.com/mikebaldi/Idle-Champions/blob/main/Pointers.pdf \ If you are familiar with that, then to update pointers in ``CrusadersGameDataSet``, ``DialogManager``, ``EngineSettings``, ``GameSettings`` and other static pointers follow the instructions here**:\ https://github.com/mikebaldi/Idle-Champions/blob/main/GameSettingsStaticInstructions.pdf > ** Note: The instructions say you typically only need a depth of 2 for static, but be aware sometimes it may require more. As of v435 Steam is using a pointer with a depth of 5. \ Which pointer is causing the problem? * If errors show up in functions referencing **Favor** or **Blessings** then the problem is likely in ``DialogManager``\ \ If errors show up in multiple functions referencing **Chests** then the problem is likely in ``CrusadersGameDialogSet``\ \ If **webroot** cannot be found, there is an issue with ``EngineSettings``\ \ If **UserID**, **Hash**, or **Game version** are not working there is an issue with ``GameSettings``\ \ Most other problems will be in ``IdleGameManager``\ \ The relevent files will be found in ``.\SharedFunctions\MemoryRead\`` using a format of ``IC_[NAME]_Class.ahk`` where ``[NAME]`` is one of the above. E.G. ``IC_DialogManager_Class.ahk`` Script Hub is almost all ``-- ERROR --`` in FullMemoryFunctions after importing. * First, make sure the ``Import`` files are in the correct locations.\ \ Using an old version of Python could cause the AHK files to build offsets out of order and they won't load correctly in ScriptHhub. Versions 3.10.4 and 3.9.2 have been verified to work correctly. Type ``python -V`` in a cmd or powershell window to see the version.

近期下载者

相关文件


收藏者