• 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.

Ayeshteni

Jehanne's Slave
111 Badges
Jul 31, 2002
6.296
124
  • 500k Club
  • Europa Universalis III Complete
  • March of the Eagles
  • Europa Universalis III Complete
  • Penumbra - Black Plague
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Rome: Vae Victis
  • 200k Club
  • Heir to the Throne
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Rise of Prussia
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • A Game of Dwarves
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
OK, looking at the tutorial here:

http://www.fiberinternet.dk/alexander/victoria flag directory.htm#programs

I can get this far...

- decide exactly what section of the map you want to edit
(you won't be able to edit the entire world at once, it's just too big and CPU-intensive)
- BACKUP YOUR Map directory and Db\province.csv!!!
- Open a command line (Start -> Run -> "command.exe")
- Go to your Magellan directory (where you unzipped your files)
- enter this command: mextract.exe myMap.eu2map

Problem is, I get this...

Code:
C:\Program Files\Paradox Entertainment\Europa Universalis 2\MagellanS>mextract.exe myMap.eu2map
mextract Sulawesi (v2.2.1.2467)
EU2 Map Extraction Tool

Error: Can't get EU2 base directory (if using \D, check your path).

C:\Program Files\Paradox Entertainment\Europa Universalis 2\MagellanS>

Great start. How do I get to first base?

Ayeshteni
 
From http://www.inferis.org/eu2/magellan/
Magellan said:
MEXTRACT <destination[.eu2map]> [/D:directory] [/C] [/O] [/1|/2|/3]

<destination> Specifies the file to export to. The extension is automatically added if it is omitted.
/O Allows overwriting an existing file when extracting.
/D:<dir> Specifies the base directory to look for the files. This should be the root EU2 directory.
/1 Indicates to only extract lightmap1.
/2 Indicates to only extract lightmap1 and lightmap2.
/3 Indicates to extract all lightmaps.
/G Forces ID tbl to be generated from lightmap1, even if the program thinks it shouldn't be.
/C Create an empty eu2map file (no actual extraction is done).

The extractor will lookup the EU2 path through the registry.
By default, the extractor will extract all 3 lightmaps.

So I suggest use this:
mextract.exe myMap.eu2map /D:"C:\Program Files\Paradox Entertainment\Europa Universalis 2"
;)
 
Thanks KaRei!

I managed to get on a bit. I decided to start on something simple, something I have wanted since EU2 came out: To have the names of seas painted on the map.

It is easier than trying to get new provinces in. However, I hit a small snag. I can get it to work on close zoom, but the name disappears on any other zoom. I am assuming it has saved to only one of the light maps. How can I get the name to save to all lightmaps?

magellan1iq1.jpg


magellan2qv5.jpg


EDIT: AH! Is it '/L' in this command?: MINJECT <source[.eu2map]> [/D:<directory>] [/L]
EDIT2: Oh. :( "The /L option is currently unimplemented. "


Aye.
 
cool-toxic said:
The easiest is to work with only lightmap 1. And then use the /L option in the end.

Atm you work with all three thus the /L option does not work I think.

Try to extract the map using /1.

OK, I extracted from lightmap 1.
And I injected with /L (regenerating lightmap 2 and 3 from 1).

It now works on top zoom (lightmap 1) and when I zoom out (to lightmap 2) and then crashes when I zoom full out (lightmap 3).

:(

Ayeshteni
 
cool-toxic said:
That sounds weird.. did you import the psd file from the 3 lightmap eu2map file?

Erm, not sure.

Here is what I did..

Open up Command Prompt.
Go to MagellanS folder

mextract.exe myMap.eu2map /D:"C:\Program Files\Paradox Entertainment\Europa Universalis 2" /1

mview.exe myMap.eu2map

mimage /e myMap.eu2map nthsea.psd /R:09269,0972,500,500 /1

Opened up Photoshop.
Created a new layer.
Created the text (seen in the picture in the post higher up)
Merged the new layer with the shaded layer
Renamed that layer back to 'Shading'
Saved.

mimage.exe /i nthsea.psd myMap.eu2map /1 /G:1

minject.exe myMap.eu2map /D:"C:\Program Files\Paradox Entertainment\Europa Universalis 2" /L

Ayeshteni
 
Okay here is what I would do:

Code:
Open up Command Prompt.
Go to MagellanS folder

mextract.exe myMap.eu2map /D:"C:\Program Files\Paradox Entertainment\Europa Universalis 2" /1

mview.exe myMap.eu2map

mimage /e myMap.eu2map nthsea.psd /R:09269,0972,500,500 /1

Opened up Photoshop.
Created a new layer.
Created the text (seen in the picture in the post higher up)
Merged the new layer with the shaded layer
Renamed that layer back to 'Shading'
Saved.

[COLOR=yellowgreen]mimage.exe /i nthsea.psd myMap.eu2map[/COLOR]

minject.exe myMap.eu2map /D:"C:\Program Files\Paradox Entertainment\Europa Universalis 2" /L

Try this instead. :)
 
cool-toxic said:
Okay here is what I would do:

Code:
Open up Command Prompt.
Go to MagellanS folder

mextract.exe myMap.eu2map /D:"C:\Program Files\Paradox Entertainment\Europa Universalis 2" /1

mview.exe myMap.eu2map

mimage /e myMap.eu2map nthsea.psd /R:09269,0972,500,500 /1

Opened up Photoshop.
Created a new layer.
Created the text (seen in the picture in the post higher up)
Merged the new layer with the shaded layer
Renamed that layer back to 'Shading'
Saved.

[COLOR=yellowgreen]mimage.exe /i nthsea.psd myMap.eu2map[/COLOR]

minject.exe myMap.eu2map /D:"C:\Program Files\Paradox Entertainment\Europa Universalis 2" /L

Try this instead. :)

Still crashes on full zoom (lightmap 3) :(

Aye.
 
cool-toxic said:
hmm.. could you send me the files you get when you inject the eu2map ? Use my msn email. ;)

Erm which ones specifically. The map folder is 11.3 MB in RAR.

Aye.
 
cool-toxic said:
well you can just upload it to a site in that case.. Anyway did you copy and paste all the files or only the lightmaps ?

All files. (except province.csv of course which isn't relevent - though it contains a backup of my original in the folder)

Ayeshteni
 
*whimper*? :(

Aye.
 
I don't want create a new thread for my question when some thread helping Magellan's newbie is aready here :D

So, what is the difference (except the difference in time) between using MIMAGE /I /G:2 and MIMAGE /I /G:3?
For what is good G:2 and for what is good G:3?

Thanks :)
 
i got a problem too.:(

when i type the mimage.exe command, there comes an error that says:


an error occured.
a log file ("error-mimage-20090727155558.log") has been generated.

the file:

*** Environment Info ***

Magellan Build Version: Marianas-rc1 2.4.0.*
EU2 Lib Version: 2.4.0.18225
Date: 2009-07-27 15:55:58
Tool: mimage, Version=2.4.0.18225, Culture=neutral, PublicKeyToken=null (v2.4.0.18225)
OSVersion: Win32NT - 6.1.7100.0
CurrentDir: C:\EU2\Europa Universalis 2\magellan.2.4.0-Marianas-rc1-2020
SystemDir: C:\Windows\system32
CommandLine: mimage.exe /e myMap.eu2map maps/a.psd /R:9120,1536,384,224
CLR: 2.0.50727.4918
EU2: (no install)

*** Error Info ***

System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\EU2\Europa Universalis 2\magellan.2.4.0-Marianas-rc1-2020\maps\a.psd'.
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)
at MapImage.ExportImage.DoExport(Lightmap map, Rectangle region, PngLevel pngLevel, IDMap idmap, String sourcefile, String target)
at MapImage.ExportImage.Run(String source, String target, Rectangle region, RegionMode mode, Int32 zoom, PngLevel pngLevel, Boolean direct)
at MapImage.Boot.Main(String[] args)

does anyone know what this means?:confused:

thankyou:)

and sorry for my very bad English.
 
I think it's trying to tell you that the "maps" directory does not exist:

C:\EU2\Europa Universalis 2\magellan.2.4.0-Marianas-rc1-2020\maps\a.psd

Create that directory and test it again ;)