Gig
In the year 3000
Cakes 45
Posts: 4394
|
|
« on: November 23, 2018, 02:51:47 AM » |
|
PREMISE: This is just an idea. I don't know if it is worth it. I don't know if it has already been suggested before; if that's the case, please forgive me.
INTRODUCTION: The engine is designed to have assets (textures, shader files, sounds, maps, QVMs, etc.) contaned in "later" (alphabetically) pk3 files overriding assets with the same name contained in "previous" pk3 files. This system, working together with the "pure check", also allows OA 0.8.8 clients to keep compatibility with 0.8.1 and 0.8.5 servers.
THE PROBLEM: "Bad" (not only as "malicious", but mostly as "poorly executed" or "placed in the wrong folder") pk3 files always risked to mess up your game, since Q3A. Sometimes you start up your game and something is broken, e.g. some textures seem to disappear, etc., just because in your previous gaming session you autodownloaded some map pk3 which contains something that interferes with some baseoa stuff.
A POSSIBLE WAY TO MITIGATE THE PROBLEM (the idea): Maybe one may foresee a system where placing a specific file inside a pk3 file would mark the pk3 as "official", and thus the engine would not override stuff from it with stuff coming from unofficial packs, unless you are working in a mod folder. In other words, "unofficial packs" in baseoa may only add new assets and override those from other unofficial packs, but not override assets from "official packs".
WHEN? That would need a brand new OpenArena version (updated binaries and all new "stock" pk3 files containing the apposite "flag file") in order to be effective. OA 3.0.0 may theoretically be the right one.
LIMITATIONS: - Keeping the thing simple (just a very simple file, not a true "certificate") would make it easy for bad people to workaround it and create new "malicious" pk3 files, making them look like "official" while they are not... I don't know how much of a real threat this is, but it's possible. I said, I don't know if the idea is worth it. - It would not fix the problems with people modifying stock pk3 files on their own. But that's however a bit different than just downloading a new map and getting your game broken. - The additional pk3 files may not work as their creator expected, e.g. missing some shaders. But this is the price for do not mess up the base game.
ADDITIONAL THOUGHTS: - Maybe it may arise some compatibilty issues I didn't think about, even if starting from a new major release? I don't know. - So, maybe one may allow to turn that system on or off for additional backwards compatibility if needed and easier development of maps and other stuff? Maybe with a dedicated cvar or by adding new sv_pure values?
|
|
« Last Edit: November 23, 2018, 06:19:30 AM by Gig »
|
Logged
|
I never want to be aggressive, offensive or ironic with my posts. If you find something offending in my posts, read them again searching for a different mood there. If you still see something bad with them, please ask me infos. I can be wrong at times, but I never want to upset anyone.
|