What is the best way to run a 24/7 bot ?

07/15/2022 17:51 Yoyochi#1
Hi elitepvpers community,

I developed a bot script using PacketLogger and its TCP feature which basically open bazar, check some items and insert data into a database for future use.

I would like this bot to run like every 5 minutes, 24 hours a day, 7 days a week.

Have you any ideas or feedback on the ways to achieve that ?

I though about:
  • Linux VM (is it possible to install Nostale on Linux?)
  • Windows VM (expensive?)
  • Raspberry machine (possible?)

Let me know your thoughts.

Thanks!
07/15/2022 18:41 SH3L8Y#2
Quote:
Originally Posted by Yoyochi View Post
Hi elitepvpers community,

I developed a bot script using PacketLogger and its TCP feature which basically open bazar, check some items and insert data into a database for future use.

I would like this bot to run like every 5 minutes, 24 hours a day, 7 days a week.

Have you any ideas or feedback on the ways to achieve that ?

I though about:
  • Linux VM (is it possible to install Nostale on Linux?)
  • Windows VM (expensive?)
  • Raspberry machine (possible?)

Let me know your thoughts.

Thanks!
The easiest method to keep this running 24/7 would be purchasing a VPS.
Currently it's not possible to run it on linux...that's why windows VPS is the best choice.
The problem is that VPS doesn't have GPU what makes nostale crashing a lot.
In my point of view easiest would be creating a clientless app, which won't require nostale client itself. You would be able to run it on linux (or even free apps like replit).

I think there are few public repos, which will help you. There will be modifications needed (since all of them were not updated since last gameforge auth changes)...but if you want to make it working great then I recommend spending time on that.

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]

If you are searching for cheap windows VPS I think zap-hosting is a great choice. Their hardware is old and awful...but let's be honest. It's just scraping data from nosbasar. You don't need strong hardware.
07/15/2022 19:00 romdrak#3
I think that the most sophisticated way of doing this is writing clientless bot that does it since it's just checking bazaar. And would be runnable on any platform. But if you want to stick to client + packetlogger, then probably linux + quemu (or any other VM software)
07/15/2022 19:09 SH3L8Y#4
Quote:
Originally Posted by romdrak View Post
I think that the most sophisticated way of doing this is writing clientless bot that does it since it's just checking bazaar. And would be runnable on any platform. But if you want to stick to client + packetlogger, then probably linux + quemu (or any other VM software)
are you completely sure it is possible to run packet logger on linux? I've been trying it 2 years ago and I couldn't find a way to make BladeTiger's packetlogger working on linux.
Of course it would be possible with some kind of packetlogger working on a pipe but with this type of work I am 100% sure it will be much easier to create clientless version of basar parser. Nos-Kit written in golang worked fine before patch. There is kinda 95% of work done. The only think he would have to do is updating login (it can be also done in a lazy way using external auth lib and just using returned session token to connect into server) and implementing entire basar scrapping thing.
07/15/2022 19:31 romdrak#5
Quote:
Originally Posted by SH3L8Y View Post
are you completely sure it is possible to run packet logger on linux? I've been trying it 2 years ago and I couldn't find a way to make BladeTiger's packetlogger working on linux.
why wouldn't it be possible to inject packetlogger in windows VM inside some whatever linux. But as I said, the better way of doing it is clientless bot that does the same thing, but better.
07/15/2022 20:04 Yoyochi#6
Thanks a lot for your answers.

I will definitely take a look at the repos about clientless but the thing is that I am not very familiar with this. I'll let you know if I succeed in this way.
07/18/2022 16:21 Yoyochi#7
Hi, update,

I managed to make it work clientless using [Only registered and activated users can see links. Click Here To Register...] (on which I will make a pull request soon) and [Only registered and activated users can see links. Click Here To Register...] for those interested.

Thanks again for the references.
09/03/2023 21:51 asdddzzz#8
Quote:
Originally Posted by Yoyochi View Post
Hi, update,

I managed to make it work clientless using [Only registered and activated users can see links. Click Here To Register...] (on which I will make a pull request soon) and [Only registered and activated users can see links. Click Here To Register...] for those interested.

Thanks again for the references.
Yoyochi are you able to help with running it clientless? I have a problem launching it even with these libraries