UFO:Alien Invasion

Technical support => Windows => Topic started by: Pink_Lollipop on July 25, 2012, 04:25:35 pm

Title: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Pink_Lollipop on July 25, 2012, 04:25:35 pm
Hi guys,

I am having problems starting UFO AI 2.4 on my system. Game crashes after starting it. Operating system sends a crash report to Microsoft.
UFO AI 2.3.1 was running without any problems.

My system specs are: Acer Travelmate 8000, 1.7GHz, 1 GB Ram, Windows XP professional, Service Pack 3, ATi Radeon Mobility 9700 - 128 MB, Direct X 9.0c, latest Driver installed as available.

Any clue why I cannot start the game? How do I solve the problem?
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Sandro on July 25, 2012, 05:52:01 pm
Looks like you are starting the dedicated server (ufoded.exe), not the actual game (ufo.exe). But it's not supposed to crash anyway.

What happens if you start ufo.exe?
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Pink_Lollipop on July 25, 2012, 05:58:25 pm
Actually, when I attached the crashlog file from the server startup, this is the only chance for me to store the crashlog file at all. When I start UFO AI 2.4 the "ufo.exe" file, it starts the log window but after a few seconds, the program just crashes. So I do not have a chance to copy the actual crashlog. Windows XP tells me that it had to cancel program because of error. Desktop works fine afterwards.

What is the problem here?
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Sandro on July 25, 2012, 06:24:35 pm
Game could lose a logfile completely or partially in case of really bad crash. There's a trick to avoid it: start game with "ufo.exe +logfile 2" command. This mode is disabled by default since it could cause major slowdowns in some cases.
But it will allow you to get all the log (if any) up to the crash moment.
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Sandro on July 25, 2012, 06:31:01 pm
Oops -- looks like I've read you wrong: you don't have to copy log from the window, it is stored in the game's folder under "Application Data". Game installer should have put a menu link to there.
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Pink_Lollipop on July 25, 2012, 06:39:51 pm
Unfortunately, my installation did not create the folder "Application Data". My installation directory only consists of:
main directory: UFOAI-2.4
sub directories: - base
                          - i18n
                          - maps
                      - radiant
                      - tools     

That are all the directories that are created by the program.         
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Sandro on July 25, 2012, 06:53:48 pm
It is already present in Windows :)

cd %APPDATA%\UFOAI\2.4\base

ufoconsole.log should be there, that is the saved log.

Or, alternatively, if you prefer the windows explorer, Start->programs->UFO Alien Invasion->scrnshot and go one level up -- log should be there.

And the third way: open windows explorer and type (or copy) "%APPDATA%\UFOAI\2.4\base" to the address bar
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Pink_Lollipop on July 25, 2012, 07:41:42 pm
Hi there,

here is the ufoconsole.log.

Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: DarkRain on July 25, 2012, 08:01:31 pm
Your log seems to be cut did you try this?
start game with "ufo.exe +logfile 2" command.
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Pink_Lollipop on July 25, 2012, 08:10:38 pm
Hello guys,

here is the new logfile.
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: DarkRain on July 25, 2012, 08:23:37 pm
That didn't seem to help...
either the switch its not working or there's something wrong here

can you run the game from the command line (DOS window)?
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Pink_Lollipop on July 25, 2012, 08:28:20 pm
@DarkRain:

I started the game from the DOS command line. Still the same issue. Here is the latest logfile.
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: DarkRain on July 25, 2012, 08:33:29 pm
And did you include the "+ logfile 2" thing when you did? Was there nay output in the DOS console? Besides that I'm out of ideas....

edit: Ohhh, wasn't there a crashdump.txt file next to the ufoconsole.log?
second edit: I mean next to ufo.exe
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Pink_Lollipop on July 25, 2012, 08:37:21 pm
@DarkRain:

I started the game from the DOS command line and included the "+ logfile 2". The program still stops saying that MS XP needs to send a crash report to Microsoft.

What is wrong or not working here?
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: geever on July 25, 2012, 08:41:59 pm
Actually to add the option for auto-flushed logging is
Code: [Select]
ufo.exe +set logfile 2

