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



Reply With Quote
.





Bookmarks