Page 8 of 18 FirstFirst 1234567891011121314151617 ... LastLast
Results 141 to 160 of 342

Thread: Perfect ESF<->XML converter and revolution in ESF modding [Released!]

  1. #141
    Artifex
    Patrician

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

    Default Re: Perfect ESF<->XML converter and revolution in ESF modding [Released!]

    Quote Originally Posted by .Mitch. View Post
    Taw, I was thinking, I could program an .exe for windows, that could run the scripts via cmd prompt for people, via a simple little GUI. If your happy to let me that is? I dont wana step on any toes.
    By the way what do you want to use for it? If it's something Java/JVM-based it would be very easy
    for me to integrate it with the script and add extra functionality like ETAs for progress bar etc.

    If not, proceed anyway, making it available to people is more important than these extras.

  2. #142
    Primergy's Avatar Protector of the Union
    Join Date
    Mar 2009
    Location
    Augsburg
    Posts
    2,491

    Default Re: Perfect ESF<->XML converter and revolution in ESF modding [Released!]

    I wanted to recompile a xml back to esf, but it didn't worked (on windows)

    It's obvious that its missing some files, but where can i get those?
    I already downloaded Libxml and libxslt (on some pages it is stated that i need those)

  3. #143
    Artifex
    Patrician

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

    Default Re: Perfect ESF<->XML converter and revolution in ESF modding [Released!]

    Quote Originally Posted by Primergy View Post
    I wanted to recompile a xml back to esf, but it didn't worked (on windows)

    It's obvious that its missing some files, but where can i get those?
    I already downloaded Libxml and libxslt (on some pages it is stated that i need those)
    Ignore libxml/libxslt, do this:

    jgem install nokogiri

  4. #144
    Primergy's Avatar Protector of the Union
    Join Date
    Mar 2009
    Location
    Augsburg
    Posts
    2,491

    Default Re: Perfect ESF<->XML converter and revolution in ESF modding [Released!]

    jgem install nokogiri
    Done, but i still get the same "error"

  5. #145
    Artifex
    Patrician

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

    Default Re: Perfect ESF<->XML converter and revolution in ESF modding [Released!]

    Quote Originally Posted by Primergy View Post
    Done, but i still get the same "error"
    Could you get rid of jruby/libxml/etc. completely and start again?
    Just JRuby and this one gem.

    It should be using pure Java nokogiri, not libxml version of it.

  6. #146
    Primergy's Avatar Protector of the Union
    Join Date
    Mar 2009
    Location
    Augsburg
    Posts
    2,491

    Default Re: Perfect ESF<->XML converter and revolution in ESF modding [Released!]

    Could you get rid of jruby/libxml/etc. completely and start again?
    Just JRuby and this one gem.
    Reinstalled Jruby (also cleaned the folder), but the error persists.

  7. #147

    Default Re: Perfect ESF<->XML converter and revolution in ESF modding [Released!]

    Primergy, are you preparing something good?




  8. #148
    Artifex
    Patrician

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

    Default Re: Perfect ESF<->XML converter and revolution in ESF modding [Released!]

    Quote Originally Posted by Primergy View Post
    Reinstalled Jruby (also cleaned the folder), but the error persists.
    I ing hate Windows for exactly that.
    I will investigate it at some point, but it won't be easy as I know nothing about Windows.

    Did you remove any leftovers of libxml / libxslt you mentioned installing?

  9. #149
    Primergy's Avatar Protector of the Union
    Join Date
    Mar 2009
    Location
    Augsburg
    Posts
    2,491

    Default Re: Perfect ESF<->XML converter and revolution in ESF modding [Released!]

    I ing hate Windows for exactly that.
    I will investigate it at some point, but it won't be easy as I know nothing about Windows.

    Did you remove any leftovers of libxml / libxslt you mentioned installing?
    Yes, i removed all files.

    But perhaps i'm only to stupid...would be interesting to know if other windows users get this to run?

  10. #150

    Default Re: Perfect ESF<->XML converter and revolution in ESF modding [Released!]

    Same here. I had not tried to build an esf until Primergy reported the problem. Here is what says after jgem install nokogiri:



    and here after trying to run xml2esf:



    Hope to fix that soon because we will need it shortly!




  11. #151
    Artifex
    Patrician

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

    Default Re: Perfect ESF<->XML converter and revolution in ESF modding [Released!]

    Primergy, husserlTW, could you try this to install 1.5 prerelease (nokogiri-1.5.0.beta.2-java version):

    jgem uninstall nokogiri
    jgem install nokogiri --pre

    Maybe newer version of nokogiri won't have this problem.

  12. #152

    Default Re: Perfect ESF<->XML converter and revolution in ESF modding [Released!]

    Now it makes the esf but it is corrupted (0 bytes).

    jgem uninstall nokogiri
    jgem install nokogiri --pre



    and after the xml built:






  13. #153
    Artifex
    Patrician

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

    Default Re: Perfect ESF<->XML converter and revolution in ESF modding [Released!]

    Unknown tag u4_ary is old bug, fixed in current code. Could you redownload esfxml?
    If you got that far it means nokogiri is actually fine.

    Quote Originally Posted by husserlTW View Post
    Now it makes the esf but it is corrupted (0 bytes).

    jgem uninstall nokogiri
    jgem install nokogiri --pre



    and after the xml built:



  14. #154

    Default Re: Perfect ESF<->XML converter and revolution in ESF modding [Released!]

    Everything is fine, no errors, thanks a lot! I need your tool now I search chaotic BDI and CAI_INTERFACE_MANAGER...




  15. #155
    Artifex
    Patrician

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

    Default Re: Perfect ESF<->XML converter and revolution in ESF modding [Released!]

    Quote Originally Posted by husserlTW View Post
    Everything is fine, no errors, thanks a lot! I need your tool now I search chaotic BDI and CAI_INTERFACE_MANAGER...
    If you need to cut them into smaller xmls, scroll down to XmlSplit in esf2xml, and
    add more entries to this list:

    XmlSplit = {
    :CAI_BDI_POOL => "bdi_pool/",
    :CAI_INTERFACE => "cai",
    :CAI_WORLD => "cai_world",
    :CAMPAIGN_PATHFINDER => "pathfinder",
    :FACTION => "faction/",
    :QUAD_TREE_BIT_ARRAY => "quadtree/",
    :black_shroud_outlines => "black_shroud",
    :grid_data => "grid_data",
    :pathfinding_areas => "pathfinding_areas",
    :query_info => "query_info",
    :region_data => "region_data",
    :regions => "region/",
    :theatre => "theatre",
    :MAPS => "maps",
    :UNIT_CLASS_NAME_ALLOCATOR => 'unit_name_alloc/',
    :SAVE_GAME_HEADER => 'save_game_header',
    :CAMPAIGN_PREOPEN_MAP_INFO => 'preopen_map_info',
    :REGION => 'region/',
    :HEIGHT_FIELD => "height_field",
    :BMD_TEXTURES => "bmd_textures",
    :GROUND_TYPE_FIELD => "ground_type_field",
    }

    Format is one of:

    :TagName => "file_prefix",
    :TagName => "subdirectory/",

    If you want more semantic xmls, there's a thread for that.

  16. #156

    Default Re: Perfect ESF<->XML converter and revolution in ESF modding [Released!]

    Good tip! I was doing that external by cutting esf in pieces before converting (export function of editor). With your way it can be done internal so I can make only one conversion of the whole file and have all the parts I like.




  17. #157
    Artifex
    Patrician

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

    Default Re: Perfect ESF<->XML converter and revolution in ESF modding [Released!]

    Quote Originally Posted by husserlTW View Post
    Good tip! I was doing that external by cutting esf in pieces before converting (export function of editor). With your way it can be done internal so I can make only one conversion of the whole file and have all the parts I like.
    If you have some interesting cuts, send them to me and I'll add them to the list.
    Good xml size should be 100kB-ish I guess, current XMLs are too big.

    (but then semantic cleanup will get them down to 25% of current size,
    so maybe aim at 500kB instead...)

  18. #158

    Default Re: Perfect ESF<->XML converter and revolution in ESF modding [Released!]

    Where can i download nokogiri 1.5?

    UNDER THE MOST HONORABLE PATRONAGE OF: Legio!
    PATRON OF: Wangrin, ♔Sir Digby Chicken Caesar♔, Geronimo2006 and Narf!

  19. #159
    Artifex
    Patrician

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

    Default Re: Perfect ESF<->XML converter and revolution in ESF modding [Released!]

    Quote Originally Posted by Fortes View Post
    Where can i download nokogiri 1.5?
    Open command line and run:

    jgem install nokogiri --pre

    It should install nokogiri 1.5.0 beta

  20. #160

    Default Re: Perfect ESF<->XML converter and revolution in ESF modding [Released!]

    Thanks

    UNDER THE MOST HONORABLE PATRONAGE OF: Legio!
    PATRON OF: Wangrin, ♔Sir Digby Chicken Caesar♔, Geronimo2006 and Narf!

Posting Permissions

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