adding linux client support #24
Open
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