project-navigation
Personal tools

Author Topic: More debug-output for ufoconsole.log  (Read 3004 times)

HaJo

  • Guest
More debug-output for ufoconsole.log
« on: August 11, 2006, 03:18:39 pm »
Currently, it is hard to see what message in ufoconsole.log
is the cause of what action in the game, because there is
no message when buttons etc. are clicked in menus etc.

To make the output in ufoconsole.log more easy to follow,
I added some output-statements to the files menu_XXX.ufo,
see [ 1538311 ] "More debug-output: Log clicks in menu" on sf.net,
https://sourceforge.net/tracker/index.php?func=detail&aid=1538311&group_id=157793&atid=805244

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
More debug-output for ufoconsole.log
« Reply #1 on: August 11, 2006, 08:05:09 pm »
i added some debug output to code in some of the lastest revisions. you can get some of the executed commands directly to console log if you activate the developer cvar

HaJo

  • Guest
More debug-output for ufoconsole.log
« Reply #2 on: August 12, 2006, 01:15:19 am »
Quote from: "Mattn"
i added some debug output to code in some of the lastest revisions. you can get some of the executed commands directly to console log if you activate the developer cvar

I'm already running with "set developer 1" most of the time, and as of
 svn-2620, there are not enough events logged to trace some problems.

E.g. I still get lots of crashes after starting the program,
and ufoconsole has no useful details:
Code: [Select]
...
FindFile: ./base/pics/menu/equipment_lr.tga
FindFile: ./base/pics/menu/ufopedia_buttons1.tga
FindFile: ./base/pics/menu/ufopedia_buttons1.tga
====== UFO Initialized ======

Changing to Singleplayer
SDL audio device shut down.


So we need more debug-messages to locate the source of those crashes.

Offline Bandobras

  • Captain
  • *****
  • Posts: 586
    • View Profile
More debug-output for ufoconsole.log
« Reply #3 on: August 12, 2006, 04:52:15 am »
They are already in ... SVN trunk (the Mattn version). :)

HaJo

  • Guest
More debug-output for ufoconsole.log
« Reply #4 on: September 18, 2006, 01:58:04 am »
Quote from: "Bandobras"
They are already in ... SVN trunk (the Mattn version). :)

Still not enough log-messages - I often get crashes with no good hints in the log,
e.g.: clicking on a soldier during a battle causes crash:

Code: [Select]
ExecuteString: 'hudselecta4'
ExecuteString: ''
ExecuteString: '-select 178 25188565'
Out of memory (f_smallSoldier 2)
==== ShutdownGame ====
SDL audio device shut down.
Shader shutdown


Window-Messagebox says '... could not generate font surface "Soldier 2" '.