Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I cant launch, lolbot.exe idk why #258

Closed
Bbczj78 opened this issue Nov 1, 2024 · 11 comments
Closed

I cant launch, lolbot.exe idk why #258

Bbczj78 opened this issue Nov 1, 2024 · 11 comments

Comments

@Bbczj78
Copy link

Bbczj78 commented Nov 1, 2024

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

fwefwef

@iholston
Copy link
Owner

iholston commented Nov 1, 2024

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

@schulle334
Copy link

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
Copy link
Author

Bbczj78 commented Nov 1, 2024

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
Copy link

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
Copy link
Author

Bbczj78 commented Nov 1, 2024

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
Copy link

schulle334 commented Nov 1, 2024

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

@Bbczj78
Copy link
Author

Bbczj78 commented Nov 1, 2024

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
Copy link
Owner

iholston commented Nov 2, 2024

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

@Bbczj78
Copy link
Author

Bbczj78 commented Nov 2, 2024

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
Copy link
Author

Bbczj78 commented Nov 2, 2024

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
Copy link
Owner

iholston commented Nov 2, 2024

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

iholston added a commit that referenced this issue Nov 2, 2024
@iholston iholston closed this as completed Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants