![]() |
Re: Combat Simulator Released!
Seems you hardcoded your path separator instead of using Java System.getProperty ("file.separator").
tsk. Mac people, do this in terminal: sed "s@Data\\@Data/@g" Data.class > Data.class.new; mv Data.class.new Data.class |
Re: Combat Simulator Released!
Quote:
I had no idea the path was specified (in Java) in a different way for different OSes. |
Re: Combat Simulator Released!
Quote:
|
Re: Combat Simulator Released!
No problem. It's a great utility by the way. I'm looking forward to using it to optimize my first recruits. Since I can only play to level 34 while I wait for the rowboat to cross the atlantic with the packaged game.
|
Re: Combat Simulator Released!
Okay, v41 was uploaded. It correctly grabs file separators. Also, I changed the psuedorandom number generator from Math.Random to a free Java Mersenne Twister, which is supposed to be a much better random number generator, more suitable for Monte Carlo simulation (which this combat sim does).
|
Re: Combat Simulator Released!
Quote:
In Soviet Russia, the game plays you! |
Re: Combat Simulator Released!
Quote:
Try this: java -classpath D:\Strategy\dominions2\doc\CombatSim Fight militia militia |
Re: Combat Simulator Released!
Quote:
BTW, from within the correct directory, you could probably type this: java -cp . Fight militia militia and get the same result. "." means current directory - it worked for me. I don't remember how to permanently get it into Java's head that class files are found in the local directory, but I'll post it here if I find out. |
Re: Combat Simulator Released!
Quote:
|
Re: Combat Simulator Released!
Been a while, but a new version of the combat simulator is out - you can grab it here:
http://www.geocities.com/saber_marionette_cherry/ It fixes a bug that has made attack-defense rolls wrong since the last version :cry: Sorry about that! It was a result of a speed-up tweak, and I don't know how it slipped by my QC, but somebody noticed it and emailed me about it. Unfortunately, I forgot who, but thanks, Mr. Mystery person! |
All times are GMT -4. The time now is 01:28 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.