Hi,
I get troubles with that. I want to copy/paste several blocks of data about victory conditions in startpos.esf, but the EditSF tool does not have a copy/paste function. So I decided to convert the ESF file into a more manageable XML file, and then revert it to an ESF file.
At this point I had a lot of trouble finding both appropriate tools and clear tutorials. I finally managed to:
- Download latest JRuby version on http://jruby.org/
- Install nokogiri through a batch (.bat) file containing the command line:
- Download the folder https://github.com/taw/etwngCode:jgem install nokogiri --pre
- Create a file named UnpackESF.ps1 containing the commands:
(see the post from Styrry here: http://www.twcenter.net/forums/showt...rovinces/page7)Code:$esfdir = "d:\modding\ESFviaXML" $esfname = "\startpos.esf" $esfxmldir = "d:\modding\ESFviaXML\etwng-master\esfxml" $tempdir = "d:\modding\ESFviaXML\temp" $currpwd = pwd cd $esfxmldir jruby --server $esfxmldir\esf2xml $esfdir$esfname $tempdir\xml .\lzma d $tempdir\xml\compressed_data.esf.xz $tempdir\xml\compressed_data.esf rm $tempdir\xml\compressed_data.esf.xz jruby --server .\esf2xml $tempdir\xml\compressed_data.esf $tempdir\xml\compressed_data rm $tempdir\xml\compressed_data.esf cd $currpwd
Now my problem is that the ESF does not seem to unpack properly, I have a message saying there is a failure.
If I try to repack the ESF with another script (found here: http://www.twcenter.net/forums/showt...rovinces/page6), I get a very small ESF file, which of course does not work at all in game.
Please, can you tell me what I missed ?