basically i'm getting these warnings (followed by a "can't spawn player" error when i try to run the game):
[0041.60] C:\UDK\UDK-2012-07\Development\Src\UTGame\Classes\UTGame.uc(3369) : Warning, ClassProperty Engine.GameInfo:PlayerControllerClass: unresolved reference
to 'class'ActionPlayerController''
[0041.60] C:\UDK\UDK-2012-07\Development\Src\UTGame\Classes\UTGame.uc(3369) : Warning, Invalid property value in defaults: PlayerControllerClass=class'Acti
onPlayerController'
[0041.61] C:\UDK\UDK-2012-07\Development\Src\UTGame\Classes\UTGame.uc(3371) : Warning, ClassProperty Engine.GameInfo
efaultPawnClass: unresolved reference to '
class'ActionPawn''
[0041.61] C:\UDK\UDK-2012-07\Development\Src\UTGame\Classes\UTGame.uc(3371) : Warning, Invalid property value in defaults: DefaultPawnClass=class'ActionPaw
n'
i have basically added a folder titled "MyScripts" (with a "Classes" folder) to the "Development\Src" folder and in it ("Classes") i have added 2 files that i got from these forums: "ActionPawn.uc" and "ActionPlayerController.uc". i have also modified some properties in "UTGame.uc" to this:
Code:
PlayerControllerClass=class'ActionPlayerController'
DefaultPawnClass=class'ActionPawn'
i have also added the line "+EditPackages=MyScripts" to the "[UnrealEd.EditorEngine]" section in "DefaultEngine.ini". my guess is that UDK can't find the classes that i have added because i have missed a dot somewhere. can anyone help?
if it helps, the first line of "ActionPawn.uc" is:
Code:
class ActionPawn extends UTPawn;
and the first line of "ActionPlayerController.uc" is:
Code:
class ActionPlayerController extends UTPlayerController;
Bookmarks