Map Editing?

Please post here for questions and discussion about scenario design, art and sound modding and the game editor for WITP Admiral's Edition.

Moderators: wdolson, MOD_War-in-the-Pacific-Admirals-Edition

Post Reply
pad152
Posts: 2835
Joined: Sun Apr 23, 2000 8:00 am

Map Editing?

Post by pad152 »

How do you change the size of a island/base hex, increasing the size of an Atol?

Atols seem to be one of three sizes, (6000 Troops, 30000 Troops, unlimited).

How do I change an Atol capacity from 6000 troops to 30000?
User avatar
jwilkerson
Posts: 8272
Joined: Sun Sep 15, 2002 4:02 am
Location: Kansas
Contact:

RE: Map Editing?

Post by jwilkerson »

Those values are in the map data file. At this point it is probably easiest for you to access it with a hexeditor program.

This is the one I use.

http://www.physics.ohio-state.edu/~prewett/hexedit/
WITP Admiral's Edition - Project Lead
War In Spain - Project Lead
User avatar
HerzKaraya
Posts: 195
Joined: Wed Jan 19, 2005 3:26 pm
Location: Madrid, Spain

RE: Map Editing?

Post by HerzKaraya »

I haven´t checked the forum in a while, is there a pwhex editor in the works? (other than using a regular hexediting program?)
Is there some kind of guide to what every number for a given hex stands for? Using your suggested HexEdit program,
for example line "de140 - 00 01 00 00 00 00 02 08 00 00 00 00 00 00 06 00" what hex is this for? What position determines hex type, or road, or rivers, etc...?
Thank you for your help!
Vista, suerte y al toro!
User avatar
jwilkerson
Posts: 8272
Joined: Sun Sep 15, 2002 4:02 am
Location: Kansas
Contact:

RE: Map Editing?

Post by jwilkerson »

It's been three years since I worked on this (James and Andrew have much more recent experience) - but these are the c structs for the relevant data pieces. I would say use of this information is "at your own risk" - we are not officially supporting MODS to the map data - this was never done for WITP either. All those who made changes in the past just reverse engineered the map data file themselves. Actually the AE format is easier to reverse engineer than the old format because we eliminated the use of "nibbles" to hold the hex transport net information. But for those who would like an "accelerator" to their reverse engineering efforts, here are the c structs. Further documentation is not provided (does not exist).

struct eHexData_s //56 bytes total
{
eHexSide_t eHexSide[SIDES_OF_HEX]; //30 bytes

u8_t hexType;
u8_t hexTerrainType;
u8_t islandSize;
u8_t hexRiverType;
u8_t hexStraitType;

u8_t subMapNumber;
u8_t hexWeatherZoneNumber;
u8_t commandZoneNumber;
u8_t computerControlZoneNumber;
u8_t entryZone;

u8_t originalHexNation; // uses hexNation for owner of original hex
u8_t malariaZoneflag;
u8_t amphibiousLandingProhibitedFlag;
u8_t hexSideControl[SIDES_OF_HEX];
u8_t spare01;

u8_t spare02;
u8_t alliedCoastWatcher;
u8_t japaneseCoastWatcher;
u8_t spare05;
u8_t spare06;

u8_t spare07;
}; //JCW EP 122406

struct eDynamicMapData_s //16 bytes //JCW EP 010307
{
u8_t currentHexControl;
u8_t spare01;

u8_t hexSideControl[SIDES_OF_HEX];

u8_t hexWeatherStateGround;
u8_t hexWeatherStateCloudModifier;
u8_t hexWeatherStateRainModifier;

u8_t spare02;
u8_t spare03;
u8_t spare04;
u8_t spare05;
u8_t spare06;

}; //JCW EP 010307
WITP Admiral's Edition - Project Lead
War In Spain - Project Lead
User avatar
HerzKaraya
Posts: 195
Joined: Wed Jan 19, 2005 3:26 pm
Location: Madrid, Spain

RE: Map Editing?

Post by HerzKaraya »

I must have missed school when the teacher explained that!!! [&:] I don´t have a clue about what to do with that code!
WitPEditorX, the program I used to create the WIR MOD map and others used for the WitM Mod, was slow and cumbersome, but very easy and graphic to use.
I´m trying to create a map for a France'40 campaign for Dali and a conversion of my own MOD to AE, but with my knowledge on hexeditors and the
lack of an easy map editor I see a black future...
I don´t want to reverse enginner aything - I just want to create a small new map!!!
Any more specific help, or an example, would be greatly apreciated. [&o]
Vista, suerte y al toro!
User avatar
jwilkerson
Posts: 8272
Joined: Sun Sep 15, 2002 4:02 am
Location: Kansas
Contact:

RE: Map Editing?

Post by jwilkerson »

I image someone will come along and do the reverse engineering - as I said many people did it in stock - and it is easier in AE than it was in stock - so I'm sure it will happen. Editor-X came about because someone reverse engineered both the scenario data files and the map file! Not hard to do - if you're persistent! But if you want to wait for someone else to do it - then I guess a bit of patience would be required - it will happen - but I haven't seen a tool posted for it yet.


WITP Admiral's Edition - Project Lead
War In Spain - Project Lead
User avatar
HerzKaraya
Posts: 195
Joined: Wed Jan 19, 2005 3:26 pm
Location: Madrid, Spain

RE: Map Editing?

Post by HerzKaraya »

Thank you, I will have to wait patiently for that Map-Editing-Tool! It took me almost 18 months to get the WIR Mod on track, so patience is my thing!
Vista, suerte y al toro!
Dali
Posts: 223
Joined: Thu Apr 19, 2007 1:43 pm

RE: Map Editing?

Post by Dali »

Bubi keep it cool, you can do it ...
AE forever !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Post Reply

Return to “Scenario Design and Modding”