• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
Celebes release

Small update: here's the Celebes release. Not much has changed:
Small update with a few fixes:
* reverted back to old boundbox handling. It's probably not completely correct, but better than the last release.
* mview: added the block visualiser code
* mview: fixed bugs with different map sizes
* mview: allow changing of zoomlevel if eu2map file contains the proper lightmaps (experimental, probably still a bit buggy)
* mview: disabled certain controls on lightmaps other than zoom 1​

Warning: technical stuff ahead :D
I've also found the reason for the lightmap 3 artifacts that Kaigon reported. It has to do with the current shrinking algorithm. As you may or may not know, each block in the map is encoded as a tree structure. To combine 4 blocks into one (=shrinking), I create a larger tree by having a root node with the 4 blocks as it's children. This gives one tree, but it's deeper than allowed so I do some clipping in the leaves of the tree to make it a EU2-legal structure again, which is then encoded using the regular process. The advantage of this method is that it's fast and mostly correct, except for one thing: there can be an abrupt change in lightness value in part of a block, and more specifically: between two blocks. Ingame, this is rendered as the gradient Kaigon showed.

The only solution is to do a better (but slower) shrinking algorithm, that complete "draws" each block (instead of just uncompressing the tree structure), shrinks the resulting image and encodes it again. As said, this is slower, but also not trivial to code.

With my other projects (Versailles - Magellan for Victoria and EU3) I don't feel like putting a lot of time in it; perhaps if enough people complain, who knows... :)

Otherwise, keep the bugreports coming! ;)
 
Last edited by a moderator:
Hey Inferis,
I got a problem, i can't export the lightmap 2 and 3 from the .eu2map file.

I wanted to import a blank map to delete an old map, so i figured out from reading your research about the lightmaps, that lightmap 1 is double as big as lightmap 2, so i made it 1024 instead of 2048.
Code:
C:\Documents and Settings\HP_Ejer\Skrivebord\magellan.2.2-Celebes-2020>mimage /E MDMAP NEWFIX3 /R:1024,1024,1024,1024 /2

A report comes out:

Code:
*** Environment Info ***

Magellan Build Version: Celebes 2.2.0.*
EU2 Lib Version: 2.2.0.1955
Date: 2006-09-30 13:25:51
Tool: mimage, Version=2.2.0.1955, Culture=neutral, PublicKeyToken=null (v2.2.0.1955)
OSVersion: Win32NT - 5.1.2600.131072
CurrentDir: C:\Documents and Settings\HP_Ejer\Skrivebord\magellan.2.2-Celebes-2020
SystemDir: C:\WINDOWS\system32
CommandLine: mimage /E MDMAP NEWFIX3 /R:1024,1024,1024,1024 /2
CLR: 2.0.50727.42
EU2: (no install)

*** Error Info ***

System.IndexOutOfRangeException: Index was outside the bounds of the array.


And when i use:
Code:
C:\Documents and Settings\HP_Ejer\Skrivebord\magellan.2.2-Celebes-2020>mimage /I NEWFIX MDMAP /3

It says that it's injecting to Lightmap 1..
 
cool-toxic said:
Hey Inferis,
I got a problem, i can't export the lightmap 2 and 3 from the .eu2map file.

I wanted to import a blank map to delete an old map, so i figured out from reading your research about the lightmaps, that lightmap 1 is double as big as lightmap 2, so i made it 1024 instead of 2048.
Code:
C:\Documents and Settings\HP_Ejer\Skrivebord\magellan.2.2-Celebes-2020>mimage /E MDMAP NEWFIX3 /R:1024,1024,1024,1024 /2

A report comes out:

Code:
*** Environment Info ***

Magellan Build Version: Celebes 2.2.0.*
EU2 Lib Version: 2.2.0.1955
Date: 2006-09-30 13:25:51
Tool: mimage, Version=2.2.0.1955, Culture=neutral, PublicKeyToken=null (v2.2.0.1955)
OSVersion: Win32NT - 5.1.2600.131072
CurrentDir: C:\Documents and Settings\HP_Ejer\Skrivebord\magellan.2.2-Celebes-2020
SystemDir: C:\WINDOWS\system32
CommandLine: mimage /E MDMAP NEWFIX3 /R:1024,1024,1024,1024 /2
CLR: 2.0.50727.42
EU2: (no install)

*** Error Info ***

System.IndexOutOfRangeException: Index was outside the bounds of the array.


And when i use:
Code:
C:\Documents and Settings\HP_Ejer\Skrivebord\magellan.2.2-Celebes-2020>mimage /I NEWFIX MDMAP /3

It says that it's injecting to Lightmap 1..
Hm, is that all the errorinfo you get?

Are you sure there is a lightmap 2 in the file?
 
Inferis said:
Hm, is that all the errorinfo you get?

Yes.


Inferis said:
Are you sure there is a lightmap 2 in the file?
Yes, i've checked it with the Celebes edition, where we can view the lightmaps, i have the Some from the Au map on the two other lightmaps because i used it as a template, because Magellan only makes one lightmap when using /C.
 
Here's what Virgenes and Celebes report if i try this command:

Code:
C:\Documents and Settings\HP_Ejer\Skrivebord\magellan.2.0-Virgenes-2020>minject NEWMDMAP /D:MAP /L

On a Map file with only the lightmap 1.

Code:
*** Environment Info ***

Magellan Build Version: Virgenes 2.0.0.*
Date: 2006-09-30 19:36:26
Tool: minject, Version=2.0.0.26351, Culture=neutral, PublicKeyToken=null (v2.0.0.26351)
OSVersion: Win32NT - 5.1.2600.131072
CurrentDir: C:\Documents and Settings\HP_Ejer\Skrivebord\magellan.2.0-Virgenes-2020
SystemDir: C:\WINDOWS\system32
CommandLine: minject NEWMDMAP /D:MAP /L
CLR: 2.0.50727.42
EU2: (no install)

*** Error Info ***

System.InvalidOperationException: Operation is not valid due to the current state of the object.
 
cool-toxic said:
Here's what Virgenes and Celebes report if i try this command:

Code:
C:\Documents and Settings\HP_Ejer\Skrivebord\magellan.2.0-Virgenes-2020>minject NEWMDMAP /D:MAP /L

On a Map file with only the lightmap 1.

Code:
*** Environment Info ***

Magellan Build Version: Virgenes 2.0.0.*
Date: 2006-09-30 19:36:26
Tool: minject, Version=2.0.0.26351, Culture=neutral, PublicKeyToken=null (v2.0.0.26351)
OSVersion: Win32NT - 5.1.2600.131072
CurrentDir: C:\Documents and Settings\HP_Ejer\Skrivebord\magellan.2.0-Virgenes-2020
SystemDir: C:\WINDOWS\system32
CommandLine: minject NEWMDMAP /D:MAP /L
CLR: 2.0.50727.42
EU2: (no install)

*** Error Info ***

System.InvalidOperationException: Operation is not valid due to the current state of the object.

I beleive you forgot part of the command - you just typed /d:map - instead of /D:c:\map assuming your install is at c:\map and therefore it can't find your install.
 
Hi,

By drawing and changing some Id Provinces, Iv've got this error message :

Code:
*** Environment Info ***

Magellan Build Version: Sulawesi 2.2.1.*
EU2 Lib Version: 2.2.1.24675
Date: 2006/12/12 20:04:21
Tool: mimage, Version=2.2.1.24675, Culture=neutral, PublicKeyToken=null (v2.2.1.24675)
OSVersion: Win32NT - 5.0.2195.262144
CurrentDir: E:\TOOLS
SystemDir: C:\WINNT\system32
CommandLine: mimage /i amsud map /1 /g:1
CLR: 2.0.50727.42
EU2: (no install)

*** Error Info ***

