nanoia 56 Posted December 2, 2014 Share Posted December 2, 2014 (edited) 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 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 Edited August 18, 2022 by Metin2 Dev Core X - External 2 Internal 1 Link to comment Share on other sites More sharing options...
.JαyZoN 41 Posted December 2, 2014 Share Posted December 2, 2014 Upload the game.py @pastebin, the tabs aren't correct. 1 1 Link to comment Share on other sites More sharing options...
nanoia 56 Posted December 2, 2014 Author Share Posted December 2, 2014 Upload the game.py @pastebin, the tabs aren't correct. game.py http://pastebin.com/mRS7sJYb 1 2 Link to comment Share on other sites More sharing options...
Solution .JαyZoN 41 Posted December 3, 2014 Solution Share Posted December 3, 2014 Should work now. http://pastebin.com/MtmwfSut 3 4 Link to comment Share on other sites More sharing options...
nanoia 56 Posted December 3, 2014 Author Share Posted December 3, 2014 thank worked properly Link to comment Share on other sites More sharing options...
Hakudo 1 Posted December 13, 2014 Share Posted December 13, 2014 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 ? 1 Link to comment Share on other sites More sharing options...
Reboot 772 Posted December 13, 2014 Share Posted December 13, 2014 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 Share on other sites More sharing options...
Hakudo 1 Posted December 13, 2014 Share Posted December 13, 2014 Sorry, I'm new (noob) with the client editing and modifying, anyway, I've put it in root but it still doesn't start This is my game.py http://pastebin.com/kWUs5ZW4 Link to comment Share on other sites More sharing options...
BackPlayer 55 Posted December 29, 2014 Share Posted December 29, 2014 this switchbot need python2.7 ? Link to comment Share on other sites More sharing options...
Reboot 772 Posted December 29, 2014 Share Posted December 29, 2014 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 Share on other sites More sharing options...
Thavo 4 Posted February 23, 2015 Share Posted February 23, 2015 (edited) When I press F6 the only thing that I can see is this :https://metin2.download/picture/Q0eOLhr8oMQBlS4lNSw8kP65ynXJr9Hw/.png How can I fix that? or what do I need? Edited August 30, 2022 by Metin2 Dev Core X - External 2 Internal 2 Link to comment Share on other sites More sharing options...
JeeH 0 Posted October 30, 2021 Share Posted October 30, 2021 Estou com o mesmo problema alguém conseguiria me ajudar ?, segui o tutorial porém após selecionar o personagem fica só na tela de carregamento e não vai Link to comment Share on other sites More sharing options...
GoldCash 7 Posted October 30, 2021 Share Posted October 30, 2021 24 minutes ago, JeeH said: Estou com o mesmo problema alguém conseguiria me ajudar ?, segui o tutorial porém após selecionar o personagem fica só na tela de carregamento e não vai I have this switchbot the same and I just need to drag the item to the switchbot Link to comment Share on other sites More sharing options...
JeeH 0 Posted October 30, 2021 Share Posted October 30, 2021 mine, I have not implemented it on the client, so I try to implement it, but when I follow the tutorial, it doesn't go past the loading screen, it doesn't enter the client Link to comment Share on other sites More sharing options...
GoldCash 7 Posted October 30, 2021 Share Posted October 30, 2021 Just now, JeeH said: mine, I have not implemented it on the client, so I try to implement it, but when I follow the tutorial, it doesn't go past the loading screen, it doesn't enter the client And any sysser? Link to comment Share on other sites More sharing options...
JeeH 0 Posted October 30, 2021 Share Posted October 30, 2021 1029 23:52:12049 :: CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4076 1029 23:52:12049 :: CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4077 1029 23:52:12049 :: CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4078 1029 23:52:12049 :: CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4079 1029 23:52:12049 :: CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4080 1029 23:52:12049 :: CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4081 1029 23:52:12049 :: CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4082 1029 23:52:12049 :: CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4083 1029 23:52:12049 :: CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4084 1029 23:52:12049 :: CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4085 1029 23:52:12904 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/paymessage_warning.mse) Error 1029 23:52:12904 :: CInstanceBase::RegisterEffect(eEftType=279, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/paymessage_warning.mse, isCache=1) - Error 1029 23:52:12904 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/paymessage_decide.mse) Error 1029 23:52:12904 :: CInstanceBase::RegisterEffect(eEftType=280, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/paymessage_decide.mse, isCache=1) - Error 1029 23:52:37234 :: Traceback (most recent call last): 1029 23:52:37234 :: File "networkModule.py", line 261, in SetGamePhase 1029 23:52:37234 :: File "system.py", line 160, in __hybrid_import 1029 23:52:37234 :: File " 1029 23:52:37234 :: game.py 1029 23:52:37234 :: ", line 1029 23:52:37234 :: 3287 1029 23:52:37234 :: 1029 23:52:37234 :: 1029 23:52:37234 :: self.switchbot.Hide() 1029 23:52:37234 :: 1029 23:52:37234 :: 1029 23:52:37234 :: 1029 23:52:37234 :: 1029 23:52:37234 :: ^ 1029 23:52:37234 :: IndentationError 1029 23:52:37234 :: : 1029 23:52:37234 :: expected an indented block 1029 23:52:37234 :: Link to comment Share on other sites More sharing options...
GoldCash 7 Posted October 30, 2021 Share Posted October 30, 2021 3 minutes ago, JeeH said: 1029 23:52:12049 :: CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4076 1029 23:52:12049 :: CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4077 1029 23:52:12049 :: CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4078 1029 23:52:12049 :: CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4079 1029 23:52:12049 :: CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4080 1029 23:52:12049 :: CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4081 1029 23:52:12049 :: CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4082 1029 23:52:12049 :: CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4083 1029 23:52:12049 :: CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4084 1029 23:52:12049 :: CItemManager::LoadItemList(locale/common/item_list.txt) - StrangeLine in 4085 1029 23:52:12904 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/paymessage_warning.mse) Error 1029 23:52:12904 :: CInstanceBase::RegisterEffect(eEftType=279, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/paymessage_warning.mse, isCache=1) - Error 1029 23:52:12904 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/paymessage_decide.mse) Error 1029 23:52:12904 :: CInstanceBase::RegisterEffect(eEftType=280, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/paymessage_decide.mse, isCache=1) - Error 1029 23:52:37234 :: Traceback (most recent call last): 1029 23:52:37234 :: File "networkModule.py", line 261, in SetGamePhase 1029 23:52:37234 :: File "system.py", line 160, in __hybrid_import 1029 23:52:37234 :: File " 1029 23:52:37234 :: game.py 1029 23:52:37234 :: ", line 1029 23:52:37234 :: 3287 1029 23:52:37234 :: 1029 23:52:37234 :: 1029 23:52:37234 :: self.switchbot.Hide() 1029 23:52:37234 :: 1029 23:52:37234 :: 1029 23:52:37234 :: 1029 23:52:37234 :: 1029 23:52:37234 :: ^ 1029 23:52:37234 :: IndentationError 1029 23:52:37234 :: : 1029 23:52:37234 :: expected an indented block 1029 23:52:37234 :: And where you have tutorial for switchbot? Link to comment Share on other sites More sharing options...
JeeH 0 Posted October 30, 2021 Share Posted October 30, 2021 this is the tutorial that I'm following to implement the bot Now to Game.py: Adds top of the file the following line: Quote from switchbot import Bot Now you're looking for the following: Quote def __init__(self, stream): and adds the following somewhere in this function code below: Quote self.switchbot = Bot() self.switchbot.Hide() Creating a new key listener Now for the keys! Searches the following line in the game.py: Quote onPressKeyDict[app.DIK_F4]= lambda : self.__PressQuickSlot(7) Seek out the function a beautiful place and adds its following: Quote 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. Quote def __toggleSwitchbot(self): if self.switchbot.bot_shown == 1: self.switchbot.Hide() else: self.switchbot.Show() I fixed the tabs now I have this error: 1030 11:27:24237 :: File "system.py", line 160, in __hybrid_import 1030 11:27:24237 :: File "system.py", line 122, in _process_result 1030 11:27:24238 :: File "game.py", line 56, in <module> 1030 11:27:24238 :: ImportError 1030 11:27:24238 :: : 1030 11:27:24238 :: cannot import name Bot 1030 11:27:24238 :: Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now