iholston / lol-bot

An account leveling bot for League of Legends written in Python
MIT License
308 stars 52 forks source link

I cant launch, lolbot.exe idk why #258

Closed Bbczj78 closed 40 minutes ago

Bbczj78 commented 1 day ago

I dowloaded latest version off this bot, maybe i dont know how to run that, but i need help

fwefwef

iholston commented 23 hours ago

This is a bug, it will be fixed in the next release this weekend.

schulle334 commented 22 hours ago

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)
Bbczj78 commented 20 hours ago

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)

Where do i find that ? Because i just have one file, and log file doesnt exist

schulle334 commented 19 hours ago

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.

Bbczj78 commented 19 hours ago

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

schulle334 commented 18 hours ago

same error or ? but you also edited the logs_tab.py?

Bbczj78 commented 18 hours ago

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

iholston commented 16 hours ago

if you simply go into Users\emili\AppData\Local\LoLBot and create a folder called logs it should run.

Bbczj78 commented 15 hours ago

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

Bbczj78 commented 15 hours ago

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 :(

asds

This was after match, doesnt loop

iholston commented 1 hour ago

yep, another bug that should be fixed in the next release