FS#6447 - Tiny patch to send map array data to console if requiered.

Attached to Project: OpenTTD
Opened by Hans (hackalittlebit) - Saturday, 16 April 2016, 16:42 GMT
Last edited by Alberth (Alberth) - Monday, 14 August 2017, 19:33 GMT
Type Patch
Category Core
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version Version?
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


I had this laying around and I thought you might like it.
Map array data is displayed in the console when you are debugging.
bite = 0000.0000 0x00
short = 0000.0000.0000.0000 0x00000
long is 0000.0000.0000.0000.0000.0000.0000.0000 0x00000000
This task depends upon

Closed by  Alberth (Alberth)
Monday, 14 August 2017, 19:33 GMT
Reason for closing:  Implemented
Additional comments about closing:  Functionality already exists
Comment by Alberth (Alberth) - Monday, 23 May 2016, 17:45 GMT
When you have compiled with the debug option switched on, and you click at a tile with the info '?', the console dumps something like

dbg: [misc] TILE: 0x233c8b (1163,1127)
dbg: [misc] type = 0x81
dbg: [misc] height = 0x2
dbg: [misc] m1 = 0xe3
dbg: [misc] m2 = 0x283
dbg: [misc] m3 = 0x57
dbg: [misc] m4 = 0
dbg: [misc] m5 = 0x78
dbg: [misc] m6 = 0
dbg: [misc] m7 = 0

with the advantage you can copy/paste it into the issue tracker :)

Would this cover your addition?
Comment by frosch (frosch) - Tuesday, 24 May 2016, 16:17 GMT
IIRC there is a setting to send DEBUG output also to the ingame console.
So, generally DEBUG is more than IConsolePrintF