Giter Site home page Giter Site logo

msl-bot's Introduction

Monster Super League AutoIT Bot

Join the discord server to get help in setting up: https://discord.gg/UQGRnwf

A free open-sourced bot for Monster Super League using AutoIT programming language. This bot can do the tedious tasks of catching rare astromons, farming golems while selling the unwanted gems, and more.

Features:

  • Capture Legendary, Exotic, Super Rare, Rare, and Variant monsters.
  • Collect trees every hour.
  • Buy items from shady shop.
  • Attack Guardian Dungeons.
  • Farm Golem Dungeons and filter out unwanted gems.
  • Slime farming and gem/gold conversion.
  • And more.

Table of Contents

How to use bot
Manually updating
Common Issues
Setting up multiple emulators
Troubleshooting
Reporting an issue

How to use bot

Requirements:

  • Windows 7/8/8.1/10.
  • Latest updates from your Graphics Drivers.
  • Latest version of Nox. Recommended versions: 5.0.0.1 and above.
  • AutoIT: Download here.
  • The bot app: Download here.

Before you start:

  • When running the bot app through .au3, Run Script (x86) by right clicking on the file.
  • Set your Windows Display Scaling to 100% or set the Display Scaling option in the bot to your Windows Display Scaling Setting.
  • Enable Windows Aero Mode (Windows 7).

Configuring your Nox Settings:

Step 1: Enable Fixed window size in the Interface settings tab.

Interface settings

Step 2: Change the resolution to custom with Width: 800, Height: 552, and DPI: 160

Resolution

Step 3: Save settings.


Monster Super League Game Settings:

Step 1: Change language to English.

Language Setting

Step 2: Turn off all settings.

Game Setting

Step 3: Download game resources.


Changing Bot Config:

Step 1: Change Emulator Title according to the title of the emulator window.

Note: The title of your Nox window should have greater than 3 characters. 'Nox' or 'MSL' will not work. 'NoxPlayer' or 'Nox1' works.

Step 2: Check your settings by performing the Compatibility Test. Focus on the bot and press Ctrl+T

Compatibility Test

Step 3: The compatibility test will check the major controls for the bot. The test will also provide comments on how you may be able to fix any issues that it has detected. If you have any issues, you can copy the compatiblity test information and report the bug in Github or Discord.

Test Result

Step 4: Run desired script. Descriptions of each script is available on the bot app.

  • For any errors, refer to the Common Issues and Troubleshooting.

Manually updating

Step 1: Download the latest version from the same link.

Step 2: Open the ZIP file and extract the contents into the old version.

Drag files

Step 3: When the Replace or Skip Files prompt appear, select the option to replace.

Your existing configs will be saved.

Replace All


Common Issues

Window/Control Handle not found.

  • Check Emulator Title. If Emulator Title is correct, change the Emulator Property accordingly:

    • For Nox Emulator try using one of the following:

    [CLASS:Qt5QWindowIcon; TEXT:ScreenBoardClassWindow]

    [CLASS:subWin; INSTANCE:1]

    [CLASS:AnglePlayer_0; INSTANCE:1]

Window/Control handle error


Nox path does not exist.

  • Locate file location of the Nox.exe and in the same folder lies nox_adb.exe or adb.exe. Use the path to the file and enter it in ADB Path config.

Nox path error

Nox adb path


Nox device does not exist.

  • This error will usually provide a list of all available devices. Chances are one of the device is the Nox emulator. If device is not listed, restart nox.

Nox device


Function for the script does not exist.

  • There are missing or corrupted files detected. Redownload files and extract into a new folder. Then follow the steps to get set up above.

Func err




Setting up multiple emulators

Step 1: Create a new profile by editing the Profile Name setting in _Config.

Step 2: Change the ADB Device field to the device name connected to the second emulator.

  • To find the list of devices, open Debug Input (Ctrl+D) and enter MsgBox(0, "", adbCommand("devices")).

  • If no new device shows up, then restart Nox.

Device List

Step 3: Run a script.


Troubleshooting

  • Most problems can be solved by running the RestartNox() function.

Script looping in airship or doing nothing.

Before troubleshooting for this problem:

  • Open Debug Input Ctrl+D and enter getLocation() in airship and the map.
  • If the locations say 'unknown' on the log, proceed with the following troubleshooting.
  • If the location is village in the airship and map in the map, your problem is different.

Using the RestartNox() function:

  • If you have the Nox emulator, you can open Debug Input Ctrl+D and enter RestartNox().
  • This function will close and open the Nox process with correct resolution, dpi, and language set.
  • After restarting, try running a script.
  • If the issue still occurs, continue with other methods.

Using other Capture Mode:

  • If WinAPI does not work for you, try switching to ADB or None capture mode.
  • If none of the modes work for you, ask help in Discord or create an issue report on Github.

Locations not being recognized or imagesearch not working properly.

Check graphics settings

  • Your graphics settings could change the way the game looks so the pixels will be slightly different.
  • Try restoring your graphics setting to default settings and then restart your Nox.

ADB Path is too long or is not being recognized.

Download ADB files


Checking capture.

Use the CaptureRegion function to save an image

  • Open the Debug Input by pressing Ctrl+D or through the menu.
  • Enter CaptureRegion("test_image")~Run("mspaint.exe " & @ScriptDir & "\test_image.bmp")
  • Analyze the image and make sure it is capturing correctly.
    • There should not be Nox window handle.
    • The entire image should be filled by the MSL game.
    • No empty spots on the right and bottom side of the image.
    • Should not be a black screen.

Changing the Emulator class and instance

  • Issues with the capture could be fixed by entering the correct Emulator class and instance.
  • Refer to Changing Bot Config

Reporting an issue

Issue report can be made on Github or Discord.

Include the following:

  • Nox version. Ex. version 6.0.0.0
  • Bot app version. Ex. version 3.8.0
  • Script that you used. Ex. Farm Rare
  • Description of the problem.
  • A screenshot if possible.

License

This project is licensed under the terms of GPL-3.0 Open Source License.

msl-bot's People

Contributors

gquito avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

msl-bot's Issues

Question

Got an error today with not recongnized rare catch(it was succesful though)and if I want to modify or rather add new bmp file i need to edit what files? global variables and put bmp into catch with smth like catch_rare_4.bmp???

image
image

How to edit command

How to edit command

I want to edit Catch astromon script to catch only third wave because if it's script catch every wave how then we found rare astromon in third wave with none astrochip to catch it, it so wasted

Dev Branch

Don't know if dev branch is for testing too, but couldn't resist the urge to try it :)
Farm slimes works like charm sometimes it stucks and sometimes not idk why
Farm golems couldn't test it don't have unlocked 7-10 stages anyway error I am getting when trying to go golem 4 is:
[14:29:57] ~~~Starting 'Farm Golem' script~~~
[14:30:27] Error (clickPoint): variable passed in is not an Array.
[14:30:30] Error (clickPoint): variable passed in is not an Array.
[14:30:32] Error (clickPoint): variable passed in is not an Array.
[14:30:35] Error (clickPoint): variable passed in is not an Array.
[14:30:56] ~~~Finished 'Farm Golem' script~~~

Windows and Nividia update messing with bot

The bot asks me to try a different capturing mode when I'm using the correct ones 1709 with OpenGL perhaps it has to do with nividia changes? Also noticed that when I unfocus the nox player the display becomes a lot brighter.

Windows 10 version 1709
Nox version. Ex. version 5.0.0.1
Bot app version. Ex. version 3.9.0
Nividia 388.43

EDIT: Isolated the problem, seems to be the new nividia update causing problems, changing back to integrated graphics fixed it. Leaving this open incase anyone happens to have the same problem and if theres any other solutions to it.

Not Catching Automatically in Farm Script

Farm Bot is not catching.

[07:08:19] Going into battle...
[07:08:28] Locating map stage.
[07:08:31] Entering Phantom Forest on Normal.
[07:08:45] Waiting for astromon.
[07:16:19] An astromon has been found!

Config.ini is set to background mode, output all process, unchecked real mouse mode.

no catch

Sell Gem Function Is Not Working

During Farm Rare script, bot detect gem inventory is full and goes back to the village. Then it goes into storage and recognized that it is in location-manage, but it doesn't click on the manage button to sell gem. Is there a manage image that I need to recapture? I updated the location-manage but that's not the same. Is it a coordinate?

using bot with another emulator

how would i change the setting to use this script with another emulator? (nox emu)

I can't install bluestack on my pc due to path format error and there isn't a fix I can find online so I'm thinking about using nox as it works on my pc.

Could not find instance

Hello,

I did everything exactly as your guide but i still receive the could not find instance error, im currently running on Nox 5.0.0.1

Misclicks by bot for rare farming

Bot kinda got stuck, it accidentally pressed the button to view drop rate improvement, not sure what went wrong wasn't there to see it. I manually closed the upgrade catch rate window and it worked its way around.
[11:17:10] -Searching for Seabed Caves.
[11:17:14] -Changing difficulty to hard.
[11:17:15] -Searching for stage level.
[11:17:15] -Entering stage exp.
[11:17:20] -Going into battle.
[11:17:24] *Could not go into battle.
[11:17:24] Error: Could not enter map stage.
[11:17:29] Refill gems: 30/600
[11:17:29] Going into battle...
[11:17:34] Beginning to enter stage.
[11:17:35] -Searching for Seabed Caves.
[11:17:38] -Changing difficulty to hard.
[11:17:40] -Searching for stage level.
[11:17:40] -Entering stage exp.
[11:17:44] -Going into battle.
[11:17:46] Finished entering stage.
[11:20:23] Collecting quests..Done!
[11:20:24] Going into battle...
[11:20:33] Beginning to enter stage.
[11:20:33] -Searching for Seabed Caves.
[11:20:43] -Changing difficulty to hard.
[11:20:44] -Searching for stage level.
[11:20:44] -Entering stage exp.
[11:20:57] -Going into battle.
[11:21:00] *Could not go into battle.
[11:21:00] Error: Could not enter map stage.
[11:25:47] Going into battle...
[11:25:52] Beginning to enter stage.
[11:25:52] -Searching for Seabed Caves.
[11:25:56] -Changing difficulty to hard.
[11:25:57] -Searching for stage level.
[11:25:57] -Entering stage exp.
[11:26:02] -Going into battle.
[11:26:03] Finished entering stage.
[11:28:45] Collecting quests..Done!
[11:28:45] Going into battle...

Farm Astromon Script

Question - Is there a way to have farm astromon script catch legendary, exotic, super rare, rare, and variant while farming 1 star slime? Or should I just use Farm Rare script and add "catch-one-star"?

error

111111123123
i try it 5 times , but it is always to show it
i don't know why .fix it please.bro!!!

Farm rare script

Hello @GkevinOD it seems that bot stops working when Guardian Dungeon is discovered. First I thought i just need to replace image but couldn't find it in folders. Tried to debug and location is not detected then.
image

Question Location-Pause

What image do you take to replace location-pause? Mine is not recognized so it would not go into catch-mode when a rare is found.

Golem script - Stops on Autobattle

Golem script sometimes after completion clicks on Autobattle and then cannot close it.
It seems that it clicks the location for "Gem Sell confirmation" button (that is located in the same coordinates as autobattle) after the confirmation was dismissed, thus causing pop-up.

autob

sell gems issue

when the gems were full , it can't not jump to sell gems
and it is always click the battle botton, i don't know how to fix it.
issue
gems issue

.

Gold Stage Recognition

msl-bot gets is unable to identify the Gold stage. It gets stuck in a map -> difficulty -> dungeon menu -> swipe loop.

Just a little issue + fix

If someone have error when trying to get bot to go on extreme levels of story mode You need to replace a line in config.ini
difficulty-restrictions=normal,hard,expert
to
difficulty-restrictions=normal,hard,extreme

Bot keeps opening the boosted exotic rates window

Bot keeps opening the boosted exotic rates window on the world map, and then loops back to the ship and trying to exit the app then closes the window prompting confirmation to exit and loops that.

Stage of Map Selection

How do I change what stage of a map? I updated my mirage ruins map, but it could not find the EXP Bonus stage. Could it be set to Gold Bonus stage?

Hourly collect

It clicks into the super evolution lab and says its done, sometimes it works sometimes it doesn't I'm guessing there is 1 or 2 out of the 3 perspectives that is blocked by the lab.

[12:58:32] -Going into battle.
[12:58:34] Finished entering stage.
[13:01:13] Collecting quests..Done!
[13:01:35] Collect hourly..Done!

Non-background memory leak

Those who do not use background mode will experience memory leak. Will fix in a few hours, but have background mode checked for now.

Not Able To Locate Map

My setting:

map=mirage ruins
difficulty=extreme
capture=legendary,super rare, exotic, variant
guardian-dungeon=1

Log:

[08:52:54] *Loading config for Farm Rare.
[08:52:54] ~~~Starting 'Farm Rare' script~~~
[08:52:55] Going into battle...
[08:53:05] Locating map stage.
[08:54:10] Error: Could not enter map stage.
[08:54:10] ~~~Finished 'Farm Rare' script~~~
[08:54:11] *Loading config for Farm Rare.
[08:54:11] ~~~Starting 'Farm Rare' script~~~
[08:54:12] Going into battle...
[08:54:15] Locating map stage.
[08:55:20] Error: Could not enter map stage.
[08:55:20] ~~~Finished 'Farm Rare' script~~~
[08:55:20] *Loading config for Farm Rare.
[08:55:20] ~~~Starting 'Farm Rare' script~~~
[08:55:21] Going into battle...
[08:55:24] Locating map stage.
[08:56:26] Error: Could not enter map stage.
[08:56:26] ~~~Finished 'Farm Rare' script~~~
[08:56:27] *Loading config for Farm Rare.
[08:56:27] ~~~Starting 'Farm Rare' script~~~
[08:56:28] Going into battle...
[08:56:31] Locating map stage.

Seems to not find my map. I tested with 3 different computers. Only one computer is working.

map

Custom image sliming for extreme and hard evolution problem

I tried to make a universal picture with just slime and that didnt work, was wandering why. Also why not just use the 1 star photo instead? Since only the slime there is 1 star.

Also after changing catch image to 1 star it just gets stuck in monster screen grid sorted by recent. Not sure if this is related or not have not tried slime normally.

EDIT: tested them to run with original option of "Slime" and it works, it would be nice if it works for extreme and hard though.

Options:
Gems to sell: 1, 2, 3
Usable Astrogem: 900
Guardian mode: Both
Target boss: Enabled
Collect quests: Enabled
Hourly script: Enabled
Finish round: Enabled
Gems to farm: 300
Difficulty: Extreme
Astromon: one star

In the image theres only 8 slimes cause I manually evolved them when the script did not work.

Nox version. Ex. version 5.0.0.1
Bot app version. Ex. version 3.9.0
Script that you used. Farm gem
A screenshot if possible. https://imgur.com/a/7Utk5

Farm gem issue

After new update v.2.2.4.0 today, Farm gem script does not work properly for me.
It stucks at "Searching for stage level" at Phantom Forest map.
Searching for stage level -> Could not go into a stage level -> Begining to enter stage...
If I click to a stage it will work but just for the first literation then next one I have to click to a stage by myself.
Does any1 have the same problem?

Targeting Boss problem

Description:
I was trying farming elements for dark super stones. So I set mode as 'farm rare', 'Sky Falls extreme', 'boss map', 'Target Boss enabled'. However, the targeting function does not work, and that turn fall into fail. I also experienced same thing in the 'Glacial Plains' map. Is it because of lack? Would it be solved if I change my graphic card with better one? Always thank you!

Nox version. version 6.0.0.0
Bot app version. version 3.9.0
Script that you used. Farm Rare
Description of the problem.

Bot not recognizing map as of new update

Bot not recognizing map as of new update of the app. It just doesn't pick up everything, maybe they made slight changes that messed with the bot's recognition abilities.

Refill using Astrogem

Was wondering if there is a quick way for me to enable refill using astrogem with the farm script?

for farm golem mode issue

choose 10# boss ,
when battle end, it can't sell the gems for battle.
more more powerful author , i need your help!!!

Collecting hourly goes into laboratory v3.9.1

When collecting it finishes collecting but for some reason clicks into the lab I wasn't there to see it. I just saw it ended up in the lab. It had not yet bought the items from the shop. The perspective was collecting from the right side of the ship in the direction of travel.

cannot swipe

Hi there,
I'm new to this bot, it's great but I cannot make swipping work?
Can some1 help me with that? I'm using Nox 5.1.0.0
Thanks

Collecting Hourly Rewards Not Functional

I did golem and then it goes to back to village and saw "Do you want to quit screen" and close that and then went back to map and resume battle in golem. My log says:

[18:38:38] Collecting hourly rewards..
[18:38:38] Could not recognize village position.
[18:38:57] Checking for guardian dungeons...
[18:39:12] Found dungeon, attacking x1.

Collecting hourly rewards is a cool feature. Hopefully it works. Is it a delay issue where the wait for the screen to load is not enough?

Farming Gem or Catching 1 star astromon issue

The bot could not see 1 star astromon after it automatically pause the auto attack and searching for 1 star astromon to catch. After it couldn't distinguish 1 star astromon, it turn the auto attack back again and attack all those astromon.

Aprreciated for your works
Deviruchi

[Bug] Stuck on Super Laboratory

Looks like the game gets stuck when collecting hourly sometimes, this occurs when it accidentally opens up Super Laboratory that is near one of the trees and doesn't exit this screen, thus getting stuck.

Bot Not Capturing Exotic

Don't know why it's not recognizing exotic. I can't seem to find the code in global.au3

Global $imagesLegendary = ["catch-legendary", "catch-legendary2", "catch-legendary3", "catch-legendary4", "catch-legendary5"]

  • Global $imagesRare = ["catch-rare", "catch-rare2", "catch-rare3"]
  • Global $imagesSuperRare = ["catch-super-rare", "catch-super-rare2"]
  • Global $imagesExotic = ["catch-exotic", "catch-exotic2", "catch-exotic3"]

the new code asks for $varImages but global.au3 doesn't have it. Do we need to add

Global $varImages = ["catch-exotic3", "catch-exotic", "catch-exotic2", "catch-legendary", "catch-legendary2", "catch-legendary3", "catch-legendary4", "catch-legendary5", "catch-variant", "catch-variant2", "catch-variant3", "catch-rare", "catch-rare2", "catch-rare3"]

Guardian Dungeon

Hello,

I'd like to enquire how come the script doesnt work for guardian dungeons despite setting it to farm and check them?

Question on Bot

I don't know if this is the right spot for this, but here's my question:

With this bot, do I need to have the same Blue Stacks that you had while writing script for in the last version of the bot?

Bot 1.8.0 Connection Lost Debug - Set Location bug

I don't know if you are experiencing this or not, but I found a bug while trying to Set Location for Connection Lost. I did the location test and it was unknown. Then click Set Location and then typed in "lost-connection" and it did not register the new image. Tried "lost_connection" and it crashed the program with error message.

I think the prompt that list available text should be dashes rather than underscore. At first, I was confused by it and had to verified the existing images.

network connectivity issue

when the nerwork connectivity was unstable, the msl bot was stop at this interface.
I wait it about 10 min, It can not continue the next step. please fix this issue.
And thank big big big bro~~~~!
stop
network

on farm gem mode issue

when meet the exotic, legendary , rare, super rare , variant, will catch the slime first.
the battle was no found the silme , the bot will kill sach as the exotic, legendary , super rare ,rare.

Gem farming evolution misclick

Whilst in evolution for the king slime it misclicks on the previous evolution and seems to miss tap. It doesnt exit evolution preview and then afterwards gets out and taps the skills for slime by accident and then goes to farm more slime, its a 50-50 whether it misses or not it would seem.

Nox version. Ex. version 5.0.0.1
Bot app version. Ex. version 3.9.0
Script that you used. Farm gem

msl-bot 1.7.9

It seems that bot can't give up after defeat it stucks on defeat screen even after changing picture of location-defeat.bmp and location-battle-pause.bmp

  • It does not reconginze guardian dungeon if there is only one of it if 2+ it's doing only second one and third etc. only skips first one
  • Spotted today thought it was PC freeze it was bot that stuck in farm rare script it hangs on victory screen and don't click anything if i remember correctly it happens after 50+ run and if i try to stop bot it doesn't respond in any way, need to force exit it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.