Aurora 4x

C# Aurora => General Discussion => Topic started by: Stormtrooper on January 03, 2021, 03:03:34 PM

Title: Pickup failed: couldn't load None from celestial_body_name?
Post by: Stormtrooper on January 03, 2021, 03:03:34 PM
So I got this notification.  I had it at the very beginning when transporting minerals from Moon before building mass drivers.  Then I reached for the stars, so mass drivers were no longer an option.  Transporting minerals from Alpha Centauri was fine, but then when transporting them from Proxima b I got this "thing" once again.

I could use that one external tool to flip this event as not pasuing the game and call it a day.  Except no minerals are loaded.  My fleet has a simple cycle of "load all at Proxima b, unload all on Earth, refuel" orders.

Did anyone got this and knows what's happening? I didn't find the issue while googling for what little aurora-related stuff floats out there online.
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Migi on January 03, 2021, 03:37:58 PM
Most likely the problem is that your freighter doesn't have any cargo shuttle bays.
The only time your  freighter doesn't need cargo shuttle bays is if the planet has a spaceport or Cargo Shuttle Station.

Then I reached for the stars, so mass drivers were no longer an option. 
I don't understand what this means.
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Droll on January 03, 2021, 03:40:05 PM
Then I reached for the stars, so mass drivers were no longer an option. 
I don't understand what this means.

I think he means that he has an extra-solar colony somewhere to get minerals from.
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Froggiest1982 on January 03, 2021, 03:41:03 PM
Most likely the problem is that your freighter doesn't have any cargo shuttle bays.
Then I reached for the stars, so mass drivers were no longer an option. 
I don't understand what this means.

I believe he was in another star system so mass drivers were not an option to transport back minerals on Earth.
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Stormtrooper on January 03, 2021, 03:51:25 PM
Quote from: Migi link=topic=12243.  msg145772#msg145772 date=1609709878
Most likely the problem is that your freighter doesn't have any cargo shuttle bays. 
The only time your  freighter doesn't need cargo shuttle bays is if the planet has a spaceport or Cargo Shuttle Station.

Code: [Select]
Avalanche class Freighter      97,011 tons       422 Crew       2,070.2 BP       TCS 1,940    TH 5,000    EM 0
2577 km/s    JR 2-25(C)      Armour 1-188       Shields 0-0       HTK 110      Sensors 0/0/0/0      DCR 1      PPV 0
MSP 13    Max Repair 125 MSP
Cargo 50,000    Cargo Shuttle Multiplier 30   
Commander    Control Rating 1   BRG   
Intended Deployment Time: 12 months   

JC98K Commercial Jump Drive     Max Ship Size 97500 tons    Distance 25k km     Squadron Size 2

Commercial Internal Fusion Drive  EP500.0 (10)    Power 5000    Fuel Use 5.53%    Signature 500    Explosion 5%
Fuel Capacity 2,000,000 Litres    Range 67.1 billion km (301 days at full power)

This design is classed as a Commercial Vessel for maintenance purposes

How this thing does not have cargo shuttle bay in your opinion? That's not the case.   Besides, the usage of this very freighter for transporting minerals from Alpha Centauri works without problems.  .  . 
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: TheTalkingMeowth on January 03, 2021, 03:55:13 PM
So I got this notification.  I had it at the very beginning when transporting minerals from Moon before building mass drivers.  Then I reached for the stars, so mass drivers were no longer an option.  Transporting minerals from Alpha Centauri was fine, but then when transporting them from Proxima b I got this "thing" once again.

I could use that one external tool to flip this event as not pasuing the game and call it a day.  Except no minerals are loaded.  My fleet has a simple cycle of "load all at Proxima b, unload all on Earth, refuel" orders.

