• 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 [Tutorial] How to make custom player skins

Hi,
I'm going to try adding new sounds, but when i want to compile it, i always get an error. The sound group exists, but I'm not sure if it needs a special structure in the uax files.

Code:
----------------------------Core - Release----------------------------
---------------------------Engine - Release---------------------------
----------------------------Fire - Release----------------------------
---------------------------Editor - Release---------------------------
--------------------------UnrealEd - Release--------------------------
---------------------------IpDrv - Release----------------------------
----------------------------UWeb - Release----------------------------
--------------------------GamePlay - Release--------------------------
-------------------------UnrealGame - Release-------------------------
---------------------------XGame - Release----------------------------
-------------------------XInterface - Release-------------------------
---------------------------XAdmin - Release---------------------------
-------------------------XWebAdmin - Release--------------------------
---------------------------GUI2K4 - Release---------------------------
--------------------------xVoting - Release---------------------------
--------------------------UTV2004c - Release--------------------------
--------------------------UTV2004s - Release--------------------------
-------------------------ROEffects - Release--------------------------
--------------------------ROEngine - Release--------------------------
------------------------ROInterface - Release-------------------------
---------------------------Old2k4 - Release---------------------------
---------------------------KFMod - Release----------------------------
---------------------------KFChar - Release---------------------------
---------------------------KFGui - Release----------------------------
-------------------------GoodKarma - Release--------------------------
-------------------------KFMutators - Release-------------------------
-----------------------ServerPerksV5 - Release------------------------
-------------------------RedneckDlc - Release-------------------------
-----------------------RedneckEarlMod - Release-----------------------
Analyzing...
Parsing RedneckEarlVoicePack
Parsing RedneckEarlSpecies
Parsing redneckEarl
Parsing RedneckEarlSoundGroup
Compiling RedneckEarlVoicePack
Compiling RedneckEarlSpecies
Compiling redneckEarl
Compiling RedneckEarlSoundGroup
Importing Defaults for RedneckEarlVoicePack
ObjectProperty KFMod.KFVoicePack.InsultSound: unresolved reference to 'Sound'dlcRednecks.redneckMedium.yallStrangers''
ObjectProperty KFMod.KFVoicePack.InsultSound: unresolved reference to 'Sound'dlcRednecks.redneckMedium.searchStrangers''
ObjectProperty KFMod.KFVoicePack.InsultSound: unresolved reference to 'Sound'dlcRednecks.redneckMedium.attackStrangers''
Importing Defaults for RedneckEarlSpecies
Importing Defaults for redneckEarl
Importing Defaults for RedneckEarlSoundGroup
ObjectProperty XGame.xPawnSoundGroup.DeathSounds.DeathSounds: unresolved reference to 'Sound'dlcRednecks.redneckMedium.redneckDie''
ObjectProperty XGame.xPawnSoundGroup.DeathSounds.DeathSounds: unresolved reference to 'Sound'dlcRednecks.redneckMedium.redneckDie''
ObjectProperty XGame.xPawnSoundGroup.DeathSounds.DeathSounds: unresolved reference to 'Sound'dlcRednecks.redneckMedium.redneckDie''
ObjectProperty XGame.xPawnSoundGroup.DeathSounds.DeathSounds: unresolved reference to 'Sound'dlcRednecks.redneckMedium.redneckDie''
ObjectProperty XGame.xPawnSoundGroup.DeathSounds.DeathSounds: unresolved reference to 'Sound'dlcRednecks.redneckMedium.redneckDie''
ObjectProperty XGame.xPawnSoundGroup.PainSounds.PainSounds: unresolved reference to 'Sound'dlcRednecks.redneckMedium.redneckHit''
ObjectProperty XGame.xPawnSoundGroup.PainSounds.PainSounds: unresolved reference to 'Sound'dlcRednecks.redneckMedium.redneckHit''
ObjectProperty XGame.xPawnSoundGroup.PainSounds.PainSounds: unresolved reference to 'Sound'dlcRednecks.redneckMedium.redneckHit''
ObjectProperty XGame.xPawnSoundGroup.PainSounds.PainSounds: unresolved reference to 'Sound'dlcRednecks.redneckMedium.redneckHit''
ObjectProperty XGame.xPawnSoundGroup.PainSounds.PainSounds: unresolved reference to 'Sound'dlcRednecks.redneckMedium.redneckHit''
ObjectProperty XGame.xPawnSoundGroup.PainSounds.PainSounds: unresolved reference to 'Sound'dlcRednecks.redneckMedium.redneckHit''
Compile aborted due to errors.
Failure - 14 error(s), 0 warning(s)

Does it need a folder called INSULT or something like this? Or need the sound files in the base "folder" ?
 
Upvote 0
Yes, i added it to the redneckEarlMod.uc file.
Do I need to add it to the other files to and use a path without the package name?

hmm that should cover, it being as it's the first file loaded and will load it into memory.

any chance you could post your file codes, so we can have a look and try and find the problem? it's hard when flying blind.

EDIT!

but sayin that....

I have just noticed that it tries to compile the voicepack first, so you may want to add that line to the beginning of the voicepack file and try that?
 
Last edited:
Upvote 0
Ok, I have tried it and for example my RedneckEarVoicePack.uc:

Code:
class RedneckEarlVoicePack extends KFVoicePack;

#exec OBJ LOAD FILE=..\sounds\dlcRednecks.uax 

defaultproperties
{
    NumInsults=3
    InsultAbbrev(0)="Yall strangers"
    InsultAbbrev(1)="Search strangers"
    InsultAbbrev(2)="Attack strangers"

    InsultString(0)="Yall strangers"
    InsultString(1)="Search strangers"
    InsultString(2)="Attacks strangers"

    InsultSound(0)=Sound'dlcRednecks.redneckMedium.yallStrangers'
    InsultSound(1)=Sound'dlcRednecks.redneckMedium.searchStrangers'
    InsultSound(2)=Sound'dlcRednecks.redneckMedium.attackStrangers'
}
Still same error. I also can't reopen the uax file in the editor!? Sound files has same settings as the other voice files and I could play them in editor. I checked spelling etc. Nothing happened. It is driving me crazy, model and weapons working fine, but the voice packs don't do anything...
Any Idea what this could cause? Or do someone has an example file for me too take a look what i have missed?
 
Upvote 0
Ok, I have tried it and for example my RedneckEarVoicePack.uc:

Code:
class RedneckEarlVoicePack extends KFVoicePack;

#exec OBJ LOAD FILE=..\sounds\dlcRednecks.uax 

defaultproperties
{
    NumInsults=3
    InsultAbbrev(0)="Yall strangers"
    InsultAbbrev(1)="Search strangers"
    InsultAbbrev(2)="Attack strangers"

    InsultString(0)="Yall strangers"
    InsultString(1)="Search strangers"
    InsultString(2)="Attacks strangers"

    InsultSound(0)=Sound'dlcRednecks.redneckMedium.yallStrangers'
    InsultSound(1)=Sound'dlcRednecks.redneckMedium.searchStrangers'
    InsultSound(2)=Sound'dlcRednecks.redneckMedium.attackStrangers'
}
Still same error. I also can't reopen the uax file in the editor!? Sound files has same settings as the other voice files and I could play them in editor. I checked spelling etc. Nothing happened. It is driving me crazy, model and weapons working fine, but the voice packs don't do anything...
Any Idea what this could cause? Or do someone has an example file for me too take a look what i have missed?

HMM definitely sounds like your package has not saved correctly, especially if you can't open it now, as that file set up looks fine.

remember to have them in folders that do not contain spaces when you import the files.

I have had trouble in the past, where I have imported sounds and they played fine when first imported but after closing editor, the files were no longer there.
Can you upload the UAX file, so I can take a look?
 
