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

Support for 1.47 #34

Open
Josh0Trucker opened this issue Mar 23, 2023 · 1 comment
Open

Support for 1.47 #34

Josh0Trucker opened this issue Mar 23, 2023 · 1 comment

Comments

@Josh0Trucker
Copy link

When using ts-map with ETS2 1.47 some of the map overlays are incorrectly assigned. It looks like SCS has changed the bit positions/definitions of the map overlay flags (core_map_version: 898). In the values below byte 3 is on the left and byte 0 is on the right.

Here is how the flags were defined prior to 1.47:

0x0000_0001 = Hide for zoom level 0
0x0000_0002 = Hide for zoom level 1
0x0000_0004 = Hide for zoom level 2
0x0000_0008 = Hide for zoom level 3
0x0000_0010 = Hide for zoom level 4
0x0000_0020 = Hide for zoom level 5
0x0000_0040 = Hide for zoom level 6
0x0000_0080 = Hide for zoom level 7
0x0000_FF00 = DLC guard field
0x0001_0000 = Parking type
0x0002_0000 = City name type
0x0004_0000 = User text type
0x0008_0000 = Secret overlay
0x0010_0000 = Landmark type

And here is how the flags appear to be defined starting with 1.47:

0x0000_0007 = Type field:
  0x0000_0000 = Road
  0x0000_0001 = Parking
  0x0000_0002 = City name
  0x0000_0003 = User text
  0x0000_0004 = Landmark
0x0000_FF00 = DLC guard field
0x0001_0000 = Secret overlay
0x0002_0000 = Hide for zoom level 0
0x0004_0000 = Hide for zoom level 1
0x0008_0000 = Hide for zoom level 2
0x0010_0000 = Hide for zoom level 3
0x0020_0000 = Hide for zoom level 4
0x0040_0000 = Hide for zoom level 5
0x0080_0000 = Hide for zoom level 6
0x0100_0000 = Hide for zoom level 7

(Values obtained through experimentation and observation)

dariowouters added a commit that referenced this issue Mar 27, 2023
@dariowouters
Copy link
Owner

Wow, thanks for the research Josh.
Had not looked into 1.47 yet and seems like that was the only change (for now at least).
So easy update for me thanks to you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants