References aren't working in the Packaged project but do in the editor environment

I hope this is the right place to post. I’ve been working on a game with dice similar to Balatro. I’m in a Blueprint only project. I’m having serious issues though trying to get the packaged build to work. Currently I’m just making sure that what I’ve made of the game that currently works in the editor standalone game works when I package it. It doesn’t, obviously.

The problem is that I currently use a lot of references between my Blueprints. While they all work in the standalone game editor test environment, any of the ones that come from a casted Game mode don’t work at all. I made my own game mode class where I do most of the logic for my game. I made several reference variables in there that work but then once I assign them to other reference variables in other Blueprints, they’re all null. I also made my own HUD class that does both handles the UI and, once a button is pressed, using a reference to the Dice Manager Blueprint to spawn the dice and add them to a Dice Array.

I’m fairly sure that this is an issue in initialization order but I have no idea what to do. I tried to create a timer to only assign those references after the game mode has created them. I tried using an event dispatcher to do that same thing. Neither worked.

Again, I also have no problem getting all of this to run in the standalone game editor test environment. It’s only messing up in the Packaged game. It

It’s very likely I’m doing something very obvious wrong because this is my first complicated project in Unreal. Any help would be immensely appreciate for how I can get my references to be valid. I will also, obviously, provide any additional information needed because this is really annoying and I want to figure it out so I can resume working.

Game mode is server-side only. Clients do not get a copy of it in packaged build.

Even though it’s a single player game not multiplayer? Is there a better place to do all of the logic I have for score calculation and such then? Should I even bother using a custom Game mode at all?

For single player it’s fine. Just route through the controller to GM, or GS.

I’d do scoring in the Game State, then pass copy values to the player state for UI usage.

I’ll try it out, thanks!