• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Code Mut: Per Server Stats

No its not it I updated all kf files to see if SDK is out of date but its working fine. here is the log of the UCC...

Heading: --------------ServerPerks-Release-------------------------
Warning: Failed to load 'ServerPerks.u': Can't find file 'ServerPerks.u'
Warning: Failed loading package: Can't find file 'ServerPerks.u'
Log: Analyzing...
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\ClientPerkRepLink.uc)
Log: Class: ClientPerkRepLink extends LinkedReplicationInfo
Log: Imported: Class ServerPerks.ClientPerkRepLink
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\KFPCServ.uc)
Log: Class: KFPCServ extends KFPlayerController_Story
Log: Imported: Class ServerPerks.KFPCServ
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\KFVetEarnedMessagePL.uc)
Log: Class: KFVetEarnedMessagePL extends CriticalEventPlus
Log: Imported: Class ServerPerks.KFVetEarnedMessagePL
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\KFVetEarnedMessageSR.uc)
Log: Class: KFVetEarnedMessageSR extends CriticalEventPlus
Log: Imported: Class ServerPerks.KFVetEarnedMessageSR
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRBuyMenuSaleList.uc)
Log: Class: SRBuyMenuSaleList extends KFBuyMenuSaleList
Log: Imported: Class ServerPerks.SRBuyMenuSaleList
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRBuyMenuSaleListBox.uc)
Log: Class: SRBuyMenuSaleListBox extends KFBuyMenuSaleListBox
Log: Imported: Class ServerPerks.SRBuyMenuSaleListBox
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRClientSettings.uc)
Log: Class: SRClientSettings extends Object
Log: Imported: Class ServerPerks.SRClientSettings
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRCustomProgress.uc)
Log: Class: SRCustomProgress extends ReplicationInfo
Log: Imported: Class ServerPerks.SRCustomProgress
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRCustomProgressFloat.uc)
Log: Class: SRCustomProgressFloat extends SRCustomProgress
Log: Imported: Class ServerPerks.SRCustomProgressFloat
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRCustomProgressInt.uc)
Log: Class: SRCustomProgressInt extends SRCustomProgress
Log: Imported: Class ServerPerks.SRCustomProgressInt
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRGUIBuyMenu.uc)
Log: Class: SRGUIBuyMenu extends GUIBuyMenu
Log: Imported: Class ServerPerks.SRGUIBuyMenu
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRGUIBuyWeaponInfoPanel.uc)
Log: Class: SRGUIBuyWeaponInfoPanel extends GUIBuyWeaponInfoPanel
Log: Imported: Class ServerPerks.SRGUIBuyWeaponInfoPanel
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRHUDKillingFloor.uc)
Log: Class: SRHUDKillingFloor extends HUD_StoryMode
Log: Imported: Class ServerPerks.SRHUDKillingFloor
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRHumanPawn.uc)
Log: Class: SRHumanPawn extends KFHumanPawn_Story
Log: Imported: Class ServerPerks.SRHumanPawn
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRInvasionLoginMenu.uc)
Log: Class: SRInvasionLoginMenu extends KFInvasionLoginMenu
Log: Imported: Class ServerPerks.SRInvasionLoginMenu
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRKFBuyMenuInvList.uc)
Log: Class: SRKFBuyMenuInvList extends KFBuyMenuInvList
Log: Imported: Class ServerPerks.SRKFBuyMenuInvList
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRKFBuyMenuInvListBox.uc)
Log: Class: SRKFBuyMenuInvListBox extends KFBuyMenuInvListBox
Log: Imported: Class ServerPerks.SRKFBuyMenuInvListBox
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRKFQuickPerkSelect.uc)
Log: Class: SRKFQuickPerkSelect extends KFQuickPerkSelect
Log: Imported: Class ServerPerks.SRKFQuickPerkSelect
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRKFTab_BuyMenu.uc)
Log: Class: SRKFTab_BuyMenu extends KFTab_BuyMenu
Log: Imported: Class ServerPerks.SRKFTab_BuyMenu
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRKFTab_Perks.uc)
Log: Class: SRKFTab_Perks extends KFTab_Perks
Log: Imported: Class ServerPerks.SRKFTab_Perks
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRLevelCleanup.uc)
Log: Class: SRLevelCleanup extends Interaction
Log: Imported: Class ServerPerks.SRLevelCleanup
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRLobbyChat.uc)
Log: Class: SRLobbyChat extends KFLobbyChat
Log: Imported: Class ServerPerks.SRLobbyChat
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRLobbyFooter.uc)
Log: Class: SRLobbyFooter extends LobbyFooter
Log: Imported: Class ServerPerks.SRLobbyFooter
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRLobbyMenu.uc)
Log: Class: SRLobbyMenu extends LobbyMenu
Log: Imported: Class ServerPerks.SRLobbyMenu
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRModelSelect.uc)
Log: Class: SRModelSelect extends KFModelSelect
Log: Imported: Class ServerPerks.SRModelSelect
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRPerkProgressList.uc)
Log: Class: SRPerkProgressList extends KFPerkProgressList
Log: Imported: Class ServerPerks.SRPerkProgressList
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRPerkProgressListBox.uc)
Log: Class: SRPerkProgressListBox extends KFPerkProgressListBox
Log: Imported: Class ServerPerks.SRPerkProgressListBox
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRPerkSelectList.uc)
Log: Class: SRPerkSelectList extends KFPerkSelectList
Log: Imported: Class ServerPerks.SRPerkSelectList
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRPerkSelectListBox.uc)
Log: Class: SRPerkSelectListBox extends KFPerkSelectListBox
Log: Imported: Class ServerPerks.SRPerkSelectListBox
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRProfilePage.uc)
Log: Class: SRProfilePage extends KFProfilePage
Log: Imported: Class ServerPerks.SRProfilePage
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRScoreBoard.uc)
Log: Class: SRScoreBoard extends KFScoreBoard
Log: Imported: Class ServerPerks.SRScoreBoard
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRStatList.uc)
Log: Class: SRStatList extends GUIVertList
Log: Imported: Class ServerPerks.SRStatList
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRStatListBox.uc)
Log: Class: SRStatListBox extends GUIListBoxBase
Log: Imported: Class ServerPerks.SRStatListBox
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRStatsBase.uc)
Log: Class: SRStatsBase extends KFSteamStatsAndAchievements
Log: Imported: Class ServerPerks.SRStatsBase
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRSteamStatsGet.uc)
Log: Class: SRSteamStatsGet extends KFSteamStatsAndAchievements
Log: Imported: Class ServerPerks.SRSteamStatsGet
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRTab_MidGamePerks.uc)
Log: Class: SRTab_MidGamePerks extends KFTab_MidGamePerks
Log: Imported: Class ServerPerks.SRTab_MidGamePerks
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRTab_MidGameStats.uc)
Log: Class: SRTab_MidGameStats extends MidGamePanel
Log: Imported: Class ServerPerks.SRTab_MidGameStats
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRTab_Profile.uc)
Log: Class: SRTab_Profile extends KFTab_Profile
Log: Imported: Class ServerPerks.SRTab_Profile
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRVeterancyTypes.uc)
Log: Class: SRVeterancyTypes extends KFVeterancyTypes
Log: Imported: Class ServerPerks.SRVeterancyTypes
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\SRWeightBar.uc)
Log: Class: SRWeightBar extends KFWeightBar
Log: Imported: Class ServerPerks.SRWeightBar
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\UI_Replication.uc)
Log: Class: UI_Replication extends ReplicationInfo
Log: Imported: Class ServerPerks.UI_Replication
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\ServerPerks\Classes\UI_Window.uc)
Log: Class: UI_Window extends FloatingWindow
Log: Imported: Class ServerPerks.UI_Window
Log: Parsing SRLevelCleanup
Log: Deferred parsing ClientPerkRepLink.....parsing dependent class SRHUDKillingFloor
Log: Parsing SRHUDKillingFloor
Log: FactoryCreateBinary: Texture with TextureFactory (0 0 Textures\11_FROWN.pcx)
Log: Can't find file 'Textures\11_FROWN.pcx' for import
Error: D:\Program Files\Steam\SteamApps\common\KF\ServerPerks\Classes\SRHUDKillingFloor.uc(5) : Error, Import texture I_Frown from Textures\11_FROWN.pcx failed
Log: FactoryCreateBinary: Texture with TextureFactory (0 0 Textures\12_INDIFFE.pcx)
Log: Can't find file 'Textures\12_INDIFFE.pcx' for import
Error: D:\Program Files\Steam\SteamApps\common\KF\ServerPerks\Classes\SRHUDKillingFloor.uc(6) : Error, Import texture I_Indiffe from Textures\12_INDIFFE.pcx failed
Log: FactoryCreateBinary: Texture with TextureFactory (0 0 Textures\13_OHWELL.pcx)
Log: Can't find file 'Textures\13_OHWELL.pcx' for import
Error: D:\Program Files\Steam\SteamApps\common\KF\ServerPerks\Classes\SRHUDKillingFloor.uc(7) : Error, Import texture I_Ohwell from Textures\13_OHWELL.pcx failed
Log: FactoryCreateBinary: Texture with TextureFactory (0 0 Textures\16_BIGGRIN.pcx)
Log: Can't find file 'Textures\16_BIGGRIN.pcx' for import
Error: D:\Program Files\Steam\SteamApps\common\KF\ServerPerks\Classes\SRHUDKillingFloor.uc(8) : Error, Import texture I_BigGrin from Textures\16_BIGGRIN.pcx failed
Log: FactoryCreateBinary: Texture with TextureFactory (0 0 Textures\17_TONGUE1.pcx)
Log: Can't find file 'Textures\17_TONGUE1.pcx' for import
Error: D:\Program Files\Steam\SteamApps\common\KF\ServerPerks\Classes\SRHUDKillingFloor.uc(9) : Error, Import texture I_Tongue from Textures\17_TONGUE1.pcx failed
Log: FactoryCreateBinary: Texture with TextureFactory (0 0 Textures\17_TONGUE2.pcx)
Log: Can't find file 'Textures\17_TONGUE2.pcx' for import
Error: D:\Program Files\Steam\SteamApps\common\KF\ServerPerks\Classes\SRHUDKillingFloor.uc(10) : Error, Import texture I_TongueB from Textures\17_TONGUE2.pcx failed
Log: FactoryCreateBinary: Texture with TextureFactory (0 0 Textures\18_REDFACE.pcx)
Log: Can't find file 'Textures\18_REDFACE.pcx' for import
Error: D:\Program Files\Steam\SteamApps\common\KF\ServerPerks\Classes\SRHUDKillingFloor.uc(11) : Error, Import texture I_RedFace from Textures\18_REDFACE.pcx failed
Log: FactoryCreateBinary: Texture with TextureFactory (0 0 Textures\19_GREENLI1.pcx)
Log: Can't find file 'Textures\19_GREENLI1.pcx' for import
Error: D:\Program Files\Steam\SteamApps\common\KF\ServerPerks\Classes\SRHUDKillingFloor.uc(12) : Error, Import texture I_GreenLick from Textures\19_GREENLI1.pcx failed
Log: FactoryCreateBinary: Texture with TextureFactory (0 0 Textures\19_GREENLI2.pcx)
Log: Can't find file 'Textures\19_GREENLI2.pcx' for import
Error: D:\Program Files\Steam\SteamApps\common\KF\ServerPerks\Classes\SRHUDKillingFloor.uc(13) : Error, Import texture I_GreenLickB from Textures\19_GREENLI2.pcx failed
Log: FactoryCreateBinary: Texture with TextureFactory (0 0 Textures\Ban.pcx)
Log: Can't find file 'Textures\Ban.pcx' for import
Error: D:\Program Files\Steam\SteamApps\common\KF\ServerPerks\Classes\SRHUDKillingFloor.uc(14) : Error, Import texture I_Ban from Textures\Ban.pcx failed
Log: FactoryCreateBinary: Texture with TextureFactory (0 0 Textures\COOL.pcx)
Log: Can't find file 'Textures\COOL.pcx' for import
Error: D:\Program Files\Steam\SteamApps\common\KF\ServerPerks\Classes\SRHUDKillingFloor.uc(15) : Error, Import texture I_Cool from Textures\COOL.pcx failed
Log: FactoryCreateBinary: Texture with TextureFactory (0 0 Textures\HM.pcx)
Log: Can't find file 'Textures\HM.pcx' for import
Error: D:\Program Files\Steam\SteamApps\common\KF\ServerPerks\Classes\SRHUDKillingFloor.uc(16) : Error, Import texture I_Hmm from Textures\HM.pcx failed
Log: FactoryCreateBinary: Texture with TextureFactory (0 0 Textures\MAD.pcx)
Log: Can't find file 'Textures\MAD.pcx' for import
Error: D:\Program Files\Steam\SteamApps\common\KF\ServerPerks\Classes\SRHUDKillingFloor.uc(17) : Error, Import texture I_Mad from Textures\MAD.pcx failed
Log: FactoryCreateBinary: Texture with TextureFactory (0 0 Textures\SCREAM6.pcx)
Log: Can't find file 'Textures\SCREAM6.pcx' for import
Error: D:\Program Files\Steam\SteamApps\common\KF\ServerPerks\Classes\SRHUDKillingFloor.uc(18) : Error, Import texture I_Scream from Textures\SCREAM6.pcx failed
Log: FactoryCreateBinary: Texture with TextureFactory (0 0 Textures\SPAM.pcx)
Log: Can't find file 'Textures\SPAM.pcx' for import
Error: D:\Program Files\Steam\SteamApps\common\KF\ServerPerks\Classes\SRHUDKillingFloor.uc(19) : Error, Import texture I_Spam from Textures\SPAM.pcx failed
Log: Compile aborted due to errors.
Log: Failure - 15 error(s), 0 warning(s)
Exit: Preparing to exit.
Log: Purging garbage
Log: Unbound to Core.dll
Log: Unbound to Editor.dll
Log: Unbound to Engine.dll
Exit: Editor shut down
Log: Unbound to Fire.dll
Log: Unbound to IpDrv.dll
Log: Unbound to UWeb.dll
Log: Unbound to XGame.dll
Log: Unbound to XInterface.dll
Log: Unbound to ROEngine.dll
Log: Garbage: objects: 97139->0; refs: 0
Exit: Object subsystem successfully closed.
Exit: Exiting.
Log: FileManager: Reading 0 GByte 216 MByte 296 KByte 133 Bytes from HD took 13.275426 seconds (13.093426 reading, 0.182000 seeking).
Log: FileManager: 0.116000 seconds spent with misc. duties
Uninitialized: Name subsystem shut down
Uninitialized: Allocation checking disabled
Uninitialized: Log file closed, 11/07/13 23:11:38

I really need help on this
 
Upvote 0
ok I see what I have done wrong, I put the list of edit packages out of order that they should go. Thinks for trying to help..

But there is something I like to work on but dont know where to begin on it.
For the server perks mutator, how can I edit the color textures for the perks to level up? Like.. so I can add more than the basic. Any ideas where to begin and where to place it in the uc files?
 
Upvote 0
ok I see what I have done wrong, I put the list of edit packages out of order that they should go. Thinks for trying to help..

But there is something I like to work on but dont know where to begin on it.
For the server perks mutator, how can I edit the color textures for the perks to level up? Like.. so I can add more than the basic. Any ideas where to begin and where to place it in the uc files?

The area you are looking for I think is either/both SRHUDKillingFloor.uc and SRVeterencyType.uc.

P.S. If you are going to edit the files, make sure you are renaming the package. You don't want to be causing another "version mismatch" across the server(s).
 
Upvote 0
The area you are looking for I think is either/both SRHUDKillingFloor.uc and SRVeterencyType.uc.

P.S. If you are going to edit the files, make sure you are renaming the package. You don't want to be causing another "version mismatch" across the server(s).

I swear Whisky had a stickied thread in Modding Discussion that said about mismatches.
 
Upvote 0
***********Solved**************

I was able to resolve this by adding the extra bit in the function line of the KFPawn to the SRhumanPawn line.


While trying to compile a fresh and newly updated server install and a fresh D/L of the latest SP I encountered this error.

\Classes\SRHumanPawn.uc(46) : Error, Redefinition of function ServerBuyWeapon' differs from original in KFPawn
Compile aborted due to errors.

SRHumanPawn

Code:
function ServerBuyWeapon( Class<Weapon> WClass )
{ Line 46 here
 local float Price,Weight;
 local Inventory I;
 if( !CanBuyNow() || Class<KFWeapon>(WClass)==None || Class<KFWeaponPickup>(WClass.Default.PickupClass)==None || HasWeaponClass(WClass) )
  Return;
 // Validate if allowed to buy that weapon.
 if( PerkLink==None )
  PerkLink = FindStats();
 if( PerkLink!=None && !PerkLink.CanBuyPickup(Class<KFWeaponPickup>(WClass.Default.PickupClass)) )
  return;
 Price = class<KFWeaponPickup>(WClass.Default.PickupClass).Default.Cost;
 if ( KFPlayerReplicationInfo(PlayerReplicationInfo).ClientVeteranSkill != none )
  Price *= KFPlayerReplicationInfo(PlayerReplicationInfo).ClientVeteranSkill.static.GetCostScaling(KFPlayerReplicationInfo(PlayerReplicationInfo), WClass.Default.PickupClass);
 Weight = Class<KFWeapon>(WClass).Default.Weight;
 if( WClass==class'DualDeagle' || WClass==class'GoldenDualDeagle' || WClass==class'Dual44Magnum' || WClass==class'DualMK23Pistol' || WClass==class'DualFlareRevolverPickup' || WClass.Default.DemoReplacement!=None )
 {
  if ( (WClass==class'DualDeagle' && HasWeaponClass(class'Deagle'))
   || (WClass==class'GoldenDualDeagle' && HasWeaponClass(class'GoldenDeagle'))
   || (WClass==class'Dual44Magnum' && HasWeaponClass(class'Magnum44Pistol'))
   || (WClass==class'DualMK23Pistol' && HasWeaponClass(class'MK23Pistol'))
   || (WClass==class'DualFlareRevolverPickup' && HasWeaponClass(class'FlareRevolver'))
   || (WClass.Default.DemoReplacement!=None && HasWeaponClass(WClass.Default.DemoReplacement)) )
  {
   if( WClass==class'DualDeagle' )
    Weight-=class'Deagle'.Default.Weight;
   else if( WClass==class'GoldenDualDeagle' )
    Weight-=class'GoldenDeagle'.Default.Weight;
   else if( WClass==class'Dual44Magnum' )
    Weight-=class'Magnum44Pistol'.Default.Weight;
   else if( WClass==class'DualMK23Pistol' )
    Weight-=class'MK23Pistol'.Default.Weight;
   else if( WClass==class'DualFlareRevolverPickup' )
    Weight-=class'FlareRevolverPickup'.Default.Weight;
   else Weight-=class<KFWeapon>(WClass.Default.DemoReplacement).Default.Weight;
   Price*=0.5f;
  }
 }
 else if( WClass==class'Single' || WClass==class'Deagle' || WClass==class'GoldenDeagle' || WClass==class'Magnum44Pistol' || WClass==class'MK23Pistol' || WClass==class'FlareRevolverPickup' )
 {
  if ( (WClass==class'Deagle' && HasWeaponClass(class'DualDeagle'))
   || (WClass==class'GoldenDeagle' && HasWeaponClass(class'GoldenDualDeagle'))
   || (WClass==class'Magnum44Pistol' && HasWeaponClass(class'Dual44Magnum'))
   || (WClass==class'MK23Pistol' && HasWeaponClass(class'DualMK23Pistol'))
   || (WClass==class'Single' && HasWeaponClass(class'Dualies'))
   || (WClass==class'FlareRevolverPickup' && HasWeaponClass(class'DualFlareRevolver')) )
   return; // Has the dual weapon.
 }
 else // Check for custom dual weapon mode
 {
  for ( I=Inventory; I!=None; I=I.Inventory )
   if( Weapon(I)!=None && Weapon(I).DemoReplacement==WClass )
    return;
 }
 Price = int(Price); // Truncuate price.
 if ( (Weight>0 && !CanCarry(Weight)) || PlayerReplicationInfo.Score<Price )
  Return;
 I = Spawn(WClass);
 if ( I != none )
 {
  if ( KFGameType(Level.Game) != none )
   KFGameType(Level.Game).WeaponSpawned(I);
  KFWeapon(I).UpdateMagCapacity(PlayerReplicationInfo);
  KFWeapon(I).FillToInitialAmmo();
  KFWeapon(I).SellValue = Price * 0.75;
  I.GiveTo(self);
  PlayerReplicationInfo.Score -= Price;
        ClientForceChangeWeapon(I);
    }
 else ClientMessage("Error: Weapon failed to spawn.");
 SetTraderUpdate();
}

