Page 87 of 90 FirstFirst ... 37627778798081828384858687888990 LastLast
Results 1,721 to 1,740 of 1797

Thread: Guide to the ETW map

  1. #1721
    Artifex
    Patrician

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

    Default Re: Guide to the ETW map

    Quote Originally Posted by uanime5 View Post
    > Due to the difference in file type between ETW and TWS2 regions.esf and startpos.esf files I wasn't able to convert them to xml files so it will be more difficult to see the differences between these files.
    Does it crash or just produces something silly? At least startpos.esf should convert more or less properly.If it crashes, could you send me the files and I'll take a look and make them not crash?

  2. #1722

    Default Re: Guide to the ETW map

    I tried making a version of the pathfinding.esf that just altered the parts where the farm was located and didn't change all the unknown2 information. TWS2 wouldn't load so either I made a mistake or you do need to modify the unknown 2 information.

    Quote Originally Posted by taw View Post
    Does it crash or just produces something silly? At least startpos.esf should convert more or less properly.If it crashes, could you send me the files and I'll take a look and make them not crash?
    1) The regions.esf it unpacks part of the file then crashes when it gets to "region_data-0001.xml".

    It also produces this error message:
    Code:
    C:\jruby-1.6.7.2\esfxml>jruby --server ./esf2xml regions.esf
    RuntimeError: Unknown type 0x1e at 3708796
    2) The startpos.esf it unpacks part of the file but cannot unpack the compressed part. So you end up with a "compressed_data.esf.xz".

    It also produces this error message:
    Code:
    Warning: Semantic conversion failures (low level conversion performed instead)
    (this is OK if converting ESFs for game newer than Empire):
    * MAPS: (1 records, 1 failures, 0 quiet failures)
    3) The pathfinding.esf will unpack correctly though the <u4_ary> is a large block of text, rather than showing which entry belongs to which coordinates.
    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)

  3. #1723
    Artifex
    Patrician

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

    Default Re: Guide to the ETW map

    Quote Originally Posted by uanime5 View Post
    I tried making a version of the pathfinding.esf that just altered the parts where the farm was located and didn't change all the unknown2 information. TWS2 wouldn't load so either I made a mistake or you do need to modify the unknown 2 information.



    1) The regions.esf it unpacks part of the file then crashes when it gets to "region_data-0001.xml".

    It also produces this error message:
    Code:
    C:\jruby-1.6.7.2\esfxml>jruby --server ./esf2xml regions.esf
    RuntimeError: Unknown type 0x1e at 3708796
    2) The startpos.esf it unpacks part of the file but cannot unpack the compressed part. So you end up with a "compressed_data.esf.xz".

    It also produces this error message:
    Code:
    Warning: Semantic conversion failures (low level conversion performed instead)
    (this is OK if converting ESFs for game newer than Empire):
    * MAPS: (1 records, 1 failures, 0 quiet failures)
    3) The pathfinding.esf will unpack correctly though the <u4_ary> is a large block of text, rather than showing which entry belongs to which coordinates.
    Email me the failing files (or upload them somewhere). I don't have much free time these days, but I'll try to fix at least crashes and compression failures.

    0x1e is not one of known data types, so they must have added it recently, unless it's actually a bug elsewhere causing reading frame error.

    I probably won't have time for the third one anytime soon.

  4. #1724

    Default Re: Guide to the ETW map

    CA changed how the esf files worked after releasing TWS2, so that's probably why the unpacker is having problems.

    I've attached the compressed data from the startpos.

    Regarding point 3 your unpacker can already turn the <uary4> in the pathfinding_areas from a block of numbers, into something that contains coordinates. I'm not sure why it isn't doing this in TWS2.
    Attached Files Attached Files
    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)

  5. #1725
    Artifex
    Patrician

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

    Default Re: Guide to the ETW map

    I tried esf2xml on your compressed_data.esf.xz, on S2's startpos.esf, regions.esf, pathfinding.esf - and they all work.

    So I can't reproduce your problem, so I can't fix it.

    You'll need to send me entire failing .esf files. I have Shogun 2, but none of the DLCs for it.

  6. #1726

    Default Re: Guide to the ETW map

    In the original version of TWS2 the esf files were the same as the ETW ones, however in a later patch they replaced them with the new version. So to find these files you need to either look through every patch pack or create an esf file using the official tools.

    I've uploaded the latest version of these esf files.
    Attached Files Attached Files
    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)

  7. #1727
    Artifex
    Patrician

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

    Default Re: Guide to the ETW map

    Quote Originally Posted by uanime5 View Post
    In the original version of TWS2 the esf files were the same as the ETW ones, however in a later patch they replaced them with the new version. So to find these files you need to either look through every patch pack or create an esf file using the official tools.

    I've uploaded the latest version of these esf files.
    I'll take a look at them them.

  8. #1728
    Artifex
    Patrician

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

    Default Re: Guide to the ETW map

    I fixed regions.esf crash.

    regions.esf and pathfinding.esf have the same problem with semantic analysis of packed u4_ary - the code for dealing with arrays is pretty messy for performance reasons. I'll figure something out when I have a bit of free time.

    startpos.esf you sent unpacks perfectly including compressed data. What exactly is the problem with it?

  9. #1729

    Default Re: Guide to the ETW map

    Quote Originally Posted by taw View Post
    startpos.esf you sent unpacks perfectly including compressed data. What exactly is the problem with it?
    The main problem is that when I unpack the startpos is that I end up with a compressed_data.esf.xz file and I have no idea how to unpack it. Not sure why we're getting different results.
    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)

  10. #1730
    Artifex
    Patrician

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

    Default Re: Guide to the ETW map

    Well, that's not a surprise since esf2xml converts ESF file, and doesn't directly deal with ESF-within-lzma-within-ESF situation.

    Use unpack_nested_esf/pack_nested_esf for that.

    I got annotations working with new style arrays too, I'll upload the code to github once I check it on all esfs.

  11. #1731
    Artifex
    Patrician

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

    Default Re: Guide to the ETW map

    I uploaded the new code. Unfortunately it seems 10-20% slower, but it annotates new Shogun 2 files correctly.

  12. #1732

    Default Re: Guide to the ETW map

    Hey pioneers,

    I just found a way to put vertices from ntw's regions.esf/mountains.xml into 3dmax as a polygon. I assume I can do the same for all other vertices. From this, can I more or less build the .cs2 files needed to remake the map for assembly kit use?
    (btw, I m also assuming I would be able to do the same with etw)

  13. #1733

    Default Re: Guide to the ETW map

    Sorry for double post.
    I have here the .cs2 files from raw_data for stw2 exported into Collada xml format (.dae) from 3dmax.
    I assume there will be some data loss in the process (3d shapes i think come out a bit weird) but the basics are all there.
    My hypothesis is that imputing the relevant data into these files (using them as templates) from ntw/etew esfxml files would provide the basis for us to rebuild the maps using the assembly kit.
    Sorry for double post.
    Attached Files Attached Files

  14. #1734

    Default Re: Guide to the ETW map

    Decided to import these .dae files into 3D Max to see how they looked. Here's how the regions, settlements/town/ports/farms/trade nodes, mountains, and bridges cs2 files look.

    Spoiler Alert, click show to read: 


    Here's how the original CS2 versions looked.

    Spoiler Alert, click show to read: 


    So it's clear that converting CS2 files into dae files creates something that's a similar shape to the original. Therefore if it's possible to make ETW/NTW's esf files into dae files then this will allow modders to easily make a version of the ETW/NTW maps that can be edited using the official tools.


    However I feel I should point out a few problems with the dae files.

    1) It adds "_pivot" to the names of all the settlements, meaning every settlement will have to be renamed or you won't be able to convert them.

    2) The dae files completely destroy the borders, coasts, land trade, rivers, roads, and trade route CS2 files. So either you'll have to added this information in manually or these files will have to be converted in another way.

    Here is how this cs2 files look in the dae version.

    Spoiler Alert, click show to read: 


    and here is show they originally looked.

    Spoiler Alert, click show to read: 


    So while this method works with shapes it doesn't work with a string of vertices.

    3) None of the material are in the material editor, which means that none of the polygons in the regions.dae have been assigned to a region. While this isn't a major problem it may be time consuming to assign all the polygons to regions.


    So we need a way to create dae files that doesn't result in all the vertices or materials being lost.
    Attached Thumbnails Attached Thumbnails cs2 compare.jpg   cs2 problem compare.jpg   dae problem.jpg   dae work.jpg  
    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. #1735
    alhoon's Avatar Comes Rei Militaris
    Join Date
    Apr 2008
    Location
    Chania, Greece
    Posts
    24,223

    Default Re: Guide to the ETW map

    Uanime5, weren't you able to create a new town (Corn resource) from scratch anyway?
    alhoon is not a member of the infamous Hoons: a (fictional) nazi-sympathizer KKK clan. Of course, no Hoon would openly admit affiliation to the uninitiated.
    "Angry Uncle Gordon" describes me well.
    _______________________________________________________
    Beta-tester for Darthmod Empire, the default modification for Empire Total War that does not ask for your money behind patreon.
    Developer of Causa Belli submod for Darthmod, headed by Hammeredalways and a ton of other people.
    Developer of LtC: Random maps submod for Lands to Conquer (that brings a multitude of random maps and other features).

  16. #1736

    Default Re: Guide to the ETW map

    Quote Originally Posted by alhoon View Post
    Uanime5, weren't you able to create a new town (Corn resource) from scratch anyway?
    While I was to add a new town I could only get the pathfinding to work by replacing an impassible area with a new town. Using the official tools I can add towns wherever I want and can even split regions.

    http://www.twcenter.net/forums/showt...ion&p=12845189

    So the official tools make mapping a lot easier.
    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)

  17. #1737

    Default Re: Guide to the ETW map

    Very interesting. Just for understnading: the above linked post is for Shogun 2 - is ETW now moddable in the same way or is that a future task?

  18. #1738

    Default Re: Guide to the ETW map

    Quote Originally Posted by Fridericus Secundus View Post
    Very interesting. Just for understnading: the above linked post is for Shogun 2 - is ETW now moddable in the same way or is that a future task?
    TWS2 is moddable because CA provided use with all the files needed to mod it (Tweak entries and CS2 files). ETW isn't moddable this way because we don't have these files. So while it should be possible to make an ETW map using these tool it will be a lot of work.
    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)

  19. #1739

    Default Re: Guide to the ETW map

    heyall,
    just an update to the .dae idea. I have been unable to find common verticies between the exported .cs2 files and the esfxmls from stw2 (feel free to try and find some yourselves). However, using .ase export format, the verticies are correct (also, its a nice format). However, while 3dmax is able to export to .ase, there is no east way for it to import the file.
    Therefore, I am now trying the following:
    Seeing if the apparent change in verts has an effect on the map creation process (also checking to see whether the loss of data (the lines inbetween the roads, trade routes verts etc) affect map creation)
    Try to find either a way to import .ase files into 3dmax, or file an alternative format.

  20. #1740

    Default Re: Guide to the ETW map

    So - pardon my ignorance (and lack of time! I simply don't have the time right now to read through all these pages) - but has someone actually succeeded in expanding the map of Empire (and possibly Napoleon) with a mod?

Posting Permissions

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