Page 61 of 85 FirstFirst ... 1136515253545556575859606162636465666768697071 ... LastLast
Results 1,201 to 1,220 of 1797

Thread: Guide to the ETW map

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Artifex
    Patrician

    Join Date
    Oct 2008
    Location
    London, UK
    Posts
    1,332

    Default Re: Guide to the ETW map

    Here's an example of a fairly deep cell:

    <rec type="top_right">
    <v2 x="-680.0" y="140.0"/>
    <v2 x="-640.0" y="160.0"/>
    <cell x='-680.0' y='140.0' mask='00a60000'>
    <cell_quad v1='49348 (-640.00043,150.70923)' v2='46583 (-637.70776,151.5701)' mask1='00a40000' mask2='00a60000'/>
    <cell_quad v1='52858 (-641.76343,150.00026)' v2='49348 (-640.00043,150.70923)' mask1='00a40000' mask2='00a60000'/>
    <cell_quad v1='56236 (-643.02142,148.77602)' v2='52858 (-641.76343,150.00026)' mask1='00a40000' mask2='00a60000'/>
    <cell_quad v1='12032 (-644.00818,144.99997)' v2='56236 (-643.02142,148.77602)' mask1='00a40000' mask2='00a60000'/>
    <cell_quad v1='22967 (-644.14758,142.48305)' v2='12032 (-644.00818,144.99997)' mask1='00a40000' mask2='00a60000'/>
    <cell_quad v1='38140 (-645.00061,140.00006)' v2='22967 (-644.14758,142.48305)' mask1='00a40000' mask2='00a60000'/>
    <cell_quad v1='52174 (-645.78314,137.07166)' v2='38140 (-645.00061,140.00006)' mask1='00a40000' mask2='00a60000'/>
    </cell>
    </rec>

    v1/v2 are both NOT exactly within the cell bounding box, vertices sometimes go slightly outside cell.
    At least one end seems to be always within the bounding box.

    This suggests they are not point features, they're something else.

  2. #2
    Artifex
    Patrician

    Join Date
    Oct 2008
    Location
    London, UK
    Posts
    1,332

    Default Re: Guide to the ETW map

    Many cells with mask2=ffffffff with mask1 with few bits set strongly disproves my theory that it's one 64-bit mask. It's two 32-bit values that still look like some kind of masks to me.

    No good idea what they are. They seem to mostly be 00XX00YY, with 1st and 3rd most significant bytes zeroed, and usually least-significant byte is also zero, or <=15 at least (usually, there are exceptions).

    Most of the action seems to be in 2nd most significant byte.

    It's either 00XX00YY or all FFFFFFFF as far as I can tell. I see no other strict regularities,
    in particular none of mask/mask1/mask2 is always superset or subset or another.

    <rec type="top_left">
    <v2 x="-560.0" y="295.0"/>
    <v2 x="-550.0" y="300.0"/>
    <cell x='-560.0' y='295.0' mask='00000000'>
    <cell_quad v1='25337 (-548.93658,296.84702)' v2='27658 (-550.00049,297.04044)' mask1='00040002' mask2='ffffffff'/>
    <cell_quad v1='27658 (-550.00049,297.04044)' v2='24968 (-550.52008,297.13492)' mask1='00040002' mask2='ffffffff'/>
    <cell_quad v1='24968 (-550.52008,297.13492)' v2='24524 (-551.00952,297.62436)' mask1='00040002' mask2='ffffffff'/>
    <cell_quad v1='45529 (-554.32037,297.39407)' v2='44030 (-555.00061,297.50745)' mask1='00010002' mask2='ffffffff'/>
    <cell_quad v1='44538 (-553.84467,297.22028)' v2='45529 (-554.32037,297.39407)' mask1='00010002' mask2='ffffffff'/>
    <cell_quad v1='47742 (-552.82324,296.84705)' v2='44538 (-553.84467,297.22028)' mask1='00010002' mask2='ffffffff'/>
    <cell_quad v1='45472 (-552.16107,295.98328)' v2='47742 (-552.82324,296.84705)' mask1='00010002' mask2='ffffffff'/>
    <cell_quad v1='43316 (-551.57861,295.29852)' v2='45472 (-552.16107,295.98328)' mask1='00010002' mask2='ffffffff'/>
    <cell_quad v1='33365 (-550.86548,293.88153)' v2='43316 (-551.57861,295.29852)' mask1='00010002' mask2='ffffffff'/>
    <cell_quad v1='24524 (-551.00952,297.62436)' v2='23430 (-551.1535,298.40173)' mask1='00040002' mask2='ffffffff'/>
    <cell_quad v1='23430 (-551.1535,298.40173)' v2='22527 (-550.77917,299.17908)' mask1='00040002' mask2='ffffffff'/>
    <cell_quad v1='22527 (-550.77917,299.17908)' v2='20646 (-550.40491,299.99988)' mask1='00040002' mask2='ffffffff'/>
    <cell_quad v1='20646 (-550.40491,299.99988)' v2='17329 (-550.40112,301.04468)' mask1='00040002' mask2='ffffffff'/>
    <cell_quad v1='38377 (-555.00061,294.99979)' v2='44030 (-555.00061,297.50745)' mask1='00040001' mask2='ffffffff'/>
    <cell_quad v1='44030 (-555.00061,297.50745)' v2='49516 (-555.00061,299.99988)' mask1='00010002' mask2='ffffffff'/>
    <cell_quad v1='49516 (-555.00061,299.99988)' v2='13631 (-555.00061,302.87854)' mask1='00010002' mask2='ffffffff'/>
    </cell>
    </rec>

  3. #3
    Artifex
    Patrician

    Join Date
    Oct 2008
    Location
    London, UK
    Posts
    1,332

    Default Re: Guide to the ETW map

    S2TW uses exactly the same regions.esf format as ETW (so pressumably NTW does as well).
    It might be worthwhile to use S2TW files for testing since it's simpler than ETW's.

    It seems that vertex pairs that go outside of quad's bounding box are repeated twice. Those that don't are not.

    For example 25060 occurs in:

    Quad for:
    <v2 x="-700.0" y="280.0"/>
    <v2 x="-680.0" y="290.0"/>

    <cell_quad v1='25060 (-679.65881,288.46317)' v2='27427 (-680.00043,288.63312)' mask1='00b40000' mask2='00240008'/> (crossing box, see below)
    Quad for:

    <v2 x="-680.0" y="285.0"/>
    <v2 x="-670.0" y="290.0"/>

    <cell_quad v1='24858 (-679.45221,288.25653)' v2='25060 (-679.65881,288.46317)' mask1='00b40000' mask2='00240008'/> (not crossing box, no inverse anywhere)
    <cell_quad v1='25060 (-679.65881,288.46317)' v2='27427 (-680.00043,288.63312)' mask1='00b40000' mask2='00240008'/> (crossing box, see above)



    Sometimes copies are exact, something they're reversed (5186-5162, S2TW):

    <cell_quad v1='5186 (-30.0012073516846,-141.60289)' v2='5162 (-29.92026,-141.44437)' mask1='00010003' mask2='0001000c'/>
    <cell_quad v1='5185 (-31.1498851776123,-143.55949)' v2='5186 (-30.0012073516846,-141.60289)' mask1='00010003' mask2='0001000c'/>
    <cell_quad v1='5162 (-29.92026,-141.44437)' v2='5186 (-30.0012073516846,-141.60289)' mask1='0001000c' mask2='00010003'/>

    Reversed ones have masks switched backwards. This sort of implies "masks" might be some kind of vertex flags.

    If we figured out what masks are, we could make a script which converts a list of vertex pairs into fully formed query info quad tree. This would make massive progress towards working map compiler.

  4. #4
    Artifex
    Patrician

    Join Date
    Oct 2008
    Location
    London, UK
    Posts
    1,332

    Default Re: Guide to the ETW map

    "Mask" as in set of bits where 1s and 0s mean on or off, and that's the only thing the number means.

    That was my first guess (8x8 bit array showing which parts of quad tree had something in it - that's how quad_trees/*.xml in startpos.esf work).
    Now I'm not sure, but it's definitely not IDs either.

    My current best guess is that "mask1" is associated with v1 somehow, and "mask2" with v2 (like you said), based mostly on S2TW
    where cell_quads duplicated across boxes can have both v1 switched with v2, and mask1 switched with mask2.

    Copying line segment that intersects with multiple bounding boxes is exactly how quad trees are normally used.
    I'm not sure why it's sometimes inverted, it probably doesn't matter.

    More tests. Assuming each "mask" is actually two numbers (so 4 numbers per line segment).

    ETW query_info_1.xml: 0x0000 to 0x00cc (204)

    ETW query_info_2.xml: 0x0000 to 0x0004 (4) and 0xffff

    S2TW query_info_1.xml: 0x0000 to 0x001b (27)

    S2TW query_info_2.xml: 0x0000 to 0x002a (42)

    S2TW query_info_3.xml: 0x0000 to 0x0001 (1) and 0xffff

    So these look like IDs or indexes of some kind after all - except we have two IDs per vertex.

    They are not vertex IDs or cell IDs - there are far too many cells and vertices.
    There are too many slots and areas, and not enough regions as far as I can tell.

    There are some u2s in area/*.xml (unknown1 id, island id, unknown2 id) but there's no obvious match either.

    This is probably a solvable problem. Any more ideas?

  5. #5
    Ordinarius
    Join Date
    Jul 2009
    Location
    Italy
    Posts
    737

    Default Re: Guide to the ETW map

    Quote Originally Posted by taw View Post

    ETW query_info_1.xml: 0x0000 to 0x00cc (204)
    This is the first thing I have noticed. In ETW there are 205 regions, from 0 to 204. I will take a better look later.

  6. #6
    Artifex
    Patrician

    Join Date
    Oct 2008
    Location
    London, UK
    Posts
    1,332

    Default Re: Guide to the ETW map

    I changed the format to something better corresponding to what we know:


    <cell x='-400.0' y='-280.0' mask='00070000'>
    <line_segment v1='40550 (-381.50714,-244.07616)' a1='7' b1='0' v2='52074 (-380.00046,-239.99986)' a2='147' b2='1'/>
    <line_segment v1='40550 (-381.50714,-244.07616)' a1='147' b1='1' v2='5664 (-385.83099,-247.06197)' a2='7' b2='0'/>
    <line_segment v1='5664 (-385.83099,-247.06197)' a1='147' b1='1' v2='5219 (-389.89581,-248.60497)' a2='7' b2='0'/>
    <line_segment v1='5219 (-389.89581,-248.60497)' a1='147' b1='1' v2='12695 (-393.35596,-247.75829)' a2='7' b2='0'/>
    <line_segment v1='12695 (-393.35596,-247.75829)' a1='147' b1='1' v2='6167 (-397.46161,-247.62468)' a2='7' b2='0'/>
    <line_segment v1='6167 (-397.46161,-247.62468)' a1='147' b1='1' v2='7702 (-400.00049,-248.33412)' a2='7' b2='0'/>
    </cell>

    No hexes, simply splitting "mask1/mask2" (which turned out not to be masks) into 2 16-bit integers each.

    a1/b1 probably correspond to v1, and a2/b2 probably correspond to v2.

    If someone can tell me the meaning of a1/b1/a2/b2 that would be lovely.

  7. #7
    Artifex
    Patrician

    Join Date
    Oct 2008
    Location
    London, UK
    Posts
    1,332

    Default Re: Guide to the ETW map

    From one cell:

    <cell x='-20.0' y='305.0' mask='00320000'>
    <line_segment v1='30604 (-8.69700622558594,308.13715)' a1='70' b1='0' v2='43212 (-10.0004806518555,308.33551)' a2='50' b2='0'/>
    <!-- 70=france -->
    <!-- 0=atlantic_ocean_se -->
    <!-- 50=spain -->
    <!-- 0=atlantic_ocean_se -->
    <line_segment v1='43212 (-10.0004806518555,308.33551)' a1='70' b1='0' v2='6247 (-10.5878305435181,308.40759)' a2='50' b2='0'/>
    <!-- 70=france -->
    <!-- 0=atlantic_ocean_se -->
    <!-- 50=spain -->
    <!-- 0=atlantic_ocean_se -->
    <line_segment v1='6247 (-10.5878305435181,308.40759)' a1='70' b1='0' v2='26067 (-11.3741149902344,308.83362)' a2='50' b2='0'/>
    <!-- 70=france -->
    <!-- 0=atlantic_ocean_se -->
    <!-- 50=spain -->
    <!-- 0=atlantic_ocean_se -->
    <line_segment v1='2750 (-10.5530204772949,305.73615)' a1='50' b1='0' v2='52907 (-10.8203811645508,306.02579)' a2='50' b2='5'/>
    <!-- 50=spain -->
    <!-- 0=atlantic_ocean_se -->
    <!-- 50=spain -->
    <!-- 5=pacific_ocean -->
    <line_segment v1='45251 (-10.7758331298828,305.00012)' a1='50' b1='0' v2='2750 (-10.5530204772949,305.73615)' a2='50' b2='5'/>
    <!-- 50=spain -->
    <!-- 0=atlantic_ocean_se -->
    <!-- 50=spain -->
    <!-- 5=pacific_ocean -->
    <line_segment v1='42078 (-10.9986238479614,304.04285)' a1='50' b1='0' v2='45251 (-10.7758331298828,305.00012)' a2='50' b2='5'/>
    <!-- 50=spain -->
    <!-- 0=atlantic_ocean_se -->
    <!-- 50=spain -->
    <!-- 5=pacific_ocean -->
    <line_segment v1='26067 (-11.3741149902344,308.83362)' a1='70' b1='0' v2='24128 (-11.2936477661133,309.23111)' a2='69' b2='0'/>
    <!-- 70=france -->
    <!-- 0=atlantic_ocean_se -->
    <!-- 69=bay_of_biscay -->
    <!-- 0=atlantic_ocean_se -->
    <line_segment v1='2002 (-10.6508712768555,309.44318)' a1='70' b1='0' v2='10205 (-10.5707931518555,310.00006)' a2='69' b2='0'/>
    <!-- 70=france -->
    <!-- 0=atlantic_ocean_se -->
    <!-- 69=bay_of_biscay -->
    <!-- 0=atlantic_ocean_se -->
    <line_segment v1='2002 (-10.6508712768555,309.44318)' a1='69' b1='0' v2='24128 (-11.2936477661133,309.23111)' a2='70' b2='0'/>
    <!-- 69=bay_of_biscay -->
    <!-- 0=atlantic_ocean_se -->
    <!-- 70=france -->
    <!-- 0=atlantic_ocean_se -->
    <line_segment v1='26067 (-11.3741149902344,308.83362)' a1='69' b1='0' v2='38232 (-12.1239166259766,308.56848)' a2='50' b2='0'/>
    <!-- 69=bay_of_biscay -->
    <!-- 0=atlantic_ocean_se -->
    <!-- 50=spain -->
    <!-- 0=atlantic_ocean_se -->
    <line_segment v1='38232 (-12.1239166259766,308.56848)' a1='69' b1='0' v2='43560 (-12.9538040161133,308.54187)' a2='50' b2='0'/>
    <!-- 69=bay_of_biscay -->
    <!-- 0=atlantic_ocean_se -->
    <!-- 50=spain -->
    <!-- 0=atlantic_ocean_se -->
    <line_segment v1='28515 (-13.3284149169922,308.17081)' a1='50' b1='0' v2='43560 (-12.9538040161133,308.54187)' a2='69' b2='0'/>
    <!-- 50=spain -->
    <!-- 0=atlantic_ocean_se -->
    <!-- 69=bay_of_biscay -->
    <!-- 0=atlantic_ocean_se -->
    <line_segment v1='28515 (-13.3284149169922,308.17081)' a1='69' b1='0' v2='18402 (-14.4526290893555,308.09113)' a2='50' b2='0'/>
    <!-- 69=bay_of_biscay -->
    <!-- 0=atlantic_ocean_se -->
    <!-- 50=spain -->
    <!-- 0=atlantic_ocean_se -->
    <line_segment v1='18402 (-14.4526290893555,308.09113)' a1='69' b1='0' v2='45011 (-15.0000905990601,307.85971)' a2='50' b2='0'/>
    <!-- 69=bay_of_biscay -->
    <!-- 0=atlantic_ocean_se -->
    <!-- 50=spain -->
    <!-- 0=atlantic_ocean_se -->
    <line_segment v1='45011 (-15.0000905990601,307.85971)' a1='69' b1='0' v2='36653 (-16.0328979492188,307.95895)' a2='50' b2='0'/>
    <!-- 69=bay_of_biscay -->
    <!-- 0=atlantic_ocean_se -->
    <!-- 50=spain -->
    <!-- 0=atlantic_ocean_se -->
    <line_segment v1='36653 (-16.0328979492188,307.95895)' a1='69' b1='0' v2='48978 (-16.9694213867188,307.87906)' a2='50' b2='0'/>
    <!-- 69=bay_of_biscay -->
    <!-- 0=atlantic_ocean_se -->
    <!-- 50=spain -->
    <!-- 0=atlantic_ocean_se -->
    <line_segment v1='48978 (-16.9694213867188,307.87906)' a1='69' b1='0' v2='48400 (-17.8760414123535,308.41251)' a2='50' b2='0'/>
    <!-- 69=bay_of_biscay -->
    <!-- 0=atlantic_ocean_se -->
    <!-- 50=spain -->
    <!-- 0=atlantic_ocean_se -->
    <line_segment v1='48400 (-17.8760414123535,308.41251)' a1='69' b1='0' v2='57967 (-18.8397178649902,308.46555)' a2='50' b2='0'/>
    <!-- 69=bay_of_biscay -->
    <!-- 0=atlantic_ocean_se -->
    <!-- 50=spain -->
    <!-- 0=atlantic_ocean_se -->
    <line_segment v1='57967 (-18.8397178649902,308.46555)' a1='69' b1='0' v2='15412 (-19.5419425964355,308.51089)' a2='50' b2='0'/>
    <!-- 69=bay_of_biscay -->
    <!-- 0=atlantic_ocean_se -->
    <!-- 50=spain -->
    <!-- 0=atlantic_ocean_se -->
    <line_segment v1='15412 (-19.5419425964355,308.51089)' a1='69' b1='0' v2='16911 (-20.0582447052002,308.53656)' a2='50' b2='0'/>
    <!-- 69=bay_of_biscay -->
    <!-- 0=atlantic_ocean_se -->
    <!-- 50=spain -->
    <!-- 0=atlantic_ocean_se -->
    <line_segment v1='25784 (-12.2463150024414,304.5553)' a1='50' b1='5' v2='20053 (-11.8229789733887,305.00006)' a2='50' b2='0'/>
    <!-- 50=spain -->
    <!-- 5=pacific_ocean -->
    <!-- 50=spain -->
    <!-- 0=atlantic_ocean_se -->
    <line_segment v1='20053 (-11.8229789733887,305.00006)' a1='50' b1='5' v2='32246 (-11.2882623672485,305.647)' a2='50' b2='0'/>
    <!-- 50=spain -->
    <!-- 5=pacific_ocean -->
    <!-- 50=spain -->
    <!-- 0=atlantic_ocean_se -->
    <line_segment v1='32246 (-11.2882623672485,305.647)' a1='50' b1='5' v2='52907 (-10.8203811645508,306.02579)' a2='50' b2='0'/>
    <!-- 50=spain -->
    <!-- 5=pacific_ocean -->
    <!-- 50=spain -->
    <!-- 0=atlantic_ocean_se -->
    </cell>
    </rec>

    From another:

    <line_segment v1='58057 (-2.09213209152222,316.53064)' a1='70' b1='0' v2='30262 (-2.16471338272095,316.5903)' a2='36' b2='43'/>
    <!-- 70=france -->
    <!-- 0=atlantic_ocean_se -->
    <!-- 36=all -->
    <!-- 43=baluchistan -->

    So a1 and a2 could plausibly be region numbers (and I'll comment them as such).

    b1/b2 really don't look like that. And they're mostly 0 everywhere.

    There are also two u16s in cell - first I'll assume is region code as well, second - who known.

    Here's how it looks now:

    <cell x='-20.0' y='305.0' a0='50 (spain)' b0='0'>
    <line_segment v1='30604 (-8.69700622558594,308.13715)' a1='70 (france)' b1='0' v2='43212 (-10.0004806518555,308.33551)' a2='50 (spain)' b2='0'/>
    <line_segment v1='43212 (-10.0004806518555,308.33551)' a1='70 (france)' b1='0' v2='6247 (-10.5878305435181,308.40759)' a2='50 (spain)' b2='0'/>
    <line_segment v1='6247 (-10.5878305435181,308.40759)' a1='70 (france)' b1='0' v2='26067 (-11.3741149902344,308.83362)' a2='50 (spain)' b2='0'/>
    <line_segment v1='2750 (-10.5530204772949,305.73615)' a1='50 (spain)' b1='0' v2='52907 (-10.8203811645508,306.02579)' a2='50 (spain)' b2='5'/>
    <line_segment v1='45251 (-10.7758331298828,305.00012)' a1='50 (spain)' b1='0' v2='2750 (-10.5530204772949,305.73615)' a2='50 (spain)' b2='5'/>
    <line_segment v1='42078 (-10.9986238479614,304.04285)' a1='50 (spain)' b1='0' v2='45251 (-10.7758331298828,305.00012)' a2='50 (spain)' b2='5'/>
    <line_segment v1='26067 (-11.3741149902344,308.83362)' a1='70 (france)' b1='0' v2='24128 (-11.2936477661133,309.23111)' a2='69 (bay_of_biscay)' b2='0'/>
    <line_segment v1='2002 (-10.6508712768555,309.44318)' a1='70 (france)' b1='0' v2='10205 (-10.5707931518555,310.00006)' a2='69 (bay_of_biscay)' b2='0'/>
    <line_segment v1='2002 (-10.6508712768555,309.44318)' a1='69 (bay_of_biscay)' b1='0' v2='24128 (-11.2936477661133,309.23111)' a2='70 (france)' b2='0'/>
    <line_segment v1='26067 (-11.3741149902344,308.83362)' a1='69 (bay_of_biscay)' b1='0' v2='38232 (-12.1239166259766,308.56848)' a2='50 (spain)' b2='0'/>
    <line_segment v1='38232 (-12.1239166259766,308.56848)' a1='69 (bay_of_biscay)' b1='0' v2='43560 (-12.9538040161133,308.54187)' a2='50 (spain)' b2='0'/>
    <line_segment v1='28515 (-13.3284149169922,308.17081)' a1='50 (spain)' b1='0' v2='43560 (-12.9538040161133,308.54187)' a2='69 (bay_of_biscay)' b2='0'/>
    <line_segment v1='28515 (-13.3284149169922,308.17081)' a1='69 (bay_of_biscay)' b1='0' v2='18402 (-14.4526290893555,308.09113)' a2='50 (spain)' b2='0'/>
    <line_segment v1='18402 (-14.4526290893555,308.09113)' a1='69 (bay_of_biscay)' b1='0' v2='45011 (-15.0000905990601,307.85971)' a2='50 (spain)' b2='0'/>
    <line_segment v1='45011 (-15.0000905990601,307.85971)' a1='69 (bay_of_biscay)' b1='0' v2='36653 (-16.0328979492188,307.95895)' a2='50 (spain)' b2='0'/>
    <line_segment v1='36653 (-16.0328979492188,307.95895)' a1='69 (bay_of_biscay)' b1='0' v2='48978 (-16.9694213867188,307.87906)' a2='50 (spain)' b2='0'/>
    <line_segment v1='48978 (-16.9694213867188,307.87906)' a1='69 (bay_of_biscay)' b1='0' v2='48400 (-17.8760414123535,308.41251)' a2='50 (spain)' b2='0'/>
    <line_segment v1='48400 (-17.8760414123535,308.41251)' a1='69 (bay_of_biscay)' b1='0' v2='57967 (-18.8397178649902,308.46555)' a2='50 (spain)' b2='0'/>
    <line_segment v1='57967 (-18.8397178649902,308.46555)' a1='69 (bay_of_biscay)' b1='0' v2='15412 (-19.5419425964355,308.51089)' a2='50 (spain)' b2='0'/>
    <line_segment v1='15412 (-19.5419425964355,308.51089)' a1='69 (bay_of_biscay)' b1='0' v2='16911 (-20.0582447052002,308.53656)' a2='50 (spain)' b2='0'/>
    <line_segment v1='25784 (-12.2463150024414,304.5553)' a1='50 (spain)' b1='5' v2='20053 (-11.8229789733887,305.00006)' a2='50 (spain)' b2='0'/>
    <line_segment v1='20053 (-11.8229789733887,305.00006)' a1='50 (spain)' b1='5' v2='32246 (-11.2882623672485,305.647)' a2='50 (spain)' b2='0'/>
    <line_segment v1='32246 (-11.2882623672485,305.647)' a1='50 (spain)' b1='5' v2='52907 (-10.8203811645508,306.02579)' a2='50 (spain)' b2='0'/>
    </cell>

    ETW query_info-1 b = 0 to 153
    ETW query_info-2 b = 0 to 3 and 65535
    S2TW query_info-1 b = 0 to 20
    S2TW query_info-2 b = 0 to 42 and 65535
    S2TW query_info-3 b = 0 and 65535 only

    Does it look like anything?

    EDIT: It totally is the number of area within region. Region "all" has 154 areas, and everything else checks.

  8. #8
    Artifex
    Patrician

    Join Date
    Oct 2008
    Location
    London, UK
    Posts
    1,332

    Default Re: Guide to the ETW map

    <cell x='90.0' y='370.0' region='97 (saxony)' area='0'>
    <line_segment v1='39967 (90.46936,369.99997)' region1='107 (west_pommerania)' area1='0' v2='44378 (89.9996643066406,370.55167)' region2='97 (saxony)' area2='0'/>
    </cell>

    There are trivial details like figuring out which of multiple regions/areas cell claims as its own, but the entire thing is fully decoded for all practical purposes now.

  9. #9
    Ordinarius
    Join Date
    Jul 2009
    Location
    Italy
    Posts
    737

    Default Re: Guide to the ETW map

    This makes things much harder to understand. How can be inserted in a database 2 points in such a way that they are always belonging to two different regions?
    Last edited by PietroMicca; March 19, 2012 at 08:02 AM.

  10. #10
    Artifex
    Patrician

    Join Date
    Oct 2008
    Location
    London, UK
    Posts
    1,332

    Default Re: Guide to the ETW map

    Quote Originally Posted by PietroMicca View Post
    This makes things much harder to understand. How can be inserted in a database 2 points in such a way that they are always belonging to two different regions?
    They're from different areas, not necessarily different regions. (grepping shows no cases of same region1=region2 and area1=area2 anywhere).

    <line_segment v1='3084 (-1.03942561149597,301.97079)' region1='50 (spain)' area1='5' v2='37345 (-2.33167123794556,302.08218)' region2='50 (spain)' area2='0'/>

    Are these line segments borders or connecting lines or what? Have we ever bothered drawing them?

  11. #11
    Ordinarius
    Join Date
    Jul 2009
    Location
    Italy
    Posts
    737

    Default Re: Guide to the ETW map

    Quote Originally Posted by taw View Post
    They're from different areas, not necessarily different regions. (grepping shows no cases of same region1=region2 and area1=area2 anywhere).

    <line_segment v1='3084 (-1.03942561149597,301.97079)' region1='50 (spain)' area1='5' v2='37345 (-2.33167123794556,302.08218)' region2='50 (spain)' area2='0'/>

    Are these line segments borders or connecting lines or what? Have we ever bothered drawing them?
    Yes, they are what I have said. I have drawn query info for egypt campaign in Napoleon. I only mean that create this kind of file will be much harder for us. There's some complicated technique we don't know and hardly we will know it.

    Anyway, there's another similar mask in regions.esf and it's about <ary type="connectivity"> in areas.

  12. #12

    Default Re: Guide to the ETW map

    Congratulations on figuring this out Taw. I'm not sure why but 65535 is often present in the first area entry in the regions.esf\theatres_and_region_keys\region_data\regions\areas. I believe it tells ETW which land mass this region belongs to, while the other area entries tell ETW about specific things in this area. The most common land masses are Eurasia (13) and the Americas (20). The other land masses are usually island, such as the UK (11) or Trinidad and Tobago (108); or areas that cannot easily be accessed, such as French and Dutch Guyana (14).

    The primary purpose of this is to stop the AI trying to march their armies across the sea, such as going from Italy to Corsica. If Italy (13) and Corsia (82) are classified as different land masses then the AI knows it can't march between them and needs to sail from one land mass to another one.

    Region 'all' refers to the rivers in ETW.
    Last edited by uanime5; March 18, 2012 at 08:45 AM.
    Morning Sun (adds Korea and China to the Shogun 2 map)
    http://www.twcenter.net/forums/forum...28-Morning-Sun

    Expanded Japan mod (97 new regions and 101 new factions)
    http://www.twcenter.net/forums/showt...ew-factions%29

    How to split a region in TWS2
    http://www.twcenter.net/forums/showt...split-a-region

    Eras Total Conquest 2.3 (12 campaigns from 970-1547)

  13. #13
    Ordinarius
    Join Date
    Jul 2009
    Location
    Italy
    Posts
    737

    Default Re: Guide to the ETW map

    65535 is for passable areas

    if I remember correctly 256 is for impassable (but only in ETW)

  14. #14

    Default Re: Guide to the ETW map

    Quote Originally Posted by PietroMicca View Post
    65535 is for passable areas

    if I remember correctly 256 is for impassable (but only in ETW)
    It's possible that only the 65535 areas are passable, while the other 307 entries refer to impassible areas. I don't think 256 is the only impassible number because the Alps are impassible but they're all 200.
    Morning Sun (adds Korea and China to the Shogun 2 map)
    http://www.twcenter.net/forums/forum...28-Morning-Sun

    Expanded Japan mod (97 new regions and 101 new factions)
    http://www.twcenter.net/forums/showt...ew-factions%29

    How to split a region in TWS2
    http://www.twcenter.net/forums/showt...split-a-region

    Eras Total Conquest 2.3 (12 campaigns from 970-1547)

  15. #15
    Ordinarius
    Join Date
    Jul 2009
    Location
    Italy
    Posts
    737

    Default Re: Guide to the ETW map

    Quote Originally Posted by uanime5 View Post
    It's possible that only the 65535 areas are passable, while the other 307 entries refer to impassible areas. I don't think 256 is the only impassible number because the Alps are impassible but they're all 200.
    Alps are split. 256 for areas entirely impassable and so not split.

  16. #16
    Taraphir's Avatar Semisalis
    Join Date
    Jan 2012
    Location
    Germany
    Posts
    460

    Default Re: Guide to the ETW map

    Be not afraid of greatness dear campaign map researchers: some are born great, some achieve greatness, and some have greatness thrust upon them.

  17. #17
    Ordinarius
    Join Date
    Jul 2009
    Location
    Italy
    Posts
    737

    Default Re: Guide to the ETW map

    regions.esf research close to 100%

  18. #18
    Artifex
    Patrician

    Join Date
    Oct 2008
    Location
    London, UK
    Posts
    1,332

    Default Re: Guide to the ETW map

    Quote Originally Posted by PietroMicca View Post
    regions.esf research close to 100%
    What about these ids?

    france-0000.xml
    8| <u2>387</u2><!-- unknown1 id -->
    6787| <u2>32</u2><!-- unknown2 id -->
    6788| <u2>34</u2><!-- island id -->

    france-0001.xml
    8| <u2>388</u2><!-- unknown1 id -->
    192| <u2>32</u2><!-- unknown2 id -->
    193| <u2>34</u2><!-- island id -->

  19. #19
    Ordinarius
    Join Date
    Jul 2009
    Location
    Italy
    Posts
    737

    Default Re: Guide to the ETW map

    Quote Originally Posted by taw View Post
    What about these ids?

    france-0000.xml
    8| <u2>387</u2><!-- unknown1 id -->
    6787| <u2>32</u2><!-- unknown2 id -->
    6788| <u2>34</u2><!-- island id -->

    france-0001.xml
    8| <u2>388</u2><!-- unknown1 id -->
    192| <u2>32</u2><!-- unknown2 id -->
    193| <u2>34</u2><!-- island id -->
    I know there are still minor lacks of knowledge. We also don't know meaning of unknown float in wind map.

  20. #20
    Ordinarius
    Join Date
    Jul 2009
    Location
    Italy
    Posts
    737

    Default Re: Guide to the ETW map

    Quote Originally Posted by taw View Post
    What about these ids?

    france-0000.xml
    8| <u2>387</u2><!-- unknown1 id -->
    6787| <u2>32</u2><!-- unknown2 id -->
    6788| <u2>34</u2><!-- island id -->

    france-0001.xml
    8| <u2>388</u2><!-- unknown1 id -->
    192| <u2>32</u2><!-- unknown2 id -->
    193| <u2>34</u2><!-- island id -->
    Where is this? I can't find.

    in france-0001.xml I have this

    <u2>553</u2><!-- unknown1 id -->
    <u2>192</u2><!-- unknown2 id -->
    <u2>104</u2><!-- island id (104=mainland) -->

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •