Custom registered Console Commands dont work in PIE
Dear Friends at Epic,
Here's what I've done that works!
First of all, PIE doesn't work with my above setup, but it really should shouldn't it? PIE is supposed to simulate commandline game! And Hourences only wants to work in Editor PIE, not from commandline like I do.
So I need to get him access to the console commands somehow!
They work great in commandline version of the game!
What I tried
I tried overriding Unreal Ed Engine, assuming that PIE would use that
I added consolec ommands in Engine Init, and overrode the Exec
UUnrealEdEngine::Exec( UWorld* InWorld, const TCHAR* Cmd, FOutputDevice& Ar )
PIE did not recognize the new console commands!
Then I added the console commands via BP node, and now they show up in PIE and I can TAB auto complete
but when I run them,
PIE still can't find them!
So what version of the
Exec( UWorld* InWorld, const TCHAR* Cmd, FOutputDevice& Ar )
Is PIE using?!
I overrode both UGameEngine and UUnrealEdEngine and neither one worked in PIE!
Let me know!
More Code For Reference
I am receiving custom console commands successfully by overrideing GameEngine::Exec and using custom game engine in config file:
You probably don't want to be overriding the Exec function directly on UEngine, since (as you say) there is a different engine in the editor and standalone game.
You can mark any function as being an 'exec' function using UFUNCTION markup from your game mode (and any other class), and you will be able to execute it by typing that function name into the console. Here's an example from CheatManager.h:
answered Aug 19 '14 at 11:42 AM
Ben Marsh STAFF
Hey I used the solus tutorial. i get the autocomplete on the console but executing the command doesnt seem to work :/. im working with a blueprint project and i just added the code to a actor and then extended it with blueprint. but i doesnt work so do i have to use the playercontroller class in the c++ class and add the code to it?
answered May 01 '18 at 11:16 AM
I Got it working as well :) Thanks rama for ur wiki on custom commands. however i cant get ur configuration wiki working on my project :./
answered May 06 '18 at 09:19 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here