-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on Borg Assimilation combat #1
Comments
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 |
That one has been reported at #6 |
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 |
KeyedCollectionBase<GameObjectID, Civiliation> is read only So cannot be updated on assimilation? Workaround with remove and replace with a Borg game object? |
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 |
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) |
Ah, that's a nice easy fix then |
Thanks 👍
…On Sat, May 5, 2018 at 10:43 AM, David William Richmond Davies-Jones < ***@***.***> wrote:
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
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#1 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AE7A1tk3QwrAkWQXKjenTMPz3SqMU5V7ks5tveTWgaJpZM4RP1zZ>
.
|
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 |
Always welcome to take a look and point out our mistakes. Have most of what
we wanted so far so in combat and any new ideas or refinements are welcome
there. Still fusing over Borg combat.
…On Sat, May 5, 2018 at 4:08 PM, David William Richmond Davies-Jones < ***@***.***> wrote:
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
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#1 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AE7A1pTpcfPxe1I2JDyI56-QX0epXUaXks5tvjDjgaJpZM4RP1zZ>
.
|
Not crashing but working on combat with assimilated ships now |
Appears to be working |
AssimilatedCombatEngine
// Check for IsAssmilated and in combat with Borg for (int i = 0; i < _combatShips.Count; i++) { CombatAssets ownerBorg = GetAssets(_combatShips[i].First.Owner); if (ownerBorg.Owner.Name.ToString() != "Borg") continue; goto Next; {
The text was updated successfully, but these errors were encountered: