Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong map size data #3324

Closed
DorpsGek opened this issue Nov 21, 2009 · 2 comments
Closed

Wrong map size data #3324

DorpsGek opened this issue Nov 21, 2009 · 2 comments
Labels
component: NewGRF This issue is related to NewGRFs flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

George opened the ticket and wrote:

R18200

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

Map size is always 256x256 on any map size.

Reported version: trunk
Operating system: Windows


This issue was imported from FlySpray: https://bugs.openttd.org/task/3324
@DorpsGek
Copy link
Member Author

George wrote:

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

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/3324#comment6984

@DorpsGek
Copy link
Member Author

Rubidium closed the ticket.

Reason for closing: Fixed

In r18207


This comment was imported from FlySpray: https://bugs.openttd.org/task/3324

@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) component: NewGRF This issue is related to NewGRFs bug labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: NewGRF This issue is related to NewGRFs flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant