unicor-p / ts-map Goto Github PK
View Code? Open in Web Editor NEWThis project forked from koenvh1/ts-map
ATS/ETS2 map renderer and cities / poi extractor
Home Page: https://unicor-p.github.io/ts-map/
License: MIT License
This project forked from koenvh1/ts-map
ATS/ETS2 map renderer and cities / poi extractor
Home Page: https://unicor-p.github.io/ts-map/
License: MIT License
Add the field x
and y
to use a custom position
Like the city position View > Map
I'm going to make this issue to compile some tracebacks that were obtained while chatting in the Discord server in regards to certain combinations of map mods not cooperating and causing issues.
From Korgi, the following: (Promods with Middle East Addon)
[10:10:34 ERR] Job Exception (ParseMapFilesJob): [Job][MapFiles] Could not read map/mideast directory | Stack: at TsMap2.Job.Parse.Map.ParseMapFilesJob.Do()
at TsMap2.Job.ThreadJob.<Run>b__7_0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
[10:10:40 INF] [Job][Localizations] Loaded.
System.AggregateException: One or more errors occurred. (One or more errors occurred. ([Job][MapFiles] Could not read map/mideast directory))
---> System.AggregateException: One or more errors occurred. ([Job][MapFiles] Could not read map/mideast directory)
---> TsMap2.Helper.JobException: [Job][MapFiles] Could not read map/mideast directory
at TsMap2.Job.Parse.Map.ParseMapFilesJob.Do()
at TsMap2.Job.ThreadJob.<Run>b__7_0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at TsMap2.Job.ParentThreadJob.Run()
[10:10:40 ERR] Unexpected Exception: TsMap2.Helper.JobException: [Job][MapFiles] Could not read map/mideast directory
at TsMap2.Job.Parse.Map.ParseMapFilesJob.Do()
at TsMap2.Job.ThreadJob.<Run>b__7_0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
[10:10:40 ERR] Unexpected Exception: System.AggregateException: One or more errors occurred. (One or more errors occurred. ([Job][MapFiles] Could not read map/mideast directory))
---> System.AggregateException: One or more errors occurred. ([Job][MapFiles] Could not read map/mideast directory)
---> TsMap2.Helper.JobException: [Job][MapFiles] Could not read map/mideast directory
at TsMap2.Job.Parse.Map.ParseMapFilesJob.Do()
at TsMap2.Job.ThreadJob.<Run>b__7_0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at TsMap2.Job.ParentThreadJob.Run()
at TsMap2.CommandLine.<>c__DisplayClass3_0.<CommandExport>b__1()
From Korgi: (Promods without Middle East, but a couple other map expansions)
[10:13:10 INF] [Job][Prefab] Loaded. Found: 4455
System.AggregateException: One or more errors occurred. (One or more errors occurred. (Bad state (invalid block type)))
---> System.AggregateException: One or more errors occurred. (Bad state (invalid block type))
---> Ionic.Zlib.ZlibException: Bad state (invalid block type)
at Ionic.Zlib.InflateManager.Inflate(FlushType flush)
at Ionic.Zlib.ZlibBaseStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at Ionic.Zlib.DeflateStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at Ionic.Zlib.ZlibBaseStream.UncompressBuffer(Byte[] compressed, Stream decompressor)
at Ionic.Zlib.DeflateStream.UncompressBuffer(Byte[] compressed)
at TsMap2.Scs.FileSystem.ScsZipEntry.Inflate(Byte[] buff)
at TsMap2.Scs.FileSystem.ScsZipEntry.Read()
at TsMap2.Scs.FileSystem.Entry.ScsFerryConnectionEntry.List()
at TsMap2.Job.Parse.Def.ParseDefFerryConnectionsJob.Do()
at TsMap2.Job.ThreadJob.<Run>b__7_0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at TsMap2.Job.ParentThreadJob.Run()
[10:13:10 ERR] Unexpected Exception: Ionic.Zlib.ZlibException: Bad state (invalid block type)
at Ionic.Zlib.InflateManager.Inflate(FlushType flush)
at Ionic.Zlib.ZlibBaseStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at Ionic.Zlib.DeflateStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at Ionic.Zlib.ZlibBaseStream.UncompressBuffer(Byte[] compressed, Stream decompressor)
at Ionic.Zlib.DeflateStream.UncompressBuffer(Byte[] compressed)
at TsMap2.Scs.FileSystem.ScsZipEntry.Inflate(Byte[] buff)
at TsMap2.Scs.FileSystem.ScsZipEntry.Read()
at TsMap2.Scs.FileSystem.Entry.ScsFerryConnectionEntry.List()
at TsMap2.Job.Parse.Def.ParseDefFerryConnectionsJob.Do()
at TsMap2.Job.ThreadJob.<Run>b__7_0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
[10:13:10 ERR] Unexpected Exception: System.AggregateException: One or more errors occurred. (One or more errors occurred. (Bad state (invalid block type)))
---> System.AggregateException: One or more errors occurred. (Bad state (invalid block type))
---> Ionic.Zlib.ZlibException: Bad state (invalid block type)
at Ionic.Zlib.InflateManager.Inflate(FlushType flush)
at Ionic.Zlib.ZlibBaseStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at Ionic.Zlib.DeflateStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at Ionic.Zlib.ZlibBaseStream.UncompressBuffer(Byte[] compressed, Stream decompressor)
at Ionic.Zlib.DeflateStream.UncompressBuffer(Byte[] compressed)
at TsMap2.Scs.FileSystem.ScsZipEntry.Inflate(Byte[] buff)
at TsMap2.Scs.FileSystem.ScsZipEntry.Read()
at TsMap2.Scs.FileSystem.Entry.ScsFerryConnectionEntry.List()
at TsMap2.Job.Parse.Def.ParseDefFerryConnectionsJob.Do()
at TsMap2.Job.ThreadJob.<Run>b__7_0()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at TsMap2.Job.ParentThreadJob.Run()
From myself: (Promods with Middle East addon)
System.AggregateException: One or more errors occurred. (One or more errors occurred. (Bad state (invalid distance code))) (One or more errors occurred. (Bad state (invalid literal/length code)))
---> System.AggregateException: One or more errors occurred. (Bad state (invalid distance code))
---> Ionic.Zlib.ZlibException: Bad state (invalid distance code)
at Ionic.Zlib.InflateManager.Inflate(FlushType flush)
at Ionic.Zlib.ZlibBaseStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at Ionic.Zlib.DeflateStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at Ionic.Zlib.ZlibBaseStream.UncompressBuffer(Byte[] compressed, Stream decompressor)
at Ionic.Zlib.DeflateStream.UncompressBuffer(Byte[] compressed)
at TsMap2.Scs.FileSystem.ScsZipEntry.Inflate(Byte[] buff) in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Scs\FileSystem\ScsEntry.cs:line 48
at TsMap2.Scs.FileSystem.ScsZipEntry.Read() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Scs\FileSystem\ScsEntry.cs:line 43
at TsMap2.Scs.FileSystem.Entry.ScsFerryConnectionEntry.List() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Scs\FileSystem\Entry\ScsFerryConnectionEntry.cs:line 15
at TsMap2.Job.Parse.Def.ParseDefFerryConnectionsJob.Do() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Job\Parse\Def\ParseDefFerryConnectionsJob.cs:line 10
at TsMap2.Job.ThreadJob.<Run>b__7_0() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Job\ThreadJob.cs:line 17
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at TsMap2.Job.ParentThreadJob.Run() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Job\ParentThreadJob.cs:line 30
---> (Inner Exception #1) System.AggregateException: One or more errors occurred. (Bad state (invalid literal/length code))
---> Ionic.Zlib.ZlibException: Bad state (invalid literal/length code)
at Ionic.Zlib.InflateManager.Inflate(FlushType flush)
at Ionic.Zlib.ZlibBaseStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at Ionic.Zlib.DeflateStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at Ionic.Zlib.ZlibBaseStream.UncompressBuffer(Byte[] compressed, Stream decompressor)
at Ionic.Zlib.DeflateStream.UncompressBuffer(Byte[] compressed)
at TsMap2.Scs.FileSystem.ScsZipEntry.Inflate(Byte[] buff) in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Scs\FileSystem\ScsEntry.cs:line 48
at TsMap2.Scs.FileSystem.ScsZipEntry.Read() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Scs\FileSystem\ScsEntry.cs:line 43
at TsMap2.Scs.FileSystem.Entry.AbstractScsEntry`1.Get(String path) in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Scs\FileSystem\Entry\AbstractScsEntry.cs:line 21
at TsMap2.Scs.FileSystem.Entry.ScsCityEntry.List() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Scs\FileSystem\Entry\ScsCityEntry.cs:line 11
at TsMap2.Job.Parse.Def.ParseDefCitiesJob.Do() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Job\Parse\Def\ParseDefCitiesJob.cs:line 10
at TsMap2.Job.ThreadJob.<Run>b__7_0() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Job\ThreadJob.cs:line 17
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of inner exception stack trace ---<---
[14:12:05 ERR] Unexpected Exception: System.AggregateException: One or more errors occurred. (One or more errors occurred. (Bad state (invalid distance code))) (One or more errors occurred. (Bad state (invalid literal/length code)))
---> System.AggregateException: One or more errors occurred. (Bad state (invalid distance code))
---> Ionic.Zlib.ZlibException: Bad state (invalid distance code)
at Ionic.Zlib.InflateManager.Inflate(FlushType flush)
at Ionic.Zlib.ZlibBaseStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at Ionic.Zlib.DeflateStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at Ionic.Zlib.ZlibBaseStream.UncompressBuffer(Byte[] compressed, Stream decompressor)
at Ionic.Zlib.DeflateStream.UncompressBuffer(Byte[] compressed)
at TsMap2.Scs.FileSystem.ScsZipEntry.Inflate(Byte[] buff) in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Scs\FileSystem\ScsEntry.cs:line 48
at TsMap2.Scs.FileSystem.ScsZipEntry.Read() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Scs\FileSystem\ScsEntry.cs:line 43
at TsMap2.Scs.FileSystem.Entry.ScsFerryConnectionEntry.List() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Scs\FileSystem\Entry\ScsFerryConnectionEntry.cs:line 15
at TsMap2.Job.Parse.Def.ParseDefFerryConnectionsJob.Do() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Job\Parse\Def\ParseDefFerryConnectionsJob.cs:line 10
at TsMap2.Job.ThreadJob.<Run>b__7_0() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Job\ThreadJob.cs:line 17
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at TsMap2.Job.ParentThreadJob.Run() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Job\ParentThreadJob.cs:line 30
at TsMap2.CommandLine.<>c__DisplayClass3_0.<CommandExport>b__1() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\CommandLine.cs:line 83
---> (Inner Exception #1) System.AggregateException: One or more errors occurred. (Bad state (invalid literal/length code))
---> Ionic.Zlib.ZlibException: Bad state (invalid literal/length code)
at Ionic.Zlib.InflateManager.Inflate(FlushType flush)
at Ionic.Zlib.ZlibBaseStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at Ionic.Zlib.DeflateStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at Ionic.Zlib.ZlibBaseStream.UncompressBuffer(Byte[] compressed, Stream decompressor)
at Ionic.Zlib.DeflateStream.UncompressBuffer(Byte[] compressed)
at TsMap2.Scs.FileSystem.ScsZipEntry.Inflate(Byte[] buff) in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Scs\FileSystem\ScsEntry.cs:line 48
at TsMap2.Scs.FileSystem.ScsZipEntry.Read() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Scs\FileSystem\ScsEntry.cs:line 43
at TsMap2.Scs.FileSystem.Entry.AbstractScsEntry`1.Get(String path) in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Scs\FileSystem\Entry\AbstractScsEntry.cs:line 21
at TsMap2.Scs.FileSystem.Entry.ScsCityEntry.List() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Scs\FileSystem\Entry\ScsCityEntry.cs:line 11
at TsMap2.Job.Parse.Def.ParseDefCitiesJob.Do() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Job\Parse\Def\ParseDefCitiesJob.cs:line 10
at TsMap2.Job.ThreadJob.<Run>b__7_0() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Job\ThreadJob.cs:line 17
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of inner exception stack trace ---<---
[14:12:05 ERR] Unexpected Exception: System.AggregateException: One or more errors occurred. (One or more errors occurred. (Bad state (invalid distance code))) (One or more errors occurred. (Bad state (invalid literal/length code)))
---> System.AggregateException: One or more errors occurred. (Bad state (invalid distance code))
---> Ionic.Zlib.ZlibException: Bad state (invalid distance code)
at Ionic.Zlib.InflateManager.Inflate(FlushType flush)
at Ionic.Zlib.ZlibBaseStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at Ionic.Zlib.DeflateStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at Ionic.Zlib.ZlibBaseStream.UncompressBuffer(Byte[] compressed, Stream decompressor)
at Ionic.Zlib.DeflateStream.UncompressBuffer(Byte[] compressed)
at TsMap2.Scs.FileSystem.ScsZipEntry.Inflate(Byte[] buff) in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Scs\FileSystem\ScsEntry.cs:line 48
at TsMap2.Scs.FileSystem.ScsZipEntry.Read() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Scs\FileSystem\ScsEntry.cs:line 43
at TsMap2.Scs.FileSystem.Entry.ScsFerryConnectionEntry.List() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Scs\FileSystem\Entry\ScsFerryConnectionEntry.cs:line 15
at TsMap2.Job.Parse.Def.ParseDefFerryConnectionsJob.Do() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Job\Parse\Def\ParseDefFerryConnectionsJob.cs:line 10
at TsMap2.Job.ThreadJob.<Run>b__7_0() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Job\ThreadJob.cs:line 17
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at TsMap2.Job.ParentThreadJob.Run() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Job\ParentThreadJob.cs:line 30
at TsMap2.CommandLine.<>c__DisplayClass3_0.<CommandExport>b__1() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\CommandLine.cs:line 83
---> (Inner Exception #1) System.AggregateException: One or more errors occurred. (Bad state (invalid literal/length code))
---> Ionic.Zlib.ZlibException: Bad state (invalid literal/length code)
at Ionic.Zlib.InflateManager.Inflate(FlushType flush)
at Ionic.Zlib.ZlibBaseStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at Ionic.Zlib.DeflateStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at Ionic.Zlib.ZlibBaseStream.UncompressBuffer(Byte[] compressed, Stream decompressor)
at Ionic.Zlib.DeflateStream.UncompressBuffer(Byte[] compressed)
at TsMap2.Scs.FileSystem.ScsZipEntry.Inflate(Byte[] buff) in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Scs\FileSystem\ScsEntry.cs:line 48
at TsMap2.Scs.FileSystem.ScsZipEntry.Read() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Scs\FileSystem\ScsEntry.cs:line 43
at TsMap2.Scs.FileSystem.Entry.AbstractScsEntry`1.Get(String path) in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Scs\FileSystem\Entry\AbstractScsEntry.cs:line 21
at TsMap2.Scs.FileSystem.Entry.ScsCityEntry.List() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Scs\FileSystem\Entry\ScsCityEntry.cs:line 11
at TsMap2.Job.Parse.Def.ParseDefCitiesJob.Do() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Job\Parse\Def\ParseDefCitiesJob.cs:line 10
at TsMap2.Job.ThreadJob.<Run>b__7_0() in C:\Users\doode\Source\Repos\ts-map-JAGFx\TsMap2\Job\ThreadJob.cs:line 17
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of inner exception stack trace ---<---
I'm not good at the JSON-programmer-thingy but I think I got it right, at least online parsers don't yell errors at me. And neither does the program. I made sure I downloaded the v1.0.0-cli-beta2 release.
Settings.json:
{
"AtsPath": "C:\\Program Files (x86)\\Steam\\steamapps\\common\\American Truck Simulator",
"Ets2Path": "C:\\Program Files (x86)\\Steam\\steamapps\\common\\Euro Truck Simulator 2",
"ExportSettings": {
"ExportType": 1,
"TilePadding": 384,
"TileSize": 9216,
"TileZoomMax": 0,
"TileZoomMin": 0
},
"FallbackGame": "ets2",
"MapColor": {
"Background": "#303030",
"CityName": "#DEDEDE",
"Error": "#303030",
"FerryLines": "#FFFFFF",
"PrefabDark": "#E1A338",
"PrefabGreen": "#AACB96",
"PrefabLight": "#ECCB99",
"PrefabRoad": "#FFDC50",
"Road": "#FFDC50"
},
"OutputPath": "C:\\Users\\doode\\TsMap2\\Output",
"RenderFlags": 2147483647,
"SelectedLocalization": "pl_pl",
"Mods": ["c:\\Users\\doode\\Documents\\Euro Truck Simulator 2\\mod\\ENROEX.scs","c:\\Users\\doode\\Documents\\Euro Truck Simulator 2\\mod\\PM256_RM2.4.2_connect_vProMods.scs","c:\\Users\\doode\\Documents\\Euro Truck Simulator 2\\mod\\promods-assets-v256.scs",
"c:\\Users\\doode\\Documents\\Euro Truck Simulator 2\\mod\\promods-def-v256-maps.scs","c:\\Users\\doode\\Documents\\Euro Truck Simulator 2\\mod\\promods-map-v256.scs","c:\\Users\\doode\\Documents\\Euro Truck Simulator 2\\mod\\promods-me-assets-v256.scs","c:\\Users\\doode\\Documents\\Euro Truck Simulator 2\\mod\\promods-me-defmap-v256.scs","c:\\Users\\doode\\Documents\\Euro Truck Simulator 2\\mod\\promods-media-v256.scs","c:\\Users\\doode\\Documents\\Euro Truck Simulator 2\\mod\\promods-model1-v256.scs","c:\\Users\\doode\\Documents\\Euro Truck Simulator 2\\mod\\promods-model2-v256.scs","c:\\Users\\doode\\Documents\\Euro Truck Simulator 2\\mod\\promods-model3-v256.scs","c:\\Users\\doode\\Documents\\Euro Truck Simulator 2\\mod\\ROEX32assets.scs","c:\\Users\\doode\\Documents\\Euro Truck Simulator 2\\mod\\ROEX32model1.scs","c:\\Users\\doode\\Documents\\Euro Truck Simulator 2\\mod\\ROEX32defmap.scs","c:\\Users\\doode\\Documents\\Euro Truck Simulator 2\\mod\\ROEX32model2.scs","c:\\Users\\doode\\Documents\\Euro Truck Simulator 2\\mod\\ROEX32prefabs.scs","c:\\Users\\doode\\Documents\\Euro Truck Simulator 2\\mod\\ROEXallME256RC.scs","c:\\Users\\doode\\Documents\\Euro Truck Simulator 2\\mod\\ROEXallPM256RC.scs","c:\\Users\\doode\\Documents\\Euro Truck Simulator 2\\mod\\ROEXallRusMap242RC.scs","c:\\Users\\doode\\Documents\\Euro Truck Simulator 2\\mod\\RusMap-def_v2.4.2.scs","c:\\Users\\doode\\Documents\\Euro Truck Simulator 2\\mod\\RusMap-map_v2.4.2.scs","c:\\Users\\doode\\Documents\\Euro Truck Simulator 2\\mod\\RusMap-model_v2.4.2.scs","c:\\Users\\doode\\Documents\\Euro Truck Simulator 2\\mod\\RusMap-model2_v2.4.2.scs"]
}
log:
log_20211011.txt
The render completes succesfully, but it's just the base game map (with dlcs) without any of the listed mods.
Hello.
It would be nice to replace the lines in the file:
TsMapRenderer.cs
https://github.com/Unicor-p/ts-map/blob/master/TsMap/TsMapRenderer.cs#L387
g.DrawImage(b, overlayItem.X - b.Width, overlayItem.Z - b.Height, b.Width * 2, b.Height * 2);
g.DrawImage(b, overlayItem.X - b.Width, overlayItem.Z - b.Height, b.Width + zoomCaps[zoomIndex] / 100, b.Height + zoomCaps[zoomIndex] / 100);
https://github.com/Unicor-p/ts-map/blob/master/TsMap/TsMapRenderer.cs#L432
g.DrawImage(b, point.X, point.Y, b.Width, b.Height);
g.DrawImage(b, point.X, point.Y, b.Width + zoomCaps[zoomIndex] / 25, b.Height + zoomCaps[zoomIndex] / 100);
https://github.com/Unicor-p/ts-map/blob/master/TsMap/TsMapRenderer.cs#L498
g.DrawImage(b, newPoint.X - b.Width / 2f, newPoint.Y - b.Height / 2f, b.Width, b.Height);
g.DrawImage(b, newPoint.X - b.Width / 2f, newPoint.Y - b.Height / 2f, b.Width + zoomCaps[zoomIndex] / 100, b.Height + zoomCaps[zoomIndex] / 100);
https://github.com/Unicor-p/ts-map/blob/master/TsMap/TsMapRenderer.cs#L517
g.DrawImage(b, newPoint.X - b.Width / 2f, newPoint.Y - b.Height / 2f, b.Width, b.Height);
g.DrawImage(b, newPoint.X - b.Width / 2f, newPoint.Y - b.Height / 2f, b.Width + zoomCaps[zoomIndex] / 100, b.Height + zoomCaps[zoomIndex] / 100);
https://github.com/Unicor-p/ts-map/blob/master/TsMap/TsMapRenderer.cs#L535
g.DrawImage(b, triggerItem.X, triggerItem.Z, b.Width, b.Height);
g.DrawImage(b, triggerItem.X, triggerItem.Z, b.Width + zoomCaps[zoomIndex] / 100, b.Height + zoomCaps[zoomIndex] / 100);
This will allow you to automatically change the scale of icons on the map when you zoom out or zoom in on map tiles.
An example of how this will change depending on the scale is in the screenshots below.
I think it'd be super cool if there was a support for vanilla or custom background texture maps as I think it would make the maps much more pleasant looking / readible with the borders. Or with the Google Earth style backgrounds.
I think it may be fairly easy to implemest seeing as in the def/map_data.sii
there are ui_map_center
and ui_map_size
parameteres.
Also I think the best way to manage those would be to add them to the modlist - seeing as sometimes with certain map combos the background map can be shifted in game
and may require a modfix to get it to the right position
After I tried out the beta for the CLI client, I noticed that some of the output files end up going to my C: drive which isn't ideal in my case. Having a small 256 GB NVME, with various things on it that I do need to keep an eye on space for, it would be nice to be able to configure it so I can output it to the same directory that I extracted the tool into.
With progress bar or items checked when it's was done
Set as same as the original map
I use Coast to Coast and a few other maps that are custom. Do I export it the same way and just setup a web server on my spare pc to serve the map files or does it have to be github and if so how???
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.