Merge pull request #12 from GenZmeY/gri-advice
add advice in case of problems with GRI replication
This commit is contained in:
commit
8368d5905d
@ -13,6 +13,12 @@ var private localized String IncompatibleGRI;
|
|||||||
var const String IncompatibleGRIWarningDefault;
|
var const String IncompatibleGRIWarningDefault;
|
||||||
var private localized String IncompatibleGRIWarning;
|
var private localized String IncompatibleGRIWarning;
|
||||||
|
|
||||||
|
var const String NoneGRIDefault;
|
||||||
|
var private localized String NoneGRI;
|
||||||
|
|
||||||
|
var const String NoneGRIWarningDefault;
|
||||||
|
var private localized String NoneGRIWarning;
|
||||||
|
|
||||||
var const String SecondsShortDefault;
|
var const String SecondsShortDefault;
|
||||||
var private localized String SecondsShort;
|
var private localized String SecondsShort;
|
||||||
|
|
||||||
@ -25,6 +31,8 @@ enum E_CTI_LocalMessageType
|
|||||||
CTI_WaitingGRI,
|
CTI_WaitingGRI,
|
||||||
CTI_IncompatibleGRI,
|
CTI_IncompatibleGRI,
|
||||||
CTI_IncompatibleGRIWarning,
|
CTI_IncompatibleGRIWarning,
|
||||||
|
CTI_NoneGRI,
|
||||||
|
CTI_NoneGRIWarning,
|
||||||
CTI_SecondsShort,
|
CTI_SecondsShort,
|
||||||
CTI_PleaseWait
|
CTI_PleaseWait
|
||||||
};
|
};
|
||||||
@ -52,6 +60,12 @@ public static function String GetLocalizedString(
|
|||||||
case CTI_IncompatibleGRIWarning:
|
case CTI_IncompatibleGRIWarning:
|
||||||
return (default.IncompatibleGRIWarning != "" ? default.IncompatibleGRIWarning : default.IncompatibleGRIWarningDefault);
|
return (default.IncompatibleGRIWarning != "" ? default.IncompatibleGRIWarning : default.IncompatibleGRIWarningDefault);
|
||||||
|
|
||||||
|
case CTI_NoneGRI:
|
||||||
|
return (default.NoneGRI != "" ? default.NoneGRI : default.NoneGRIDefault);
|
||||||
|
|
||||||
|
case CTI_NoneGRIWarning:
|
||||||
|
return (default.NoneGRIWarning != "" ? default.NoneGRIWarning : default.NoneGRIWarningDefault);
|
||||||
|
|
||||||
case CTI_SecondsShort:
|
case CTI_SecondsShort:
|
||||||
return (default.SecondsShort != "" ? default.SecondsShort : default.SecondsShortDefault);
|
return (default.SecondsShort != "" ? default.SecondsShort : default.SecondsShortDefault);
|
||||||
|
|
||||||
@ -68,6 +82,8 @@ defaultproperties
|
|||||||
WaitingGRIDefault = "Waiting GRI..."
|
WaitingGRIDefault = "Waiting GRI..."
|
||||||
IncompatibleGRIDefault = "Incompatible GRI:"
|
IncompatibleGRIDefault = "Incompatible GRI:"
|
||||||
IncompatibleGRIWarningDefault = "You can enter the game, but the trader may not work correctly.";
|
IncompatibleGRIWarningDefault = "You can enter the game, but the trader may not work correctly.";
|
||||||
|
NoneGRIDefault = "GRI is not initialized!"
|
||||||
|
NoneGRIWarningDefault = "It is recommended to reconnect. If you enter the game right now, the trader may not work correctly.";
|
||||||
SecondsShortDefault = "s"
|
SecondsShortDefault = "s"
|
||||||
PleaseWaitDefault = "Please wait"
|
PleaseWaitDefault = "Please wait"
|
||||||
}
|
}
|
@ -184,9 +184,16 @@ private simulated function Finished()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
`Log_Error("Incompatible Replication info:" @ String(GRI));
|
`Log_Error("Incompatible Game Replication info:" @ String(GRI));
|
||||||
|
if (GRI == None)
|
||||||
|
{
|
||||||
|
NotifyNoneGRI();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
NotifyIncompatibleGRI();
|
NotifyIncompatibleGRI();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ShowReadyButton();
|
ShowReadyButton();
|
||||||
|
|
||||||
@ -517,6 +524,16 @@ private simulated function NotifyIncompatibleGRI()
|
|||||||
class'KFLocalMessage'.default.InteractionColor);
|
class'KFLocalMessage'.default.InteractionColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private simulated function NotifyNoneGRI()
|
||||||
|
{
|
||||||
|
WriteToChatLocalized(
|
||||||
|
CTI_NoneGRI,
|
||||||
|
class'KFLocalMessage'.default.InteractionColor);
|
||||||
|
WriteToChatLocalized(
|
||||||
|
CTI_NoneGRIWarning,
|
||||||
|
class'KFLocalMessage'.default.InteractionColor);
|
||||||
|
}
|
||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
{
|
{
|
||||||
bAlwaysRelevant = false
|
bAlwaysRelevant = false
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user