Upvote 0
Changed, nothing happened. I also played around with the passes (maybe it knows the package).....still same error.....UCC finds the package, but didn't find the sounds inside:
Code:
Log: Log file open, 02/21/12 19:19:21
Init: Name subsystem initialized
Init: Detected: Microsoft Windows NT 6.1 (Build: 7601)
Init: Version: 3339 (128.29)
Init: Compiled: Jan  4 2012 15:40:55
Init: Command line: 
Init: Character set: Unicode
Init: Base directory: D:\Steam\SteamApps\common\killingfloor\System\
Init: Ini:KillingFloor.ini   UserIni:User.ini
Init: Build label:  Build UT2004_Build_[2004-11-11_10.48]
Init: Object subsystem initialized
Heading: ----------------------------Core - Release----------------------------
Heading: ---------------------------Engine - Release---------------------------
Heading: ----------------------------Fire - Release----------------------------
Heading: ---------------------------Editor - Release---------------------------
Heading: --------------------------UnrealEd - Release--------------------------
Heading: ---------------------------IpDrv - Release----------------------------
Heading: ----------------------------UWeb - Release----------------------------
Heading: --------------------------GamePlay - Release--------------------------
Heading: -------------------------UnrealGame - Release-------------------------
Heading: ---------------------------XGame - Release----------------------------
Heading: -------------------------XInterface - Release-------------------------
Heading: ---------------------------XAdmin - Release---------------------------
Heading: -------------------------XWebAdmin - Release--------------------------
Heading: ---------------------------GUI2K4 - Release---------------------------
Heading: --------------------------xVoting - Release---------------------------
Heading: --------------------------UTV2004c - Release--------------------------
Heading: --------------------------UTV2004s - Release--------------------------
Heading: -------------------------ROEffects - Release--------------------------
Heading: --------------------------ROEngine - Release--------------------------
Heading: ------------------------ROInterface - Release-------------------------
Heading: ---------------------------Old2k4 - Release---------------------------
Heading: ---------------------------KFMod - Release----------------------------
Heading: ---------------------------KFChar - Release---------------------------
Heading: ---------------------------KFGui - Release----------------------------
Heading: -------------------------GoodKarma - Release--------------------------
Heading: -------------------------KFMutators - Release-------------------------
Heading: -----------------------ServerPerksV5 - Release------------------------
Heading: -------------------------RedneckDlc - Release-------------------------
Heading: -----------------------RedneckEarlMod - Release-----------------------
Warning: Failed to load 'RedneckEarlMod.u': Can't find file 'RedneckEarlMod.u'
Warning: Failed loading package: Can't find file 'RedneckEarlMod.u'
Log: Analyzing...
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\RedneckEarlMod\Classes\RedneckEarl.uc)
Log: Class: RedneckEarl extends PlayerRecordClass
Log: Imported: Class RedneckEarlMod.redneckEarl
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\RedneckEarlMod\Classes\RedneckEarlSoundGroup.uc)
Log: Class: RedneckEarlSoundGroup extends KFMaleSoundGroup
Log: Imported: Class RedneckEarlMod.RedneckEarlSoundGroup
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\RedneckEarlMod\Classes\RedneckEarlSpecies.uc)
Log: Class: RedneckEarlSpecies extends PoliceSpecies
Log: Imported: Class RedneckEarlMod.RedneckEarlSpecies
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\RedneckEarlMod\Classes\RedneckEarlVoicePack.uc)
Log: Class: RedneckEarlVoicePack extends KFVoicePack
Log: Imported: Class RedneckEarlMod.RedneckEarlVoicePack
Log: Parsing RedneckEarlVoicePack
Log: Parsing RedneckEarlSpecies
Log: Parsing redneckEarl
Log: Parsing RedneckEarlSoundGroup
Log: Compiling RedneckEarlVoicePack
Log: Compiling RedneckEarlSpecies
Log: Compiling redneckEarl
Log: Compiling RedneckEarlSoundGroup
Log: Importing Defaults for RedneckEarlVoicePack
Warning: Failed to load 'redneckMedium': Can't find file for package 'redneckMedium'
Warning: Failed to load 'SoundGroup redneckMedium.yallStrangers': Can't find file for package 'redneckMedium'
Error: ObjectProperty KFMod.KFVoicePack.InsultSound: unresolved reference to 'SoundGroup'redneckMedium.yallStrangers''
Warning: Failed to load 'SoundGroup dlcRednecks.redneckMedium.searchStrangers': Failed to find object 'SoundGroup dlcRednecks.redneckMedium.searchStrangers'
Error: ObjectProperty KFMod.KFVoicePack.InsultSound: unresolved reference to 'SoundGroup'dlcRednecks.redneckMedium.searchStrangers''
Warning: Failed to load 'SoundGroup dlcRednecks.redneckMedium.attackStrangers': Failed to find object 'SoundGroup dlcRednecks.redneckMedium.attackStrangers'
Error: ObjectProperty KFMod.KFVoicePack.InsultSound: unresolved reference to 'SoundGroup'dlcRednecks.redneckMedium.attackStrangers''
Log: Importing Defaults for RedneckEarlSpecies
Log: Importing Defaults for redneckEarl
Log: Importing Defaults for RedneckEarlSoundGroup
Warning: Failed to load 'SoundGroup dlcRednecks.redneckMedium.redneckDie': Failed to find object 'SoundGroup dlcRednecks.redneckMedium.redneckDie'
Error: ObjectProperty XGame.xPawnSoundGroup.DeathSounds.DeathSounds: unresolved reference to 'SoundGroup'dlcRednecks.redneckMedium.redneckDie''
Warning: Failed to load 'SoundGroup dlcRednecks.redneckMedium.redneckHit': Failed to find object 'SoundGroup dlcRednecks.redneckMedium.redneckHit'
Error: ObjectProperty XGame.xPawnSoundGroup.PainSounds.PainSounds: unresolved reference to 'SoundGroup'dlcRednecks.redneckMedium.redneckHit''
Log: Compile aborted due to errors.
Log: Failure - 5 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: 86155->0; refs: 0
Exit: Object subsystem successfully closed.
Exit: Exiting.
Log: FileManager: Reading 0 GByte 177 MByte 520 KByte 47 Bytes from HD took 0.641997 seconds (0.507997 reading, 0.134000 seeking).
Log: FileManager: 0.849000 seconds spent with misc. duties
Uninitialized: Name subsystem shut down
Uninitialized: Allocation checking disabled
Uninitialized: Log file closed, 02/21/12 19:19:26

