یه سوال دارم من وقتی تو ادیتور مپی که ساختمو اجرا می کنم و از منوی view گزینه Game Type for PIE رو تنظیم می کنم مشکلی نیست و درست اجرا میشه (دوربین طبق همون چیزی که من میخوامه )ولی وقتی همین map رو کوک می کنم برای ساختن پکیج و پکیجو میسازم وقتی نصب می کنم Game Type من اون چیزی که میخوام نیست.
البته طبق دستور این سایت این کارها رو هم کردم
کد:
Cooking & Packaging your UDK Game
So after about 7 hours of fooling around with Packaging our UDK game, I thought I would try to save you some pain and give you some pointers.
In DefaultEngine.ini
In the URL section, make sure that the map you wish to load first is specified in Map, LocalMap and TransitionMap
[URL]
Map=LittleLisa_MAIN.udk
LocalMap=LittleLisa_MAIN.udk
TransitionMap=LittleLisa_MAIN.udk
Add all your extra UPK packages from your game to the [Engine.PackagesToAlwaysCook] section with the +Package= prefix. For example:
[Engine.PackagesToAlwaysCook]
bStandaloneSFServerSideOnly=true
+Package=Level1_Models
+Package=LittleLisa_Backyard
Any sound files for some reason must be under [Engine.StartupPackages]. eg:
[Engine.StartupPackages]
+Package=LittleLisa_Sound
In DefaultGame.ini
Ensure the GameTypes are referring to your own UTGame extended class.
PlayerControllerClassName=LittleLisa.LLPlayerController
DefaultGame=LittleLisa.LLStartUp
DefaultServerGame=LittleLisa.LLStartUp
DefaultMapPrefixes=(Prefix="LittleLisa",bUsesCommonPackage=FALSE,GameType="UTGame.LLStartUp")
ولی نمیدونم من به جای
LittleLisa.LLStartUp چی باید بزارم.من اینو گذاشتم جواب نداد: UTGame.TMPGame
کد GamreType.uc من به این صورته:
کد:
class TMPGame extends UTGame;
static event class<GameInfo> SetGameType(string MapName, string Options, string Portal)
{
return class'TMPGame';
}
defaultproperties
{
DefaultPawnClass =class'TMPPawn'
PlayerControllerClass =class'TMPPlayerController'
}