# EventDispatcher in GameMode broken on 4.6?

**URL:** <https://forums.unrealengine.com/t/eventdispatcher-in-gamemode-broken-on-4-6/300543>\
**Category:** Community & Industry Discussion\
**Tags:** event-dispatcher, UE4-6, unreal-engine, bug-report, standalone, question\
**Created:** [December 4, 2014, 7:53am UTC](https://forums.unrealengine.com/t/eventdispatcher-in-gamemode-broken-on-4-6/300543 "2014-12-04T07:53:05Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe5155f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe5155f](https://forums.unrealengine.com/u/anonymous_user_fbe5155f)\
**Post date:** [December 4, 2014, 7:53am UTC](https://forums.unrealengine.com/t/eventdispatcher-in-gamemode-broken-on-4-6/300543/1 "2014-12-04T07:53:05Z")

</div>

- make an event dispatcher on custom game mode
- call it once on begin play
- use it in custom hud / custom player
- use the Standalone mode or make a build

it works fine with 4.5.1 and is completely broken in 4.6. Player and hud get ignored at the start. Level loads fine but no hud and no working default pawn class.

 ![22911-b1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/4/5c41ba87ef7b3d25f6eee29b4206f64091cfa086.png)

 ![22912-b2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/a/75a5d0410783561c3a70af50cdc33506e825db98.png)

 ![22913-b3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/b/b/8bbc0ad08d384191af1b62013d21e42da0993b79.png)

Please note that upon opening the project for the first time with 4.6 I observed the following error… But hitting compile solved the problem(?!)

 ![22916-b4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/7/8/a7831782fd51b1add0bd9a9771bb917a6fd36767.png)

Btw, the compile error will reoccur every time the project is reopened. Then I hit compile and it goes away. But Standalone mode or builds won’t work properly.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe5155f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe5155f](https://forums.unrealengine.com/u/anonymous_user_fbe5155f)\
**Post date:** [December 4, 2014, 8:26am UTC](https://forums.unrealengine.com/t/eventdispatcher-in-gamemode-broken-on-4-6/300543/2 "2014-12-04T08:26:54Z")

</div>

Is it a compile order issue? Where game mode would be compiled after hud and player causing an issue from a clean build?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe5155f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe5155f](https://forums.unrealengine.com/u/anonymous_user_fbe5155f)\
**Post date:** [December 4, 2014, 8:32am UTC](https://forums.unrealengine.com/t/eventdispatcher-in-gamemode-broken-on-4-6/300543/3 "2014-12-04T08:32:50Z")

</div>

- refresh all nodes

- compile OK

- launch Standalone game

---

<div class="post-metadata">

**Author:** ![Dredok](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dredok](https://forums.unrealengine.com/u/Dredok)\
**Post date:** [December 4, 2014, 8:35am UTC](https://forums.unrealengine.com/t/eventdispatcher-in-gamemode-broken-on-4-6/300543/4 "2014-12-04T08:35:05Z")

</div>

I have experienced this kind of behavior a lot … using eventDispatchers in UMG widgets with parameters (weird) or using them on GameModes and GameInstance (singletons). It does not work properly either on PlayerController … I used a workaround that most of the time works for me which consists on using a Blueprint to handle all eventDispatchers. It might work for you…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe5155f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe5155f](https://forums.unrealengine.com/u/anonymous_user_fbe5155f)\
**Post date:** [December 4, 2014, 8:46am UTC](https://forums.unrealengine.com/t/eventdispatcher-in-gamemode-broken-on-4-6/300543/5 "2014-12-04T08:46:51Z")

</div>

Thanks @

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe5155f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe5155f](https://forums.unrealengine.com/u/anonymous_user_fbe5155f)\
**Post date:** [December 4, 2014, 1:04pm UTC](https://forums.unrealengine.com/t/eventdispatcher-in-gamemode-broken-on-4-6/300543/6 "2014-12-04T13:04:24Z")

</div>

[@staff](https://forums.unrealengine.com/groups/staff) I believe this is what the problem is

```
[2014.12.04-13.02.22:898][0]LogBlueprint:Error: [compiler] Error No delegate function '' WeaponChangeDispatcher_Event_0 
[2014.12.04-13.02.22:899][0]LogBlueprint:Error: [compiler] Error Wrong Event Dispatcher. Refresh node Assign Weapon Change Dispatcher 
[2014.12.04-13.02.22:899][0]LogBlueprint:Error: [compiler] Error Failed to create property K2Node_CreateDelegate_OutputDelegate from OutputDelegate due to a bad or unknown type (Delegate)
[2014.12.04-13.02.22:900][0]LogBlueprint:Error: [compiler] Error Event signature error: Signature not found. WeaponChangeDispatcher_Event_0 
[2014.12.04-13.02.22:905][0]LogBlueprint:Warning: [compiler] Warning [0018.50] Compile of GameHud failed. 4 Fatal Issue(s) 0 Warning(s) [in 16 ms]

```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe5155f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe5155f](https://forums.unrealengine.com/u/anonymous_user_fbe5155f)\
**Post date:** [December 4, 2014, 1:23pm UTC](https://forums.unrealengine.com/t/eventdispatcher-in-gamemode-broken-on-4-6/300543/7 "2014-12-04T13:23:16Z")

</div>

**I have found a work around**. Instead of having the dispatcher in the GameMode BP, I put it in the PlayerController. Hud hooks onto that, so does player character, and the dispatching is done by the GameMode (For now). All seems to work and no Failure are appearing in logs anymore.

It may look like it’s a compile order issue from a clean.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [December 4, 2014, 5:45pm UTC](https://forums.unrealengine.com/t/eventdispatcher-in-gamemode-broken-on-4-6/300543/8 "2014-12-04T17:45:53Z")

</div>

Hey -

I’m attempting to reproduce the event dispatcher bug you described but I need a little clarification on your setup. Are the screenshots you provided from your GameMode BP or the HUD/Player BP?

Cheers

---

<div class="post-metadata">

**Author:** ![CombatJack](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CombatJack](https://forums.unrealengine.com/u/CombatJack)\
**Post date:** [December 4, 2014, 7:43pm UTC](https://forums.unrealengine.com/t/eventdispatcher-in-gamemode-broken-on-4-6/300543/9 "2014-12-04T19:43:06Z")

</div>

Just crosslinking these bugs. I think it’s the same thing:

[https://answers.unrealengine.com/questions/142293/46-blueprint-compiler-fails-to-resolve-bindings-to.html](https://answers.unrealengine.com/questions/142293/46-blueprint-compiler-fails-to-resolve-bindings-to.html)

---

<div class="post-metadata">

**Author:** ![CombatJack](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CombatJack](https://forums.unrealengine.com/u/CombatJack)\
**Post date:** [December 4, 2014, 11:41pm UTC](https://forums.unrealengine.com/t/eventdispatcher-in-gamemode-broken-on-4-6/300543/10 "2014-12-04T23:41:02Z")

</div>

Repro steps in my cross linked issue.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe5155f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe5155f](https://forums.unrealengine.com/u/anonymous_user_fbe5155f)\
**Post date:** [December 4, 2014, 11:44pm UTC](https://forums.unrealengine.com/t/eventdispatcher-in-gamemode-broken-on-4-6/300543/11 "2014-12-04T23:44:01Z")

</div>

@-

- b1.png - player character BP (set projectile)
- b2.png - game hud BP (set hud graphic)
- b3.png - game mode BP (hook up 1,2,3 keys to dispatch)
- b4.png - shows the HUD after a project closed/opened

HTH

---

<div class="post-metadata">

**Author:** ![paradoc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@paradoc](https://forums.unrealengine.com/u/paradoc)\
**Post date:** [December 6, 2014, 7:09pm UTC](https://forums.unrealengine.com/t/eventdispatcher-in-gamemode-broken-on-4-6/300543/12 "2014-12-06T19:09:26Z")

</div>

I’ve had this issue in 4.6 as well. my bug [Event Dispatcher Bug](https://answers.unrealengine.com/questions/143016/event-dispatcher-causes-actor-to-disappear.html) can probably be closed out in favor of this one.

In my case, migrated files with bindings would no longer appear during runtime as well.

---

<div class="post-metadata">

**Author:** ![paradoc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@paradoc](https://forums.unrealengine.com/u/paradoc)\
**Post date:** [December 8, 2014, 4:25pm UTC](https://forums.unrealengine.com/t/eventdispatcher-in-gamemode-broken-on-4-6/300543/13 "2014-12-08T16:25:40Z")

</div>

can you explain this concept a little? previously my dispatchers were coming from game mode or controller to help communicate with the persistent level. but since that is currently not working, i’m interested to know how a separate blueprint could handle this. does the new blueprint have an actor base class? do you spawn an instance of it on beginplays of your game mode or controller?

[EDIT] just to expound upon this a bit, that workaround is really helpful. basically, in my player controller i spawned an event dispatcher manager class and stored it in a variable. then, from all other classes i can access that player controller’s variable to execute whichever event dispatcher. no crashes or corrupt blueprints as a result of this method thus far.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [December 8, 2014, 5:26pm UTC](https://forums.unrealengine.com/t/eventdispatcher-in-gamemode-broken-on-4-6/300543/14 "2014-12-08T17:26:53Z")

</div>

Hey -

I have written bug report UE-6396 and submitted it to our bug database so that our engineers can investigate this issue further.

Cheers

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe5155f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe5155f](https://forums.unrealengine.com/u/anonymous_user_fbe5155f)\
**Post date:** [December 12, 2014, 7:53am UTC](https://forums.unrealengine.com/t/eventdispatcher-in-gamemode-broken-on-4-6/300543/15 "2014-12-12T07:53:54Z")

</div>

Should it be marked as Resolved if all that’s been done is a ticket being raised?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [December 12, 2014, 5:33pm UTC](https://forums.unrealengine.com/t/eventdispatcher-in-gamemode-broken-on-4-6/300543/16 "2014-12-12T17:33:25Z")

</div>

Hey -

Are you unable to use event dispatchers in other blueprints as well or does this only occur when using the custom GameMode BP?

---

<div class="post-metadata">

**Author:** ![bleeds187](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bleeds187](https://forums.unrealengine.com/u/bleeds187)\
**Post date:** [December 12, 2014, 9:47pm UTC](https://forums.unrealengine.com/t/eventdispatcher-in-gamemode-broken-on-4-6/300543/17 "2014-12-12T21:47:34Z")

</div>

,

We were having the same issue as described above and, specifically with EventDispatchers in a BP of PlayerController that are subscribed to from within a UMG widget (using GetOwningPlayer-\>CastToOurBPPC). The error messages will show up until you compile the Widget that is subscribing; additionally these callbacks are broken in cooked builds regardless of compiling the Widget. We have other dispatchers that do not appear to be broken, however, any custom events in our Widgets that subscribe to dispatchers appear to be whats affected.

Fortunately I was able to check the differences between 4.5 and 4.6 (using Perforce actually, I am at a studio that is a licensee and am posting in AnswerHub as opposed to UDN because this post already existed with Epic eyes on it). It looks like what broke this is CL#2308582, specifically the changes to //depot/UE4/Engine/Source/Editor/BlueprintGraph/Private/K2Node\_MCDelegate.cpp [revision 33]

I reverted the changed code from this CL (only the changes in K2Node\_MCDelegate.cpp) to the code that was in 4.5 and everything is now working for us. We are still testing this locally but so far it seems to be the remedy for our dispatcher regression in 4.6.

Hope that helps.

p.s. Anyone that wants to try what I am describing in their 4.6 code simply replace the implementation of UK2Node\_BaseMCDelegate::AllocateDefaultPins() and UK2Node\_BaseMCDelegate::GetDelegateSignature() in their 4.6 code using the functions from 4.5 found below:

[https://github.com/EpicGames/UnrealEngine/blob/4.5/Engine/Source/Editor/BlueprintGraph/Private/K2Node\_MCDelegate.cpp](https://github.com/EpicGames/UnrealEngine/blob/4.5/Engine/Source/Editor/BlueprintGraph/Private/K2Node_MCDelegate.cpp)

---

<div class="post-metadata">

**Author:** ![Slonopotamus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slonopotamus](https://forums.unrealengine.com/u/Slonopotamus)\
**Post date:** [December 12, 2014, 9:52pm UTC](https://forums.unrealengine.com/t/eventdispatcher-in-gamemode-broken-on-4-6/300543/18 "2014-12-12T21:52:35Z")

</div>

Great that you found problematic commit. Note that this isn’t the only thing [it broke](https://github.com/EpicGames/UnrealEngine/pull/682).

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [December 12, 2014, 9:55pm UTC](https://forums.unrealengine.com/t/eventdispatcher-in-gamemode-broken-on-4-6/300543/19 "2014-12-12T21:55:48Z")

</div>

Thanks for the additional information. This has been added to the report currently being investigated.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe5155f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe5155f](https://forums.unrealengine.com/u/anonymous_user_fbe5155f)\
**Post date:** [December 13, 2014, 1:29am UTC](https://forums.unrealengine.com/t/eventdispatcher-in-gamemode-broken-on-4-6/300543/20 "2014-12-13T01:29:45Z")

</div>

Hey ,

I guess my point is that this is marked as resolved while it’s not resolved for users. The creation of a ticket - which I can’t track - does not solve the problem for Users.

To reiterate, my **work around** is currently to not use the GameMode BP but use the player controller instead. I wouldn’t consider your answer as Resolved, as there is no linked ticket, or fix version for this issue for Users.

This only occurs to custom GameMode BP indeed. For me anyway.

Where can I track UE-tickets, even -only?

[Next page](https://forums.unrealengine.com/t/eventdispatcher-in-gamemode-broken-on-4-6/300543.md?page=2)
