UFO:Alien Invasion
Technical support => Feature Requests => Topic started by: FlaewHen on September 04, 2006, 08:23:15 pm
-
Hi people,
I encountered the following error with RC4;
Few seconds after the mission screen loads (you know, the tactical map where I can move my soldiers:P) the game crashes and I get a message :
'...could not generate font surface'
Any ideas what's wrong and how to correct it? I'd like to finally play this game a bit:]
-
OS? Any other info?
-
Wanna PC specification? Here it is:
OS Win XP
Athlon 1.0
Radeon 9550
Sound integrated on mainboard (Asrock mainboard)
256 MB RAM
Did I forget about something?
-
Last messages from base/ufoconsole.log?
Try to update your video drivers.
-
There's something like this:
==== InitGame ====
------- Server Initialization -------
Created AI player (team 0)
Created AI player (team 7)
-------------------------------------
loopback: client_connect
farm08n
CL_Precache_f
LoadMap
Map: farm08n
pics
civilians/male/body01
civilians/male/head01
civilians/female/body01
civilians/female/head02b
civilians/female/head02a
aliens/blue/body01
aliens/blue/head01
images
begin
You are already on team 1
Cottard has taken control over team 1.
(player 0) It's team 1's round
Text has zero width (f_small)
==== ShutdownGame ====
SDL audio device shut down.
These are the last lines in my ufoconsole.log
-------------
I've just installed the newest drivers for my radeon 9550 ( Catalyst 6.8 ) and the error still occurs the same way:/
Help me somehow, please.
-
> Text has zero width (f_small)
Now, this is something... Ideas, anybody?
Have you got any other version of SDL_ttf.dll on your system than the one in contrib directory of UFO:AI source? (Just guessing, because I don't have Windows, but fame of the DLL-hell reaches even to the Linux world...)
-
I have only one file of that name (SDL_ttf.dll) and it is located in the main UFO:AI directory.
Hope someone will find some kind of solution to my problem; the game is awesome and I wanna play it!:]
-
One more questions: what do the other lines with f_small in them say in the ufoconsole.log?
-
There is not a single line other than the one you know of with 'f_small' in ufoconsole.log...
-
Ha. That might be the problem. I have (on Linux):
...found font f_small (1)
FindFile: ./base/media/DejaVuSans.ttf
FindFile: ./base/media/DejaVuSans.ttf
in ufoconsole.log
I wonder where the font files are in your install...
Any other "found font" in your log?
-
Nope, I don't see anything like 'found font' in my ufoconsole.log. But i do have the file 'DejaVuSans.ttf' in the same place as you...
-
Oh, I've forgotten, I run ./ufo +set developer 1. This may be why your log is smaller. Can you try with that?
-
Do I have to reinstall the game?
-----------
I've just reinstalled the game and added the sourcecode as well as the other thing (mapping tools ?). Still the same error:/
Or perhaps you're talking about something diffrent? Tell me, I'll try everything I can to run this game:]
-
you have to edit your shortcut for ufo:ai and add right after ufo.exe the stuff Bandobras mentioned above (+set developer 1)
Commandline should look like this:
"c:\Program Files\UFO:AI\ufo.exe" +set developer 1
-
Thx Mattn, I added the thing to the command line of the shortcut but the error still remains.
-
you could try to debug the game via gdb (see wiki) and start ufo with "+set developer 1 +set vid_fullscreen 0" as parameters
* for endless loop: a strg+c in the debugger would stop the program
* otherwise (in case of a segfault) this is reported in gdb, too - just hit alt+tab to get the gdb console
type bt and print the output.
to install gdb (the debugger) just install dev-cpp (wiki) and add c:\dev-cpp\bin to your path variables (Workspace->Settings->Environment Variables)
that would really help to track that bug down. everything else might be guessing.
-
As soon as I'll have some more time I'll do it. In the next few days I guess.
-
And you can track down any mentions of "font" in the ufoconsole.log obtained with +set developer 1.
-
I can also get the game to crash with the same error you are encountering... but to do this I have to set the resolution very small (smaller than 600x400 from memory). However even at these small resolutions I can still at least get to the intro menu (and from there can increase the resolution).
-
Thanks ubequitz ! You are right, as I switched the game resolution to 1024x768 and higher the game no longer crashes:] So the problem must have something to do with font display at lower resolutions; thanks again:)
-
Latest trunk SVN (rev 3498) has a good chance of fixing this issue (according to my tests at least). So hopefully it won't be a problem with future releases.