View Issue Details
ID | Project | Category | Date Submitted | Last Update | |
---|---|---|---|---|---|
0027773 | Heart Of The Machine | Crash/Exception | Apr 26, 2023 10:46 am | Apr 26, 2023 4:01 pm | |
Reporter | Mac | Assigned To | Draco18s | ||
Status | resolved | Resolution | fixed | ||
Summary | 0027773: Negative Residents Added After Dispatch To Residence | ||||
Description | I dispatched units to a skyscraper to see what would happen. Upon success, I immediately got this error log: 4/26/2023 10:42:02 AM 0.300 SINGLEP Error, added -1 residents of type Homeless to district Second City and wound up with -1 total residents in that district at System.Environment.get_StackTrace () [0x00000] in <75633565436c42f0a6426b33f0132ade>:0 at Arcen.Universal.ArcenDebugging.ArcenLog_InnerOnMainThreadOnly (System.String Message, Arcen.Universal.DebugLogDestination Destination, System.Boolean IncludeStackTrace, Arcen.Universal.Verbosity Verbosity, System.DateTime Timestamp) [0x00000] in <35962cb54d5b4e0f8ae102438efb086f>:0 at Arcen.Universal.ArcenDebugging.LogWithStack (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <35962cb54d5b4e0f8ae102438efb086f>:0 at Arcen.HotM.External.SimDistrict.AddResidents (Arcen.HotM.Core.EconomicClassType econClass, System.Int32 amount) [0x00000] in <bc4ef58536b94bceab5cb53d9eb305ec>:0 at Arcen.HotM.ExternalVis.DispatchResults_Basic.CompleteCurrentResultsDuringDispatch (Arcen.HotM.Core.DispatchResultType ResultType, System.Int32 Amount) [0x00000] in <454ae772de3c4025946e0a0e5bd53756>:0 at Arcen.HotM.ExternalVis.DispatchLogic.ExecuteNow () [0x00000] in <454ae772de3c4025946e0a0e5bd53756>:0 at Arcen.HotM.ExternalVis.Window_Dispatch+bButtonTwo.HandleClick_Subclass (MouseHandlingInput input) [0x00000] in <454ae772de3c4025946e0a0e5bd53756>:0 at Arcen.Universal.ButtonAbstractBase.HandleClick (MouseHandlingInput input) [0x00000] in <35962cb54d5b4e0f8ae102438efb086f>:0 at Arcen.Universal.ArcenUI_Button.OnClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00000] in <35962cb54d5b4e0f8ae102438efb086f>:0 at Arcen.Universal.ArcenUI_Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00000] in <35962cb54d5b4e0f8ae102438efb086f>:0 at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00000] in <2e2b330a56fa4d0499ddeb0d62b55dda>:0 at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) [0x00000] in <2e2b330a56fa4d0499ddeb0d62b55dda>:0 at UnityEngine.EventSystems.StandaloneInputModule.ReleaseMouse (UnityEngine.EventSystems.PointerEventData pointerEvent, UnityEngine.GameObject currentOverGo) [0x00000] in <2e2b330a56fa4d0499ddeb0d62b55dda>:0 at UnityEngine.EventSystems.StandaloneInputModule.ProcessMousePress (UnityEngine.EventSystems.PointerInputModule+MouseButtonEventData data) [0x00000] in <2e2b330a56fa4d0499ddeb0d62b55dda>:0 at UnityEngine.EventSystems.StandaloneInputModule.ProcessMouseEvent (System.Int32 id) [0x00000] in <2e2b330a56fa4d0499ddeb0d62b55dda>:0 at UnityEngine.EventSystems.StandaloneInputModule.ProcessMouseEvent () [0x00000] in <2e2b330a56fa4d0499ddeb0d62b55dda>:0 at UnityEngine.EventSystems.StandaloneInputModule.Process () [0x00000] in <2e2b330a56fa4d0499ddeb0d62b55dda>:0 at UnityEngine.EventSystems.EventSystem.Update () [0x00000] in <2e2b330a56fa4d0499ddeb0d62b55dda>:0 | ||||
Tags | No tags attached. | ||||
|
Draco, I suspect this is related to me having it kill workers, and it therefore killing potentially more people than are in a district, but I'm not positive. Since workers can live in other districts, the logic should be expanded to kill residents of other districts if there are not enough residents in the current district to kill for a given type. That said, I also notice that we're killing the homeless when we're killing workers, and that really should be a group that is skipped when worker-killing. So that's at least two bugs. |
|
Worth noting that previously an encounter happened where I assisted in homeless moving into this district. Maybe that counted toward them being considered workers? |
|
It's a good thought, but no -- I remember how I coded it, and I didn't limit it by economic class in the way I should have. It's just a pretty basic bug. |
|
Encounter is probably trying to remove residents from the old(?) district (for one reason or another) and that district doesn't *have* any homeless. |
|
Suppressed the error down to a silent logging, as the real culprit is elsewhere, but at least the problem won't bother the player so aggressively. |
Date Modified | Username | Field | Change |
---|---|---|---|
Apr 26, 2023 10:46 am | Mac | New Issue | |
Apr 26, 2023 10:51 am | Chris_McElligottPark | Assigned To | => Draco18s |
Apr 26, 2023 10:51 am | Chris_McElligottPark | Status | new => assigned |
Apr 26, 2023 10:53 am | Chris_McElligottPark | Note Added: 0067554 | |
Apr 26, 2023 11:07 am | Mac | Note Added: 0067558 | |
Apr 26, 2023 11:19 am | Chris_McElligottPark | Note Added: 0067559 | |
Apr 26, 2023 1:07 pm | Draco18s | Note Added: 0067564 | |
Apr 26, 2023 4:01 pm | Draco18s | Status | assigned => resolved |
Apr 26, 2023 4:01 pm | Draco18s | Resolution | open => fixed |
Apr 26, 2023 4:01 pm | Draco18s | Note Added: 0067583 |