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.
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:
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
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:
- Subcribe to my mod and all requirements:
Steam Workshop::Huaxia Kingdom
steamcommunity.com - 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_
- Copy the same mods from \steamapps\workshop\content\261550 to \modules manually
- Unsubscribe them from Steam Workshop
- 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