gemrb / gemrb

GemRB is a portable open-source implementation of Bioware’s Infinity Engine.
https://gemrb.org
GNU General Public License v2.0
966 stars 181 forks source link

Request: List of exact files required by GemRB for each game #1583

Closed shinra-electric closed 2 years ago

shinra-electric commented 2 years ago

Description

After unpacking the games from GOG, there are a load of useless files (such as gog installers, autorun, windows dlls etc) that could be deleted.

Is it possible to create a list of all the files that are required for each game in order for it to run, so irrelevant files can be deleted?

For example, ScummVM list all their required files like this.

MarcelHB commented 2 years ago

Since depending on the platform bundle, game and language this ends up in a very large list. It's probably easier to have a look at this list instead and go by file extension.

shinra-electric commented 2 years ago

Is that a list of supported file formats for the game engine?

So if I kept all the files with those extensions, I could delete the rest and it should still work?

(I know some other source ports require keeping the main.exe file because it contained the mouse cursor images..)

MarcelHB commented 2 years ago

Give it a try, feel free to report if anything breaks this assumption.

shinra-electric commented 2 years ago

So I just tried with BG2...

I kept the following folders intact:

And I also kept these files in the main directory:

I was able to go in game with just these files, and I didn't notice any difference. Can some of these be removed also?

Regarding the script compiler and scripts folder, the list you sent did not have support for these .bs files. I assume these were used for scripting in the original game. Are these used in GemRB?

lynxlynxlynx commented 2 years ago

BS are BCS files, so don't delete them if you want to use party AI. None of this will save you any noticeable space though.

shinra-electric commented 2 years ago

Thanks, I restored from backup.

It's not really about saving space, it's more about being OCD.

lynxlynxlynx commented 2 years ago

Basically you can remove any GOG-specific stuff (usually obviously named), exes and dlls (if you never plan to run them), and documentation (licenses, readmes etc.). All candidates are in the top dir, you can kill mplayer/ if present and temp/, tempsave/, cache.

lynxlynxlynx commented 2 years ago

Feel free to create a wiki page with your final lists. In the meanwhile I'm closing this issue.