Jump to content
  • 0

help to implement Switch Bot 2.3 by Mijago


nanoia

Question

I am trying to implement the bot Mijago
 however I am having a problem can not
 log into the game
 
 this is the tutorial that I'm following to implement the bot
 
 
Now to Game.py:
Adds top of the file the following line:

 

 

 

from switchbot import Bot

 

Now you're looking for the following:

 

 

 

def __init__(self, stream):

 

and adds the following somewhere in this function code below:

 

 

 

self.switchbot = Bot()
self.switchbot.Hide()

 

Creating a new key listener
Now for the keys!
Searches the following line in the game.py:
 

 

 

onPressKeyDict[app.DIK_F4]= lambda : self.__PressQuickSlot(7)

 

Seek out the function a beautiful place and adds its following:

 

 

 

onPressKeyDict[app.DIK_F6]= lambda : self.__toggleSwitchbot()

 

 

Now the AUTO F6 it would rise
Creating the key listener function
Now we need the function!
Seek out for an empty seat in the game.py.
 

 

 

def __toggleSwitchbot(self):
if self.switchbot.bot_shown == 1:
self.switchbot.Hide()
else:
self.switchbot.Show()

 

in my game the screen is so loguin

 

cWBkg.png

 

 

in my SYSERR to the following error

 

 

 

1202 15:50:49335 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR

1202 15:50:54675 :: GRANNY: r:/granny/rt/granny_file_info.cpp(145): File has run-time type tag of 0x8000000f, which doesn't match this version of Granny (0x80000010).  Automatic conversion will be attempted.
1202 15:50:18351 :: Traceback (most recent call last):
 
1202 15:50:18351 ::   File "networkModule.py", line 245, in SetGamePhase
 
1202 15:50:18353 ::   File "system.py", line 130, in __pack_import
 
1202 15:50:18375 ::   File "
1202 15:50:18375 :: game.py
1202 15:50:18375 :: ", line 
1202 15:50:18375 :: 2197
1202 15:50:18375 :: 
 
1202 15:50:18375 ::     
1202 15:50:18375 :: self.switchbot.Hide()
 
1202 15:50:18375 ::     
1202 15:50:18375 ::  
1202 15:50:18375 ::  
1202 15:50:18375 ::  
1202 15:50:18375 :: ^
 
1202 15:50:18375 :: IndentationError
1202 15:50:18375 :: : 
1202 15:50:18375 :: expected an indented block
1202 15:50:18375 :: 

 

 

my client's version is 28249

 

thanks for listening

 

 

Link to comment

10 answers to this question

Recommended Posts

  • 0

I have a problem(more like a question) .. I did all of the above, but the switchbot doesn't start when I press F6, after I modified game.py, where exactly do I have to put the switchbot.py ?

Omg, put in root pack.  :(

Link to comment
  • 0

Game.py last lines:

def __toggleSwitchbot(self):
                if self.switchbot.bot_shown == 1:
                   self.switchbot.Hide()
                else:
                   self.switchbot.Show()  
        # END_switchbot

The problem is the placement syntax, namely TAB's.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.