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

Cross-Platform Update #42

Merged
merged 1 commit into from
May 6, 2024

Conversation

JeffreyBytes
Copy link
Contributor

Parsing method for config.json was specifically written for Windows systems and was causing issues on non-Windows systems (such as in a Docker container). Replaced Windows-specific parsing statement to also work on non-Windows systems.

NOTE: The JavaScript files were not updated, so a new build will need to be done before merging. If you aren't aware, SPT does not recommend bundling the JavaScript files anymore to be more platform-agnostic.

I've allowed edits by maintainers, so please feel free to make changes to my branch if needed.

Replaced Windows-specific config.json parsing statement to work on non-Windows systems.
@JeffreyBytes JeffreyBytes changed the base branch from main to dev May 2, 2024 07:26
@JeffreyBytes JeffreyBytes marked this pull request as draft May 3, 2024 03:17
@JeffreyBytes
Copy link
Contributor Author

I'm converting this to a draft because I may have run into another issue on linux, but I need to test and make sure it is not being caused by a different mod.

@umbraprior
Copy link

Can confirm this fixes the error

@JeffreyBytes

This comment was marked as resolved.

@JeffreyBytes
Copy link
Contributor Author

This PR now relies on space-commits/SPT-Realism-Mod-Client#54

All of the above errors and the lack of F12 menu are fixed on both Windows and Linux servers.

I'd love some testing feedback to make sure before I convert this from a draft to a full PR.

@JeffreyBytes JeffreyBytes changed the title Update config parsing method to be platform-agnostic Cross-Platform Update May 4, 2024
@JeffreyBytes
Copy link
Contributor Author

I would also like to suggest building the server files without the .js and .js.map files otherwise Linux users will need to manually delete these Windows-specific files.

I can make these changes as part of this PR if you'd like, Fontaine. I don't want to overstep the project scope. :)

@space-commits space-commits marked this pull request as ready for review May 6, 2024 12:48
@space-commits space-commits merged commit 6552ba5 into space-commits:dev May 6, 2024
@JeffreyBytes JeffreyBytes deleted the fix-config-path branch May 9, 2024 06:47
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

Successfully merging this pull request may close these issues.

None yet

3 participants