Results 1 to 5 of 5
  1. #1
    MSgt. Shooter Person
    Join Date
    Apr 2010
    Posts
    137

    Default Package not found in DefaultProperties (GameTypeinfo)

    Can someone please help me - my head got mixed up.

    Here one of the errors:
    Code:
    D:\UDK\UDK-2010-03\Development\Src\MyGame\Classes\MyGameLevelInfo.uc(9) : 
    	Warning, ObjectProperty UTGame.UTGame:MidGameMenuTemplate: 
    		unresolved reference to 'UTUIScene_MidGameMenu'MyGame.MyGameMidGameMenu''
    D:\UDK\UDK-2010-03\Development\Src\MyGame\Classes\MyGameLevelInfo.uc(9) : 
    	Warning, Invalid property value in defaults:     
    		MidGameMenuTemplate=UTUIScene_MidGameMenu'MyGame.MyGameMidGameMenu'
    What is the difference between EditPackages and ModEditPackages? (p.e. in DefaultEngine.ini in section [UnrealEd.EditorEngine])
    And I found "+EditPackages=xyz" and "EditPackages=xyz" ... makes the "+" a difference? Why is it there sometimes?

    Because:
    I try to write my own GameType and UnrealFrontend is not finding my package which is located in developement/src/MyGame. And I am not able to add an GameTypePrefix via my GameTypeInfo (extends UTDeathmatch).

    I could edit the DefaultGame.ini in section [Engine.GameInfo] to get most things working but still my package can not be accessed inside my GameTypeInfo.

    I checked for paths, typos and WordCase multiple times. Looks ok to me. It's just not finding "MyGame".

    Anyone knows this behaviour and can give me a hint? Do you need more info? (btw: I'm running windows 7 64bit ultimate.)

    TIA!

    Attached a lot of files:

    Code:
    ; file = DefaultGame.ini, also in UTgame.ini
    [Engine.GameInfo] 
    DefaultGame=MyGame.MyGameLevelInfo
    DefaultServerGame=MyGame.MyGameLevelInfo
    PlayerControllerClassName=MyGame.MyGamePlayerController
    DefaultGameType="MyGame.MyGameLevelInfo";
    +DefaultMapPrefixes=(Prefix="MGL",bUsesCommonPackage=FALSE,GameType="MyGame.MyGameLevelInfo")
    
    ###
    
    ; file = DefaultEngine.ini, also in UTEngine.ini
    [UnrealEd.EditorEngine]
    EditPackages=MyGame
    ; inserted as last package
    
    ; what about this?
    [ModPackages]
    ModPackagesInPath=..\..\Developement\Src\MyGame
    
    ###
    
    class MyGameLevelInfo extends UTDeathmatch;
    DefaultProperties
    {
    	Acronym="MGL"
    	Name="Default__MyGameLevelInfo"
    	HUDType=class'MyGame.MyGameHUD'
    	MidGameMenuTemplate=UTUIScene_MidGameMenu'MyGame.MyGameMidGameMenu'
    	DefaultPawnClass=class'MyGame.MyGamePawn'
    }
    
    ###
    
    class MyGameHUD extends HUD;
    
    DefaultProperties
    {
    	Name="Default__MyGameHUD"
    }
    
    ###
    
    class MyGameMidGameMenu extends UTUIScene_MidGameMenu;
    
    DefaultProperties
    {
    	Name="Default__MyGameMidGameMenu"
    }
    
    ###
    
    class MyGamePawn extends UTPawn;
    	
    simulated function bool CalcCamera(float fDeltaTime, out vector out_CamLoc, out rotator out_CamRot, out float out_FOV)
    {
    	local vector start, end, hl, hn;
    	local actor a;
    	
    	start = Location;
    	
    	if (Controller != none)
    	{
    		end = Location - Vector(Controller.Rotation) * 192.f;
    	}
    	else
    	{
    		end = Location - Vector(Rotation) * 192.f;
    	}
    	
    	a = Trace(hl, hn, end, start, false);
    	
    	if (a != none)
    	{
    		out_CamLoc = hl;
    	}
    	else
    	{
    		out_CamLoc = end;
    	}
    	
    	out_CamRot = Rotator(Location - out_CamLoc);
    	return true;
    }
    
    DefaultProperties
    {
    	Begin Object Name=WPawnSkeletalMeshComponent
    		bOwnerNoSee=false
    	End Object
    	Name="Default__MyGamePawn"
    }
    
    ###
    
    class MyGamePlayerController extends UTPlayerController;
    	
    event Possess(Pawn inPawn, bool bVehicleTransition)
    {
    	Super.Possess(inPawn, bVehicleTransition);
    	SetBehindView(true);	
    }
    
    DefaultProperties
    {
    	Name="Default__MyGamePlayerController"
    }
    ### eof

  2. #2
    Redeemer
    Join Date
    Nov 2007
    Posts
    1,207

    Default

    The + in the Default*.ini files is because they are part of a chain used to generate the real ini files (the UT*.ini files) - the plus signifies the line is added to those from the previous ini file in the chain.

    The default ini files themselves aren't used except to generate the real ini files, so either add the lines to those ini files as well, or delete the UT*.ini files to allow them to be regenerated (by running UDK).
    Nightblade, a stealth based total conversion for UT3

  3. #3
    MSgt. Shooter Person
    Join Date
    Apr 2010
    Posts
    137

    Default

    I understand that so far - thanks.

    And what can you tell me about EditPackages vs ModEditPackages?

  4. #4
    Palace Guard

    Join Date
    Jun 2007
    Location
    Christchurch
    Posts
    3,556

    Default

    As far as I know, very little.

  5. #5
    MSgt. Shooter Person
    Join Date
    Apr 2010
    Posts
    137

    Default

    The problem solved itself - but I don't know why. That's no good.


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.