adding linux client support#24
Open
Ventilador wants to merge 2 commits intoStationeersAddons:masterfrom
Open
Conversation
80e824c to
13b3935
Compare
exincore
reviewed
Jan 30, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Current Behavior On linux:
An error occurs trying to load the
Stationeers.Addons.dllsaying basically thatAssembly.LoadFilerequires an absolute path (this is code generated by cecil, also this happens inside the game, in the F3 console)New Behavior:
Starting the game now shows 2 loading bars (for the Loading scene, removing prefabs, etc), not sure why.
Once on the menu the addon compiles the plugins (the progress bar is shown in the menu)
Loading a world should load plugins installed (tested with network painter)
What this change does:
It Path.Combines the runtime
Environment.CurrentDirectory(meaning while running the game), and with theStationeers.Addons.dllto get the full path.It also copies all the required assemblies (from
Stationeers.Addons project) to therocketstation_Data/Managedfolder, which seems to be auto loaded be mono, so all dlls there become available to the mods