Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! 2.6/7 » The Academy » Battle simulator
Battle simulator Wed, 24 November 2004 13:12 Go to next message
Staz is currently offline Staz

 
Lieutenant

Messages: 514
Registered: November 2003
Location: UK
I have got the battle simulator to what I would call an "alpha test" stage. If anyone wants to play with it, PM me with your email address and I'll send you a copy.

As I can't be bothered to write a proper GUI for it at the moment you have to define the battle by creating a text file in the appropriate format (see below).

The program is written in Java so you will need a Java runtime environment (see java.sun.com) but that does mean you don't need to be a Windows user to use it.

The Sample.sim file...

RandomSeed=543634
StackCount=2

Stacks.0.orders=1
Stacks.0.owner=Human
Stacks.0.shipCount=1
Stacks.0.side=1
Stacks.0.naturalOrder=0
ShipDesigns.0.armour=2000
ShipDesigns.0.boraniumCost=1
ShipDesigns.0.hull=Battleship
ShipDesigns.0.hullCode=6
ShipDesigns.0.initiative=0
ShipDesigns.0.jamming=0
ShipDesigns.0.mass=0
ShipDesigns.0.name=Epsilon BB
ShipDesigns.0.owner=Human
ShipDesigns.0.regenShields=false
ShipDesigns.0.resourceCost=1
ShipDesigns.0.shields=0
ShipDesigns.0.speed4=4
ShipDesigns.0.weaponSlots.1.count=1
ShipDesigns.0.weaponSlots.1.name=Epsilon Torpedo
ShipDesigns.0.weaponSlots.count=1

Stacks.1.orders=1
Stacks.1.owner=Alien
Stacks.1.shipCount=10
Stacks.1.side=2
Stacks.1.naturalOrder=1
ShipDesigns.1.armour=20
ShipDesigns.1.boraniumCost=1
ShipDesigns.1.hull=Scout
ShipDesigns.1.hullCode=1
ShipDesigns.1.initiative=0
ShipDesigns.1.jamming=0
ShipDesigns.1.mass=0
ShipDesigns.1.name=Shield Scout
ShipDesigns.1.owner=Alien
ShipDesigns.1.regenShields=false
ShipDesigns.1.resourceCost=1
ShipDesigns.1.shields=500
ShipDesigns.1.speed4=4
ShipDesigns.1.weaponSlots.count=0

Report message to a moderator

Re: Battle simulator Wed, 22 December 2004 10:54 Go to previous messageGo to next message
Staz is currently offline Staz

 
Lieutenant

Messages: 514
Registered: November 2003
Location: UK
The battle simulator now has a GUI so you don't have to edit the sim files directly, and I'm still looking for testers.

Screenshots are available at

http://www.geocities.com/steve_leach/battlesim/


Contact me on steve_leach AT yahoo DOT com if you are interested.

Report message to a moderator

Re: Battle simulator Wed, 22 December 2004 11:00 Go to previous messageGo to next message
LEit is currently offline LEit

 
Lt. Commander

Messages: 879
Registered: April 2003
Location: CT
Can the simulator deal with more then 2 stacks of ships yet?


- LEit

Report message to a moderator

Re: Battle simulator Wed, 22 December 2004 11:06 Go to previous message
Staz is currently offline Staz

 
Lieutenant

Messages: 514
Registered: November 2003
Location: UK
LEit wrote on Wed, 22 December 2004 16:00

Can the simulator deal with more then 2 stacks of ships yet?


Yes it can.

[edit: add sample results]

The following shows the results of a battle between the Humans and Martians (side 1) against the Aliens (side 2).

Stars! Battle Simulator v0.18

Side 1
  Alien Chaff x 400
     Frigate, Armour=45, Shields=0, Speed=0.75, Initiative=4, Jamming=0, Capacitors=0, Deflectors=0, Computers=0/0/0
     1 x X-Ray Laser
  Alien Beam Nubian x 15
     Nubian, Armour=5000, Shields=3000, Speed=1.75, Initiative=2, Jamming=66, Capacitors=9, Deflectors=12, Computers=0/0/0
     3 x Mega Disruptor, 1 x Mega Disruptor
Side 2
  Human Beam BB x 20
     Battleship, Armour=3570, Shields=1000, Speed=2.25, Initiative=10, Jamming=34, Capacitors=6, Deflectors=0, Computers=0/0/0
     6 x Mega Disruptor, 6 x Mega Disruptor, 4 x Mega Disruptor, 2 x Syncro Sapper, 2 x Syncro Sapper
  Martian Stealth BB x 10
     Battleship, Armour=2000, Shields=800, Speed=1.5, Initiative=10, Jamming=0, Capacitors=0, Deflectors=0, Computers=0/0/0
     5 x Phased Sapper, 6 x Heavy Blaster, 6 x Heavy Blaster, 4 x Heavy Blaster, 2 x Heavy Blaster, 2 x Heavy Blaster


Round 0 : Random number generator initialised using seed: 10024836
Round 0 : Battle started
Round 1 : Human Beam BB [20@0%,20000] moves to 1,8 (range 6)
Round 1 : Human Beam BB [20@0%,20000] moves to 1,7 (range 5)
Round 1 : Martian Stealth BB [10@0%,8000] moves to 9,8 (range 6)
Round 1 : Alien Beam Nubian [15@0%,45000] moves to 5,3 (range 4)
Round 1 : Human Beam BB [20@0%,20000] moves to 1,6 (range 4)
Round 1 : Martian Stealth BB [10@0%,8000] moves to 9,7 (range 4)
Round 1 : Alien Beam Nubian [15@0%,45000] moves to 4,3 (range 3)
Round 1 : Alien Chaff [400@0%,0] moves to 5,3 (range 4)
Round 1 : Human Beam BB [20@0%,20000] fires Syncro Sapper [4] at Beam Nubian doing 9652 damage to shields and 0 to armour (0 kills)
Round 1 : Human Beam BB [20@0%,20000] fires Syncro Sapper [5] at Beam Nubian doing 9652 damage to shields and 0 to armour (0 kills)
Round 1 : Human Beam BB [20@0%,20000] fires Mega Disruptor [1] at Beam Nubian doing 9045 damage to shields and 0 to armour (0 kills)
Round 1 : Human Beam BB [20@0%,20000] fires Mega Disruptor [2] at Beam Nubian doing 9045 damage to shields and 0 to armour (0 kills)
Round 1 : Human Beam BB [20@0%,20000] fires Mega Disruptor [3] at Beam Nubian doing 6030 damage to shields and 0 to armour (0 kills)
Round 1 : Alien Beam Nubian [15@0%,1571] fires Mega Disruptor [1] at Beam BB doing 16084 damage to shields and 0 to armour (0 kills)
Round 1 : Alien Beam Nubian [15@0%,1571] fires Mega Disruptor [2] at Beam BB doing 3915 damage to shields and 1449 to armour (0 kills)
Round 2 : Human Beam BB [20@2%,0] moves to 2,5 (range 3)
Round 2 : Alien Beam Nubian [15@0%,1571] moves to 3,4 (range 1)
Round 2 : Human Beam BB [20@2%,0] moves to 3,4 (range 2)
Round 2 : Martian Stealth BB [10@0%,8000] moves to 8,6 (range 5)
Round 2 : Alien Beam Nubian [15@0%,1571] moves to 3,4 (range 0)
Round 2 : Alien Chaff [400@0%,0] moves to 6,4 (range 2)
Round 2 : Human Beam BB [20@2%,0] fires Syncro Sapper [4] at Beam Nubian doing 1571 damage to shields and 0 to armour (0 kills)
Round 2 : Human Beam BB [20@2%,0] fires Mega Disruptor [1] at Chaff doing 0 damage to shields and 18000 to armour (400 kills)
Round 2 : Human Beam BB [20@2%,0] fires Mega Disruptor [1] at Beam Nubian doing 0 damage to shields and 4450 to armour (0 kills)
Round 2 : Human Beam BB [20@2%,0] fires Mega Disruptor [2] at Beam Nubian doing 0 damage to shields and 10058 to armour (2 kills)
Round 2 : Human Beam BB [20@2%,0] fires Mega Disruptor [3] at Beam Nubian doing 0 damage to shields and 6704 to armour (1 kills)
Round 2 : Alien Beam Nubian [12@10%,0] fires Mega Disruptor [1] at Beam BB doing 0 damage to shields and 14300 to armour (4 kills)
Round 2 : Alien Beam Nubian [12@10%,0] fires Mega Disruptor [2] at Beam BB doing 0 damage to shields and 4767 to armour (1 kills)
Round 3 : Human Beam BB [15@4%,0] moves to 4,3 (range 2)
Round 3 : Martian Stealth BB [10@0%,8000] moves to 7,5 (range 4)
R
...



[Updated on: Wed, 22 December 2004 11:29]

Report message to a moderator

Previous Topic: Cost 0 setup
Next Topic: Attractiveness for mixed weapon designs
Goto Forum:
  


Current Time: Fri May 03 08:55:26 EDT 2024