Opened 5 months ago

Last modified 5 months ago

#16446 new patch

Fanmade Chinese Variant of The Longest Journey

Reported by: hunhunk Owned by:
Priority: normal Component: Engine: Stark
Version: Keywords:
Cc: Game: The Longest Journey

Description

This is a patch to add support for the fan-made Chinese version of the longest journey. It is based on the 4CD English version. The variant has following data:

{"chapters.ini", 0, "968ed36bdcac6b6bb76cd24542861a48", 345},
{"x.xarc", 0, "a0559457126caadab0cadac02d35f26f", 3032},

Two source files need to be patched to support this variant.
In detection.cpp, add following to the ADGameDescription gameDescriptions[]

/ / The Longest Journey
/ / Chinese fan-made - applied to 4CD version
{

"tlj", "Fanmade",
AD_ENTRY2s("x.xarc", "a0559457126caadab0cadac02d35f26f", 3032,

"chapters.ini", "968ed36bdcac6b6bb76cd24542861a48", 345),

Common::ZH_CHN,
Common::kPlatformWindows,
ADGF_NO_FLAGS,
GUIO_NONE

},

In services/settings.cpp, add the case ZH_CHN for codepage setting:

Common::CodePage Settings::getTextCodePage() const {

switch (_language) {
case Common::ZH_CHN:

return Common::kWindows936;

case Common::PL_POL:

return Common::kWindows1250;

case Common::RU_RUS:

return Common::kWindows1251;

case Common::HE_ISR:

return Common::kWindows1255;

default:

return Common::kWindows1252;

}

}

To display Chinese right, player also need to add a Chinese font to the game's Fonts/ folder. Any Chinese unicode .ttf font should work. Rename it to one of the
font already in the Fonts/ folder, e.g., Arial.ttf. Then in gui.ini, specify
to use Arial for all the needed fonts.


Change History (1)

comment:1 by digitall, 5 months ago

Game: The Longest Journey
Note: See TracTickets for help on using tickets.