Project-RimFactory-Revived icon indicating copy to clipboard operation
Project-RimFactory-Revived copied to clipboard

If drones get a Battlelog Enty a Warning is logged during saving / loading

Open Sn1p3rr3c0n opened this issue 4 years ago • 2 comments

Describe the bug

If a drone gets damaged then a Battlelog entry can be created. As the drone gets destroyed as soon a it reaches the drone station it will not be saved in any way. This will trigger the following warning:

Could not resolve reference to object with loadID Thing_PRFDrone25150 of type Verse.Pawn. Was it compressed away, destroyed, had no ID number, or not saved/loaded right? curParent=BattleLogEntry_ExplosionImpact: null->null 

sample battleLog entry:

<li>
    <creationTimestamp>52867</creationTimestamp>
    <entries>
        <li Class="BattleLogEntry_ExplosionImpact">
            <ticksAbs>667867</ticksAbs>
            <logID>17</logID>
            <damagedParts>
                <li>
                    <body>PRFDrone</body>
                    <index>11</index>
                </li>
            </damagedParts>
            <damagedPartsDestroyed>
                <li>False</li>
            </damagedPartsDestroyed>
            <initiatorPawn>null</initiatorPawn>
            <recipientPawn>Thing_PRFDrone25150</recipientPawn>
            <damageDef>Flame</damageDef>
        </li>
    </entries>
    <absorbedBy>null</absorbedBy>
</li>

I maked this a minor as it dos not cause any issues.

To Reproduce Reproducibility: ? Steps to reproduce the behavior:

  1. Get a Battlelog Entry for a Drone
  2. Have the drone return to the station
  3. Save

Sn1p3rr3c0n avatar Jun 09 '21 17:06 Sn1p3rr3c0n

can it be done so drones don't create any logs? i guess its not really needed anyways and may just be a small performance drain having extra logs laying around?

zymex22 avatar Jun 09 '21 17:06 zymex22