Aurora 4x

C# Aurora => General Discussion => Topic started by: kilo on August 12, 2021, 07:44:35 AM

Title: Function #3239: Object reference not set to an instance
Post by: kilo on August 12, 2021, 07:44:35 AM
What causes this bug? And is it any bad?  I am periodicall saving the DB files and I can regress, but it is getting more frequent. I have no idea what I am doing though and cannot reproduce it.
Title: Re: Function #3239: Object reference not set to an instance
Post by: Froggiest1982 on August 12, 2021, 04:42:01 PM
What causes this bug? And is it any bad?  I am periodicall saving the DB files and I can regress, but it is getting more frequent. I have no idea what I am doing though and cannot reproduce it.

Do you have any NPR active? If so it must be that.

Back up the DB and edit to control NPR. There are probably some issues with any order/refuel instances.
Title: Re: Function #3239: Object reference not set to an instance
Post by: kilo on August 13, 2021, 12:22:35 AM
Do starting NPRs I have not encountered count? If yes there should be 5 I guess.

Which db editor is the editor of choice? #plsnoeditorwar
Title: Re: Function #3239: Object reference not set to an instance
Post by: Froggiest1982 on August 13, 2021, 02:08:48 AM
Do starting NPRs I have not encountered count? If yes there should be 5 I guess.

Yes

Which db editor is the editor of choice? #plsnoeditorwar

I use DB Browser (SQLite)
Title: Re: Function #3239: Object reference not set to an instance
Post by: kilo on August 14, 2021, 03:10:37 AM
Thanks for your input so far. There seems to be a lot of strange stuff going on with the NPRs.

1. How do they maintain 4M tons of military vessels with 0.27M tons of maintenance capacity?
1a. How do they manage to build up such a stockpile of MSP this way?
2. There is no fleet around with any strange orders. Some are completely out of fuel, especially some mining fleets. That should not be problematic from my point of view though.
Title: Re: Function #3239: Object reference not set to an instance
Post by: Froggiest1982 on August 14, 2021, 04:08:16 AM
Thanks for your input so far. There seems to be a lot of strange stuff going on with the NPRs.
Some are completely out of fuel, especially some mining fleets.

Mmmm, this could actually be it.

EDIT: As I remember coming across this one once (hence my idea of looking for NPRs straight away) I did spend a few minutes to find the relative post. Maybe it will help you out.

http://aurora2.pentarch.org/index.php?topic=11945.msg143371#msg143371