This time I thought I would give UDK RTS a try. Called the project GoldenGoliaths, this time.
Extracted UDK RTS Starter Kit contents into place (Development to Development, UDKGame to UDKGame). Then opened GoldenGoliaths/UDKGame/Config/DefaultEngine.ini and added UDKRTSGame into the UnrealEd.EditorEngine section:
[UnrealEd.EditorEngine]
+EditPackages=UDKRTSGame
+EditPackages=GoldenGoliathsGame
UDKRTSGame should probably be included before your game package.
Compiled, and on running the editor, it compiled all the materials and shaders for UDKRTS game content as well.
Everything seemed fine until I subclassed UDKRTS classes in mine:
GoldenGoliathsGameInfo.uc:
class GoldenGoliathsGameInfo extends UDKRTSGameInfo
dependson(UDKRTSGameInfo);
auto State PendingMatch
{
Begin:
StartMatch();
}
defaultproperties
{
}
GoldenGoliathsPawn.uc:
class GoldenGoliathsPawn extends UDKRTSPawn
dependson(UDKRTSPawn) config(Game);
GoldenGoliathsPlayerController.uc:
class GoldenGoliathsPlayerController extends UDKRTSPlayerController
dependson(UDKRTSPlayerController) config(Game);
Got a bunch of compilation errors:
* Error, Superclass UDKRTSGameInfo of class GoldenGoliathsGameInfo not found
* Error, Superclass UDKRTSPawn of class GoldenGoliathsPawn not found
* Error, Superclass UDKRTSPlayerController of class GoldenGoliathsPlayerController not found
Even though, I had already UDKRTSGame loaded before GoldenGoliathsGame in the DefaultEngine.ini file.
As it turned out, GoldenGoliathsGame was already loaded before anything in the DefaultEngine.ini file. The solution was to open GoldenGoliaths/UDKGame/Config/DefaultEngineUDK.ini (superclass of DefaultEngine.ini) and add UDKRTSGame there as well, before GoldenGoliathsGame:
[UnrealEd.EditorEngine]
+EditPackages=UDKRTSGame
+EditPackages=GoldenGoliathsGame
At least got it compiling now.
No comments:
Post a Comment