Page 1 of 1
Map Editing?
Posted: Sun Nov 08, 2009 4:05 pm
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?
RE: Map Editing?
Posted: Sun Nov 08, 2009 5:13 pm
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/
RE: Map Editing?
Posted: Sun Nov 08, 2009 6:05 pm
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!
RE: Map Editing?
Posted: Sun Nov 08, 2009 6:38 pm
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
RE: Map Editing?
Posted: Sun Nov 08, 2009 7:09 pm
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]
RE: Map Editing?
Posted: Sun Nov 08, 2009 7:14 pm
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.
RE: Map Editing?
Posted: Sun Nov 08, 2009 7:35 pm
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!
RE: Map Editing?
Posted: Mon Nov 09, 2009 11:38 am
by Dali
Bubi keep it cool, you can do it ...
AE forever !!!!!!!!!!!!!!!!!!!!!!!!!!!!