Results 1 to 2 of 2

Thread: How to switch ESF<>XML converter on Attila startpos.esf

  1. #1

    Icon5 How to switch ESF<>XML converter on Attila startpos.esf

    I could pack the esf to startposnew certainly but it has only 1 mb volume! without any compressed_data!????
    why? I unpacked Attila startpos, pls help!

    this is the script when it is packed:

    Spoiler Alert, click show to read: 
    PS D:\modding\ESFviaXML\etwng-master\esfxml> ./packesf.ps1
    RuntimeError: Unknown tag open "i1"
    block in XmlTagHandlers at .\xml2esf:1388
    default at org/jruby/RubyHash.java:711
    [] at org/jruby/RubyHash.java:1100
    start_element_namespace at .\xml2esf:1418
    parse_with at nokogiri/XmlSaxParserContext.java:252
    parse_file at C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/nokogiri-1.8.0-java/lib/nokogiri/xml/sax/pars
    er.rb:104
    parse_file at .\xml2esf:1447
    on_empty_node_xml_include at .\xml2esf:1101
    end_element_namespace at .\xml2esf:1424
    parse_with at nokogiri/XmlSaxParserContext.java:252
    parse_file at C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/nokogiri-1.8.0-java/lib/nokogiri/xml/sax/pars
    er.rb:104
    parse_file at .\xml2esf:1447
    on_empty_node_xml_include at .\xml2esf:1101
    end_element_namespace at .\xml2esf:1424
    parse_with at nokogiri/XmlSaxParserContext.java:252
    parse_file at C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/nokogiri-1.8.0-java/lib/nokogiri/xml/sax/pars
    er.rb:104
    parse_file at .\xml2esf:1447
    on_empty_node_xml_include at .\xml2esf:1101
    end_element_namespace at .\xml2esf:1424
    parse_with at nokogiri/XmlSaxParserContext.java:252
    parse_file at C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/nokogiri-1.8.0-java/lib/nokogiri/xml/sax/pars
    er.rb:104
    parse_file at .\xml2esf:1447
    on_empty_node_xml_include at .\xml2esf:1101
    end_element_namespace at .\xml2esf:1424
    parse_with at nokogiri/XmlSaxParserContext.java:252
    parse_file at C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/nokogiri-1.8.0-java/lib/nokogiri/xml/sax/pars
    er.rb:104
    parse_file at .\xml2esf:1447
    on_empty_node_xml_include at .\xml2esf:1101
    end_element_namespace at .\xml2esf:1424
    parse_with at nokogiri/XmlSaxParserContext.java:252
    parse_file at C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/nokogiri-1.8.0-java/lib/nokogiri/xml/sax/pars
    er.rb:104
    parse_file at .\xml2esf:1447
    initialize at .\xml2esf:1455
    parse at .\xml2esf:1440
    <main> at .\xml2esf:1473

    LZMA 9.22 beta : Igor Pavlov : Public domain : 2011-04-18



    it has error for runtime: unknown tag open, is this the prob or not?!

    also I did not change any things but the new startpos has not any compressed_data at all! only has save_game_header and campaign_preopen_map_info!

    also I went in this method:

    Spoiler Alert, click show to read: 
    Method:
    -Place startpos.esf in d:\modding\ESFviaXML\.
    -Use Powershell or another shell and navigate to d:\modding\ESFviaXML\etwng-master\esfxml.
    -Run Unpack script. (command ./unpackesf.ps1)
    -You should get a folder named "startposunpacked" in the d:\modding\ESFviaXML\ folder.
    -Run Pack script (command ./packesf.ps1), you should get a startposrepacked.esf file in the same folder.

    but the new startpos hasnt any compressed_data!!

    and also I went according to this guide http://www.twcenter.net/forums/showt...nto-Text-Files step by step but I have that prob too!

    the created compressed_data.esf in packdir when it packing is 0 kb!!

    I know I have a prob in this line of script but dont know how to resolve:

    jruby .\xml2esf $tempdir\packdir\compressed_data $tempdir\packdir\compressed_data.esf


    the prob is that the tool couldnt change the compressed_data folder to compressed_data.esf, it makes the compressed_data.esf in packdir but it is 0 kb and then the compressed_data.esf.xz file is made after it with only 1 kb volume! I changed the scripts several times but nothing happened!

    I request the people making this correctly teach me how can i resolve this prob.
    Last edited by asadyan; September 01, 2017 at 03:10 AM.
    ::::::The author of The Shadow And Flame - Fall Of The Dark Lord mod::::::

  2. #2
    alhoon's Avatar Moderator
    Join Date
    Apr 2008
    Location
    Chania, Greece
    Posts
    20,806

    Default Re: How to switch ESF<>XML converter on Attila startpos.esf

    Well, I have managed to do something in R2TW before 2016 and make a Hybrid startpos out of a save but it wasn't easy... and since things have changed since early 2015 (I did it on March 9 2015) I am not sure everything is the same. I guess that could be the case for the guide you use.
    DIE: Diversity, Inclusion, Equality (Pun on SJWs, I am not far-right)
    _______________________________________________________
    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).

Posting Permissions

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