• 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.
how do you edit more than one of the lightmaps?

Ye... how?

I've tried to create .psd files from lightmaps 2&3 with mimage using the coords from lightmap1's mview. Error dump.

Then I tried to use mview with /2 command to force it to show a different image: it worked. Copied the coords in lightmap2's mview and used em with mimage (/2, obviously). Error dump.

:confused:
 
Inferis said:
Ah, that makes more sense.
The border information is encoded in the lightmaps. If you take a look at my EU2 pages, you'll see that the id table information for a block has 2 types of encoding: "simple" (ie just a province id) and "complex" (references to more than 1 province, ...). All pixels that refer to an id entry that uses complex encoding belongs to a "possible" border. In other words, if the game needs to draw borders (depending on province ownership) it can do so with the information in the complex data.

To be more exact (and to be more technical), a complex id entry contains original province id, a neighbouring province id and optional a river id. The original province is stored as a backreference to another entry in the same id table, and the neighbouring province and/or river province data is stored as an adjacency to the original province. Sounds complicated, but it really isn't once you get it (it took me a while AND a helping hand to figure it out).
Thanks. I'll try to look at lightmap files and will see what I can get from it. :)
True, but the HOI1 format is closely related to the EU2 format. Using an incremental approach allows me to write a more generalised library which will make it easier to develop the Vic, CK and HOI2 formats too.

Mind you, I haven't had any time to spend on this lately. As usual a lot of other projects have caught up on me, but I'll be spending more time on it in/after the summer, probably.
I understand your approach. But if I were your boss I'd not invest your time into making mapeditor for hoi1. I'd invest it into research of hoi2 map editor instead. ;) Also, I wouldn't mind letting you look at hoi1 tbl files. But only if you are doing it to get better knowledge of other games (namely Vic, CK and HoI2). That was my point :rolleyes:
 
Lord Ederon said:
I understand your approach. But if I were your boss I'd not invest your time into making mapeditor for hoi1. I'd invest it into research of hoi2 map editor instead. ;) Also, I wouldn't mind letting you look at hoi1 tbl files. But only if you are doing it to get better knowledge of other games (namely Vic, CK and HoI2). That was my point :rolleyes:

I'm not exactly Inferis' boss, but it was my request that he took a look at the HoI 1 map - and the result so far has been very helpful to my cause.
 
Lord Ederon said:
I understand your approach. But if I were your boss I'd not invest your time into making mapeditor for hoi1. I'd invest it into research of hoi2 map editor instead. ;) Also, I wouldn't mind letting you look at hoi1 tbl files. But only if you are doing it to get better knowledge of other games (namely Vic, CK and HoI2). That was my point :rolleyes:

As far as I understood this thread information gathered from EU and HoI1 mapediting won't be useful in the least for any of the other games, so doing HoI1 is simply getting the most effect out of the least work.

From what I gathered, to start working on an editor for HoI2 would be to start over from scratch (or close enough), just like building a car after having built a house - a few items of knowledge can carry over, but most will be have to learned?
 
Nikolai II said:
As far as I understood this thread information gathered from EU and HoI1 mapediting won't be useful in the least for any of the other games, so doing HoI1 is simply getting the most effect out of the least work.

From what I gathered, to start working on an editor for HoI2 would be to start over from scratch (or close enough), just like building a car after having built a house - a few items of knowledge can carry over, but most will be have to learned?
It is not quite like that. I've not yet read all tbl files of HoI2, but boundbox.tbl, id.tbl and one other were in the same format (or very close) like those researched by Inferis from EU2. But that's only small part of it, I know.
 
Request on bended knee

As I'm staring down the barrel at all those widget placements on my map in the not too distant future, would a kindly person do me a big favor?

Allow me to place the map widgets (mountain, forest etc sprites, port locations, city locations, barracks locations, manufactory locations and CoT locations) via some sort of gui-driven, drag and drop interface?

This would save me literally hundreds of hours of work.
 
Mad King James said:
As I'm staring down the barrel at all those widget placements on my map in the not too distant future, would a kindly person do me a big favor?

Allow me to place the map widgets (mountain, forest etc sprites, port locations, city locations, barracks locations, manufactory locations and CoT locations) via some sort of gui-driven, drag and drop interface?

This would save me literally hundreds of hours of work.
I'm in need of such tool myself. But I don't have EU2 map viewer and I don't plan to code any. If you have your map in jpg, png or bmp format, let me know. We can arrange something.
 
