WNP78 / FieldInjector

1 stars 0 forks source link

Does this work on other games? #1

Open TheUltimateNuke opened 4 months ago

TheUltimateNuke commented 4 months ago

Basically what the title says. Is it working on the latest commit, and does it work for other IL2CPP games? I've cloned and compiled it from source and it crashed the game. Here's the log: Latest.log Overall I think this would be great for IL2CPP modding in general!

WNP78 commented 4 months ago

There is nothing here specific to BONELAB as far as I know. However, the paths that it takes through Unity's code using Unhollower's xref scanner are quite particular to the Unity version it was designed for, and I can't assure (in fact I would expect it not to) work on other Unity versions. Multi-unity-version support isn't something I have the time to work on, and it'd be quite complex. This project never really got a lot of future-proofing because the word in the BONELAB community was that MelonLoader 0.6 was around the corner, which would come with it's own field injection built into Cpp2IL (a project developed from unhollower), superseding this. Although it does have a different API, which requires a bit more changes between a script to work in the Unity Editor and the script to inject. I haven't had a chance to test that myself, but it's apparently in open beta.