Closed Bbczj78 closed 40 minutes ago
This is a bug, it will be fixed in the next release this weekend.
In the logs_tab.py replace def create_log_table(self) -> None:
with my
def create_log_table(self) -> None:
"""Reads in logs from the logs folder and populates the logs tab"""
""" Make sure the LOG_DIR exists"""
if not os.path.exists(config.LOG_DIR):
os.makedirs(config.LOG_DIR)
if self.logs_group is not None:
dpg.delete_item(self.logs_group)
dpg.set_value('LogUpdatedTime', 'Last Updated: {}'.format(datetime.now()))
with dpg.group(parent=self.id) as self.logs_group:
for filename in self.sorted_dir_creation_time(config.LOG_DIR):
f = os.path.join(config.LOG_DIR, filename)
if f.endswith('.1'):
os.unlink(f)
continue
if os.path.isfile(f):
with dpg.collapsing_header(label=filename):
with open(f, "r") as file:
dpg.add_input_text(multiline=True, default_value=file.read(), height=300, width=600, tab_input=True)
In the logs_tab.py replace
def create_log_table(self) -> None:
with mydef create_log_table(self) -> None: """Reads in logs from the logs folder and populates the logs tab""" """ Make sure the LOG_DIR exists""" if not os.path.exists(config.LOG_DIR): os.makedirs(config.LOG_DIR) if self.logs_group is not None: dpg.delete_item(self.logs_group) dpg.set_value('LogUpdatedTime', 'Last Updated: {}'.format(datetime.now())) with dpg.group(parent=self.id) as self.logs_group: for filename in self.sorted_dir_creation_time(config.LOG_DIR): f = os.path.join(config.LOG_DIR, filename) if f.endswith('.1'): os.unlink(f) continue if os.path.isfile(f): with dpg.collapsing_header(label=filename): with open(f, "r") as file: dpg.add_input_text(multiline=True, default_value=file.read(), height=300, width=600, tab_input=True)
Where do i find that ? Because i just have one file, and log file doesnt exist
You need to load Source.zip and start it with Python (this is also safer to avoid a ban). Inside the folder
"lol-bot-3.0.0\lolbot\view\"
, there is a file called logs_tab.py. Open this file with a text editor and replace lines 44 to 58.
You need to load Source.zip and start it with Python (this is also safer to avoid a ban). Inside the folder
"lol-bot-3.0.0\lolbot\view"
, there is a file called logs_tab.py. Open this file with a text editor and replace lines 44 to 58.
Still the same, i tried to run from the main file, with python but it doesnt launch
same error or ? but you also edited the logs_tab.py?
same error or ? but you also edited the logs_tab.py?
Yeah i edited, when im trying to launch main exe nothing happens, but when im trying too launch from lolbot still the same error
if you simply go into Users\emili\AppData\Local\LoLBot and create a folder called logs it should run.
if you simply go into Users\emili\AppData\Local\LoLBot and create a folder called logs it should run.
that worked thanks, but now it cant login to my account
if you simply go into Users\emili\AppData\Local\LoLBot and create a folder called logs it should run.
Working, thanks, Now i got another problem :(
This was after match, doesnt loop
yep, another bug that should be fixed in the next release
I dowloaded latest version off this bot, maybe i dont know how to run that, but i need help