Jump to content

Wheels of Prophecy version 6 released


Recommended Posts

The text in the .tra files hasn't changed between v3 and v6.

 

The stuff in the .tp2 file dealing with languages has changed slightly (see details). If you had added a LANGUAGE block to the v3 .tp2 file and want to copy it over to the v6 .tp2 file, just make sure to modify it to match the other languages (removing the "wheels/tra/" prefix from the first line).

Link to comment

Thank you, and sorry for my late reply.

 

Due to absence of official Chinese language support by now, the Chinese language is not compatible with BG2EE by now. I need a little more work in the .tp2 file to make sure BG2EE game use English .tra files...

Link to comment

jastey: I included english .tra file in the LANGUAGE part, but I'm afraid if use Chinese language on e.g. English game will also come to bad end.Maybe another check and LOAD_TRA line ?

 

Edit: A second thought, I think it's not necessary to add anything else, just let users to choose that.

 

Mike: May I just edit the .tp2 file in V6 and attach here along with the .tra files?

Edited by c4_angel
Link to comment

Installing the mod in French on BG2EE (V2.3) breaks the game: on Windows, when you double-click Baldur.exe, it starts but never displays the interface. The executable keeps running for a long time (I killed it after more than 30 minutes) while eating processor time.

The cause lies in the fact that the journal texts in setup.tra (among other texts) are not converted to UTF-8.

It can be fixed in the tp2 file by removing setup from the list of files to not convert and adding it to the list of files to reload. This requires adding the array of files to reload in the call to HANDLE_CHARSETS.

ACTION_DEFINE_ARRAY cdnoconvert BEGIN END // All files, including setup.tra, have texts to convert
ACTION_DEFINE_ARRAY cdreload BEGIN setup END // After conversion, setup.tra must be reloaded for immediate use
LAF HANDLE_CHARSETS INT_VAR infer_charset = 1 STR_VAR tra_path = ~wheels/tra~ noconvert_array = cdnoconvert reload_array = cdreload default_language = ~english~ END

Additionally, since English setup.tra is stated as fallback if a text is not present in French setup.tra (in the LANGUAGE statement), I think English should be declared as default language when calling HANDLE_CHARSETS (by adding default_language in the call to HANDLE_CHARSETS, as I did in the example above), so that English texts are also converted just in case a text uses a non-ASCII character.

 

 

 

Link to comment

Installing the mod in French on BG2EE (V2.3) breaks the game: on Windows, when you double-click Baldur.exe, it starts but never displays the interface. The executable keeps running for a long time (I killed it after more than 30 minutes) while eating processor time.

 

The cause lies in the fact that the journal texts in setup.tra (among other texts) are not converted to UTF-8.

 

It can be fixed in the tp2 file by removing setup from the list of files to not convert and adding it to the list of files to reload. This requires adding the array of files to reload in the call to HANDLE_CHARSETS.

 

ACTION_DEFINE_ARRAY cdnoconvert BEGIN END // All files, including setup.tra, have texts to convert
ACTION_DEFINE_ARRAY cdreload BEGIN setup END // After conversion, setup.tra must be reloaded for immediate use
LAF HANDLE_CHARSETS INT_VAR infer_charset = 1 STR_VAR tra_path = ~wheels/tra~ noconvert_array = cdnoconvert reload_array = cdreload default_language = ~english~ END

Additionally, since English setup.tra is stated as fallback if a text is not present in French setup.tra (in the LANGUAGE statement), I think English should be declared as default language when calling HANDLE_CHARSETS (by adding default_language in the call to HANDLE_CHARSETS, as I did in the example above), so that English texts are also converted just in case a text uses a non-ASCII character.

 

 

 

I've committed this fix to the repo, so it will be in v7.

Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...