Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will not run under Linux #13

Open
hatesigningup opened this issue Jul 7, 2024 · 1 comment
Open

Will not run under Linux #13

hatesigningup opened this issue Jul 7, 2024 · 1 comment

Comments

@hatesigningup
Copy link

Sons of the Forest runs fantastic under Wine for Linux, but I can't for the life of me get RedModManager to run.

I know this isn't as bug, but was hoping you could give me some clue as to how the programme works so I have a better chance of getting it running.

I installed RedMod and all my mods in my Windows copy of Sons and copied the entire folder over to Linux. It runs, but there is no sign of RedMod. As far as I can tell there are no other external hidden folders that RedMod needs.

I don't understand how RedMod gets started, it seems that everything is in the Sons folder and it somehow side-loads. The question is how?

Any ideas?

Thanks and regards.

@hatesigningup
Copy link
Author

hatesigningup commented Jul 14, 2024

OK, so after a lot of head scratching and researching, I think I finally see how this whole thing works.

  1. The game engine (Unity) on startup checks the Game's root folder for any extra .dll files.
  2. It finds dobby.dll & version.dll that point to the sideloading code (this is the RedLoader part of the RedModManager package).
  3. One of those .dlls redirects execution to the recompiler (Il2cpp) which modifies the code to allow the injection of RedModManager.
  4. Execution then returns to the "normal" game code.

So the problem lies somewhere in this loading chain (not RedModManager), and sadly there are no logs to follow which might point me to the culprit.

This is just my best guess based on my research, but if anyone has any more info I would be grateful for any leads.

Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant