Results 1 to 12 of 12
  1. #1
    MSgt. Shooter Person
    Join Date
    Aug 2011
    Location
    Austin, TX
    Posts
    53

    Default [Solved] Unreal Frontend cooked game not using custom scripts

    I've tried cooking my mod 10 times; the game loads my custom level but does not seem to want to run my scripts, and I can't figure out why (they're getting compiled by Frontend, but aren't being used). My mod works just fine in UDKLift (UDKLift server 8way.udk?game=UPong.UPongGameInfo). The mod name is UPong, the game info class is UPongGameInfo.uc, and the map is 8way.udk. In the Frontend I'm running this URL: 8way.udk?game=UPong.UPongGameInfo


    Here's the config files I've edited and the edited bits. I'm following the Eat3D tutorial videos so I didn't edit DefaultGameUDK or DefaultEngineUDK (I tried adding UPong to the ModEditPackages line but it didn't do anything).

    Defaultgame
    Code:
    [Engine.GameInfo]
    DefaultGame=UPong.UPongGameInfo
    DefaultServerGame=UPong.UPongGameInfo
    PlayerControllerClassName=UDKBase.SimplePC
    GameDifficulty=+1.0
    MaxPlayers=16
    DefaultGameType="UPong.UPongGameInfo";
    +DefaultMapPrefixes=(Prefix="DM",bUsesCommonPackage=FALSE,GameType="UTGame.UTDeathmatch")
    +DefaultMapPrefixes=(Prefix="CTF",bUsesCommonPackage=FALSE,GameType="UTGameContent.UTCTFGame_Content")
    +DefaultMapPrefixes=(Prefix="VCTF",bUsesCommonPackage=FALSE,GameType="UTGameContent.UTVehicleCTFGame_Content")
    
    [UPong.UPongGameInfo]
    GoalScore=5
    bWeaponStay=true
    bPlayersBalanceTeams=true
    TimeLimit=20
    DefaultEngine
    Code:
    [URL]
    MapExt=udk
    ; Any additional map extension to support for map loading.  
    ; Maps without an extension always saved with the above MapExt
    AdditionalMapExt=mobile
    Map=8way.udk
    LocalMap=8way.udk
    TransitionMap=EnvyEntry.udk
    EXEName=UPong.exe
    DebugEXEName=DEBUG-UTGame.exe
    GameName=UPong
    
    [Engine.ScriptPackages]
    +NonNativePackages=UTGame
    +NonNativePackages=UTGameContent
    +NonNativePackages=UPong
    
    [UnrealEd.EditorEngine]
    +EditPackages=UTGame
    +EditPackages=UTGameContent
    +EditPackages=UPong
    
    [Engine.PackagesToAlwaysCook]
    +Package=EnvyEntry
    +Package=UPong
    
    [Engine.StartupPackages]
    +Package=FX_HitEffects
    +Package=UDKFonts
    +Package=UTGame
    +Package=UPong
    Any ideas?
    Last edited by Dainslaif; 08-12-2012 at 03:14 AM.

  2. #2
    Palace Guard

    Join Date
    Jun 2007
    Location
    Christchurch
    Posts
    3,556

    Default

    When you launch the server, what does the log say?

  3. #3
    MSgt. Shooter Person
    Join Date
    Aug 2011
    Location
    Austin, TX
    Posts
    53

    Default


  4. #4
    Marrow Fiend
    Join Date
    Jul 2006
    Location
    UT40k
    Posts
    4,221

    Default

    try coping the upong.u file from your \UDKGame\Script folder to your \UDKGame\CookedPC then re-package your game and re-install
    UT40K:The Chosen - Warhammer 40,000 for UDK
    ut40kgeodav - UT3 Tutorials - Characters - Weapons - Vehicles - FaceFX
    UDK Tutorials - Basics - Vehicles - Characters - Weapons

  5. #5
    MSgt. Shooter Person
    Join Date
    Aug 2011
    Location
    Austin, TX
    Posts
    53

    Default

    Copied it over, repackaged and reinstalled, same result. Oddly enough, there was no upong.u in the CookedPC folder, from the cooking logs it's being bundled into Startup.upk.

    Compile logs
    Code:
    Unreal Frontend started 8/10/2012 2:22:04 PM...
    [COMMANDLET 'UDK.exe make -full' STARTED IN ''] Aug 10, 2:22 PM
    Init: Version: 9953
    Init: Epic Internal: 0
    Init: Compiled (32-bit): May 11 2012 08:51:46
    Init: Command line:  -full
    Init: Base directory: D:\UDK\UDK-2012-05\trunk\Binaries\Win32\
    Init: Character set: Unicode
    Log: Executing Class UnrealEd.MakeCommandlet
    --------------------Core - Release--------------------
    Analyzing...
    Scripts successfully compiled - saving package 'D:\UDK\UDK-2012-05\trunk\Binaries\Win32\..\..\UDKGame\Script\Core.u'
    --------------------Engine - Release--------------------
    Analyzing...
    Scripts successfully compiled - saving package 'D:\UDK\UDK-2012-05\trunk\Binaries\Win32\..\..\UDKGame\Script\Engine.u'
    --------------------IpDrv - Release--------------------
    Analyzing...
    Scripts successfully compiled - saving package 'D:\UDK\UDK-2012-05\trunk\Binaries\Win32\..\..\UDKGame\Script\IpDrv.u'
    --------------------GFxUI - Release--------------------
    Analyzing...
    Scripts successfully compiled - saving package 'D:\UDK\UDK-2012-05\trunk\Binaries\Win32\..\..\UDKGame\Script\GFxUI.u'
    --------------------GameFramework - Release--------------------
    Analyzing...
    Scripts successfully compiled - saving package 'D:\UDK\UDK-2012-05\trunk\Binaries\Win32\..\..\UDKGame\Script\GameFramework.u'
    --------------------UnrealEd - Release--------------------
    Analyzing...
    Scripts successfully compiled - saving package 'D:\UDK\UDK-2012-05\trunk\Binaries\Win32\..\..\UDKGame\Script\UnrealEd.u'
    --------------------GFxUIEditor - Release--------------------
    Analyzing...
    Scripts successfully compiled - saving package 'D:\UDK\UDK-2012-05\trunk\Binaries\Win32\..\..\UDKGame\Script\GFxUIEditor.u'
    --------------------WinDrv - Release--------------------
    Analyzing...
    Scripts successfully compiled - saving package 'D:\UDK\UDK-2012-05\trunk\Binaries\Win32\..\..\UDKGame\Script\WinDrv.u'
    --------------------OnlineSubsystemPC - Release--------------------
    Analyzing...
    Scripts successfully compiled - saving package 'D:\UDK\UDK-2012-05\trunk\Binaries\Win32\..\..\UDKGame\Script\OnlineSubsystemPC.u'
    --------------------OnlineSubsystemSteamworks - Release--------------------
    Analyzing...
    Scripts successfully compiled - saving package 'D:\UDK\UDK-2012-05\trunk\Binaries\Win32\..\..\UDKGame\Script\OnlineSubsystemSteamworks.u'
    --------------------OnlineSubsystemGameCenter - Release--------------------
    Analyzing...
    Scripts successfully compiled - saving package 'D:\UDK\UDK-2012-05\trunk\Binaries\Win32\..\..\UDKGame\Script\OnlineSubsystemGameCenter.u'
    --------------------UDKBase - Release--------------------
    Analyzing...
    Scripts successfully compiled - saving package 'D:\UDK\UDK-2012-05\trunk\Binaries\Win32\..\..\UDKGame\Script\UDKBase.u'
    --------------------UTEditor - Release--------------------
    Analyzing...
    Scripts successfully compiled - saving package 'D:\UDK\UDK-2012-05\trunk\Binaries\Win32\..\..\UDKGame\Script\UTEditor.u'
    --------------------UTGame - Release--------------------
    Analyzing...
    Scripts successfully compiled - saving package 'D:\UDK\UDK-2012-05\trunk\Binaries\Win32\..\..\UDKGame\Script\UTGame.u'
    --------------------UTGameContent - Release--------------------
    Analyzing...
    Scripts successfully compiled - saving package 'D:\UDK\UDK-2012-05\trunk\Binaries\Win32\..\..\UDKGame\Script\UTGameContent.u'
    --------------------UPong - Release--------------------
    Analyzing...
    Scripts successfully compiled - saving package 'D:\UDK\UDK-2012-05\trunk\Binaries\Win32\..\..\UDKGame\Script\UPong.u'
    Success - 0 error(s), 0 warning(s)
    Execution of commandlet took:  7.21 seconds
    [Aug 10, 2:22 PM] COMMANDLET 'UDK.exe make -full' SUCCEEDED
    Cook logs
    Code:
    Unreal Frontend started 8/10/2012 2:20:27 PM...
    [COMMANDLET 'UDK.exe CookPackages -platform=PC 8way.udk -full -multilanguagecook=INT' STARTED IN ''] Aug 10, 2:20 PM
    Init: Version: 9953
    Init: Epic Internal: 0
    Init: Compiled (32-bit): May 11 2012 08:51:46
    Init: Command line:  -platform=PC 8way.udk -full -multilanguagecook=INT
    Init: Base directory: D:\UDK\UDK-2012-05\trunk\Binaries\Win32\
    Init: Character set: Unicode
    Log: Executing Class UnrealEd.CookPackagesCommandlet
    Cooking with SEPARATE Lighting TextureFileCache...
    Cooking with SEPARATE Character TextureFileCache...
    Ignoring multithreaded flag because shaders are out of date...
     
    GeneratePersistentMapList> Clearing existing lists
        There are 1 levels to process
    Adding level ..\..\UDKGame\Content\Maps\8way.udk for cooking...
    Adding level ..\..\UDKGame\Content\Maps\UT3\UDKFrontEndMap.udk for cooking...
    Adding package ..\..\UDKGame\Content\Shared\UDKFonts.upk for cooking...
    Adding package ..\..\UDKGame\Content\UT3\Sounds\A_Interface.upk for cooking...
    Adding level ..\..\UDKGame\Content\Maps\UT3\EnvyEntry.udk for cooking...
    Adding script ..\..\UDKGame\Script\UPong.u for cooking...
    Adding package ..\..\UDKGame\Content\UT3\GFx\UDKFrontEnd.upk for cooking...
    Running w/ PMap Object size optimization DISABLED.
    Materials will be cleaned up...
    StaticMesh materials will be cleaned up...
    StaticMesh CleanUp: Adding Class      : Engine.ActorFactory
    StaticMesh CleanUp: Adding Class      : Engine.SequenceObject
    Cooking UDKFrontEnd
    Cooking [Seekfree] Core
    Cooking [Seekfree] Engine
    Cooking [Seekfree] GFxUI
    Cooking [Seekfree] IpDrv
    Cooking [Seekfree] WinDrv
    Cooking [Seekfree] GameFramework
    Cooking [Seekfree] OnlineSubsystemSteamworks
    Cooking [Seekfree] UDKBase
    Cooking [Seekfree] UnrealEd
    Cooking [Seekfree] UTEditor
    Cooking [Seekfree] GFxUIEditor
    Cooking UTGameContent
    Cooking [Combined] Startup with:
       EngineDebugMaterials
       EngineFonts
       EngineMaterials
       EngineSounds
       SoundClassesAndModes
       UDKFonts
       UI_Fonts_Final
       FX_HitEffects
       A_Interface
       UI_Fonts
       UPong
       UTGame
    TagCookedStartupObjects> Using current PersistentCookerData...
    Tagging 1524 always loaded objects for Core
    Tagging 32613 always loaded objects for Engine
    Tagging 758 always loaded objects for GFxUI
    Tagging 2687 always loaded objects for IpDrv
    Tagging 98 always loaded objects for WinDrv
    Tagging 3417 always loaded objects for GameFramework
    Tagging 1355 always loaded objects for OnlineSubsystemSteamworks
    Tagging 2835 always loaded objects for UDKBase
    Tagging 29584 always loaded objects for Startup
    Tagging always loaded objects for language INT
        Tagging 15 localized always loaded objects for UDKBase
        Tagging 244 localized always loaded objects for Startup
    Tagging 0 already handled materials
    Tagging 0 already handled material instances
    Cooking [Seekfree] EnvyEntry
    Failed to find supported game type(s) for EnvyEntry
    Cooking [Seekfree] UDKFrontEndMap
    Failed to find supported game type(s) for UDKFrontEndMap
       Forcing UDKFrontEnd into UDKFrontEndMap
       Forcing UI_FrontEnd_Art into UDKFrontEndMap
    Cooking [Seekfree] 8way
    Failed to find supported game type(s) for 8way
    Copying shader cache RefShaderCache-PC-D3D-SM3.upk
    Copying shader cache RefShaderCache-PC-D3D-SM5.upk
    Copying shader cache RefShaderCache-PC-OpenGL.upk
    Success - 0 error(s), 0 warning(s)
    Execution of commandlet took:  18.30 seconds
    [Aug 10, 2:20 PM] COMMANDLET 'UDK.exe CookPackages -platform=PC 8way.udk -full -multilanguagecook=INT' SUCCEEDED
    Last edited by Dainslaif; 08-10-2012 at 03:23 PM.

  6. #6
    Marrow Fiend
    Join Date
    Jul 2006
    Location
    UT40k
    Posts
    4,221

    Default

    just re-read the first post, i could say ask Eat3d for help but that would be worthless

    the answer is the modify the default ini's files not the udk ini's , have a watch of my FREE UDK Basics Videos on my youtube channel, you'll find the workflow works any many people hear can tell you
    UT40K:The Chosen - Warhammer 40,000 for UDK
    ut40kgeodav - UT3 Tutorials - Characters - Weapons - Vehicles - FaceFX
    UDK Tutorials - Basics - Vehicles - Characters - Weapons

  7. #7
    MSgt. Shooter Person
    Join Date
    Aug 2011
    Location
    Austin, TX
    Posts
    53

    Default

    Heh - I actually did email the author, but I haven't heard back yet. I figured crowdsourcing the info would be faster.

    Yeah, I've only edited the defaultgame.ini and defaultengine.ini, I left the UDK ones alone. I figure I'm missing something simple but I'm not sure what it is. I'll check out your videos while I'm at work and give it another go tonight when I get home. Thanks for all the help so far, I appreciate it.
    Last edited by Dainslaif; 08-10-2012 at 03:23 PM.

  8. #8
    Palace Guard

    Join Date
    Jun 2007
    Location
    Christchurch
    Posts
    3,556

    Default

    Heh - I actually did email the author, but I haven't heard back yet. I figured crowdsourcing the info would be faster.
    The author is me.

    The obvious is that the game isn't actually launching with your GameInfo specified. If you look at the log, it says LoadMap: 8way?Name=Player?Team=255.

    In UnrealFrontEnd, just underneath the Maps to Cook text area, you will see a "Launch Map" option. There is a Use URL tap. Did you set that text field? I'm pretty sure I did that in the Eat3D DVD.

  9. #9
    MSgt. Shooter Person
    Join Date
    Aug 2011
    Location
    Austin, TX
    Posts
    53

    Default

    Oh, hey James. Thanks for making the videos, they're freaking amazing reference tools and have helped me work through some issues in my mod. :-)

    Yeah you did set one in the DVD - in the Frontend I'm running this URL: 8way.udk?game=UPong.UPongGameInfo (I've also tried with 8way?game=UPong.UPongGameInfo - I wasn't sure if the map extension would break anything). Is there an checkbox I need to set somewhere so it actually runs that URL? (at work at the moment, can't check it right now)
    Last edited by Dainslaif; 08-10-2012 at 06:52 PM.

  10. #10
    Palace Guard

    Join Date
    Jun 2007
    Location
    Christchurch
    Posts
    3,556

    Default

    Right, the problem is, the server is not running with those parameters.

  11. #11
    MSgt. Shooter Person
    Join Date
    Aug 2011
    Location
    Austin, TX
    Posts
    53

    Default

    Okay, so I have to manually run the game with those parameters then? I thought that by cooking it with the URL the game would do that for me. Neither the client nor server run the scripts currently, I don't recall if I tried inputting the parameters manually but from what I understand I shouldn't have to.


    Edit: While stumbling through other threads I discovered my gameinfo currently lacks a SetGameType function. Would that be why it's not using the URL or default game type from the ini file, or is it possible the gametype is a different name than UPong.UPongGameInfo?

    Not being at home to try more stuff is seriously driving me up a wall. XD
    Last edited by Dainslaif; 08-10-2012 at 09:59 PM.

  12. #12
    MSgt. Shooter Person
    Join Date
    Aug 2011
    Location
    Austin, TX
    Posts
    53

    Default

    I fixed it, not positive which change did it so I'll list everything I just did.

    I added
    Code:
    static event class<GameInfo> SetGameType(string MapName, string Options, string Portal)
    {
    	return Default.Class;
    }
    To my game info class, and also deleted all of the files in Config that started with UDK since they're created by running the game. (UDKGame, UDKEngine, UDKInput seem to be the important ones).

    Thanks for the help. :-)


 

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.