.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Dominions 2: The Ascension Wars (http://forum.shrapnelgames.com/forumdisplay.php?f=55)
-   -   Combat Simulator Released! (http://forum.shrapnelgames.com/showthread.php?t=17065)

Saber Cherry December 16th, 2003 05:19 AM

Combat Simulator Released!
 
I'm looking for a host. But I can also email it to you if you are interested. To run the simulator, you must hava Java installed.

To run it, unzip it to some directory. From a command prompt, type:

java Fight Unit_1 Unit_2 numberfights

For example:

java Fight Assassin Light_Infantry_1 10000

...would fight an assassin and light infantry (the 5-resource one, with no javelin) 1-on-1 until the battle had been resolved, 10000 times. Then it displays the win percentage for the left unit (the Assassin).

The list of valid units is contained in "UnitTypes.txt". Feel free to add your own, using whatever base creatures, armor, and weapons you want!

-Cherry

Examples:

C:\Projects\Java\Dominions>java Fight Assassin Ulm_Pikeneer_1 200000

'Assassin' versus 'Ulm Pikeneer 1' in 200000 bouts.

Attacker's score: 547 - approximately 54.7% wins.
Attacker's score: 512 - approximately 51.2% wins.

C:\Projects\Java\Dominions>java Fight Assassin Militia 2000000

'Assassin' versus 'Militia' in 2000000 bouts.

Attacker's score: 966 - approximately 96.6% wins.
Attacker's score: 900 - approximately 90.0% wins.

[ December 16, 2003, 03:29: Message edited by: Saber Cherry ]

Jader December 16th, 2003 11:47 AM

Re: Combat Simulator Released!
 
Sounds nice. I'll be happy to try at jader@pbpolsoft.com.pl http://forum.shrapnelgames.com/images/icons/icon7.gif

liga December 16th, 2003 04:46 PM

Re: Combat Simulator Released!
 
is the mod files section of the forum dead ? Is no possible to upload modules or related file sanymore ?

Gandalf Parker December 16th, 2003 05:19 PM

Re: Combat Simulator Released!
 
Quote:

Originally posted by Saber Cherry:
I'm looking for a host. But I can also email it to you if you are interested.
<font size="2" face="sans-serif, arial, verdana">Host for the file? Web page link or would jsut having it available for a direct link be ok?

Or host for a web site? Familiar with linux?

Saber Cherry December 17th, 2003 07:36 AM

Re: Combat Simulator Released!
 
Linux: No. I've used Unix a bit...

I don't need a website, just a link to the file=)

liga December 17th, 2003 08:18 AM

Re: Combat Simulator Released!
 
So, if you only need a place where put the fil and let it download, I can host on my game club server, in my space ...

as soon as you send me the file I'lll pit it in

www.treemme.org/~liga/dom2/name_of_yoru_file

Saber Cherry December 17th, 2003 08:37 AM

Re: Combat Simulator Released!
 
Ok, I sent it to you=) Thanks! Just reply with the full link once it is uploaded, if you wouldn't mind http://forum.shrapnelgames.com/images/icons/icon7.gif I don't want to post it yet, so that nobody clicks on a dead link.

-Cherry

Saber Cherry December 17th, 2003 10:01 AM

Re: Combat Simulator Released!
 
Ok! The simulator is now up at www.treemme.org/~liga/dom2/Combat_Simulator.zip

Remember that you must have Java installed! If you need help with setting the path just post the question here... basically, your OS must have a path to Java.exe, so you can set the Java install directory as a default path.

For example, in Windows XP, right click on My Computer, go to Advanced, Environment Variables, and change "Path" to this:

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\sy stem32\WBEM;c:\progra~1\java\bin

where the Last one is wherever you installed Java (for me it is in Program Files).

liga December 17th, 2003 10:02 AM

Re: Combat Simulator Released!
 
http://forum.shrapnelgames.com/images/icons/icon10.gif my first real contribution to the dom2 community http://forum.shrapnelgames.com/image...s/rolleyes.gif

[ December 17, 2003, 08:05: Message edited by: liga ]

olaf73 December 18th, 2003 08:23 PM

Re: Combat Simulator Released!
 
Quote:

Originally posted by Saber Cherry:
Ok! The simulator is now up at www.treemme.org/~liga/dom2/Combat_Simulator.zip
<font size="2" face="sans-serif, arial, verdana">That link isnt working for me...is it just me?

Thanks
olaf


All times are GMT -4. The time now is 08:17 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.