Results 1 to 8 of 8
  1. #1

    Default Help, UDK Make... Warning, Import failed for '...': property is config

    I can’t seem to figure out why i am getting an “Import failed, property is config” warning and as a result default properties are not assigned to my config variables. The only way to get values assigned to my config variables is to create a config file for each class, but this defeats the purpose of having default property values in the DefaultProperties function. To add a twist it appears that this warning/issue was present in an earlier UT3 release and fixed in the 1.2/1.3 patch/version.

    See the end of these posts for patch fix confirmation: http://utforums.epicgames.com/showthread.php?t=629102
    http://www.3dbuzz.com/vbforum/showthread.php?p=1371454

    The Class code below produces this:
    Warning, Import failed for 'iListenPort': property is config (Check to see if the property is listed in the DefaultProperties. It should only be listed in the specific .ini/.int file)


    /**
    * Example game type for UDK mod making
    * Copyright 1998-2009 Epic Games, Inc. All Rights Reserved.
    */
    class SuperFunGame extends UTDeathmatch
    config(SuperFunGame);

    var config int iListenPort;

    /**
    * Send an announcement to the killer for every kill
    */
    function Killed( Controller Killer, Controller KilledPlayer, Pawn KilledPawn, class<DamageType> DamageType )
    {
    `log("SUPER FUN KILL by "$Killer);
    if ( PlayerController(Killer) != None )
    {
    PlayerController(Killer).ReceiveLocalizedMessage( class'UTKillingSpreeMessage', 5, Killer.PlayerReplicationInfo, None );
    }
    Super.Killed(Killer, KilledPlayer, KilledPawn, DamageType);
    }

    /**
    * Don't override this gametype if chosen as DefaultGameType in .ini or on command line
    */
    static event class<GameInfo> SetGameType(string MapName, string Options, string Portal)
    {
    return default.class;
    }

    defaultproperties
    {
    iListenPort=3000
    }

    If I comment out the iListPort=3000 line then the warning goes away but i want to set default values when the config is not available. I would think that if this issue was fixed in a UT3 patch released before Oct 2007 (based on referanced posts) that it would have made its way into the UDK Nov 2009 release? Does anyone know how to fix this issue??

    Any help would be appreciated
    Eric

  2. #2
    MSgt. Shooter Person
    Join Date
    Oct 2006
    Location
    Copenhagen, Denmark
    Posts
    93

    Default

    In Unreal Engine 3 you are not allowed to specify defaultproperties for config variables. If this doesn't generate a warning in UT3, it's a bug .

    http://udn.epicgames.com/Three/Unrea...l%20Engine%203

    Look at the default properties bullet.
    So you just have to make the config file as you go. In this way you won't forget to make the ini before releasing the game. So it's not that bad after all.

  3. #3
    Redeemer
    Join Date
    May 2000
    Location
    between the monitor and chair
    Posts
    1,523

    Default

    Quote Originally Posted by decko View Post
    In Unreal Engine 3 you are not allowed to specify defaultproperties for config variables. If this doesn't generate a warning in UT3, it's a bug .
    No, it UT3 it was specifically supported to allow setting of config and localization values in the defaultproperties for mod support. Otherwise there was no way to communicatie this information properly to clients that didn't have the mod installed.
    Michiel 'El Muerte' Hendriks
    Magicball Network - Little Big Adventure community
    the Unreal Admin page - Unreal server administration
    UnrealWiki - UnrealScript and UnrealEd wiki.
    UnCodeX - powerful UnrealScript tool for programmers

  4. #4

    Default

    Correct, see here in the 1.1 patch release notes in the modding section at the end.

    http://utforums.epicgames.com/showthread.php?t=591638

    "- Shipping script compiler now allows localized/config defaultproperties because otherwise autodownloaded mods have no way for their localized/config variables to work."

    Now this is why im confused, was the 1.1 patch not included in the UDK November release??

  5. #5

    Default

    IMHO embedding default values for config/localized variables should really be up to the author. Forcing it to always be specified in INI/localization files slows down dev progress. In UE1/2 you could dump default settings or localized variables via commandlets.
    Wormbo's UT/UT2004/UT3 mods | PlanetJailbreak | Unreal Wiki | Liandri Archives

    <elmuerte> you shouldn't do all-nighters, it's a waste of time and effort
    <TNSe> nono
    <TNSe> its always funny to find code a week later you dont even remember writing
    <Pfhoenix> what's worse is when you have a Star Wars moment
    <Pfhoenix> "Luke! I am your code!" "No! Impossible! It can't be!"
    Note that your questions via PMs will be ignored if they actually belong in the forum.

  6. #6
    Redeemer
    Join Date
    May 2000
    Location
    between the monitor and chair
    Posts
    1,523

    Default

    Quote Originally Posted by aveeric View Post
    Now this is why im confused, was the 1.1 patch not included in the UDK November release??
    UT3 uses a much much much older version of UE3 than the UDK. Changes to the engine of a game do not always go back to the core engine branch.
    Michiel 'El Muerte' Hendriks
    Magicball Network - Little Big Adventure community
    the Unreal Admin page - Unreal server administration
    UnrealWiki - UnrealScript and UnrealEd wiki.
    UnCodeX - powerful UnrealScript tool for programmers

  7. #7

    Default

    Wait… hold on a sec, your suggesting that none of the 1.1, 1.2 or 1.3 UT3 patch(s) released starting in 2007 made their way into the UDK release in November of 2009. That sounds a bit weird; one would think that they (Epic) would want to use the latest code forward in the tree to resolve issues like this when they decide to do future releases of the game engine\compiler say for FREE...

    Either way, this sucks.... I have a bunch of script originally written for UT3 that I want to use with UDK and now I have to go through it and make a branch in my code. Watch, with my luck I’ll do all the code changes and then in December there will be a new UDK release with the patch(s) applied. I just wish there was an easy fix to the problem so I don’t have to change a bunch of code.

  8. #8

    Default

    It's just really the defprops, right? You can use the preprocessor for that instead of actually branching your code.
    Wormbo's UT/UT2004/UT3 mods | PlanetJailbreak | Unreal Wiki | Liandri Archives

    <elmuerte> you shouldn't do all-nighters, it's a waste of time and effort
    <TNSe> nono
    <TNSe> its always funny to find code a week later you dont even remember writing
    <Pfhoenix> what's worse is when you have a Star Wars moment
    <Pfhoenix> "Luke! I am your code!" "No! Impossible! It can't be!"
    Note that your questions via PMs will be ignored if they actually belong in the forum.


 

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.