dariowouters / ts-map

ATS/ETS2 map renderer
MIT License
85 stars 28 forks source link

Support for Texas #32

Closed dowmeister closed 1 year ago

dowmeister commented 2 years ago

Hey Dario,

i've found a null reference exception in

Line 261 - TsPrefabItem.cs

           var rot = (float)(originNode.Rotation - Math.PI -
                Math.Atan2(mapPointOrigin.RotZ, mapPointOrigin.RotX) + Math.PI / 2);

and also many warnings about items not found

[9:13:30 PM|Warning] [TsSector.cs::Parse] Unknown Type: Building in sec-0004+0013.base @ 2010
[9:13:30 PM|Warning] [TsSector.cs::Parse] Unknown Type: Building in sec-0004+0013.base @ 2010
[9:13:30 PM|Warning] [TsSector.cs::Parse] Unknown Type: Building in sec-0004+0013.base @ 2010
[9:13:30 PM|Warning] [TsSector.cs::Parse] Unknown Type: Building in sec-0004+0013.base @ 2010
[9:13:30 PM|Warning] [TsSector.cs::Parse] Unknown Type: Building in sec-0004+0013.base @ 2010
[9:13:30 PM|Warning] [TsSector.cs::Parse] Unknown Type: Building in sec-0004+0013.base @ 2010
[9:13:30 PM|Warning] [TsSector.cs::Parse] Unknown Type: Building in sec-0004+0013.base @ 2010
[9:13:30 PM|Warning] [TsSector.cs::Parse] File 'sec-0004+0013.base' from 'D:\SteamLibrary\steamapps\common\American Truck Simulator\dlc_tx.scs' was not read correctly. Read offset was at 0xD7A23A52 while file is 0x7567C bytes long.
[9:13:30 PM|Warning] [TsSector.cs::Parse] Unknown Type: Curve in sec-0004+0014.base @ 23090
[9:13:30 PM|Warning] [TsSector.cs::Parse] Unknown Type: Curve in sec-0004+0014.base @ 23090
[9:13:30 PM|Warning] [TsSector.cs::Parse] Unknown Type: Curve in sec-0004+0014.base @ 23090

Hope this helps

Thank you in advance as usual.

dowmeister commented 2 years ago

Priceless