Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Error Level up pokemon? #70

Closed
wilsondgonzales opened this issue Sep 11, 2016 · 3 comments
Closed

Error Level up pokemon? #70

wilsondgonzales opened this issue Sep 11, 2016 · 3 comments
Labels

Comments

@wilsondgonzales
Copy link

[23:46:15] (ERROR) Pokemon Servers might be offline / unstable. Trying again...
[23:46:16] (ERROR) Error: System.NullReferenceException: Object reference not set to an instance of an object.
   at PoGo.NecroBot.Logic.Inventory.<>c__DisplayClass23_0.<GetHighestPokemonOfTypeByIv>b__0(PokemonData x) in C:\projects\necrobot\PoGo.NecroBot.Logic\Inventory.cs:line 270
   at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
   at PoGo.NecroBot.Logic.Inventory.<GetHighestPokemonOfTypeByIv>d__23.MoveNext() in C:\projects\necrobot\PoGo.NecroBot.Logic\Inventory.cs:line 270
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at PoGo.NecroBot.Logic.Tasks.LevelUpPokemonTask.<UpgradeSinglePokemon>d__2.MoveNext() in C:\projects\necrobot\PoGo.NecroBot.Logic\Tasks\LevelUpPokemonTask.cs:line 35
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at PoGo.NecroBot.Logic.Tasks.LevelUpPokemonTask.<Execute>d__3.MoveNext() in C:\projects\necrobot\PoGo.NecroBot.Logic\Tasks\LevelUpPokemonTask.cs:line 100
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
   at PoGo.NecroBot.Logic.Tasks.HumanRandomActionTask.<Execute>d__1.MoveNext() in C:\projects\necrobot\PoGo.NecroBot.Logic\Tasks\HumanRandomActionTask.cs:line 67
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at PoGo.NecroBot.Logic.State.FarmState.<Execute>d__0.MoveNext() in C:\projects\necrobot\PoGo.NecroBot.Logic\State\FarmState.cs:line 19
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at PoGo.NecroBot.Logic.State.StateMachine.<Start>d__3.MoveNext() in C:\projects\necrobot\PoGo.NecroBot.Logic\State\StateMachine.cs:line 57

Don't know what part of the config this would pertain to so i didn't post a long config file but im guessing it's the upgrade part so

"AutomaticallyLevelUpPokemon": true,
    "OnlyUpgradeFavorites": true,
    "UseLevelUpList": false,
    "AmountOfTimesToUpgradeLoop": 50,
    "GetMinStarDustForLevelUp": 5000,
    "LevelUpByCPorIv": "iv",
    "UpgradePokemonCpMinimum": 1000.0,
    "UpgradePokemonIvMinimum": 100.0,
    "UpgradePokemonMinimumStatsOperator": "and",
@XurWuy
Copy link

XurWuy commented Sep 11, 2016

Please paste the whole config file. Looks like you have missed the ";" or "," somewhere in the config....

@iliadc88
Copy link
Contributor

I got this error too. I don't think that come with missed the ";" or "," somewhere in the config. because bot will check config before it runs.

@Silph-Road
Copy link
Contributor

^correct

@ghost ghost added the bug label Sep 12, 2016
@ntatoo ntatoo closed this as completed Sep 12, 2016
@ghost ghost added question and removed bug labels Sep 12, 2016
Lord-Haji pushed a commit to Lord-Haji/NecroBot-1 that referenced this issue Apr 26, 2017
Merge pull request Necrobot-Private#743 from Necrobot-Private/VerifiedFix
Furtif added a commit to Furtif/NecroBot that referenced this issue May 20, 2017
Furtif added a commit to Furtif/NecroBot that referenced this issue May 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants