I can't use a custom playerController and I don't know why :)

Hello everybody !

I try to use a custom playerController to use the “qualityGameSettings” menu (from @Sraphead).
I set the playerController class I wish in the “project setting” and in my gamemode :
a4630b60f94e0cea6662127be66d200307bd01c5.jpeg

But, it seams that my game continue to use the basic playerController and not my custom one :
73a779519b9bf3249af32641f1fbb2217169a6bf.jpeg

In my level Blueprint, I’ve made some tests :
22e3ad177cb9752c3cd068d466c7d14b2f5913d2.jpeg

I really don’t understand why it doesn’t take my custom PlayerController in account…
What have I missed ?

In your last picture it is wired backwards.

Of course, I just disconnect the cast node as it fails :slight_smile:
When I run the “cast” test, I have it connected to the “set” node, at the place of the “print” node ^^.

I’m not sure why it’s not right, sorry. It looks correct to me

That’s my problem too :slight_smile:
There’s no apparent reason why it doesn’t works…

Is our gamemode getting loaded?

Unsure if this is your issue, but I’ve noticed that after swapping something in the gamemode, I sometimes am required to restart the editor for the change to take place.

@ mikepurvis :
How can I check this ?
I know that my custom character BP, set in gamemode and project setting (“default pawn class”) is used.

@ Aesais
I try this now :slight_smile:
And… nop ! It doesn’t do the trick ^^.

BTW, my project is derivative from the sideScroller BP project, I don’t know if it helps…

The same way you printed the name of the controller type. Use the node GetGameMode

Got it !
I had a world override gamemode witch was set to “sidescrolling” !
I’ve changed that and now, everything is beautiful in a marvelous world :slight_smile:

bug_playerController_04.jpg

I set the thread as solved :slight_smile:

Thanks for your help ^^

Edit : How can I set the thread “solved” ? I can’t edit the title :slight_smile:

FYI - I have had to restart UE in order for changes to default pawn and controller to take effect… especially when changing on a new map…

The solution has been found, optimisticMonkey :slight_smile:
But I will keep what you suggest in mind for the next time.

My last issue is to mark this thread as “solved” ^^.

That’s more done on AnswerHub, people don’t get Karma here, it just becomes part of the community. Someone else with the same issue will run into, someone else will Necro it in 5 years and tell you how to solve it again.