as logfile is a cvar.

-geever
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: DarkRain on July 25, 2012, 08:49:51 pm
Interestingly it works without using "set" for me - even in the command line - but I guess it couldn't hurt to try...

also
wasn't there a crashdump.txt file next to ufo.exe?
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Pink_Lollipop on July 25, 2012, 09:02:34 pm
Hi there,

I entered the following in the command line: "ufo.exe +set logfile 2"
There is no "crashdump.txt file" in the directory.
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Pink_Lollipop on July 25, 2012, 09:19:09 pm
Is there a possibility to change the resolution from full screen to windowed box? I cannot even get to the setup menu. Is there a way to get to the setup screen?
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Sandro on July 25, 2012, 09:36:40 pm
Interestingly it works without using "set" for me - even in the command line - but I guess it couldn't hurt to try...

Because +set is required only since idTech3, and we are idTech2
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Sandro on July 25, 2012, 09:44:57 pm
I entered the following in the command line: "ufo.exe +set logfile 2"

Hmm, if that is the complete log, game crashed while negotiating with the driver about what capabilities the 3D hardware got.

Also, OpenGL driver reports less capabilities than Mobility Radeon 9700 really has. Enough to run UFO:AI, as it seems from the first glance, but maybe some older driver could be better? Discarding proper support for the older GPUs happens all the time.
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Pink_Lollipop on July 25, 2012, 09:50:03 pm
@ Sandro:

Do I need to install an older graphic cards driver for my ATi Radeon Mobility 9700? Which version would you recommend me to install and what do I have to consider?
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Sandro on July 25, 2012, 09:52:09 pm
Is there a possibility to change the resolution from full screen to windowed box?

adding " +vid_fullscreen 0" to the command line will do the trick (and please, no  spaces after the plus sign -- it should be entered verbatim)
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Pink_Lollipop on July 25, 2012, 09:56:20 pm
My ATi Mobility Radeon 9700 driver version is 6.14.10.6422.
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Sandro on July 25, 2012, 10:01:21 pm
Do I need to install an older graphic cards driver for my ATi Radeon Mobility 9700? Which version would you recommend me to install and what do I have to consider?

Not sure -- after ditching my last ATI 9xxx card in 2010, I tried to forgot all that mess about new drivers :) But I certainly remember that 2008 drivers got some problems which 2005 didn't.

On the other hand, that could be a wrong way -- after all, dedicated server doesn't even link to the 3D code, and you reported it to crash rather than sitting idly and waiting for connection. Right?
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Pink_Lollipop on July 25, 2012, 10:06:02 pm
I just entered "ufo.exe +vid_fullscreen 0" and program still crashes. 

While using the ufoded as starting the game, it is waiting idle for connection with server
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Pink_Lollipop on July 25, 2012, 10:07:47 pm
---- endianness initialization -----
found little endian system

---- filesystem initialization -----
Adding game dir: /usr/local/games/ufoai/base
Adding game dir: ./base
Added packfile ./base/0base.pk3 (15 files)
Added packfile ./base/0maps.pk3 (740 files)
Added packfile ./base/0materials.pk3 (57 files)
Added packfile ./base/0media.pk3 (11 files)
Added packfile ./base/0models.pk3 (2346 files)
Added packfile ./base/0music.pk3 (46 files)
Added packfile ./base/0pics.pk3 (1056 files)
Added packfile ./base/0shaders.pk3 (37 files)
Added packfile ./base/0snd.pk3 (354 files)
Added packfile ./base/0textures.pk3 (1767 files)
Added packfile ./base/0ufos.pk3 (109 files)
Adding game dir: C:\Dokumente und Einstellungen\Ronald\Anwendungsdaten\UFOAI/2.4/base
using C:\Dokumente und Einstellungen\Ronald\Anwendungsdaten\UFOAI/2.4/base for writing
executing filesystem.cfg
executing default.cfg
couldn't execute dedconfig.cfg

----- network initialization -------
libcurl/7.25.0 GnuTLS/3.0.17 zlib/1.2.6 libidn/1.24 libssh2/1.4.0 initialized.

------ server initialization -------
added 8 maps to the mapcycle

----------- parse scripts ----------
56 script files
...  0: extension
...  1: headgear
...  2: right
...  3: left
...  4: backpack
...  5: belt
...  6: holster
...  7: armour
...  8: floor
...  9: equip
Shared Client/Server Info loaded
...108 items parsed
... 31 damage types parsed
... 32 equipment definitions parsed
... 10 inventory definitions parsed
... 22 team definitions parsed
executing dedicated.cfg
===============================================================
| CVAR                           | DESCRIPTION                |
===============================================================
| sv_enablemorale                | activate morale            |
| sv_teamplay                    | activate teamplay          |
| sv_ai                          | activate ai (aliens)       |
| ai_autojoin                    | auto join of ai players    |
| ai_numactors                   | number of ai opponents     |
| ai_equipment                   | equipment def the ai uses  |
| ai_alien                       | alien team                 |
| ai_civilian                    | civilian team              |
| sv_maxsoldiersperplayer        | max soldiers per player    |
| sv_maxsoldiersperteam          | max soldiers per team      |
| sv_maxclients                  | max client amount          |
===============================================================

Available gametypes:
1on1
  sv_teamplay = 0
  sv_maxclients = 2
  sv_maxsoldiersperplayer = 4
  sv_maxsoldiersperteam = 4
  ai_numactors = 0
  sv_ai = 0
1on1on1
  sv_teamplay = 0
  sv_maxclients = 3
  sv_maxsoldiersperplayer = 4
  sv_maxsoldiersperteam = 4
  ai_numactors = 0
  sv_ai = 0
2on2
  sv_teamplay = 1
  sv_maxclients = 4
  sv_maxsoldiersperplayer = 4
  sv_maxsoldiersperteam = 8
  ai_numactors = 0
  sv_ai = 0
2on2on2
  sv_teamplay = 1
  sv_maxclients = 6
  sv_maxsoldiersperplayer = 4
  sv_maxsoldiersperteam = 8
  ai_numactors = 0
  sv_ai = 0
3on3
  sv_teamplay = 1
  sv_maxclients = 6
  sv_maxsoldiersperplayer = 2
  sv_maxsoldiersperteam = 6
  ai_numactors = 0
  sv_ai = 0
3on3on3
  sv_teamplay = 1
  sv_maxclients = 9
  sv_maxsoldiersperplayer = 2
  sv_maxsoldiersperteam = 6
  ai_numactors = 0
  sv_ai = 0
4on4
  sv_teamplay = 1
  sv_maxclients = 8
  sv_maxsoldiersperplayer = 2
  sv_maxsoldiersperteam = 8
  ai_numactors = 0
  sv_ai = 0
4on4on4
  sv_teamplay = 1
  sv_maxclients = 12
  sv_maxsoldiersperplayer = 2
  sv_maxsoldiersperteam = 8
  ai_numactors = 0
  sv_ai = 0
coop2
  sv_teamplay = 1
  sv_maxclients = 2
  sv_maxsoldiersperplayer = 4
  sv_maxsoldiersperteam = 8
  ai_numactors = 8
  sv_ai = 1
coop3
  sv_teamplay = 1
  sv_maxclients = 3
  sv_maxsoldiersperplayer = 2
  sv_maxsoldiersperteam = 6
  ai_numactors = 6
  sv_ai = 1
coop4
  sv_teamplay = 1
  sv_maxclients = 4
  sv_maxsoldiersperplayer = 2
  sv_maxsoldiersperteam = 8
  ai_numactors = 8
  sv_ai = 1

To change the gametype, just change the cvar gametype to one of the above shown types
set gametype to: coop2
  sv_teamplay = 1
  sv_maxclients = 2
  sv_maxsoldiersperplayer = 4
  sv_maxsoldiersperteam = 8
  ai_numactors = 8
  sv_ai = 1
