[HEAD Code] Exception starting biography questions after creating custom character [RESOLVED]

Bug topics that have been resolved.
Locked
User avatar
Interkarma
Posts: 5478
Joined: Sun Mar 22, 2015 1:51 am

[HEAD Code] Exception starting biography questions after creating custom character [RESOLVED]

Post by Interkarma » Mon Oct 01, 2018 9:45 pm

After creating a custom character class, either option for biography questionnaire results in an exception.

Code: Select all

NullReferenceException: Object reference not set to an instance of an object
DaggerfallConnect.Utility.FileProxy.GetReader (Int64 position) (at Assets/Scripts/API/FileProxy.cs:310)
DaggerfallConnect.Utility.FileProxy.GetBytes (Int64 position, Int32 length) (at Assets/Scripts/API/FileProxy.cs:295)
DaggerfallConnect.Utility.FileProxy.GetBytes () (at Assets/Scripts/API/FileProxy.cs:284)
DaggerfallConnect.Arena2.BiogFile..ctor (DaggerfallWorkshop.Game.Player.CharacterDocument characterDocument) (at Assets/Scripts/API/BiogFile.cs:33)
DaggerfallWorkshop.Game.UserInterfaceWindows.StartNewGameWizard.CreateCharChooseBioWindow_OnClose () (at Assets/Scripts/Game/UserInterfaceWindows/DaggerfallStartNewGameWizard.cs:368)
DaggerfallWorkshop.Game.UserInterface.UserInterfaceWindow.RaiseOnCloseHandler () (at Assets/Scripts/Game/UserInterface/UserInterfaceWindow.cs:175)
DaggerfallWorkshop.Game.UserInterface.UserInterfaceWindow.CloseWindow () (at Assets/Scripts/Game/UserInterface/UserInterfaceWindow.cs:131)
DaggerfallWorkshop.Game.UserInterfaceWindows.CreateCharChooseBio.ChooseGenerate_OnMouseClick (DaggerfallWorkshop.Game.UserInterface.BaseScreenComponent sender, Vector2 position) (at Assets/Scripts/Game/UserInterfaceWindows/CreateCharChooseBio.cs:65)
DaggerfallWorkshop.Game.UserInterface.BaseScreenComponent.MouseClick (Vector2 clickPosition) (at Assets/Scripts/Game/UserInterface/BaseScreenComponent.cs:824)
DaggerfallWorkshop.Game.UserInterface.BaseScreenComponent.Update () (at Assets/Scripts/Game/UserInterface/BaseScreenComponent.cs:626)
DaggerfallWorkshop.Game.UserInterface.Panel.Update () (at Assets/Scripts/Game/UserInterface/Panel.cs:98)
DaggerfallWorkshop.Game.UserInterface.Button.Update () (at Assets/Scripts/Game/UserInterface/Button.cs:65)
DaggerfallWorkshop.Game.UserInterface.Panel.Update () (at Assets/Scripts/Game/UserInterface/Panel.cs:106)
DaggerfallWorkshop.Game.UserInterface.Panel.Update () (at Assets/Scripts/Game/UserInterface/Panel.cs:106)
DaggerfallWorkshop.Game.UserInterface.Panel.Update () (at Assets/Scripts/Game/UserInterface/Panel.cs:106)
DaggerfallWorkshop.Game.UserInterface.UserInterfaceWindow.Update () (at Assets/Scripts/Game/UserInterface/UserInterfaceWindow.cs:82)
DaggerfallWorkshop.Game.UserInterfaceWindows.DaggerfallBaseWindow.Update () (at Assets/Scripts/Game/UserInterfaceWindows/DaggerfallBaseWindow.cs:98)
DaggerfallWorkshop.Game.UserInterfaceWindows.DaggerfallPopupWindow.Update () (at Assets/Scripts/Game/UserInterfaceWindows/DaggerfallPopupWindow.cs:67)
DaggerfallWorkshop.Game.UserInterfaceWindows.CreateCharChooseBio.Update () (at Assets/Scripts/Game/UserInterfaceWindows/CreateCharChooseBio.cs:76)
DaggerfallWorkshop.Game.DaggerfallUI.Update () (at Assets/Scripts/Game/DaggerfallUI.cs:365)


User avatar
numidium3rd
Posts: 70
Joined: Sun Mar 25, 2018 12:34 am
Location: United States

Re: [HEAD Code] Exception starting biography questions after creating custom character

Post by numidium3rd » Mon Oct 01, 2018 10:20 pm

This is my doing. Had to change some things for the back story and forgot to handle custom classes. Just now submitted a PR.

User avatar
Interkarma
Posts: 5478
Joined: Sun Mar 22, 2015 1:51 am

Re: [HEAD Code] Exception starting biography questions after creating custom character

Post by Interkarma » Mon Oct 01, 2018 10:39 pm

That was fast! Thank you mate. :)

Locked