tapir icon indicating copy to clipboard operation
tapir copied to clipboard

RTP distribution problem

Open qnighy opened this issue 7 years ago • 4 comments

To run games, we definitely need the RTPs distributed by Enterbrain. It's not surprising that they're proprietary. We want a non-troublesome and legal way to install RTPs into user's /usr/local.

For now, the only possible way is to install RTPs in their Windows and copy it to their Linux machine (or use Wine).

Is it safe to create an installer for Linux, similarly to msttcorefonts? According to StackExchange, msttcorefonts are legal.

qnighy avatar Sep 17 '17 07:09 qnighy

We can let users install RTP with wine and it can be referred by registry. Wine's registry is like a extended INI file so it'll need a INI parser. And the path is Windows styled so it needs to be converted to unix styled path.

I've done some kind of it for RPG Maker 2k in EasyRPG few years ago.

take-cheeze avatar Oct 06 '17 08:10 take-cheeze

@take-cheeze Automatically looking-up Wine's registry seems to be a good idea. Thank you!

For now we don't have INI parser, but we already analyzed INI spec since we need to load Game.ini.

qnighy avatar Oct 06 '17 08:10 qnighy

However, I'm still thinking of non-Wine-dependent installation of RTPs... It would be more convenient.

The installers seem to be based on InnoSetup. The header of the archive is marked InnoSetup Setup Data, although it is embedded as a constant. Therefore extraction is not impossible. It is though cumbersome to analyze header, which is version-dependent and LZ compressed...

qnighy avatar Oct 06 '17 08:10 qnighy

At least via-Wine user needs to agree to the terms of use by the installer so to avoid unnecessary legal issue I'd like to let user install it by themselves. After installing RTP, wine can be removed since the data we need is left in $WINEPREFIX .

take-cheeze avatar Oct 06 '17 08:10 take-cheeze