#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=C:\Program Files (x86)\Paradox Entertainment\Victoria
#The max province number
MaxProvinceNumber=2864
#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
Log of MapExtractor v1.0.5.0
Logging started at: 22/01/2013 17:32:24 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
#################################
An exception has occurred.
#################################
Exception: System.UnauthorizedAccessException
Derived from System.SystemException
Derived from System.Exception
22/01/2013 17:32:24
Message: Access to the path 'C:\Program Files (x86)\Paradox Entertainment\Victoria\map\adjacent.tbl' is denied.
Source: mscorlib
STACK TRACE
Void WinIOError(Int32, System.String)
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode)
at CoreLib.Io.ByteReader..ctor(String path, Boolean loadAll)
at MapUtility.AdjacentTable..ctor(String str)
at MapUtility.Global.get_AdjacentTable()
at MapUtility.Extraction.ExtractImages(Int32 offsetX, Int32 offsetY, Int32 imageSizeX, Int32 imageSizeY, Int32 numImagesX, Int32 numImagesY)
at MapUtility.Extraction.DefaultExtract()
at MapUtility.Program.StartupWork(String[] args)
at MapUtility.Program.Main(String[] args)
I'm having a problem with the extractor. I've followed the tutorial - I've got Gimp 2, .NET Framework 3.5, and the MapUtility all downloaded and installed. I'm doing this for Victoria, so I copied the two Victoria files from its folder and placed them in the main MapUtility folder with the extractor etc. I edited the settings file so it looks like this:
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=C:\Program Files (x86)\Paradox Entertainment\Victoria #The max province number MaxProvinceNumber=2864 #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
Since I use Windows 8, Victoria is in Program Files (x86) rather than the regular Program Files.
This is the error log I get...
Code:Log of MapExtractor v1.0.5.0 Logging started at: 22/01/2013 17:32:24 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 ################################# An exception has occurred. ################################# Exception: System.UnauthorizedAccessException Derived from System.SystemException Derived from System.Exception 22/01/2013 17:32:24 Message: Access to the path 'C:\Program Files (x86)\Paradox Entertainment\Victoria\map\adjacent.tbl' is denied. Source: mscorlib STACK TRACE Void WinIOError(Int32, System.String) at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode) at CoreLib.Io.ByteReader..ctor(String path, Boolean loadAll) at MapUtility.AdjacentTable..ctor(String str) at MapUtility.Global.get_AdjacentTable() at MapUtility.Extraction.ExtractImages(Int32 offsetX, Int32 offsetY, Int32 imageSizeX, Int32 imageSizeY, Int32 numImagesX, Int32 numImagesY) at MapUtility.Extraction.DefaultExtract() at MapUtility.Program.StartupWork(String[] args) at MapUtility.Program.Main(String[] args)
I am an administrator in case there was any doubt over permissions etc. Also, I gave myself "full control" and "modify" functions over the Victoria folder, but it didn't help.
Any ideas?