0 of 0

File information

Last updated

Original upload

Created by

aedenthorn

Uploaded by

aedenthorn

Virus scan

Safe to use

Tags for this mod

About this mod

Fixes a problem that prevents scenes from loading properly, causing players to spawn under the map, preventing monsters from spawning, etc.

Permissions and credits
Changelogs
Donations
This is just a simple fix for a game bug preventing scenes from loading correctly.

If you are having problems with entering a scene (battle, dungeon, etc.), try this and see if it helps.

Specifically, it fixes this exception in the Player.log file:

NullReferenceException: Object reference not set to an instance of an object
  at Global.EndDay () [0x00065] in <97eeb995865c435bb596bd24351b52ed>:0
  at Scene.Start () [0x00397] in <97eeb995865c435bb596bd24351b52ed>:0

The exception is caused by the game removing Global.siegingArmy without removing Global.siegingLocation, and then Global.EndDay expecting Global.siegingArmy to be set if Global.siegingLocation is set. Since that isn't always the case, Global.EndDay can crash, causing Scene.Start to fail to complete


Technical

This mod requires BepInEx to be installed for SWPT. Detailed instructions on installing BepInEx are here.

To install this mod, place the contents of its zip file in the BepInEx/plugins folder (create it if the folder doesn't exist).


Code is at https://github.com/aedenthorn/SWPTMods.

If you want to complain or ask for help or help me test my mods, you can visit my Discord server.