KFPawn

Code:
function ServerBuyWeapon( Class<Weapon> WClass, float ItemWeight )
{
    local Inventory I, J;
    local float Price;
    local bool bIsDualWeapon, bHasDual9mms, bHasDualHCs, bHasDualRevolvers;
    if ( !CanBuyNow() || Class<KFWeapon>(WClass) == none || Class<KFWeaponPickup>(WClass.Default.PickupClass) == none )
    {
        return;
    }
    if ( Class<KFWeapon>(WClass).Default.AppID > 0 && Class<KFWeapon>(WClass).Default.UnlockedByAchievement != -1 )
    {
        if ( KFSteamStatsAndAchievements(PlayerReplicationInfo.SteamStatsAndAchievements) == none ||
            (!KFSteamStatsAndAchievements(PlayerReplicationInfo.SteamStatsAndAchievements).PlayerOwnsWeaponDLC(Class<KFWeapon>(WClass).Default.AppID) &&
             KFSteamStatsAndAchievements(PlayerReplicationInfo.SteamStatsAndAchievements).Achievements[Class<KFWeapon>(WClass).Default.UnlockedByAchievement].bCompleted != 1 ))
        {
            return;
        }
    }
    else if ( Class<KFWeapon>(WClass).Default.AppID > 0 )
    {
        if ( KFSteamStatsAndAchievements(PlayerReplicationInfo.SteamStatsAndAchievements) == none ||
            !KFSteamStatsAndAchievements(PlayerReplicationInfo.SteamStatsAndAchievements).PlayerOwnsWeaponDLC(Class<KFWeapon>(WClass).Default.AppID))
        {
            return;
        }
    }
    else if ( Class<KFWeapon>(WClass).Default.UnlockedByAchievement != -1  )
    {
        if ( KFSteamStatsAndAchievements(PlayerReplicationInfo.SteamStatsAndAchievements) == none ||
             KFSteamStatsAndAchievements(PlayerReplicationInfo.SteamStatsAndAchievements).Achievements[Class<KFWeapon>(WClass).Default.UnlockedByAchievement].bCompleted != 1 )
        {
            return;
        }
    }
    Price = class<KFWeaponPickup>(WClass.Default.PickupClass).Default.Cost;
    if ( KFPlayerReplicationInfo(PlayerReplicationInfo).ClientVeteranSkill != none )
    {
        Price *= KFPlayerReplicationInfo(PlayerReplicationInfo).ClientVeteranSkill.static.GetCostScaling(KFPlayerReplicationInfo(PlayerReplicationInfo), WClass.Default.PickupClass);
    }
    for ( I=Inventory; I!=None; I=I.Inventory )
    {
        if( I.Class==WClass )
        {
            Return; // Already has weapon.
        }
        if ( I.Class == class'Dualies' )
        {
            bHasDual9mms = true;
        }
        else if ( I.Class == class'DualDeagle' || I.Class == class'GoldenDualDeagle' )
        {
            bHasDualHCs = true;
        }
        else if ( I.Class == class'Dual44Magnum' )
        {
            bHasDualRevolvers = true;
        }
    }
    if ( WClass == class'DualDeagle' )
    {
        for ( J = Inventory; J != None; J = J.Inventory )
        {
            if ( J.class == class'Deagle' )
            {
                Price = Price / 2;
                break;
            }
        }
        bIsDualWeapon = true;
        bHasDualHCs = true;
    }
    if ( WClass == class'GoldenDualDeagle' )
    {
        for ( J = Inventory; J != None; J = J.Inventory )
        {
            if ( J.class == class'GoldenDeagle' )
            {
                Price = Price / 2;
                break;
            }
        }
        bIsDualWeapon = true;
        bHasDualHCs = true;
    }
    if ( WClass == class'Dual44Magnum' )
    {
        for ( J = Inventory; J != None; J = J.Inventory )
        {
            if ( J.class == class'Magnum44Pistol' )
            {
                Price = Price / 2;
                break;
            }
        }
        bIsDualWeapon = true;
        bHasDualRevolvers = true;
    }
    if ( WClass == class'DualMK23Pistol' )
    {
        for ( J = Inventory; J != None; J = J.Inventory )
        {
            if ( J.class == class'MK23Pistol' )
            {
                Price = Price / 2;
                break;
            }
        }
        bIsDualWeapon = true;
    }
    if ( WClass == class'DualFlareRevolver' )
    {
        for ( J = Inventory; J != None; J = J.Inventory )
        {
            if ( J.class == class'FlareRevolver' )
            {
                Price = Price / 2;
                break;
            }
        }
        bIsDualWeapon = true;
    }
    bIsDualWeapon = bIsDualWeapon || WClass == class'Dualies';
    if ( !CanCarry(ItemWeight) )
    {
        Return;
    }
    if ( PlayerReplicationInfo.Score < Price )
    {
        Return; // Not enough CASH.
    }
    I = Spawn(WClass);
    if ( I != none )
    {
        if ( KFGameType(Level.Game) != none )
        {
            KFGameType(Level.Game).WeaponSpawned(I);
        }
        KFWeapon(I).UpdateMagCapacity(PlayerReplicationInfo);
        KFWeapon(I).FillToInitialAmmo();
        KFWeapon(I).SellValue = Price * 0.75;
        I.GiveTo(self);
        PlayerReplicationInfo.Score -= Price;
        if ( bIsDualWeapon )
        {
            KFSteamStatsAndAchievements(PlayerReplicationInfo.SteamStatsAndAchievements).OnDualsAddedToInventory(bHasDual9mms, bHasDualHCs, bHasDualRevolvers);
        }
        ClientForceChangeWeapon(I);
    }
    SetTraderUpdate();
}

the Unreal wiki states:

Redefinition of 'function name' differs from original
When overriding functions you are not allowed to change the return type, the number or type of parameters or some of the function modifiers, e.g. static functions must stay static, public functions can't become protected. (E.g. simulated or native functions can become non-simulated or non-native in subclasses though, because those keywords only apply to the actual implementation in that single class.)
Functions can't be over ed in UnrealScript

Sorry for the long post. Many things are different, if anyone has an idea. I tried using the SC and got the error and also decompiled the v6.75 and got the same error. thus far I have not modified anything. I just want to see if a fresh install post update would compile the latest v6.75 SP. To this point I am unable to compile v6.75.
 
Last edited:
Upvote 0