[Defcon-v1.42] Font Problem under Ubuntu 6.06 [solved]

Technical support for all issues relating to Defcon Linux

Moderator: Defcon moderators

Matthias
level0
Posts: 8
Joined: Wed May 23, 2007 8:48 pm

[Defcon-v1.42] Font Problem under Ubuntu 6.06 [solved]

Postby Matthias » Wed May 23, 2007 8:56 pm

Image
Last edited by Matthias on Fri May 25, 2007 1:14 pm, edited 2 times in total.
Matthias
level0
Posts: 8
Joined: Wed May 23, 2007 8:48 pm

Postby Matthias » Wed May 23, 2007 8:56 pm

User avatar
frenchfrog
level5
level5
Posts: 2572
Joined: Sun Sep 22, 2002 7:11 pm
Location: Quebec

Postby frenchfrog » Wed May 23, 2007 9:12 pm

This is a problem with texture, fonts are simply a texture in Defcon.
The Ultimate Uplink Guide (for any question on Uplink)
Latest Uplink Patch
Matthias
level0
Posts: 8
Joined: Wed May 23, 2007 8:48 pm

Postby Matthias » Thu May 24, 2007 4:13 pm

What can cause this texture problem?
User avatar
frenchfrog
level5
level5
Posts: 2572
Joined: Sun Sep 22, 2002 7:11 pm
Location: Quebec

Postby frenchfrog » Thu May 24, 2007 4:38 pm

I don't know, most probably shitty graphic drivers.

What are your hardware specs? And what graphic driver to you run (version)?

When you exit defcon (as a demo user), do you see the nag screen image?

Please post back if you find a solution.
Matthias
level0
Posts: 8
Joined: Wed May 23, 2007 8:48 pm

Hardware and Driver

Postby Matthias » Thu May 24, 2007 5:23 pm

Video Hardware
ATI Mobility Radeon 7000
* Chipset: ATI M6
* PCI ID: 1002:4c59
* AGP 4X
* 8 or 16MB DDR-SDRAM video memory
* External VGA up to: 2048x1536x16.7M at 75Hz

Driver
http://packages.ubuntu.com/dapper/x11/x ... driver-ati

This adapter is supported by recent versions of the radeon driver as found in X.Org and XFree86.
This chip is not supported by the proprietary ATI driver
Matthias
level0
Posts: 8
Joined: Wed May 23, 2007 8:48 pm

Nagscreen works (except from the font textures)

Postby Matthias » Thu May 24, 2007 5:24 pm

Image
User avatar
frenchfrog
level5
level5
Posts: 2572
Joined: Sun Sep 22, 2002 7:11 pm
Location: Quebec

Postby frenchfrog » Thu May 24, 2007 7:50 pm

hmmm, the code for rendering the exit nag screen and the fonts texture is incredibly similar.

Only minor options differ:

fonts:
glBlendFunc( GL_SRC_ALPHA, GL_ONE );
glTexParameteri ( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR );

nag screen:
glBlendFunc ( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
glTexParameteri ( GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR );


Unless I miss something, it seems your driver don't gives the right output under certain conditions.


EDIT: which version of the xorg driver do you run?
User avatar
bert_the_turtle
level5
level5
Posts: 4795
Joined: Fri Oct 13, 2006 6:11 pm
Location: Cologne
Contact:

Postby bert_the_turtle » Thu May 24, 2007 8:02 pm

What texture sizes does the GPU support? The fonts are the largest textures in the game, they're 1024x1024, the biggest other texture is 512xsomething. Would you try a mod with smaller font textures? I can make one after dinner.
User avatar
frenchfrog
level5
level5
Posts: 2572
Joined: Sun Sep 22, 2002 7:11 pm
Location: Quebec

Postby frenchfrog » Thu May 24, 2007 8:06 pm

Good idea bert. Perhaps the GPU or driver is limited to 512x512 texture.
User avatar
bert_the_turtle
level5
level5
Posts: 4795
Joined: Fri Oct 13, 2006 6:11 pm
Location: Cologne
Contact:

Postby bert_the_turtle » Thu May 24, 2007 9:21 pm

Here you go:
http://armagetron.kicks-ass.net/~manuel ... nt-0.1.zip

Instructions: download and unzip this into the libs subdirectory of your defcon installation. That should create a new subdirectory with the name "mods". Usually, you'd now be able to activate the mod (it's actually two of them, one with 512x512 fonts, one with 256x256) from within the game. But you need to have Defcon activated, which I imagine could have been difficult :)
So instead, just copy the data subdirectory of the font mod of your choice directly into the libs subdirectory of the defcon installation. A call of "du" from the top directory should look something like this (I snipped the stuff you won't see, so the totals are off):

Code: Select all

gonzo defcon-v1.42 # du
12      ./doc
1060    ./lib/mods/smallfont-0.1/data/fonts
1064    ./lib/mods/smallfont-0.1/data
1072    ./lib/mods/smallfont-0.1
292     ./lib/mods/tinyfont-0.1/data/fonts
296     ./lib/mods/tinyfont-0.1/data
304     ./lib/mods/tinyfont-0.1
54848   ./lib/mods
2084    ./lib/data/fonts
13792   ./lib/data
135296  ./lib
136228  .
The mods subdirectory came from the zip, and the ./lib/data subdirectory is your copy of the mod data directory of your choice. I suggest ./lib/mods/smallfont-0.1/data; tinyfont is just too ugly :)
Matthias
level0
Posts: 8
Joined: Wed May 23, 2007 8:48 pm

Small font works - well done!

Postby Matthias » Fri May 25, 2007 12:54 pm

Image
Matthias
level0
Posts: 8
Joined: Wed May 23, 2007 8:48 pm

Postby Matthias » Fri May 25, 2007 12:57 pm

With small fonts it works well, thank you. Demo users can not load mods and it's hard to guess the right menu anyway, but putting it into /lib/data/fonts does it (both tiny and small version).

http://packages.ubuntu.com/dapper/x11/xserver-xorg version is 7.0.0-0ubuntu45
User avatar
bert_the_turtle
level5
level5
Posts: 4795
Joined: Fri Oct 13, 2006 6:11 pm
Location: Cologne
Contact:

Postby bert_the_turtle » Fri May 25, 2007 7:02 pm

Lucky guess, again :)

I hope it's OK that I host redistribute scaled down versions of the original game fonts. Speaking about downscaling, does anyone have a better way to scale down the fonts? I picked cubic interpolation and that causes bits of blurr.
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Fri May 25, 2007 7:12 pm

bert, you are the fscking man! Now I can play Defcon at work, too!

xander

Return to “Linux Troubleshooting”

Who is online

Users browsing this forum: No registered users and 2 guests