WineHQ
Bug Tracking Database – Bug 34713

 Bugzilla

 

Last modified: 2014-12-31 12:24:59 UTC  

Treasure Adventure Game: dialogue text unreadable

Bug 34713 - Treasure Adventure Game: dialogue text unreadable
Treasure Adventure Game: dialogue text unreadable
Status: CLOSED FIXED
AppDB: Show Apps affected by this bug
Product: Wine
Classification: Unclassified
Component: gdi32
1.7.4
x86 Linux
: P2 normal
: ---
Assigned To: Mr. Bugs
http://www.fileplanet.com/223961/2200...
: download
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2013-10-13 04:39 UTC by Rixa
Modified: 2014-12-31 12:24 UTC (History)
5 users (show)

See Also:
Regression SHA1:
Fixed by SHA1: a88a121059a51f6370daa85c2990c202b4e93ac9
Distribution: ---
Staged patchset:


Attachments
proposed patch (3.75 KB, patch)
2013-12-03 10:17 UTC, Sagawa
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rixa 2013-10-13 04:39:18 UTC
The dialogue text displays wrong and is unreadable.

The game starts with a scrolling screen of text that does render correctly, followed by a scene on a boat with lots of dialogue that are all garbled. The first line of dialogue is supposed to be "Baggus: What do you say we turn back before this storm sends us to a watery grave?", but it looks more like:

a|††”’Y?v‡|“?ƒŽ?~Ž”?’|~?–„?“”‘|?||‚Š?|„…Ž‘„?“‡^’?’^–Ž‘Œ?’„|ƒ’? 
”’?“Ž?|?–|“„‘~?†‘|•„^

(This is not exact - some characters render on top of each other, it's hard to tell if there are spaces, and all the | are probably something else instead.)

It is probably meant to be displayed in the included smalle.fon. Wine does not pick this up from the game directory. It has its own smaller file that gets used instead, but replacing that with the one from the game doesn't work any better.

I get readable text if I delete smalle.fon from wine entirely; then the game renders with some anti-aliased vector font instead. While obviously an improvement, it doesn't go visually very well with the low-resolution retro graphics of the game.

The game is one of the freebies from GOG.com.
Comment 1 Andrey Gusev 2013-10-13 08:23:08 UTC
And this one also have unreadable text? http://www.fileplanet.com/223961/220000/fileinfo/Treasure-Adventure-Game-%28Free-Game%29
Comment 2 Rixa 2013-10-13 09:59:55 UTC
Yes, I have the same with that. It appears to be the same executable, too.
Comment 3 Andrey Gusev 2013-10-13 10:13:38 UTC
(In reply to comment #2)
> Yes, I have the same with that. It appears to be the same executable, too.

Strange. I don't have this issue. Are you tried with a clean wineprefix without any overrides?
Comment 4 Béla Gyebrószki 2013-10-13 12:17:07 UTC
I can reproduce the problem with the demo, clean Wine 1.7.4 on Fedora 19.
I might add that I have similar problem with the indie game Saira (bug #24600), which uses the same game engine as Treasure Adventure Game (Multimedia Fusion 2 engine).
Not sure if that's related, though.
Comment 5 Rixa 2013-10-13 14:58:49 UTC
Yes, tried it with a clean wineprefix and a freshly compiled wine-1.7.4 and it's there. Am running on xubuntu 13.04 with proprietary nvidia driver 313.30.

I also notice that someone has posted the same problem on the WineHQ forum in June and someone else confirmed it in July (Topic "Small font garbled").
Comment 6 Paul The Tall 2013-11-03 14:41:04 UTC
Confirmed on Mac OSX as well with 1.7.5 Tried all kind of font winetricks, no effect though...
Comment 7 Ian 2013-11-21 19:21:21 UTC
I can also confirm on 1.7.6 mac osx. Made a log with +font enabled in winedebug, hopefully it will help.
Comment 9 Rixa 2013-11-26 10:22:08 UTC
I looked into the nature of the distortion in hopes that it would help fix the bug. It turns out that if one simply adds 0x1F to each byte of the example piece of dialogue and then interprets it as per codepage 1252, one gets this:

Baggus: What do you say we turn back before this storm sends us to a watery grave?
a€††”’Y?v‡€“?ƒŽ?˜Ž”?’€˜?–„?“”‘�?�€‚Š?�„…Ž‘„?“‡ˆ’?’“Ž‘Œ?’„�ƒ’?”’?“Ž?€?–€“„‘˜?†‘€•„^

Some of the resulting characters (marked with � here) are undefined. They and the € symbol display as a vertical bar, but otherwise I believe that this is what is being rendered.
Comment 10 Sagawa 2013-11-27 11:18:13 UTC
Confirmed and found some issues in bitmap font rendering.
Hopefully, I'll send a patch for this issue in this weekend.
Comment 11 Sagawa 2013-12-03 10:17:04 UTC
Created attachment 46715 [details]
proposed patch

Could you try this patch?
Although I'd already tested with the game, I'd like to verify this patch surely fix the issue.
Thanks in advance.
Comment 12 Béla Gyebrószki 2013-12-03 11:17:10 UTC
(In reply to comment #11)
> Created attachment 46715 [details]
> proposed patch
> 
> Could you try this patch?
> Although I'd already tested with the game, I'd like to verify this patch surely
> fix the issue.
> Thanks in advance.

The patch fixes not just this bug for me, but bug #24600 as well.
Comment 13 Rixa 2013-12-04 10:06:53 UTC
Your patch fixes the problem for me too. Good work!
Comment 15 Béla Gyebrószki 2013-12-11 19:17:05 UTC
Fixed in wine-1.7.8-42-gf50ead6
Comment 16 Alexandre Julliard 2013-12-20 12:43:24 UTC
Closing bugs fixed in 1.7.9.


Privacy Policy
If you have a privacy inquiry regarding this site, please write to [email protected]

Hosted By CodeWeavers