EU2.Map.Codec.MapBlockHandling.NodeCompressionException: Node compression failed at (6655,5119): River adjacency index (=17) lookup between province (=1933) and river (=1402) is out of range. ---> EU2.Map.Codec.MapBlockHandling.AdjacencyIndexOutOfRangeException: River adjacency index (=17) lookup between province (=1933) and river (=1402) is out of range.

What it means ? I cheked Id-Provinces layer and Border Layer, and I don't see any trouble :confused:
 
I was trying to make some modification in shading layer and I can't move through the import process from intermediate type back to TBL. Wrong character in path it says... but where that wrong character is??? :confused:

Code:
*** Environment Info ***

Magellan Build Version: Sulawesi 2.2.1.*
EU2 Lib Version: 2.2.1.24674
Date: 2008.10.15 22:11:43
Tool: minject, Version=2.2.1.24674, Culture=neutral, PublicKeyToken=null (v2.2.1.24674)
OSVersion: Win32NT - 5.1.2600.196608
CurrentDir: C:\Documents and Settings\Petr.DRAGON.000\Plocha\Magellan
SystemDir: C:\WINDOWS\system32
CommandLine: [COLOR=Yellow][B]minject Vanilla.eu2map /D:"C:\Program Files\Paradox Entertainment\Europa Universalis 2\"[/B][/COLOR]
CLR: 2.0.50727.1433
EU2: (no install)

*** Error Info ***

System.ArgumentException: Illegal characters in path.
   at System.IO.Path.CheckInvalidPathChars(String path)
   at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.Path.GetFullPath(String path)
   at MapInject.Boot.Main(String[] args)

EDIT:
Ah, double backslashes fixed it. :D
 
Try:
Code:
mextract.exe /?
That will work for all the tools. There you can see the possible commands.

Where should i try it?

I tried this with start>run>c:\ ... \mextract.exe /?

and with the prompt in good old DOS manner.


The only thing that happens is that a small window opens for a millisecond.
 
I have some problem

Code:
*** Environment Info ***

Magellan Build Version: Marianas-rc1 2.4.0.*
EU2 Lib Version: 2.4.0.18225
Date: 2009/12/06 02:46:17
Tool: mextract, Version=2.4.0.18225, Culture=neutral, PublicKeyToken=null (v2.4.0.18225)
OSVersion: Win32NT - 6.1.7600.0
CurrentDir: C:\Users\nelson
SystemDir: C:\Windows\system32
CommandLine: C:\Users\nelson\Desktop\WAtK_Lite\mextract.exe  lee.eu2map /C:\Program files\Europa Universalis 2 /C /O /1
CLR: 2.0.50727.4927
EU2: C:\Program Files\Strategy First\Europa Universalis 2

*** Error Info ***

System.ArgumentException: Specify new map size as WIDTH,HEIGHT.
parameter name: new map size
   in MapExtract.MapExtractParsedArguments.MapExtractParsedArguments_ProcessOption(ParsedArguments sender, ProcessArgumentEventArgs e)
   in MapToolsLib.ParsedArguments.ProcessArgumentHandler.Invoke(ParsedArguments sender, ProcessArgumentEventArgs e)
   in MapToolsLib.ParsedArguments.OnProcessArgument(ArgumentType type, String value, String data)
   in MapToolsLib.ParsedArguments.Parse(String[] args)
   in MapExtract.MapExtractParsedArguments..ctor(String[] args)
   in MapExtract.Boot.Main(String[] args)
[code]
 
Inferis website for Magellan seems to have went offline again.
http://inferis.org/eu2/magellan/
I attached two versions of Inferis Magellan maptool in case someone would need it and can’t download it due to the broken links.
 

Attachments

  • magellan.2.4.0-Marianas-rc1-2020.zip
    859,9 KB · Views: 19
  • magellan.2.2.1-Sulawesi-2020.zip
    883,9 KB · Views: 15
  • 1Like
Reactions: