Hello, I tried using MapUtility to make a few changes, then this happened:
Here's the settings:
Code:
Log of MapExtractor v1.0.5.0
Logging started at: 09-Jun-18 21:47:22 UTC
Successfully reached start.
Since there were no arguments, doing default extract
Extracting from command -extract
Did not need to create exported maps directory.
Successfully created default images.txt
Extracting images with following parameters: OffsetX=0 OffsetY=0 ImageSizeX=117 ImageSizeY=45 NumImagesX=8 NumImagesY=8
Loading lightmap at G:\Games\Darkest Hour\map
Doing the following image: Offset=(0,180), Size=(117,45)
Extracting grayscale of (0,180), Size=(117,45)
#################################
An exception has occurred.
#################################
Exception: System.ArgumentOutOfRangeException
Derived from System.ArgumentException
Derived from System.SystemException
Derived from System.Exception
09-Jun-18 21:47:27
Message: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Source: mscorlib
STACK TRACE
Void ThrowArgumentOutOfRangeException()
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at MapUtility.MapBlock.GetProvinceIdsNewWay(Int32& Offset)
at MapUtility.MapBlock.EnsureDecompressed()
at MapUtility.Lightmap.GetTrueColoredGrayscaleLayer(Int32 x, Int32 y, Int32 captureWidth, Int32 captureHeight)
at MapUtility.Extraction.ExtractGrayscale(Lightmap map, Rectangle bounds)
at MapUtility.Extraction.ExtractSection(Lightmap lm, Rectangle bounds)
at MapUtility.Extraction.ExtractFileTask.TaskOverride()
at CoreLib.Task.DoTask(Int32 index, TaskQueue tq)
at CoreLib.TaskQueue.DoWork(Object value)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)
Doing the following image: Offset=(0,0), Size=(117,45)
Extracting grayscale of (0,0), Size=(117,45)
#################################
An exception has occurred.
#################################
Exception: System.ArgumentOutOfRangeException
Derived from System.ArgumentException
Derived from System.SystemException
Derived from System.Exception
09-Jun-18 21:47:27
Message: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Source: mscorlib
STACK TRACE
Void ThrowArgumentOutOfRangeException()
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at MapUtility.MapBlock.GetProvinceIdsNewWay(Int32& Offset)
at MapUtility.MapBlock.EnsureDecompressed()
at MapUtility.Lightmap.GetTrueColoredGrayscaleLayer(Int32 x, Int32 y, Int32 captureWidth, Int32 captureHeight)
at MapUtility.Extraction.ExtractGrayscale(Lightmap map, Rectangle bounds)
at MapUtility.Extraction.ExtractSection(Lightmap lm, Rectangle bounds)
at MapUtility.Extraction.ExtractFileTask.TaskOverride()
at CoreLib.Task.DoTask(Int32 index, TaskQueue tq)
at CoreLib.TaskQueue.DoWork(Object value)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)
Doing the following image: Offset=(0,135), Size=(117,45)
Extracting grayscale of (0,135), Size=(117,45)
#################################
An exception has occurred.
#################################
Exception: System.ArgumentOutOfRangeException
Derived from System.ArgumentException
Derived from System.SystemException
Derived from System.Exception
09-Jun-18 21:47:27
Message: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Source: mscorlib
STACK TRACE
Void ThrowArgumentOutOfRangeException()
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at MapUtility.MapBlock.GetProvinceIdsNewWay(Int32& Offset)
at MapUtility.MapBlock.EnsureDecompressed()
at MapUtility.Lightmap.GetTrueColoredGrayscaleLayer(Int32 x, Int32 y, Int32 captureWidth, Int32 captureHeight)
at MapUtility.Extraction.ExtractGrayscale(Lightmap map, Rectangle bounds)
at MapUtility.Extraction.ExtractSection(Lightmap lm, Rectangle bounds)
at MapUtility.Extraction.ExtractFileTask.TaskOverride()
at CoreLib.Task.DoTask(Int32 index, TaskQueue tq)
at CoreLib.TaskQueue.DoWork(Object value)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)
Doing the following image: Offset=(0,270), Size=(117,45)
Extracting grayscale of (0,270), Size=(117,45)
#################################
An exception has occurred.
#################################
Exception: System.ArgumentOutOfRangeException
Derived from System.ArgumentException
Derived from System.SystemException
Derived from System.Exception
09-Jun-18 21:47:27
Message: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Source: mscorlib
STACK TRACE
Void ThrowArgumentOutOfRangeException()
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at MapUtility.MapBlock.GetProvinceIdsNewWay(Int32& Offset)
at MapUtility.MapBlock.EnsureDecompressed()
at MapUtility.Lightmap.GetTrueColoredGrayscaleLayer(Int32 x, Int32 y, Int32 captureWidth, Int32 captureHeight)
at MapUtility.Extraction.ExtractGrayscale(Lightmap map, Rectangle bounds)
at MapUtility.Extraction.ExtractSection(Lightmap lm, Rectangle bounds)
at MapUtility.Extraction.ExtractFileTask.TaskOverride()
at CoreLib.Task.DoTask(Int32 index, TaskQueue tq)
at CoreLib.TaskQueue.DoWork(Object value)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)
Doing the following image: Offset=(0,90), Size=(117,45)
Extracting grayscale of (0,90), Size=(117,45)
#################################
An exception has occurred.
#################################
Exception: System.ArgumentOutOfRangeException
Derived from System.ArgumentException
Derived from System.SystemException
Derived from System.Exception
09-Jun-18 21:47:27
Message: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Source: mscorlib
STACK TRACE
Void ThrowArgumentOutOfRangeException()
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at MapUtility.MapBlock.GetProvinceIdsNewWay(Int32& Offset)
at MapUtility.MapBlock.EnsureDecompressed()
at MapUtility.Lightmap.GetTrueColoredGrayscaleLayer(Int32 x, Int32 y, Int32 captureWidth, Int32 captureHeight)
at MapUtility.Extraction.ExtractGrayscale(Lightmap map, Rectangle bounds)
at MapUtility.Extraction.ExtractSection(Lightmap lm, Rectangle bounds)
at MapUtility.Extraction.ExtractFileTask.TaskOverride()
at CoreLib.Task.DoTask(Int32 index, TaskQueue tq)
at CoreLib.TaskQueue.DoWork(Object value)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)
Doing the following image: Offset=(0,45), Size=(117,45)
Extracting grayscale of (0,45), Size=(117,45)
#################################
An exception has occurred.
#################################
Exception: System.ArgumentOutOfRangeException
Derived from System.ArgumentException
Derived from System.SystemException
Derived from System.Exception
09-Jun-18 21:47:27
Message: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Source: mscorlib
STACK TRACE
Void ThrowArgumentOutOfRangeException()
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at MapUtility.MapBlock.GetProvinceIdsNewWay(Int32& Offset)
at MapUtility.MapBlock.EnsureDecompressed()
at MapUtility.Lightmap.GetTrueColoredGrayscaleLayer(Int32 x, Int32 y, Int32 captureWidth, Int32 captureHeight)
at MapUtility.Extraction.ExtractGrayscale(Lightmap map, Rectangle bounds)
at MapUtility.Extraction.ExtractSection(Lightmap lm, Rectangle bounds)
at MapUtility.Extraction.ExtractFileTask.TaskOverride()
at CoreLib.Task.DoTask(Int32 index, TaskQueue tq)
at CoreLib.TaskQueue.DoWork(Object value)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)
Doing the following image: Offset=(0,315), Size=(117,45)
Extracting grayscale of (0,315), Size=(117,45)
#################################
An exception has occurred.
#################################
Exception: System.ArgumentOutOfRangeException
Derived from System.ArgumentException
Derived from System.SystemException
Derived from System.Exception
09-Jun-18 21:47:27
Message: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Source: mscorlib
STACK TRACE
Void ThrowArgumentOutOfRangeException()
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at MapUtility.MapBlock.GetProvinceIdsNewWay(Int32& Offset)
at MapUtility.MapBlock.EnsureDecompressed()
at MapUtility.Lightmap.GetTrueColoredGrayscaleLayer(Int32 x, Int32 y, Int32 captureWidth, Int32 captureHeight)
at MapUtility.Extraction.ExtractGrayscale(Lightmap map, Rectangle bounds)
at MapUtility.Extraction.ExtractSection(Lightmap lm, Rectangle bounds)
at MapUtility.Extraction.ExtractFileTask.TaskOverride()
at CoreLib.Task.DoTask(Int32 index, TaskQueue tq)
at CoreLib.TaskQueue.DoWork(Object value)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)
Doing the following image: Offset=(0,225), Size=(117,45)
Extracting grayscale of (0,225), Size=(117,45)
#################################
An exception has occurred.
#################################
Exception: System.ArgumentOutOfRangeException
Derived from System.ArgumentException
Derived from System.SystemException
Derived from System.Exception
09-Jun-18 21:47:27
Message: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Source: mscorlib
STACK TRACE
Void ThrowArgumentOutOfRangeException()
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at MapUtility.MapBlock.GetProvinceIdsNewWay(Int32& Offset)
at MapUtility.MapBlock.EnsureDecompressed()
at MapUtility.Lightmap.GetTrueColoredGrayscaleLayer(Int32 x, Int32 y, Int32 captureWidth, Int32 captureHeight)
at MapUtility.Extraction.ExtractGrayscale(Lightmap map, Rectangle bounds)
at MapUtility.Extraction.ExtractSection(Lightmap lm, Rectangle bounds)
at MapUtility.Extraction.ExtractFileTask.TaskOverride()
at CoreLib.Task.DoTask(Int32 index, TaskQueue tq)
at CoreLib.TaskQueue.DoWork(Object value)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart(Object obj)
Here's the settings:
Code:
#This contains settings for MapUtility, and can be shared among the programs
#The path to the game
#If the game exe is at C:\DD\HoI.exe, this would be GamePath=C:\DD
GamePath=G:\Games\Darkest Hour
#The max province number
MaxProvinceNumber=7000
#The width and height of lightmap1, the biggest one.
#The width and height are in blocks (each block is 32x32 pixels)
Lightmap1Width=936
Lightmap1Height=360
#The number of lightmaps
#Currently, only NumLightmaps=3 and NumLightmaps=4 are supported
NumLightmaps=4
#The width in bytes of each offset in the lightmap header
#Currently only 3 and 4 are supported
LightmapOffsetWidth=4
IdsAreNewWay=true
#The width of each value in index.tbl, in bytes
#Currently only 2 and 4 are supported
IndexTblValueWidth=4
#The number of entries that should be in the adjacent table
#This is strictly optional
#Usually used only with HoI
AdjacentTableEntryCount=14860