Technical support > Feature Requests

More debug-output for ufoconsole.log

(1/1)

HaJo:
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

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

HaJo:

--- 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
--- End quote ---

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: ---...
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.
--- End code ---


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

Bandobras:
They are already in ... SVN trunk (the Mattn version). :)

HaJo:

--- Quote from: "Bandobras" ---They are already in ... SVN trunk (the Mattn version). :)
--- End quote ---

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: ---ExecuteString: 'hudselecta4'
ExecuteString: ''
ExecuteString: '-select 178 25188565'
Out of memory (f_smallSoldier 2)
==== ShutdownGame ====
SDL audio device shut down.
Shader shutdown
--- End code ---


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

Navigation

[0] Message Index

Go to full version