hmm... i think this needs to be a little more oragnized view lol..
edit: very nice though... nice work.
hmm... i think this needs to be a little more oragnized view lol..
edit: very nice though... nice work.
Last edited by Cursisanafou; November 05, 2010 at 10:57 AM.
1GB? Is it 2005 and we're still on 32-bit systems or what?
Just put some ridiculously high number there, however much memory you have is a good start ;-p
(I know how to make it much faster and use much less memory, but it's not like
we cannot just throw more hardware at the problem for now)
Medieval 2 mod builder with first ever Random Scenario Generator.
All my code is available in etwng repository.
Medieval 2 mod builder with first ever Random Scenario Generator.
All my code is available in etwng repository.
Doesnt work like that taw, its been tried :/
Medieval 2 mod builder with first ever Random Scenario Generator.
All my code is available in etwng repository.
UNDER THE MOST HONORABLE PATRONAGE OF: Legio!
PATRON OF: Wangrin, ♔Sir Digby Chicken Caesar♔, Geronimo2006 and Narf!
2gb of RAM!
She cannot take anymore Captain! She's going ta blow!!
Medieval 2 mod builder with first ever Random Scenario Generator.
All my code is available in etwng repository.
Made it work.
Using 2gb of ram and setting the priority of the process to high
Does that mean your computer has 2GB ram or you allowed the process 2000MB? And which process? jruby.exe or cmd.exe?
Last edited by Okmin; November 05, 2010 at 03:33 PM.
IN VINO VERITAS
IN CERVESIO FELICITAS
Under the patronage of The Lizard King
Patron of Narf and Starlightman
My computer has 4Gb but the maximum i can get in jruby is 1Gb but it stills flashing and flashing it never ends the process
UNDER THE MOST HONORABLE PATRONAGE OF: Legio!
PATRON OF: Wangrin, ♔Sir Digby Chicken Caesar♔, Geronimo2006 and Narf!
To encourage taw.
Runs fine on my system (4 gb and win7), also works with the farms.farm_manager file of the battle maps.
jruby.exe. This is Java design failure that they even need this limit. It should be more than physical memory, swap exists for a reason, but it requires a lot of -Xthis -Xthat options for JVM to make this work well.
Just wait for less memory-hungry version, it should come soon enough.
Medieval 2 mod builder with first ever Random Scenario Generator.
All my code is available in etwng repository.
Works for me on notepad, in fact the actual conversion took me under 2 seconds... then again it was an edited peninsula campaign startpos.
Sadly I have no idea what to do from this point, so I guess i'll just wait for a more advanced tool or a tutorial. Great work by taw regardless.
Developer of The Great War | Leader of WW2: Sandstorm | Under the Woolen Patronage of Mitch | King of All
Medieval 2 mod builder with first ever Random Scenario Generator.
All my code is available in etwng repository.
God dam Mac people. There is reason we segrigate you people in my Uni.
Come to windows man. Make your life sooo much easier. And ours.
Medieval 2 mod builder with first ever Random Scenario Generator.
All my code is available in etwng repository.
Developer of The Great War | Leader of WW2: Sandstorm | Under the Woolen Patronage of Mitch | King of All
Yes: just do
sudo gem install libxml-ruby
and converter works both ways with default OSX ruby (assuming you're running 10.5 or 10.6,
10.4 might need upgrade, but that's pretty ancient), or one from MacPorts if that's what you're using.
Just like that:
./esf2xml <startpos.esf >startpos.xml
./xml2esf <startpos.xml >startpos2.esf
Medieval 2 mod builder with first ever Random Scenario Generator.
All my code is available in etwng repository.
There's now progress bar when you run esf2xml. Also don't use < and > any more,
it won't be possible once multipart XML gets enabled, but we can drop this now as well.
Also esf2xml should be faster, while still using as much memory as yesterday.
Here's an example:
$ time jruby -J-Xmx2048m ./esf2xml esf/regions.esf regions3.xmlWhich Ruby is faster is quite random, JRuby has slower startup for sure like everything Java,
Done: 0.0%
Done: 19.0%
Done: 37.9%
Done: 37.9%
Done: 47.0%
Done: 48.0%
Done: 62.5%
Done: 84.8%
Done: 99.7%
real 0m10.026s
user 0m14.243s
sys 0m1.235s
~/etwng/esfxml$ time ruby ./esf2xml esf/regions.esf regions4.xml
Done: 0.0%
Done: 37.9%
Done: 57.3%
Done: 92.2%
real 0m3.862s
user 0m3.176s
sys 0m0.285s
~/etwng/esfxml$
but often becomes faster later.
Use --quiet option to disable progress bar if it annoys you.
And finally, there's link to single-package JRuby installer in README now.
Medieval 2 mod builder with first ever Random Scenario Generator.
All my code is available in etwng repository.