EDIT: Could it be the order I'm going to compile the files?
 
Last edited:
Upvote 0
No, i don't get it, i thought "PACAKGE=" was it...

Code:
Log: Log file open, 02/21/12 19:39:59
Init: Name subsystem initialized
Init: Detected: Microsoft Windows NT 6.1 (Build: 7601)
Init: Version: 3339 (128.29)
Init: Compiled: Jan  4 2012 15:40:55
Init: Command line: 
Init: Character set: Unicode
Init: Base directory: D:\Steam\SteamApps\common\killingfloor\System\
Init: Ini:KillingFloor.ini   UserIni:User.ini
Init: Build label:  Build UT2004_Build_[2004-11-11_10.48]
Init: Object subsystem initialized
Heading: ----------------------------Core - Release----------------------------
Heading: ---------------------------Engine - Release---------------------------
Heading: ----------------------------Fire - Release----------------------------
Heading: ---------------------------Editor - Release---------------------------
Heading: --------------------------UnrealEd - Release--------------------------
Heading: ---------------------------IpDrv - Release----------------------------
Heading: ----------------------------UWeb - Release----------------------------
Heading: --------------------------GamePlay - Release--------------------------
Heading: -------------------------UnrealGame - Release-------------------------
Heading: ---------------------------XGame - Release----------------------------
Heading: -------------------------XInterface - Release-------------------------
Heading: ---------------------------XAdmin - Release---------------------------
Heading: -------------------------XWebAdmin - Release--------------------------
Heading: ---------------------------GUI2K4 - Release---------------------------
Heading: --------------------------xVoting - Release---------------------------
Heading: --------------------------UTV2004c - Release--------------------------
Heading: --------------------------UTV2004s - Release--------------------------
Heading: -------------------------ROEffects - Release--------------------------
Heading: --------------------------ROEngine - Release--------------------------
Heading: ------------------------ROInterface - Release-------------------------
Heading: ---------------------------Old2k4 - Release---------------------------
Heading: ---------------------------KFMod - Release----------------------------
Heading: ---------------------------KFChar - Release---------------------------
Heading: ---------------------------KFGui - Release----------------------------
Heading: -------------------------GoodKarma - Release--------------------------
Heading: -------------------------KFMutators - Release-------------------------
Heading: -----------------------ServerPerksV5 - Release------------------------
Heading: -------------------------RedneckDlc - Release-------------------------
Heading: -----------------------RedneckEarlMod - Release-----------------------
Warning: Failed to load 'RedneckEarlMod.u': Can't find file 'RedneckEarlMod.u'
Warning: Failed loading package: Can't find file 'RedneckEarlMod.u'
Log: Analyzing...
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\RedneckEarlMod\Classes\RedneckEarl.uc)
Log: Class: RedneckEarl extends PlayerRecordClass
Log: Imported: Class RedneckEarlMod.redneckEarl
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\RedneckEarlMod\Classes\RedneckEarlSoundGroup.uc)
Log: Class: RedneckEarlSoundGroup extends KFMaleSoundGroup
Log: Imported: Class RedneckEarlMod.RedneckEarlSoundGroup
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\RedneckEarlMod\Classes\RedneckEarlSpecies.uc)
Log: Class: RedneckEarlSpecies extends PoliceSpecies
Log: Imported: Class RedneckEarlMod.RedneckEarlSpecies
Log: FactoryCreateText: Class with ClassFactoryUC (0 1 ..\RedneckEarlMod\Classes\RedneckEarlVoicePack.uc)
Log: Class: RedneckEarlVoicePack extends KFVoicePack
Log: Imported: Class RedneckEarlMod.RedneckEarlVoicePack
Log: Parsing RedneckEarlVoicePack
Log: Parsing RedneckEarlSpecies
Log: Parsing redneckEarl
Log: Parsing RedneckEarlSoundGroup
Log: Compiling RedneckEarlVoicePack
Log: Compiling RedneckEarlSpecies
Log: Compiling redneckEarl
Log: Compiling RedneckEarlSoundGroup
Log: Importing Defaults for RedneckEarlVoicePack
Warning: Failed to load 'SoundGroup dlcRednecks.redneckMedium.yallStrangers': Failed to find object 'SoundGroup dlcRednecks.redneckMedium.yallStrangers'
Error: ObjectProperty KFMod.KFVoicePack.InsultSound: unresolved reference to 'SoundGroup'dlcRednecks.redneckMedium.yallStrangers''
Warning: Failed to load 'SoundGroup dlcRednecks.redneckMedium.searchStrangers': Failed to find object 'SoundGroup dlcRednecks.redneckMedium.searchStrangers'
Error: ObjectProperty KFMod.KFVoicePack.InsultSound: unresolved reference to 'SoundGroup'dlcRednecks.redneckMedium.searchStrangers''
Warning: Failed to load 'SoundGroup dlcRednecks.redneckMedium.attackStrangers': Failed to find object 'SoundGroup dlcRednecks.redneckMedium.attackStrangers'
Error: ObjectProperty KFMod.KFVoicePack.InsultSound: unresolved reference to 'SoundGroup'dlcRednecks.redneckMedium.attackStrangers''
Log: Importing Defaults for RedneckEarlSpecies
Log: Importing Defaults for redneckEarl
Log: Importing Defaults for RedneckEarlSoundGroup
Warning: Failed to load 'SoundGroup dlcRednecks.redneckMedium.redneckDie': Failed to find object 'SoundGroup dlcRednecks.redneckMedium.redneckDie'
Error: ObjectProperty XGame.xPawnSoundGroup.DeathSounds.DeathSounds: unresolved reference to 'SoundGroup'dlcRednecks.redneckMedium.redneckDie''
Warning: Failed to load 'SoundGroup dlcRednecks.redneckMedium.redneckHit': Failed to find object 'SoundGroup dlcRednecks.redneckMedium.redneckHit'
Error: ObjectProperty XGame.xPawnSoundGroup.PainSounds.PainSounds: unresolved reference to 'SoundGroup'dlcRednecks.redneckMedium.redneckHit''
Log: Compile aborted due to errors.
Log: Failure - 5 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: 86154->0; refs: 0
Exit: Object subsystem successfully closed.
Exit: Exiting.
Log: FileManager: Reading 0 GByte 211 MByte 148 KByte 494 Bytes from HD took 0.645997 seconds (0.514997 reading, 0.131000 seeking).
Log: FileManager: 0.848000 seconds spent with misc. duties
Uninitialized: Name subsystem shut down
Uninitialized: Allocation checking disabled
Uninitialized: Log file closed, 02/21/12 19:40:04
 
Upvote 0
Try writing it simply like this:
Code:
defaultproperties
{
...
	InsultSound(0)=yallStrangers
	InsultSound(1)=searchStrangers
	InsultSound(2)=attackStrangers
}
You don't need to implement Group/Package/Object metaclass names.
But make sure they are SoundGroups, because KFVoicePack requires those variables to use SoundGroup and not Sound.
 
Last edited:
Upvote 0