Did anyone got this and knows what's happening? I didn't find the issue while googling for what little aurora-related stuff floats out there online.
You are trying to load minerals that aren't present.
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Migi on January 03, 2021, 04:01:30 PM
Quote from: Migi link=topic=12243.  msg145772#msg145772 date=1609709878
Most likely the problem is that your freighter doesn't have any cargo shuttle bays. 
The only time your  freighter doesn't need cargo shuttle bays is if the planet has a spaceport or Cargo Shuttle Station.

Code: [Select]
Avalanche class Freighter      97,011 tons       422 Crew       2,070.2 BP       TCS 1,940    TH 5,000    EM 0
2577 km/s    JR 2-25(C)      Armour 1-188       Shields 0-0       HTK 110      Sensors 0/0/0/0      DCR 1      PPV 0
MSP 13    Max Repair 125 MSP
Cargo 50,000    Cargo Shuttle Multiplier 30   
Commander    Control Rating 1   BRG   
Intended Deployment Time: 12 months   

JC98K Commercial Jump Drive     Max Ship Size 97500 tons    Distance 25k km     Squadron Size 2

Commercial Internal Fusion Drive  EP500.0 (10)    Power 5000    Fuel Use 5.53%    Signature 500    Explosion 5%
Fuel Capacity 2,000,000 Litres    Range 67.1 billion km (301 days at full power)

This design is classed as a Commercial Vessel for maintenance purposes

How this thing does not have cargo shuttle bay in your opinion? That's not the case.   Besides, the usage of this very freighter for transporting minerals from Alpha Centauri works without problems.  .  .
There do appear to be cargo shuttles in that design, however you didn't state in your first post that there were cargo shuttles on the freighters and it is a very common mistake for people to make.
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Stormtrooper on January 03, 2021, 04:03:20 PM
Fair enough, I just don't get what's going on there. And I'd rather not have to micromanage each iteration of mineral transfer for every star I'm going to colonize in the future...
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Droll on January 03, 2021, 04:04:51 PM
Fair enough, I just don't get what's going on there. And I'd rather not have to micromanage each iteration of mineral transfer for every star I'm going to colonize in the future...

Try using the "load minerals until full" order when this happens instead. Your freighters might be emptying out the planet too quickly
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Stormtrooper on January 03, 2021, 04:09:29 PM
Actually given the current production rate that might be the case... Except... Isn't "load all minerals" be supposed to just load whatever there is and then come back once either the total stockpile is empty or cargo is full? I'd rather avoid "load until full", because with the current production and cargo that's going to take way too much time for my liking, minerals should come rather often, even if in small quantities, for the smooth production.

P.S. I use only one ship that ever goes to that planet if that matters for whatever reason.
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Squigles on January 03, 2021, 04:19:56 PM
Is the error message you're getting exactly as you've posted it?

The "Couldn't load None" portion of the message is the message for trying to load up minerals from a colony with none.   However, it should tag it with the name of the colony you're attempting to pick up from.   Such as "couldn't load None from Luna", or "couldn't load None from Phobos", etc. 

If it's actually coming back with "celestial_body_name", unless that's literally what you named the colony, it would appear it's not trying to pick up from the colony you're targeting at all.   Rather, it appears to be trying to pick up from something undefined? I don't know enough to say for certain, but this one reeks of a DB error. 

Edit: Technically I think it should be "unable to load None".
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Stormtrooper on January 03, 2021, 04:30:08 PM
I mean, yeah, it's like "unable to load None from Proxima Centauri b" stuff. Thought celestial_body_name will be understood as a generic tag indicating that the name of the celestial body appears in this place. And there definitely are minerals on that planet. The mines are working, stockpile is greater than zero when this notification pops up and there's only one ship that ever visits this planet which is my lonely freighter that's there to pick up minerals.
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Squigles on January 03, 2021, 04:48:58 PM
So, the only other thing I can come up with at all is that the message will also appear if you're unable load anything at all.   As we already established you do have the hardware to load things, it is possible that your freighter is full. 

Perhaps it was used to move installations around at some point and still has some aboard?

Double check that the freighter is empty.   If that's not it, I'm at a loss. 
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Stormtrooper on January 03, 2021, 05:00:32 PM
The freighter literally never was assigned to do anything but this single mineral transport and after every pickup it's supposed to unload all of them. It's so lonely and empty inside.
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Twilight Sentinel on January 03, 2021, 05:17:47 PM
That's the message you get when there's no minerals to pickup.   You can ignore it and let the ship continue with its orders if you've got it cycling moves.   This often happens when I've got a freighter moving auto mines out and taking minerals back.   The first time there's no minerals to pick up, but on subsequent trips there will be.
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Stormtrooper on January 03, 2021, 05:30:56 PM
But how is it possible? I see the popup, I notice my ship already leaving the planet empty, then I notice minerals being there. Since it's the only ship all minerals mined before it arrives are going to stay in planetary stockpile, waiting for this very ship to pick them up.
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Zerkuron on January 03, 2021, 05:55:51 PM
I got this error too. I tried to pick up "all minerals" while my cargohold was full with construction factories. Maybe you have some installations in your cargoholds?
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Steve Walmsley on January 03, 2021, 06:45:50 PM
The "Unable to load" event for minerals will happen in four situations:
What does the cargo line in the fleet summary say?
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Stormtrooper on January 03, 2021, 07:42:13 PM
Ok I have one very important question: Can "load all minerals" order fail if there aren't some types of minerals present because the planet doesn't contain all of them?
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Droll on January 03, 2021, 08:01:39 PM
It should not fail, if it does thats a bug
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Twilight Sentinel on January 03, 2021, 08:12:28 PM
Quote from: Stormtrooper link=topic=12243. msg145804#msg145804 date=1609716656
But how is it possible? I see the popup, I notice my ship already leaving the planet empty, then I notice minerals being there.  Since it's the only ship all minerals mined before it arrives are going to stay in planetary stockpile, waiting for this very ship to pick them up.
Maybe you got the order of operations wrong?  Did you unload your cargo hold first, then pickup minerals after?  Alternatively it could be that the minerals were added after your freighter arrived, since the game only calculates resource generation after ship movement is calculated.
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Stormtrooper on January 03, 2021, 08:17:15 PM
Well I'll try to check it, maybe you're right. What is default resource generation tick?
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: TheTalkingMeowth on January 03, 2021, 08:54:23 PM
Well I'll try to check it, maybe you're right. What is default resource generation tick?
Five days (well, not exactly).

What actually happens is the game records the last time a "construction cycle" was processed. In the next turn that ends more than 5 days after the last construction cycle, everything is processed according to how long it's actually been since the last cycle.

So if you are 4.9 days after the last cycle, then you do a 30 day turn, the cycle will cover 34.9 days.
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Stormtrooper on January 03, 2021, 09:10:24 PM
So does this essentially mean that no matter the increments, if 5 days in total passes mining gets updated?
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Squigles on January 03, 2021, 09:30:41 PM
Yes. . . and no.

If at least 5 days have passed, mining (and everything else that occurs on a construction tick) gets updated.  It doesn't mean it gets updated every 5 days though.

As an example, lets say you have a colony you want to collect minerals from.  That colony produces 12k minerals per year.  That's roughly 33 per day.  You automate a freighter to go to the colony and collect the minerals than return somewhere else and dump them.  The freighter makes the full round trip in 11 days.  Colony starts with 1K minerals.

You queue up all the orders, and run a 30 day tick.  Five and a half days in, the freighter shows up and takes the 1K minerals on the planet.  It only takes 1K and nothing else because the construction tick doesn't happen until the end of the interval you ran, even though more than 5 days have passed. 

11 days (16. 5 from when you started) later it comes back to the colony.  There is nothing to collect, the tick hasn't happened yet.  Freighter cries in the corner that there is nothing here.  Another 11 (27. 5 total) days later, still nothing on the colony, no construction tick, another failed collection.

Finally, another 2. 5 days later, the selected interval ends.  Your freighter is halfway between source and destination, with jack diddly onboard.  The colony processes it's 30 days of mining and vomits out just a fuzz under 1K minerals onto the colony.

It's entirely possible this is what's going on if you're running an extremely short route.  If this is the case you have a few options. 

1. Develop a much smaller freighter for this route that won't empty the colony in a trip. 

2. Develop a much much slower, more fuel efficient freighter for this route. 

3. Add a delay in the cycling orders of your current freighter.

4.  Use the load minerals until full order.

5.  Run 5 day intervals exclusively.

Personally I'm an absolute freak for efficiency, so I don't think I've ever processed a 30 day interval in over 100 years due to the fact that if a construction job finishes during the interval, the next job in the queue won't start until the construction tick processes and the job actually finishes.  So if your job finishes in 10 days and you run a 30 day tick, your factories just took a 20 day smoke break.
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Droll on January 03, 2021, 09:35:40 PM
Personally I'm an absolute freak for efficiency, so I don't think I've ever processed a 30 day interval in over 100 years due to the fact that if a construction job finishes during the interval, the next job in the queue won't start until the construction tick processes and the job actually finishes.  So if your job finishes in 10 days and you run a 30 day tick, your factories just took a 20 day smoke break.

Which is why I set my production increment to 1 day. It works quite well actually.
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Stormtrooper on January 03, 2021, 10:53:59 PM
Thanks a lot for the detailes explanation. I'm 99% sure that's exactly the case, especially given how I encountered the same problem early game with moon, 30 days increments and Earth-Moon distance paired up couldn't end in any different way.

And I guess I'll pass on using anything below 30 days still, because performance. 5 days tick takes pretty much same amount of IRL as 30 days tick for me.
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: db48x on January 04, 2021, 08:36:00 AM
The "Unable to load" event for minerals will happen in four situations:
  • There are no minerals to pick up.
  • There are no minerals to pick up above a set reserve amount.
  • There is no space in the cargo hold
  • There are no cargo shuttles
What does the cargo line in the fleet summary say?

Steve, since Aurora obviously knows which of those conditions is the cause, could you make it output four different variations on the log message?
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Twilight Sentinel on January 04, 2021, 03:44:21 PM
Quote from: Stormtrooper link=topic=12243. msg145828#msg145828 date=1609736039
Thanks a lot for the detailes explanation.  I'm 99% sure that's exactly the case, especially given how I encountered the same problem early game with moon, 30 days increments and Earth-Moon distance paired up couldn't end in any different way.

And I guess I'll pass on using anything below 30 days still, because performance.  5 days tick takes pretty much same amount of IRL as 30 days tick for me.
One thing you can do to avoid this problem for shipping around minerals within a system is to use mass drivers instead of freighters.   Each one can send 5k minerals per year and only one is needed to receive an infinite amount of minerals.   They don't cost anything once they're finished or require workers.   Just make sure you don't remove the last mass driver from any destinations.
Title: Re: Pickup failed: couldn't load None from celestial_body_name?
Post by: Droll on January 04, 2021, 04:05:10 PM
Quote from: Stormtrooper link=topic=12243. msg145828#msg145828 date=1609736039
Thanks a lot for the detailes explanation.  I'm 99% sure that's exactly the case, especially given how I encountered the same problem early game with moon, 30 days increments and Earth-Moon distance paired up couldn't end in any different way.

And I guess I'll pass on using anything below 30 days still, because performance.  5 days tick takes pretty much same amount of IRL as 30 days tick for me.
One thing you can do to avoid this problem for shipping around minerals within a system is to use mass drivers instead of freighters.   Each one can send 5k minerals per year and only one is needed to receive an infinite amount of minerals.   They don't cost anything once they're finished or require workers.   Just make sure you don't remove the last mass driver from any destinations.

Doesn't work when the minerals need to be shipped across Jump Points but good idea for in-system mineral transport