Need More Info Bannerlord crash, not loading scene.xscene when using Steam Workshop paths

Users who are viewing this thread

Version number
v1.2.10
Branch
Main
Modded/unmodded
Yes, I used mods.

sinkpoint

Recruit
Summary:

I've ran into a bug where, the file
\SceneObj\Main_map\scene.xscene is not loading properly, and results in null pointer exception on settlement distance calculations.

C#:
at TaleWorlds.CampaignSystem.GameComponents.DefaultMapDistanceModel.GetDistance(Settlement fromSettlement, Settlement toSettlement, Single maximumDistance, Single& distance...

This only happens when the mod is loaded by subscribing to Steam Workshop,
and loaded from \steamapps\workshop\content\261550

When loading independently as local files in \modules they work fine.

Since other mods with custom scenes seem to work fine on Steam workshop, I can only assume that there's something about
overriding existing scene files like Main_map through these paths.

Please assist, thanks.

How to Reproduce:

  1. Subcribe to my mod and all requirements:
  2. Run single player with mods, new sandbox or campaign, crash.
    Code:
    :: batch script
    @echo off
    cd /d "C:\Program Files (x86)\Steam\steamapps\common\Mount & Blade II Bannerlord\bin\Win64_Shipping_Client\"
    start "" "Bannerlord.exe" /singleplayer _MODULES_*Bannerlord.Harmony*BetterExceptionWindow*Native*SandBoxCore*BirthAndDeath*CustomBattle*SandBox*StoryMode*AdonnaysTroopChanger*OpenSourceArmory*OpenSourceSaddlery*OpenSourceWeaponry*SpBetterBows*ChineseWeapon*SpHuaxia*_MODULES_
  3. Copy the same mods from \steamapps\workshop\content\261550 to \modules manually
  4. Unsubscribe them from Steam Workshop
  5. Run the same launch command, now works fine.

Have you used cheats and if so which:
Scene Name (if related):
Main_map\scene.xscene

Media
(Screenshots & Video):
Computer Specs:
OS: Windows 10.0.19045
GPU: nvidia RTX 4090
GPU Driver Version:
CPU: AMD Ryzen Threadripper 2950X 16-Core Processor, 3500 Mhz, 16 Core(s), 32 Logical Processor(s)
RAM: 64gb
Motherboard: Asus ROG ZENITH EXTREME
Storage Device (HDD/SSD): SSD
 
Back
Top Bottom