qnighy / tapir

RGSS compatible runtime (namely: emulator for RPG Maker XP, VX, and VX Ace)
Other
100 stars 9 forks source link

RTP distribution problem #11

Open qnighy opened 6 years ago

qnighy commented 6 years ago

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.

take-cheeze commented 6 years ago

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.

qnighy commented 6 years ago

@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 commented 6 years ago

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...

take-cheeze commented 6 years ago

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 .