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).
All my code is in etwng repository, this particular part is here.
thx!
You may want to edit your signature to place that link there.
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).
Medieval 2 mod builder with first ever Random Scenario Generator.
All my code is available in etwng repository.
Thanks taw for making it possible ?
Can you do a complete tutorial of how to use it please? or have you already done that and i haven't notified?
UNDER THE MOST HONORABLE PATRONAGE OF: Legio!
PATRON OF: Wangrin, ♔Sir Digby Chicken Caesar♔, Geronimo2006 and Narf!
I wrote above:
Right now, start command line, enter correct directory,I know, it's not much of a tutorial. Hopefully I'll have time to port xml2esf
then type jruby esf2xml <regions.esf >regions.xml
Better interface will come later.
from libxml to Nokogiri and therefore JRuby this weekend.
Medieval 2 mod builder with first ever Random Scenario Generator.
All my code is available in etwng repository.
This is good news!
UNDER THE MOST HONORABLE PATRONAGE OF: Legio!
PATRON OF: Wangrin, ♔Sir Digby Chicken Caesar♔, Geronimo2006 and Narf!
IN VINO VERITAS
IN CERVESIO FELICITAS
Under the patronage of The Lizard King
Patron of Narf and Starlightman
Put let's say regions.esf in the same directory as these files.
Start command line (Start menu > run > cmd), enter right directory
(something like: cd something\something\Desktop\esfxml), then
type jruby esf2xml <regions.esf >regions.xml
Did it help? If not, someone make screenshots.
Medieval 2 mod builder with first ever Random Scenario Generator.
All my code is available in etwng repository.
IN VINO VERITAS
IN CERVESIO FELICITAS
Under the patronage of The Lizard King
Patron of Narf and Starlightman
Okmin's guide to using this thing
1. Install the Java SDK http://www.oracle.com/technetwork/ja...sp-136632.html
2. Download JRuby http://jruby.org.s3.amazonaws.com/do...-bin-1.5.3.zip
3. Extract jruby-1.5.3 (whole folder, not just contents) to C:\
Spoiler Alert, click show to read:
4. Open the start menu and right-click my computer, click Properties, the open Advanced system settings (it's in the left pane)
Spoiler Alert, click show to read:
5. Click Environment Variables... in the bottom right cornerSpoiler Alert, click show to read:
6. On the bottom half (system variables) find Path, select it, and click Edit...
7. Add ;C:\jruby-1.5.3\bin (WITH the semicolon) to the end of the second line. No space after any existing entry
Spoiler Alert, click show to read:
8. For BOTH the top and bottom halves of the window, click New... and name the variable JAVA_HOME and its value should be C:\Program Files (x86)\Java\jre6. Remember to do it for the top AND bottom parts.
Spoiler Alert, click show to read:
9. To verify your install: Open a command prompt and enter jruby -v The prompt should return some version info on JRubySpoiler Alert, click show to read:
10. Then extract taw's esfxml folder to C:\jruby-1.5.3\Spoiler Alert, click show to read:
11. Also copy whatever .esf you want to convert to C:\jruby-1.5.3\esfxml\Spoiler Alert, click show to read:
12. Hold shift and click in a blank part of the window, then click "Open command window here"
13. Type jruby esf2xml <*.esf> *.xml (* is either startpos or regions, depending on what you're using) THIS WILL TAKE TIME (see note at bottom)
14. The .xml file will be in the ...\esfxml\ directory.Spoiler Alert, click show to read:
Made with Windows 7 x64. Post if you have issues (especially with a different OS. I'm perfectly able to help with XP, Vista, and 32 bit/x86)
PS: Don't close the command line when you see the .xml appear. The thing needs time to actually put stuff in the .xml file. Wait for it to finish (you can tell it's not done if you have a blinking _ without a C:\...> to the left. If you get a message saying something about a 500m safety cap, type jruby -J-Xmx####m where #### is the memory cap you want to place on JRuby (in MB). Wait for it to finish, then try the esf2xml again.
Last edited by Okmin; November 04, 2010 at 08:48 PM.
IN VINO VERITAS
IN CERVESIO FELICITAS
Under the patronage of The Lizard King
Patron of Narf and Starlightman
JRuby has one-click installer all with JRE so you can do all of 1-8 in one step.
Use this link to get this installer.
Medieval 2 mod builder with first ever Random Scenario Generator.
All my code is available in etwng repository.
IN VINO VERITAS
IN CERVESIO FELICITAS
Under the patronage of The Lizard King
Patron of Narf and Starlightman
Okay I tried converting the regions.esf but most of the xml contained the same hex code repeated over and over again. I couldn't get the startpos.esf to convert because I wasn't able to increase the memory cap (after increasing it to 1000m the command prompt doesn't do anything no matter how long I leave it).
Is anyone else having more luck than me?
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)
regions.esf DOES contain the same hex code repeated over and over - there are multiple bitmaps encoded in it, and bitmap extraction code while it exists is disabled right now for technical reasons.
I recommend Notepad++ for viewing xml files, and turning off line wrap.
startpos.esf takes about 2-3 minutes to convert on modern hardware iirc. If it doesn't end in even 10 minutes, that would indicate some very serious problem.
Medieval 2 mod builder with first ever Random Scenario Generator.
All my code is available in etwng repository.
I get the memory cap too.
When converting my previously editted 21mb .esf It worked fine.
However at the vanilla 34mb startpos, I ran out of memory, even after increasing my safety cap.
Hopefuly your version that plans to split up the xmls, will eliviate this problem.
UNDER THE MOST HONORABLE PATRONAGE OF: Legio!
PATRON OF: Wangrin, ♔Sir Digby Chicken Caesar♔, Geronimo2006 and Narf!
Definatly not normal.
My 21mb esf took 20 seconds to make a 105,000kb XML file.
So NTW's Vanilla esf or ETWs, at around 34mb should only take a minute max.
But like I said, the difference between 21mb and 34mb for the converter, was too much for my PC to handle, apparantly.