ark-mod / ArkSavegameToolkitNet

Library for reading ARK Survival Evolved savegame files using C#.
MIT License
21 stars 27 forks source link

Crystal Isles location multipliers are wrong for the release map #17

Open hallipr opened 4 years ago

hallipr commented 4 years ago

Lat 0, Long 0 is at X -850000, Y -780000 Lat 1, Long 1 is at X -833000, Y -764000

X Scale (Longitude Divisor) is 17000 Y Scale (Latitude Divisor) is 16000

X 0, Y 0 is at Lat 48.75, Long 50

Also, using TPCoords to set Lat and Long, then checking X and Y with CopyCoordinatesToClipboard seems to be the most accurate way to map the two coordinate systems. It seems odd to then translate the accurate, integer x and y diffs and scale into derived, floating point latitude and longitude shifts in the source. The X/Y shift is just your ccc output at "TPCoords 0 0 40000" The X/Y scale is the diff in x and y between 0,0 and 1,1

Crystal Isles 0 0 Crystal Isles 1 1

Dia commented 4 years ago

This has already been fixed with the ark.json file: https://github.com/ark-mod/ArkBot/pull/147

hallipr commented 4 years ago

ArkBot uses the ark.json file, but arksavegametoolkitnet doesn't. Currently, it still relies on the internal dictionary in ArkLocation for conversion

https://github.com/ark-mod/ArkSavegameToolkitNet/blob/b2257ce7bc630ae8707806bd28ebda5f11db0d21/ArkSavegameToolkitNet.Domain/ArkLocation.cs#L28