ogame-tbot / TBot

OGame bot
81 stars 35 forks source link

problem with lifeform automine #133

Open Deenayd opened 2 years ago

Deenayd commented 2 years ago

Hello,

Not sure how to debug, but this started to happen after I started using lifeforms in few next planets:

[Error] [Brain] [29.10.2022 06:01:30] - Lifeform AutoMine Exception: An error has occurred: Status: error - Message: invalid ogameID
[Warning] [Brain] [29.10.2022 06:01:30] - Stacktrace:    at Tbot.Services.OgamedService.GetPrice(LFBuildables buildable, Int64 levelOrQuantity) in *****\source\repos\TBot2\TBot\Services\OgamedService.cs:line 923
   at Tbot.Includes.Helpers.GetNextLFBuildingToBuild(Celestial planet, Int32 maxPopuFactory, Int32 maxFoodFactory, Int32 maxTechFactory) in *****\source\repos\TBot2\TBot\Includes\Helpers.cs:line 2018
   at Tbot.Program.LifeformAutoMine(Object state) in *****\source\repos\TBot2\TBot\Program.cs:line 4182
YOLOP0wn commented 2 years ago

hello,

can you check into logs which lf buildings it tried to build ?

Deenayd commented 2 years ago

Well... no. There was no information abount that in the logs (I have pasted everything that was logged).

But it was when I wanted to do few tests with Mechs. I have already switched away from Mechs (not using them) and problem disappeared.