Comments (12)
Got a crash in CombatEngine.cs at the last line of code see here, line 88 in my version. Might be something to do with surviving assets count?
_public bool IsCombatOver
{
get
{
if (_allSidesStandDown)
return true;
//if (_assets.Count(assets => assets.CombatShips.);
return (assets.Count(assets => assets.HasSurvivingAssets) <= 1);
}
}
from botf2.
That one has been reported at #6
from botf2.
Getting an error out of Borg combat from PerformAssimilation() and PerformRetreat() in CombatEngine.cs?
Looking like the OnwerID is still null at some point?
System.Collections.Generic.KeyNotFoundException
HResult=0x80131577
Message=The given key was not present in the dictionary.
Source=SupremacyCore
StackTrace:
at Supremacy.Collections.KeyedCollectionBase`2.get_Item(TKey key) in C:\Users\Kenneth Flanagan\Documents\1A_20180415_BOTF2\BotF2\SupremacyCore\Collections\ObservableKeyedCollection.cs:line 107
at Supremacy.Orbitals.Fleet.OnLocationChanged() in C:\Users\Kenneth Flanagan\Documents\1A_20180415_BOTF2\BotF2\SupremacyCore\Orbitals\Fleet.cs:line 623
at Supremacy.Universe.UniverseObject.set_Location(MapLocation value) in C:\Users\Kenneth Flanagan\Documents\1A_20180415_BOTF2\BotF2\SupremacyCore\Universe\UniverseObject.cs:line 257
at Supremacy.Combat.CombatEngine.PerformRetreat() in C:\Users\Kenneth Flanagan\Documents\1A_20180415_BOTF2\BotF2\SupremacyCore\Combat\CombatEngine.cs:line 435
at Supremacy.Combat.CombatEngine.ResolveCombatRound() in C:\Users\Kenneth Flanagan\Documents\1A_20180415_BOTF2\BotF2\SupremacyCore\Combat\CombatEngine.cs:line 169
at Supremacy.WCF.SupremacyService.TryResumeCombat(CombatEngine engine) in C:\Users\Kenneth Flanagan\Documents\1A_20180415_BOTF2\BotF2\SupremacyService\SupremacyService.cs:line 1232
from botf2.
KeyedCollectionBase<GameObjectID, Civiliation> is read only
So cannot be updated on assimilation? Workaround with remove and replace with a Borg game object?
from botf2.
I've had a quick look at it and the problem is that the OwnerID is null like you said, the read only has nothing to do with it.
The owner is set in CombatEngine:PerformAssimilation() with the line _ship.Fleet.OwnerID = 7;
Need to figure out how this value propogates, or even if this is the right thing to do. Surely we should be applying it to the individual ship and then transferring that ship to the Borg fleet.
Now that I know where to look I'll start working on it slowly. My time will be freeing up in the next few weeks
from botf2.
Oh God, sorry. When we unskilled coders coded this -> Borg was 7. Meanwhile we throw out "INTRO"-race we implemented for some -resolved now- UI problems. Now Borg are 6, (Fed = 0)
from botf2.
Ah, that's a nice easy fix then
from botf2.
from botf2.
Since your doing a lot in the combat code I'll let you make the change, otherwise things might get conflicted when it goes in to master
from botf2.
from botf2.
Not crashing but working on combat with assimilated ships now
from botf2.
Appears to be working
from botf2.
Related Issues (20)
- Crash at pushing CTRL+O two times HOT 1
- Can we see that a construction ship is building in the redeploy view? HOT 1
- Noted Terran Empire could build all ships in one turn. HOT 1
- Card_Scout_iii showing up in the feets of other empires HOT 1
- Can we drag the map with middle mouse button? HOT 1
- Can we show a bit more about a fleet on the galaxy map?
- Trade Routes
- Construction ship orders into old spyon order code? HOT 3
- Production Freeze
- Two systems called Gamma Velorum, Universe generator HOT 1
- Can scrap and enemy station HOT 1
- Screen regions highlight in Combat Window HOT 2
- No population growth at early tech level? HOT 1
- Unable to buy or rush "Early Warning Scanner" and some planets unable to build shield generators.
- Terran Medical Ship Not providing medical assistance to Terra when given fleet order
- Terran Empire getting wrong insignia image, upper right of combat window
- Non cloaking civilizations getting cloaked ships on galaxy map, task force list view HOT 1
- On loading a game it ends in a empty background (FIX: right click or F1 key)
- Restrictions are (partly?) not working ... e.g. "OnePerSystem" > not available anyway e.g. WIND_TURBINES HOT 1
- Re-Colonizing after System conquered / pop to null
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from botf2.