Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » Stars! Nova - Development » More Testing
More Testing Mon, 21 May 2012 16:55 Go to next message
Daniel is currently offline Daniel

 
Chief Warrant Officer 3
Stars! Nova developer
Stars! Nova developer

Messages: 179
Registered: April 2006
Location: Nowra, Australia
I have been doing more testing towards getting a stable version for a 0.5 release (which is way overdue). Found a bug with combat that leads to the wrong fleet being destroyed and I have a partial fix by restricting the fleet search to those actually in the battle.

However the new token IDs need a rethink as having the same ID as the design means they are not unique, which makes identifying a token from battle difficult. I intend to implement unique token IDs like fleet IDs to fix this.



Have fun.

Report message to a moderator

Re: More Testing Tue, 22 May 2012 07:11 Go to previous messageGo to next message
Daniel is currently offline Daniel

 
Chief Warrant Officer 3
Stars! Nova developer
Stars! Nova developer

Messages: 179
Registered: April 2006
Location: Nowra, Australia
I have implemented tokenKeys that are unique but need to do some testing before committing them.


Have fun.

Report message to a moderator

Re: More Testing Fri, 25 May 2012 19:28 Go to previous messageGo to next message
Aeglos is currently offline Aeglos

 
Chief Warrant Officer 1
Stars! Nova developer
Stars! Nova developer

Messages: 142
Registered: May 2011
Location: Chile
I'm working on the battle engine right now fixing this bug and optimizing other things, including some renaming for more clarity.

I'll revert to operating at the "Fleet" (Stack) level instead of per token, as fleets have a unique id on the battlefield regardless of it's token.

Report message to a moderator

Re: More Testing Mon, 28 May 2012 21:06 Go to previous messageGo to next message
Aeglos is currently offline Aeglos

 
Chief Warrant Officer 1
Stars! Nova developer
Stars! Nova developer

Messages: 142
Registered: May 2011
Location: Chile
Alright, issue *should* be fixed. I haven't been able to test it very well, but I did the following:

Introduced a new Stack class which inherits from Fleet and to be used only on the Battle engine and Battle viewer; A Stack is a Fleet which holds a single ShipToken and holds battle-specific things like target and battle speed (not relevant for fleets anywhere) and also keeps a copy of it's originating Fleet's Key in Stack.ParentKey, while Stack.Key is unique to the battle. This way we don't delete wrong fleets.

I reworked some firing methods that were redundant; We had like FireWeapon, ShootWeapon, DischargeWeapon, Attack, Fire... it was confusing.

All BattleEvents are now indexed by Stack Key and not Name. This allowed me to restore some of the Battle Viwer displays and future proofs the system for further improvements.

AllBattles is gone from ServerData; they are now directly reported to each Empire (Battles moved from Intel to EmpireData).

I think that's it, might have forgotten minor related changes.

I'm going to keep refining the Waypoint Tasks system now, and continue improving the server's turn processing: splitting w0 and w1 resolution is related and important.

Report message to a moderator

Re: More Testing Wed, 30 May 2012 16:52 Go to previous messageGo to next message
Daniel is currently offline Daniel

 
Chief Warrant Officer 3
Stars! Nova developer
Stars! Nova developer

Messages: 179
Registered: April 2006
Location: Nowra, Australia
Wow, that is a lot of work done. I will give it a test run this weekend. If you can get way-point one tasks running we are looking pretty good for a release soon.


Have fun.

Report message to a moderator

Re: More Testing Wed, 30 May 2012 19:53 Go to previous message
Aeglos is currently offline Aeglos

 
Chief Warrant Officer 1
Stars! Nova developer
Stars! Nova developer

Messages: 142
Registered: May 2011
Location: Chile
One thing I forgot to mention is that the weapon firing order *should* also be fixed; a ship could fire all of it's weapons at once, they are now fired in initiative order.

I'll probably make Waypoints hold a list of Tasks instead of a single one. That will clear up the waypoints list on the GUI and allow the base for ZipOrds or similar in the future.

I'll then revise the fleet update routines in the server and finally change them to TurnSteps.


[Updated on: Wed, 30 May 2012 19:55]

Report message to a moderator

Previous Topic: Orders
Next Topic: GUI refactoring/changes
Goto Forum:
  


Current Time: Wed Jul 28 06:28:15 EDT 2021