> For the complete documentation index, see [llms.txt](https://plugn-play.gitbook.io/ultimate-dice-system/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://plugn-play.gitbook.io/ultimate-dice-system/troubleshooting.md).

# Troubleshooting

Resolve common setup, input, result and presentation issues.

## Nothing happens when I press throw

Check these in order:

1. There is one `BP_DiceManager` in the active level.
2. Its `InitializeDiceManager` event was called on the **server**.
3. The intended PlayerController passes the optional tag filter.
4. A `BP_DiceThrower` exists with that PlayerController as its Owner.
5. The controller possesses a valid pawn.
6. Can Roll is enabled.
7. The system is not waiting for a forced-number key, locking camera input, or waiting for an unresolved batch.
8. The viewport has keyboard/mouse focus, Enhanced Input is enabled, and `IMC_Dice` is installed.

The configured spawn policy can reject a die when it cannot find a collision-free spawn location. Give the pawn space in front of it and reduce the selected size/count if necessary.

## The client has no HUD and cannot throw

HUD creation and dice input require a valid local configuration as well as ownership of the thrower. Check that **Show Dice HUD** is enabled, the client owns its thrower, and `DiceConfigurationPath` resolves to the selected `BP_DiceConfig` preset in the client build.

The current implementation replicates the preset's asset path and loads it locally. Older versions replicated the Data Asset object directly; an Output Log warning such as `FNetGUIDCache::SupportsObject ... DA_DiceConfig_Default ... NOT Supported` means that reference was rejected and could leave initialization waiting indefinitely.

After updating the Blueprints, restart the play session so the server and client use the new replication layout. If the preset cannot be loaded, confirm that its asset path and packaged content match between server and client.

## The demo works, but my level does not

The demo GameMode calls initialization for you. Your own level needs an equivalent authority-side call. Merely placing the manager is not enough.

You can keep your own GameMode and pawn. The manager needs eligible PlayerControllers, and throwing needs their possessed pawns.

## My controller tag is ignored

Enable **Initialize Only Tagged Controllers** under **Advanced → Initialization** in the assigned Data Asset. Add the Actor Tag to the **PlayerController on the server**, using the name in **Controller Tag**.

A tag on the pawn or a Gameplay Tag does not satisfy this check. The current default preset has the filter disabled.

## A roll stays pending or returns an invalid value

A die must be old enough, stay below both velocity thresholds for Required Still Duration, and finish with a recognizable top face. Check collision, surface stability and the settling settings.

Internal pending state is `-1`; unresolved/invalid completion is `0`; a die that disappears before being recorded can become `-2`. Handle these cases in your `RollResults` receiver.

Maximum Roll Duration ends an unresolved roll, but the current timeout branch does not run the normal settled popup/automatic-removal sequence.

## Dice remain unknown after settlement

For another player's private roll this is expected. For a public roll, confirm that the die has finished and has a valid Dice Configuration.

Dice Material should use the current `M_DiceMaster`, which exposes `Unknown` as a scalar: 0 reveals faces and 1 hides them. `RefreshDiceAppearance` applies that value to the die's dynamic instance. A replacement material with a static Unknown switch cannot respond to this runtime update.

## I want numbers instead of dots

Enable **Use Numbered Dice** under **Appearance → Dice** in the Data Asset assigned to the manager, then use that preset for your next initialized session. Leave it disabled for dots. The Blueprint controls `UseNumberedDice` on each die, so changing only the preview value in `MI_Dice` does not override the preset.

## Returning to normal throws still hides the rolling faces

Forced selection can turn unknown rolling on. Resetting the forced result to zero does not undo that toggle. Press **7** or change Unknown While Rolling in the preset.

## My RollResults event does not fire on a client

The event is a server-side interface broadcast to actors. Implement `BPI_Dice` on an actor that exists on the server, then route permitted information to the intended client if needed.

A widget implementing the interface is not included in `Get All Actors With Interface`. Also confirm that the manager remains valid until the batch completes.

## The Dice Results array shows a by-reference compiler note

A note about not returning a value by reference does not, by itself, mean the incoming array is empty. Treat Dice Results as event input data and read it or copy it to a local variable. The event is a notification, not a mechanism for returning a modified array to the sender.

Connect the **execution input** of your For Each Loop as well as its Array pin. A connected array pin alone does not execute the loop.

## The sound seems to occur on impact

The current playback call runs once during the throw. Check that the selected audio asset has no leading silence or internal delay, and that your project has not added another impact-audio path.

Use a non-looping SoundWave to isolate the behavior. Check Throw Sound Volume and the assigned preset.

## The popup shows the wrong number

Confirm the parameter is an **integer** named `User.DiceResult`, the atlas frame order matches your index calculation, and no later Niagara module overwrites SubImageIndex. For a 6×1 atlas ordered 1–6, use result minus one.

## Remapped keys do not match the HUD labels

The demo key-label row is static. Update its labels when editing `IMC_Dice`.

## I want to measure performance

Measure in your target map and build, with the same player count, effects and expected maximum simultaneous dice as your game. Compare an idle interval with repeated representative throws in Unreal Insights.

Disabling cleanup allows dice actors to accumulate. The history display limit does not limit the stored history array. Neither a fixed frame-rate promise nor a hardware-independent dice-count budget is implied by the asset.

## Current integration boundaries

* Six-sided results only; D12/D20 support needs additional implementation.
* One manager per world.
* Explicit server-side initialization.
* Results callbacks run on the server and target actors.
* Private results control presentation, not authoritative data secrecy.
* History and best scores are session state without persistence.
* Presets are configuration sources, not universal live-reload bindings.
