Evening,
I have most of my hud changes done, but I am struggling with one last piece.
There is a class called ROUISceneAfterActionReport which displays things like the 'round start screen' which displays the gametype name boldly in the middle of the screen above the round start countdown timer.
I need to change some strings on this hud including the gametype name.
Now, I can extend this class so I have a class called FTUISceneAfterActionReport and when I create my int file, it indeed has a section called [FTUISceneAfterActionReport] where I can change the strings as required.
I then searched the RO scripts for classes that would call ROUISceneAfterActionReport. There are a number of calls in ROPlayerController to that class.
I already have my custom PlayerController extended from ROPlayerController and it does get called.
So I took the functions from ROPlayerController that called the class I am overriding and stuffed them into my custom PlayerControllerClass.
I have then tried casting ROUISceneAfterActionReport to FTUISceneAfterActionReport where it's used, but the hud does not display.
In the function ClientShowRoundStartScreen immediately after I try and call OpenScene, I get the following error in my logs:
I am wondering if this is something to do with the following line in ROPlayerController DefaultProperties:
I know i'm being thick
I have most of my hud changes done, but I am struggling with one last piece.
There is a class called ROUISceneAfterActionReport which displays things like the 'round start screen' which displays the gametype name boldly in the middle of the screen above the round start countdown timer.
I need to change some strings on this hud including the gametype name.
Now, I can extend this class so I have a class called FTUISceneAfterActionReport and when I create my int file, it indeed has a section called [FTUISceneAfterActionReport] where I can change the strings as required.
I then searched the RO scripts for classes that would call ROUISceneAfterActionReport. There are a number of calls in ROPlayerController to that class.
I already have my custom PlayerController extended from ROPlayerController and it does get called.
So I took the functions from ROPlayerController that called the class I am overriding and stuffed them into my custom PlayerControllerClass.
I have then tried casting ROUISceneAfterActionReport to FTUISceneAfterActionReport where it's used, but the hud does not display.
In the function ClientShowRoundStartScreen immediately after I try and call OpenScene, I get the following error in my logs:
Code:
[0030.18] Warning: InsertScene called with NULL Scene!
I am wondering if this is something to do with the following line in ROPlayerController DefaultProperties:
Code:
AfterActionReportSceneTemplate=ROUISceneAfterActionReport'ROGameMenus.InGame.ROUIScene_AAR'
I know i'm being thick
Last edited: