Norbyte / bg3se

Baldur's Gate 3 Script Extender
Other
1.02k stars 63 forks source link

Script Extender Not Loading Mods #391

Open a-maclean-7 opened 1 month ago

a-maclean-7 commented 1 month ago

I have attempted solutions to common problems

Yes

I have checked that my game version is supported

Yes

OS

Windows 11

Platform

Steam

Description

Mods are not loading, the game does not crash, and runs as if no mods are even activated

Indications

Debug console reports that it could not find the game thread (to pause it and load mods?) The same game, mod manager, script extender and mod files all work on my housemates PC but his script extender console does not output the errors that I am seeing

Diagnostic Files

BG3 Diagnostic Data.txt

Steps to Reproduce

Run BG3MM Activate 5e Spells mod Export order to game (have verified file shows mod details) Run BG3 Start new game and see mod has not loaded as spell list should have more

Expected Behavior

The mod should load as seen on my housmates PC

Actual Behavior

BG3 runs and the main menu shows the script extender version. No mods load however, and any attempts to join a modded lobby fail.

The BG Script Extender Debug Console outputs the following; BG3 Script Extender Debug Console.txt

a-maclean-7 commented 1 month ago

I've tried the following;

different combinations of "Run as Admin" with and without the dx11 flag set with and without the Launch through Steam flag using the (as of writing) current dev script extender

Norbyte commented 1 month ago

Make sure mods are actually in the load order. You can verify it from the SE console by typing

client
_D(Ext.Mod.GetLoadOrder())

It will show a list of mod GUIDs loaded: image

a-maclean-7 commented 1 month ago

BG3Ext v16 built on May 14 2024 21:45:04 Game version v4.50.22.896 OK ScriptExtender::Initialize: Starting Suspending client thread Could not suspend client thread (thread not found!) Starting Lua debugger server Lua debugger listening on 127.0.0.1:9998; DBG protocol version 3 Library startup took 1293 ms We're already past App load, triggering CoreLibInit LibraryManager::PostStartupFindLibraries() took 139 ms Could not resume client thread (thread not found!) Extender launcher thread exiting Extender runtime log written to 'C:/Users/alasd/AppData/Local/Larian Studios/Baldur's Gate 3//Script Extender Logs\Extender Runtime 2024-05-17 13-10-01.log' Initializing client with target context Load Modded achievements enabled. bg3se::ExtensionStateBase::LuaResetInternal(): LUA VM reset. Initializing client with target context Game bg3se::ExtensionStateBase::LuaResetInternal(): LUA VM reset. ecl::ScriptExtender::OnGameStateChanged(): Loaded module client Entering server Lua console. S >> S >> _D(Ext.Mod.GetLoadOrder()) Cannot queue server commands in game state Uninitialized S >> Registered custom server network protocol Registered custom client network protocol Appending extender signature to ClientConnect Sending ExtenderHello to client Got extender support notification from host (version 1) Got extender support notification from user 65536 (version 1) esv::ScriptExtender::OnGameStateChanged(): Unloading session ecl::ScriptExtender::OnGameStateChanged(): Unloading session esv::ScriptExtender::OnGameStateChanged(): Loaded module Initializing server with target context Game CustomFunctionManager::ClearDynamicEntries(): Clearing dynamic functions bg3se::ExtensionStateBase::LuaResetInternal(): LUA VM reset. esv::ScriptExtender::OnGameStateChanged(): Loading game session ecl::ScriptExtender::OnClientGameStateChanged(): Loading game session Initializing client with target context Game bg3se::ExtensionStateBase::LuaResetInternal(): LUA VM reset. ScriptExtender::RestartLogging: Starting Osiris Runtime debug logging. Path=C:/Users/alasd/AppData/Local/Larian Studios/Baldur's Gate 3//Script Extender Logs\Osiris Runtime 2024-05-17 13-10-58.log ScriptExtender::OnAfterOsirisLoad: 146182 nodes ExtensionStateServer::StoryLoaded() CustomFunctionInjector mapping phase: 1289 -> 1289 functions OsirisExtender::OnInitGame() OnRegisterDIVFunctions END client Switching to client context. C >> _D(Ext.Mod.GetLoadOrder()) Cannot queue client commands in game state PrepareRunning C >>

SheeraDarkphoenix commented 3 weeks ago

There may be a mod that is causing the mods to not load up. For me, it was Zip's heads. I figured that out by making building a list of mods through BG3MM, and adding little by little different mods to see if the SE would load up in game. Once the notification popped up saying that the SE loaded up, I'd exit the game and add more mods. If the notification didn't pop up, I'd exit out, take out a few of the mods I just added in, and check to see if the notification pops up. I use both Vortex and BG3MM for mods, Vortex for downloading and updating, BG3MM for adding them into the game. Make sure you also have certain mods in the Load Order in the right place or some of the mods won't work properly.