setting game random seed to 38186
------- Loading game.dll -------
not found at '/usr/local/lib'
not found at 'C:\Dokumente und Einstellungen\Ronald\Anwendungsdaten\UFOAI/2.4/base'
found at './base'
Master server at [http://ufoai.org/] - sending a ping
checksum for the map 'fueldump': 4136802803
ufo script checksum 2711279429
-------------------------------------
====== UFO Initialized ======
=============================
==== InitGame ====
Spawned ai player for team 0 with entnum 46
Spawned ai player for team 0 with entnum 47
Spawned ai player for team 0 with entnum 48
Spawned ai player for team 0 with entnum 49
Spawned ai player for team 0 with entnum 50
Not enough spawn points for team 0
Created AI player (team 0)
Spawned ai player for team 7 with entnum 51
Spawned ai player for team 7 with entnum 52
Spawned ai player for team 7 with entnum 53
Spawned ai player for team 7 with entnum 54
Spawned ai player for team 7 with entnum 55
Spawned ai player for team 7 with entnum 56
Spawned ai player for team 7 with entnum 57
Spawned ai player for team 7 with entnum 58
Created AI player (team 7)
Used inventory slots after ai spawn: 0
sending heartbeat
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Pink_Lollipop on July 25, 2012, 10:09:57 pm
what is the port number?
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Pink_Lollipop on July 25, 2012, 10:17:38 pm
Driver date is 27.01.2004 - Version 6.14.10.6422
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Sandro on July 25, 2012, 10:25:49 pm
While using the ufoded as starting the game, it is waiting idle for connection with server

That's not a crash -- It's a correct behaviour.
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Pink_Lollipop on July 25, 2012, 10:28:39 pm
Ufo AI crashes when I want to play the game on my own.
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Sandro on July 25, 2012, 10:44:51 pm
Yes, I understand that. Looks like I've got to take a time-out -- no good ideas what to check next.

But you can search 3D-related forums for the "best drivers for old card" topics -- I've encountered some useful hints there before. Actually, google search for "best drivers for mobility radeon 9700" returns some interesting links. Maybe -- MAYBE -- they will be of help.

OFC, if you try those, don't forget to create system restore point and do a virus check for unofficial downloads :)
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Pink_Lollipop on July 25, 2012, 10:47:49 pm
Thank you for the support and advices. Cheers. I will try other drivers.
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: geever on July 26, 2012, 08:03:29 am
You could even try starting with

Code: [Select]
ufo.exe +set r_programs 0

This will disable GLSL shaders, if it starts like that, it's most probably a driver problem (but it is possible that you cannot find a good driver with working shaders at - but least you can play with less fancy graphics)

-geever
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: homunculus on July 26, 2012, 09:40:33 am
You could even try starting with

Code: [Select]
ufo.exe +set r_programs 0

This will disable GLSL shaders, if it starts like that, it's most probably a driver problem (but it is possible that you cannot find a good driver with working shaders at - but least you can play with less fancy graphics)

-geever
i also guessed it might have something to do with drivers, as i couldn't start a campaign in the stable 2.4 nor in 2.5 dev (windows xp here), until i first started the game in safe mode (used the safe mode from start menu -> programs ...), and after that the game ran also with normal start (i.e. not safe mode), except i needed to set fullscreen again and enable sound once.
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Crystan on July 26, 2012, 10:07:27 am
Probably you installed 2.4 over 2.3? If yes - make a clean install.
Title: Re: Problem starting UFO AI Vers. 2.4 - program crashes after start
Post by: Pink_Lollipop on July 26, 2012, 10:17:42 am
Hello guys,

I just installed a new older graphic card driver for my ATI Radeon Mobility 9700:

ATI Radeon Catalyst Vers. 9.3 (9_3_mobile_xp32_dd_ccc_enu).

The game is starting and working now as far as I can tell. I did not fight a battle yet. Need to set up a campaign. I keep you posted.

Once again, I like to thank all of you for your advice and support. You are doing a great job here!!  :)

UFO AI 2.3 or 2.3.1 is not installed on my computer. I only installed UFO AI 2.4 .