Hello, I have lately been having ALOT of issues with this savign system, and i just cannot get it to work how it is suppose to, and its really frustrating cause i cant progress with my game development at all untill this bug is fixed. I am currently on Lecture 137, and i Havent touched the Weapon classes or portals in a long time, but it was around changing over to the “Progression” Scriptable object that i found out something broke my entire saving system, and iv been sitting here for hours trying to narrow down whats breaking it
As it stands right now, if my Fighter.cs class saving script is even enabled my entire game will crash if i even try to step into a portal (it crashes when it tries to save). my error is " NullReferenceException: Object reference not set to an instance of an object "
. I had this error before, and i fixed it by moving my EquipWeapon function into the Awake(), so idk why it just dicided to breakMy other issue, is the fact the saving system isnt even working in general anymore after the Implementation of the “Progression” object and i have no idea how to fix it or what is causing the issue.
The Savign system works(Minus the weapons), but something with the portals is completely busted. the stats save within the scene. So all my stats in Scene 0 will stay, and if i close the game and re open it, all my stats will load in like they are suppose to; however, when i go through my Scene 1, it dosent carry over any of my Stats from Scene 0. The two scenes are working copmpletely independant of each other. This is the savign for my Health.cs I have Dub lines to see in the console whats happening
To Sum most of this up, my main issue is nothing carries between scenes(save only within the scene), and my weapons dont save in general