curently I’ve a Problem with “Add to Viewport” on a Ark-Server.
At first: everthing works in the DevKit and in SinglePlayer Mode but not in Server/Client Mode.
I want to show a User-Widget (Parent PrimalUI).
The Widet has a Picture and a close Button to this Point, nothing special.
I copied the TestPawn_Male and _Female.
Edited the PrimalGameDataBP_Mod so the new Pawns are in the Game.
In each Pawn I added a simple Create Widget and Add to Viewport-Node.
In the DevKit i can open the Widget and close ist, nice!
In SinglePlayer i can also, nice!
On a dedicated Server, nothing happens, sad!
So I decided to get the Code in an Actor and Cast to the original Pawns, PlayerController over the radial ring input.
In the End, the same problem, Editor works, SinglePlayer works, nothing happens on a Server.
So I copied a Buff, edited everything, set the Buff to the Player etc.
And … surprise surprise, same here.
On a dedicated Server, the Buff Sound appears, Buff is activ (little Icon) but the Widget doesn’t appear.
I added Server-Notifications to determ on which Point the Code on an server stopps, but according to the Notifications, everything is good, and the code gets called.
But the Widget doesn’t appear.
To this Point, am working sooo long on this Problem that i can’t tell even more what i tried at all. Replications, ForceNetUpdate, studied the unreal-wiki/documentation and so on, but in the End it took more than 40h to get me to this Point, to ask if anybody know how to do this.
Is there any tutorial out there to get custom UserWidgets to work?
How do you add a custom Widget to an Actor?
There are sooo many Mods with custom Widgets, but I can’t get it to work.
I’am so disapointed …
I can Post a lot of Screenshots if they are necessary.
But eventualy someone knows a topic or a tutorail?