I've got a list of waypoints with a lot of stations in my region, cause I'm using buy orders with a high range.
Once a day I let the bot get everything I bought from these stations, since Gather Assets isn't working atm (will this be fixed sometime?)
Since these are over 30 waypoints and I dont want to update them everyday, I just leave the stations where I bought nothing in it (optimizing the route takes some time)
If the bot now gets to one of these stations it gets into an infinite loop, undocken / docking because he thinks that he is full (since no goods have been transfered)
I've fixed this using these lines (not tested yet but it should work)
obj_Freighter.iss
change to
Once a day I let the bot get everything I bought from these stations, since Gather Assets isn't working atm (will this be fixed sometime?)
Since these are over 30 waypoints and I dont want to update them everyday, I just leave the stations where I bought nothing in it (optimizing the route takes some time)
If the bot now gets to one of these stations it gets into an infinite loop, undocken / docking because he thinks that he is full (since no goods have been transfered)
I've fixed this using these lines (not tested yet but it should work)
obj_Freighter.iss
Code:
function PickupOrDropoff() {
//..
; We can't fit the rest of the cargo
This.ExcessCargoAtSource:Set[TRUE]
Code:
variable index:item StationCargo
Me:GetHangarItems[StationCargo]
variable iterator CargoIterator
This.StationCargo:GetIterator[CargoIterator]
if ${CargoIterator:First(exists)}
{
; We can't fit the rest of the cargo
This.ExcessCargoAtSource:Set[TRUE]
}
else
{
if ${SourceLocations.Peek(exists)}
{
SourceLocations:Dequeue
}
}
Last edited: