The International Simutrans Forum


Author Topic: Debug output from makeobj  (Read 1838 times)

0 Members and 1 Guest are viewing this topic.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 20918
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Debug output from makeobj
« on: January 26, 2014, 06:31:03 PM »
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:

Code: [Select]
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!
« Last Edit: January 26, 2014, 06:44:54 PM by jamespetts »

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10828
  • Languages: De,EN,JP
Re: Debug output from makeobj
« Reply #1 on: February 07, 2014, 02:58:01 PM »
You have to redirect also stderr

(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.