Skip to content

Launching modloader hangs #12

@bitterbutt

Description

@bitterbutt

Noticed this morning that when attempting to launch the modloader that the process hangs and the GUI doesn't load. This resulted in several processes sitting in the background before I realized something was wrong.

Reviewing the logs, the modloader is timing out making requests to the site API for my existing mods. Here is an excerpt:

reqwest-0.11.17\src\blocking\client.rs:978] signaled close for runtime thread (ThreadId(35))
[WARN  C:\Users\Kate\Desktop\astro\unrealmodding\unreal_mod_manager\src\mod_processing\index_file.rs:111] Failed to download index file for "StickyBeacons.Android995", error sending request for url (https://astroneermods.space/api/mods/indexFile?modId=StickyBeacons.Android995): operation timed out
[TRACE reqwest-0.11.17\src\blocking\client.rs:976] closing runtime thread (ThreadId(15))
[TRACE reqwest-0.11.17\src\blocking\client.rs:978] signaled close for runtime thread (ThreadId(15))

I am not too familiar with rust but for some reason removing the log and then launching the loader works. So here is a quick batch script to operate as a workaround.
launch.bat

@echo off
setlocal

:: Get the current timestamp in YYYYMMDD_HHMMSS format
set timestamp=%date:~-4%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%%time:~6,2%

:: Rename the log file with timestamp
ren "modloader_log.txt" "modloader_log_%timestamp%.txt"

:: Check if logs directory exists, if not, create it
if not exist "logs\" mkdir logs

:: Move the renamed file to the logs directory
move "modloader_log_%timestamp%.txt" "logs\"

:: Launch the executable
start "" "astro_modloader.exe"

endlocal

Attached are an "old" log and a "fresh" log for review.
modloader_log_20231208_ 94434.txt
modloader_log.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions