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

Search from front? #2

Open KNYuki opened 7 years ago

KNYuki commented 7 years ago

Hi! Thank you so much for releasing this bot. I'd like to ask if it's possible to have the bot search from the front? Like, I can run two instances of the bot at the moment for two 3Dses, but is it possible to compile one of them to search from the front while the other search from the back? Thanks again!

SteveCookTU commented 7 years ago

I would have this option but the only issue is that searching from the front makes it so people who deposit first do not get the pokemon first. It was originally coded that way but it was unfair to many users. Using 2 3DSes for a giveaway is also not recommended because of the amount of work happening on your local network reading and writing. Also you could be intercepting trades from the other 3DS.

KNYuki commented 7 years ago

I did notice one bot intercepting the other when I ran both concurrently to give away the same pokemon. Though I mainly split them up to give out different batches of pokemon. Say network wasn't an issue here... If the 'queue' was long enough would interception still be a problem? I had people complaining more about wait time or deposits not being found at all even after multiple redeposits over the span of hours and someone suggested searching both front and back which was what prompted me to ask here. I would like to give it a try nevertheless.

SteveCookTU commented 7 years ago

How often does your bot trade? With one page, it should be going a pokemon a minute (maybe even a couple seconds faster). Try using pokemon that aren't common the gts for your giveaways such as Drifloon. Front and back the trades would not intercept with a big queue but they will intercept if starting from the same side. I will think about adding an option to go from the front.

KNYuki commented 7 years ago

Once every 1.5~2minutes. I'm using a wimpod at the moment and the queue blows up very quickly. I think being able to search from front and back would just be helpful or at least worth the shot. If you do add in the option that'd be great! Thanks for considering.

SteveCookTU commented 7 years ago

If I may ask, what platform are you posting on to notify people of your giveaways?

KNYuki commented 7 years ago

I'm using Twitch.

fallenlucario commented 7 years ago

Was this ever Implemented? I'm wondering because I have two 3ds's running for my giveaway. I timed them so that they wouldn't interfere with eachother's trades. i see the bot not trading the first person in the front though, I'm guessing it tries to go to the back?

If possible, (and I feel this would be much easier to do) would it be possible to Select extra parameters before searching the first time?

I.e. Before the bot selects search for the Pokemon; Let's say Ledyba in this case

It will change the Gender filter to Male or Female

And the level filter to let's say 1-10?

For my giveaways I use Delibird and it would be helpful to split the bots to do Male and Female that way no intercepting happens

Also, I'd like to ask if there are any bots for the whole reverse GTS or GTS wars thing? Thank you very much for working on this project, if there is anything I can do to assist, let me know!

KNYuki commented 7 years ago

I don't think it's implemented yet and timing the 3ds's to avoid interference wouldn't work or at least trying to have two bots trade the same pokemon hasn't been successful. I've tried but the bots will always search a specific position of sorts within the queue starting from the back regardless of when you start it resulting in a loop error. At least that's what I've noticed.

I'll have to second the suggestion for extra parameters though. If searching from the front isn't feasible then at least allowing the bot to further filter the GTS would be a nice feature considering sometimes the GTS eats up certain genders of pokemon and deposits end up going unnoticed.

fallenlucario commented 7 years ago

@knyuki90 I just used ledybot for the first time last night, both of my bots worked fine for 4 hours, the second bot had a bit of an error afterward but then I reset it and they worked until morning. Both were distributing the same Pokemon and searching for the same deposit. I timed them a certain way so that when the second one would search the first one would be mid trade already and far enough in the trade for the GTS search on the second to register it as traded and not have it show on the filters.

Due to trade intervals, I don't think a 3rd bot could be added in this manner.

Not sure if this is a thing as I was sleeping but whenever I got the message "This pokemon is traded" the bot would spazz out and go to the Quit option of the GTS. Is there a way for it to recognize it got this error and simple skip it and continue searching?

SteveCookTU commented 7 years ago

Adding specifications for gender and level search will be added along with search from front.