SteveCookTU / Ledybot

A pokemon SM giveaway bot for the n3ds. Needs NTR and Input Redirection to work.
GNU General Public License v3.0
15 stars 3 forks source link

Bot selecting wrong pokèmon #27

Open HolidayOugi opened 7 years ago

HolidayOugi commented 7 years ago

The bot works great at first but after a while it begins accepting trade requests with the wrong pokèmon, resulting in the whole thing crashing.

Using Old3DS, already using the workaround explained in #24

gr33nd3v1l commented 7 years ago

Have you tried the stability improvement by using CheatEngine? #20

This is usually the bot getting its timers wrong so you end up clicking the wrong thing and getting in the wrong places

HolidayOugi commented 7 years ago

Honestly didn't, will try this afternoon

HolidayOugi commented 7 years ago

Still doesn't work. Ledybot recognizes the right trainer (it appears on the list) but it always chooses the first GTS match regardless which is often the wrong one. Tried with different speeds, same result. Cheat Engine was working because the slowdown was evident at slower speeds

HolidayOugi commented 7 years ago

Also, it often gives me this message (half in italian but should be understandable): System.ObjectDisposedException: Impossibile accedere a un oggetto eliminato. Nome oggetto: 'System.Net.Sockets.NetworkStream'. in System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size) in Ledybot.NTR.sendPacket(UInt32 type, UInt32 cmd, UInt32[] args, UInt32 dataLen) in Ledybot.NTR.sendWriteMemPacket(UInt32 addr, UInt32 pid, Byte[] buf) in Ledybot.RemoteControl.d17.MoveNext() --- Fine traccia dello stack da posizione precedente dove è stata generata l'eccezione --- in System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b6_0(Object state)

** Assembly caricati ** mscorlib Versione assembly: 4.0.0.0 Versione Win32: 4.6.1637.0 built by: NETFXREL3STAGE Base di codice: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

Ledybot Versione assembly: 1.0.0.0 Versione Win32: 1.0.0.0 Base di codice: file:///C:/Users/emy40/Desktop/612%20%E2%98%85%20-%20Haxorus%20-%20CC21B7241142/Ledybot.exe

System.Windows.Forms Versione assembly: 4.0.0.0 Versione Win32: 4.6.1586.0 built by: NETFXREL2

gr33nd3v1l commented 7 years ago

It doesn't actually select the wrong trainer! The pointer never moves to the right trainer because the bot injects the trade so to speak.

The second error message is usually what I get when the file for the pokemon being traded doesn't exist. Try moving the .pk7 to desktop and making sure it works.

Here's a Docile Ditto file that you can trade for Ledyba that definitely works

HolidayOugi commented 7 years ago

The .pk7 file was already on the Desktop. The bot works fine is the trade is the first on the GTS list. However, if thats not the case, its going to initiate a trade but I won't be able to trade the pokèmon, which has been injected anyway. So really dunno

HolidayOugi commented 7 years ago

Update: now it doesn't recognize any trade at all, even if it is the first of the list...

Fixed by moving the Ledybot exe

gr33nd3v1l commented 7 years ago

Are you sure you're running the correct versions of the 3ds-related software? Sounds like a connection problem

HolidayOugi commented 7 years ago

Of course, using BootNTR Selector Mode 3 with the latest NTR version and Input Redirection Mode 3.

HolidayOugi commented 7 years ago

Still stuck with the same problem :/

HolidayOugi commented 7 years ago

Trieid today with a different setup. Nothing at all...