RocketBot icon indicating copy to clipboard operation
RocketBot copied to clipboard

Argument Null Referrence Problem

Open ghost opened this issue 10 years ago • 6 comments

line 235 on the console's program.cs ; catch (ArgumentNullException) { ColoredConsoleWrite(ConsoleColor.Red, "Argument Null Refference - Restarting"); Execute(); } couldnt locate myself what causes the try/catch to get a null refference roughly 16-18 seconds every time it launches and starts looping. Help pl0x? Love this bot! screenshot: http://prntscr.com/bxxz58 censored for sake of privacy <3

ghost avatar Jul 26 '16 23:07 ghost

Comment out the catch for null reference and VS should point out the cause.

TehPirat3 avatar Jul 27 '16 00:07 TehPirat3

I have the same problem :/, do you know what causing this problem yet?

IKYCz avatar Jul 27 '16 00:07 IKYCz

When I was tinkering with the API, the cause of it for me was trying to call my logging method. Maybe try re-downloading/extracting the program? Maybe you changed something by mistake?

TehPirat3 avatar Jul 27 '16 00:07 TehPirat3

I will try that, give a minute.

Update: Redownloading it solved the issue :+1:

IKYCz avatar Jul 27 '16 00:07 IKYCz

After debugging the code I finally found the root of the problem... Which is that your Pokemon inventory is full, meaning that you need to transfer duplicate pokemons, or get a bigger bag.

image

hifarrer avatar Jul 27 '16 03:07 hifarrer

Your problem is that you disabled transfering Pokemon and you ran out of space for new ones. Enable transfer or do it manually.

-close if your problem is solved :)

RuckertSolutions avatar Jul 27 '16 05:07 RuckertSolutions