News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

Debug output from makeobj

Started by jamespetts, January 26, 2014, 06:31:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jamespetts

The latest Standard nightlies (which Bernd is working on incorporating into Experimental) adds some very useful debug output to Makeobj. However, when I use the Python script to build Pak128.Britain, the messages disappear off the screen very quickly. Does anyone know a means of saving the debug output from Makeobj when using the Python script (makeALL.mos)?

Edit: I have found the answer, I think: one needs to run makeALL.mos from the command line and use a redirect, e.g.: makeALL.mos > makeobj-output.txt

Edit 2: Alas, this does not work: all that I get is:


mose> run C:\Users\James\Documents\Development\Simutrans\PakBritain sources\New\makeALL.mos
Building pak128.Britain-Ex...
This might take several minutes.

Copying system objects
Building aircraft
Building attractions
Building boats
Building busses
Building citybuildings
Building citycars
Building depots
Building goods
Building grounds
Building ground.Outside.pak
Building gui
Building HQ
Building industry
Building london-underground
Building maglevs
Building narrow gauge
Building pedestrians
Building smokes
Building stations
Building townhall
Building trains
Building trams
Building trees
Building ways
There is an error in DAT or PNG file!
There is an error in DAT or PNG file!
-----------------
!BUILD COMPLETE!
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

prissi

You have to redirect also stderr
$2>error.txt

(The symbol and number may depend on your shell. stderr > error.txt may also work)

I would recommend verbose instead of debug, it will not report so much image information.