BattletechModders / ModTek

Mod system for HBS's PC game BattleTech.
GNU Lesser General Public License v2.1
119 stars 34 forks source link

ModTek succeeds but doesn't decorate main menu or appear to be loaded #221

Open rtshanks opened 1 year ago

rtshanks commented 1 year ago

Running BT 1.9.1 latest on M1 ARM Mac.

(base) robo@robombpro ModTek % mono ModTekInjector.exe
ModTek Injector
---------------

ModTek already injected. Would you like to re-inject: Assembly-CSharp.dll.orig restored to Assembly-CSharp.dll
Injecting Assembly-CSharp.dll with ModTek.Injection.LoadModTek at BattleTech.Main.Start
Writing back to Assembly-CSharp.dll...
Injection complete!

Injector appears to work but no decoration and unable to load mods. It appears to be a vanilla mod loader and errors with ERROR No existing mods found.

Checked shasum on dll and it does appear different than the original. I've tried modtek 0.7, 2.0 but have yet to try newer versions.

CptMoore commented 1 year ago

Only ModTek v4 is supported (latest) It does not use any injector exe anymore UnityDoorstop as a mechanism is used, that works by forcing OSX to load a library that then loads a preloader that injects ModTek into BT during runtime UnityDoorstop has some documenation about Mac support https://github.com/BattletechModders/ModTek/blob/master/INSTALL.md contains all the information gathered for installation support I dont know of any unsuccessful or successful cases regarding M1, but i know someone was successful with macos and steam at some point in time with unitydoorstop + modtek/bt

rtshanks commented 1 year ago

I tried using ModTek 4.0 latest stable release (not the unstable 4.0) and yielded the same results. Is there some log files I should be running? I did follow the INSTALL.md. There are messages to the console when I execute run.sh and some might be concerning, but I am not sure what I'm looking for.

Mostly relating to this:

Fallback handler could not load library /Users/robo/Library/Application Support/Steam/steamapps/common/BATTLETECH/BattleTech.app/Contents/Frameworks/MonoEmbedRuntime/osx/libdl.so.2
...(repeated)...

They're all mono related. I'm running:

Mono JIT compiler version 6.12.0.182 (2020-02/6051b710727 Tue Jun 14 15:01:21 EDT 2022)
CptMoore commented 1 year ago

The logs you get in the console are already exhaustive enough i think...

Visit the Bepinex discord where you can search or ask around. Maybe someone posted something about m1 that works for you...