OpenTTD

Tasklist

FS#3324 - Wrong map size data

Attached to Project: OpenTTD
Opened by George (George) - Saturday, 21 November 2009, 16:08 GMT
Last edited by Remko Bijker (Rubidium) - Saturday, 21 November 2009, 16:40 GMT
Type Bug
Category NewGRF
Status Closed
Assigned To No-one
Operating System Windows
Severity Medium
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

R18200

[18:39:21] <George> Does <Sprite-number> * <Length> 0D <target> <operation> <variable> FE FF FF 00 00 vorks in OTTD?
[18:39:30] <George> 13 map size information Bit switch Format = -MABXYSS (since r11961 and r1817)
[18:40:06] <George> It is always 4, 34, 34, 1 for me
[18:40:21] <George> On any map size I test
[18:40:52] <George> 29 * 9 0D 0A \D= 13 FE FF FF 00 00
[18:41:02] <George> I use to access
[18:47:25] <George> do I understand it right, that it means 256x256 map?

Map size is always 256x256 on any map size.
This task depends upon

Closed by  Remko Bijker (Rubidium)
Saturday, 21 November 2009, 16:40 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r18207
Comment by George (George) - Saturday, 21 November 2009, 16:13 GMT
To see the result you need to look at any tourists center. The last line provides map data after leading zero


// Write map sise to 0a
29 * 9 0D 0A \D= 13 FE FF FF 00 00

// tourists centre
398 * 121 04 0A FF 01 DF D0 "├Ю\90\80\n"
"Places: \UE07C,\UE07C,\UE07C,\UE07C Free: \UE07C\n"
"Level: \80 (\80)\n"
"Remain: \UE07C months (0-undef)\n"
"Map size \UE07C / \UE07D, \UE07D, \UE07D, \UE07D" 00

// - return production text depending on var 93
776 * 173 02 0A FE 89
7C 00 20 FF FF 00 00 \2*
1A 20 00 00 01 00 \2+
7D 09 20 FF FF 00 00 \2sto
1A 20 00 01 00 00 \2rst
7C 01 20 FF FF 00 00 \2*
1A 20 00 00 01 00 \2+
7C 00 30 FF FF 00 00 \2sto
1A 20 01 01 00 00 \2rst
7D 08 20 FF FF 00 00 \2*
1A 20 00 00 01 00 \2+
7C 01 30 FF FF 00 00 \2sto
1A 20 02 01 00 00 \2rst
1A 20 C8 D4 00 00 \2+
7C 03 30 FF 00 00 00 \2*
1A 20 00 00 01 00 \2+
7D 07 20 FF FF 00 00 \2sto
1A 20 03 01 00 00 \2rst
7C 03 23 1F 00 00 00 \2sto
1A 20 04 01 00 00 \2rst
7F 0A 20 FF FF FF FF \2sto
1A 00 05 01 00 00
01 DF 80 00 00 00 00 00 00 00 00 DF 80

Loading...