What a wonderful thread! I read the whole thing in a single sitting, and was enthralled by the whole adventure. One of my favorite parts was the final section, where Wisk entered the "race", and we got regular updates on his progress and enough hints from Inferis to indicate that he was quietly making major strides. The whole thing was vaguely reminiscent of Amundsen-Scott and the "Race to the South Pole". Especially the ominous silence emanating from the "Scott Camp" following Inferis' victory.

Congratulations to everyone who helped make this dream a reality!!
 
Kull1 said:
What a wonderful thread! I read the whole thing in a single sitting, and was enthralled by the whole adventure. One of my favorite parts was the final section, where Wisk entered the "race", and we got regular updates on his progress and enough hints from Inferis to indicate that he was quietly making major strides. The whole thing was vaguely reminiscent of Amundsen-Scott and the "Race to the South Pole". Especially the ominous silence emanating from the "Scott Camp" following Inferis' victory.
:D
 
Help................

Inferis do we have any posible to get information about id in every region in your tool..
i get some error cause of limited id per region and just known in last step (minject) .... :(
Mymap that redrawing africa and asia base on xie and mjk,s map was playable before (using fantasia scenario). Now mymap become rubbish.. when try to reach europa becouse of that error

Or maybe just early warning about Region size overflow .....
when my wish come true.....
 
agung pasha said:
Inferis do we have any posible to get information about id in every region in your tool..
i get some error cause of limited id per region and just known in last step (minject) .... :(
Mymap that redrawing africa and asia base on xie and mjk,s map was playable before (using fantasia scenario). Now mymap become rubbish.. when try to reach europa becouse of that error

Or maybe just early warning about Region size overflow .....
when my wish come true.....

Mkay, I'll see what I can do...
Additionally, I can say that the mtools uses larger regions the 2048x2048 blocks I explained earlier (I did, right?). When generating the regions and idgrid.tbl, the program adds a 512 border on each side. I had to do that to match the original data that came with the game.

I'll see what I can do about the warning. I could add another option to mimage's check mode...
 
In game CTD with magellan

Inferis said:
Mkay, I'll see what I can do...
Additionally, I can say that the mtools uses larger regions the 2048x2048 blocks I explained earlier (I did, right?). When generating the regions and idgrid.tbl, the program adds a 512 border on each side. I had to do that to match the original data that came with the game.

I'll see what I can do about the warning. I could add another option to mimage's check mode...[/QU


Sorry for keep bothering you..
I found this problem...when running the game......

Kingaguza-Error1.JPG


This happen cause of border line (red) reach terreincognita province. In game if i try to reach that area will get CTD.... ( i don't know why.. just erase that outreach redline no more ctd

SOmetime river province seem like this in Normal view in mview
Kingaguza-Normal.jpg

in di(diff)
Kingaguza-IDsdiff.jpg


Have the same effect that cause ctd in game when try to reach that area.
with redrawing this problem will solve.. I jsut notice that happend random with river province..
Can you explain this inferis...
help.........................
 
Do you guys know the best way of Shading?
 
agung pasha: could you send me the .eu2map file so that I can take a look at it? (breeni at gmail.com)

Karadžić: are you sure you installed the framework v1.1? If so, maybe something went wrong with the download of the tools? Have you tried downloading them again?
 
Inferis said:
agung pasha: could you send me the .eu2map file so that I can take a look at it? (breeni at gmail.com)
Karadžić: are you sure you installed the framework v1.1? If so, maybe something went wrong with the download of the tools? Have you tried downloading them again?

Ok. i will looking for old file that wasn't fixed (hope not deleted by me) ,

got many ctd in game before realize the problem and finished mymap.
:(
That file was sent now, breeni(at)gmail.com right..
i'm using fantasia scenario for playtest thatmap. can loading game with some country, cannot with the other, that i found were this capital was nearest terrainognita or river province.. game will crash. i notice problem with border line when just only modivied borneo island. and game will crash when i reach this island or zoom out reach that area.
I did'nt modified American but get ctd when zoom out that area in game. that push me for redrawing border line neares terraincognita. and get some problem with river province to. Strangely just add i pixel for river island solve the problem.
 
Last edited by a moderator:
Inferis said:
agung pasha: could you send me the .eu2map file so that I can take a look at it? (breeni at gmail.com)

I've had several problems with borders crashing my map as well. In all cases, clearing the border layer helped.