Aurora 4x

C# Aurora => C# Bug Reports => Topic started by: TMaekler on February 15, 2021, 11:54:44 AM

Title: 1.12.0 Function #722: Object Reference not linked to an object instance
Post by: TMaekler on February 15, 2021, 11:54:44 AM
I am getting randomly (at least I don't see a pattern) this error message. Any ideas what the exact problem is?

1.12.0 Function #722: Object Reference not linked to an object instance
Title: Re: 1.12.0 Function #722: Object Reference not linked to an object instance
Post by: Steve Walmsley on February 15, 2021, 12:25:59 PM
I am getting randomly (at least I don't see a pattern) this error message. Any ideas what the exact problem is?

1.12.0 Function #722: Object Reference not linked to an object instance

#722 is the create order code. The error is a null reference, which means a property of an object is null when the code is expecting a value. Unfortunately, that covers a lot of ground.

Is it happening during turn processing (which means a problem in standing orders or AI) or when you give movement orders?
Title: Re: 1.12.0 Function #722: Object Reference not linked to an object instance
Post by: papent on February 15, 2021, 01:01:00 PM
not OP,
i've only received the error on turn processing myself.

Another member mentioned it may have something to do the with the refuel, resupply, and overhaul order as they have not experienced it since changing that standing order.
http://aurora2.pentarch.org/index.php?topic=11945.msg141995#msg141995
Title: Re: 1.12.0 Function #722: Object Reference not linked to an object instance
Post by: TMaekler on February 15, 2021, 04:33:17 PM
It happens during turn procession.
Title: Re: 1.12.0 Function #722: Object Reference not linked to an object instance
Post by: Steve Walmsley on February 15, 2021, 05:34:16 PM
It happens during turn procession.

Do you have any fleets with the 'refuel, resupply, and overhaul' standing order?
Title: Re: 1.12.0 Function #722: Object Reference not linked to an object instance
Post by: TMaekler on February 15, 2021, 11:55:44 PM
Yes, my Geo/Grav-Survey Fleets.
Title: Re: 1.12.0 Function #722: Object Reference not linked to an object instance
Post by: Jorgen_CAB on February 16, 2021, 02:03:32 AM
Yes, my Geo/Grav-Survey Fleets.

This is a known bug... the game tries to add the Fuel & Resupply order but fail to do so (happens if the ship is not in the same system as the place they try to fuel from). You will only get the Overhaul order added.

I usually just go to the fleet delete the overhaul order, add the Fuel & Resupply and then the Overhaul order. Otherwise your ships just go back an Overhaul but never refuel and restock MSP.

As far as I know Steve already fixed this for 1.13.
Title: Re: 1.12.0 Function #722: Object Reference not linked to an object instance
Post by: TMaekler on February 16, 2021, 06:37:34 AM
Yes. Depleted one of the explorer ships of fuel waited for the command - and that is the exact problem. Thanks ;-)
Title: Re: 1.12.0 Function #722: Object Reference not linked to an object instance
Post by: BritoO on February 16, 2021, 01:16:00 PM
A current workaround for the bug is to use the "If fuel < XX%" => "Refuel, resupply and overhaul".

The #730 and #722 errors will still show up and only the overhaul order will be issued, but as soon as they finish overhaul (and because they never refueled) the conditional will trigger again, the refuel and resupply will be done and so will a new overhaul, but because the maintenance timer will already be at zero it will immediately finish on the next construction phase.

Not the best solution, but if you want to use the conditional at the moment and dont mind the 730 and 722 popups, it works just fine.