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

Suggestion: Improvement to mod creation/distribution process #90

Open
Roman215 opened this issue Jul 1, 2020 · 1 comment
Open

Suggestion: Improvement to mod creation/distribution process #90

Roman215 opened this issue Jul 1, 2020 · 1 comment

Comments

@Roman215
Copy link

Roman215 commented Jul 1, 2020

So one of the concerns I had as it relates to creating mods is that when creating a mod, it seems like ultimately you're building the source code yourself, compiling it to a C++ library, and redistributing that library. The problem with that approach is that 1) it's a security concern if you don't know what arbitrary C++ code is inside someone's mod, and 2) It guarantees that any mod will break for any official patch that's released for the game. In order to improve these issues, I propose that you find a way to change how mods are distributed to take advantage of .patch or .diff files. So basically a modder will modify the source code, create a .patch file, put the .patch file in the mod folder to be redistributed, and then from in the game, when you try to launch a mod, it will apply the .patch file to the source code, build the C++ library locally, and launch the mod. The benefit here is that a .patch file is easily human readable so you know what's all in the mod and someone can't put any nasty surprises in it. Also as long as the .patch file can still apply cleanly after an official patch, an official patch shouldn't necessarily break compatibility with an existing mod.

@abergmeier
Copy link

I think it is nice for you to acknowledge these problems and proposing a solution.
IMO the more practical approach would be to have a wasm engine embedded in the game. Then you would execute to a wasm "sandbox" anyhow and compromising the system way less likely.
That said I think any change to the current method is very unlikely

  • most people who would buy the game already did and thus there is no money to be made for mayor changes
  • you would perhaps lose some performance
  • compiling locally is no small feat especially since redistributing Microsoft compilers is non-trivial.
  • the games industry for the most part does not really care about security - unless it is their servers.

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

2 participants