• 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/

3D & Animation Custom Skin For Serveur KF

guliano

Grizzled Veteran
Oct 3, 2013
57
0
Hello, I need help, I would like to take players on creation but killing floor server, my creation are alternative skin but I would like it to become independent skin to enjoy a maxiumum of player, so I wonder if anyone can help me for his.
 

Attachments

  • beta.jpg
    beta.jpg
    38.5 KB · Views: 0
  • Kazama.jpg
    Kazama.jpg
    27.3 KB · Views: 0
  • Smith.jpg
    Smith.jpg
    27.2 KB · Views: 0
  • zaibatsu.jpg
    zaibatsu.jpg
    25.9 KB · Views: 0
Last edited:
This is what you want Kazama.uc to look like (I think, I've never done this before)
Code:
class Kazama extends PlayerRecordClass;

#exec obj load file="KF_Soldier4_Kazama_T.utx" // Load up all needed animations or texture files using these lines.
#exec obj load file="KF_Soldier_Trip.ukx"

simulated static function xUtil.PlayerRecord FillPlayerRecord()
{
    local xUtil.PlayerRecord PRE;

    PRE.Species = Class'PyroRedSpecies'; // Species (can be used to replace sounds or misc stuff)
    PRE.MeshName = string(Mesh'Pyro_Tf2'); // Name of the mesh.
    PRE.BodySkinName = string(Shader'Uniforms.KF_Pyro_Red_cmb'); // Body skin name (Material #0)
    PRE.FaceSkinName = string(Material'Uniforms.KF_Pyro_Red_cmb'); // Face skin name (Material #1)
    PRE.Portrait = Texture'Pyro_Red_Portrait'; // Portrait texture
    PRE.TextName = "Custom Red Pyro skin."; // Description text.
    PRE.VoiceClassName = string(Class'KFVoicePackTwo'); // Voice pack
    PRE.Sex = "M"; // M = Male, F = Female
    PRE.Menu = "SP"; // Not needed to modify.
    PRE.Skeleton = string(Mesh'Pyro_Tf2'); // Unused in KF
    PRE.Ragdoll = "British_Soldier1"; // Should be this only.
    return PRE;
}

EDIT: Fixed small error with package loading.
 
Last edited:
Upvote 0
In your Killing Floor directory make a folder called 'KazamaMod'.
In there make a folder called 'Classes'.
Make a new file \KazamaMod\Classes\Kazama.uc
'uc' is the file extension for code that is not compiled.
In the file, paste the code that I gave you in my last post, and save the file.

In Steam, in the library drop-down list click 'Tools'.
Find 'Killing Floor SDK' and install it if you happen to have it uninstalled.
I assume you have it installed already.

In \System\KillingFloor.ini search for the lines starting with 'EditPackages='
'ini' is a configuration file extension.
At the end of the list of those EditPackage lines add a new one that says
Code:
EditPackages=KazamaMod
Save and close the file.

Make a new file in \System\CompileMyMod.bat
'bat' is a Batch file, and it processes commands just like the Command Prompt (which you may have heard of cmd.exe).
Open your new 'bat' file in a text editor like notepad and paste this:
Code:
@echo off
cls
ucc make
pause
Save and close the file.

Make sure you have all your character assets in the correct places, such as 'KF_Soldier4_Kazama_T.utx' is inside \Textures folder.

Double click to run the 'bat' file you created earlier. It should tell you what it's doing.
If it gives you an error, report back here what it said.
If it works properly it will create a file \System\Kazama.u
'u' file extension is the same as 'uc' except it is now "compiled" which means it is usable by the game engine.
This is what your bat and ucc.exe did to your 'uc' file.

Assuming you have ServerPerks installed, open your ServerPerks ini file and add the line
Code:
CustomCharacters=Kazama

It should now work in-game.
Let me know how you go.
 
Upvote 0
there is an error when I compile :

Setting breakpad minidump AppID = 1250
Steam_SetMinidumpSteamID: Caching Steam ID: 76561198045361873 [API loaded no]
----------------------------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-------------------------
------------------------KFStoryGame - Release-------------------------
-------------------------KFStoryUI - Release--------------------------
-----------------------SideShowScript - Release-----------------------
------------------------FrightScript - Release------------------------
-------------------------KazamaMod - Release--------------------------
Analyzing...
Parsing Kazama
Compiling Kazama
F:\Steam\SteamApps\common\KillingFloor\KazamaMod\Classes\Kazama.uc(12) : Error,
Can't find Shader 'Uniforms.KF_Pyro_Red_cmb'
Compile aborted due to errors.
Failure - 1 error(s), 0 warning(s)
Appuyez sur une touche pour continuer...
 
Upvote 0
there is an error when I compile :
Can't find Shader 'Uniforms.KF_Pyro_Red_cmb'
I discovered the problem.
PRE.BodySkinName = string(Shader'Uniforms.KF_Pyro_Red_cmb');
Because your first material is not actually a shader it was complaining.
I changed it to material in the 'uc'.
Also, I added a line to load the KFPortraits file, because your character uses the default character portrait from that file.

Here is the updated 'uc' file:
Code:
class Kazama extends PlayerRecordClass;

#exec obj load file="KF_Soldier4_Kazama_T.utx" // Load up all needed animations or texture files using these lines.
[B]#exec obj load file="KFPortraits.utx" // Uses the default portrait in this file[/B]
#exec obj load file="KF_Soldier_Trip.ukx" // Uses the default animation mesh in this file

simulated static function xUtil.PlayerRecord FillPlayerRecord()
{
    local xUtil.PlayerRecord PRE;

    PRE.Species = Class'PyroRedSpecies'; // Species (can be used to replace sounds or misc stuff)
    PRE.MeshName = string(Mesh'Pyro_Tf2'); // Name of the mesh.
    PRE.BodySkinName = string([B]Material[/B]'Uniforms.KF_Pyro_Red_cmb'); // [B]It would not allow this to be declared as a shader[/B]
    PRE.FaceSkinName = string(Material'Uniforms.KF_Pyro_Red_cmb'); // Face skin name (Material #1)
    PRE.Portrait = Texture'Pyro_Red_Portrait'; // Portrait texture
    PRE.TextName = "Custom Red Pyro skin."; // Description text.
    PRE.VoiceClassName = string(Class'KFVoicePackTwo'); // Voice pack
    PRE.Sex = "M"; // M = Male, F = Female
    PRE.Menu = "SP"; // Not needed to modify.
    PRE.Skeleton = string(Mesh'Pyro_Tf2'); // Unused in KF
    PRE.Ragdoll = "British_Soldier1"; // Should be this only.
    return PRE;
}

It should compile without errors now.
Follow the link in my signature and add me on steam, so I can try to help you if you have any further problems.
 
Upvote 0
Setting breakpad minidump AppID = 1250
Steam_SetMinidumpSteamID: Caching Steam ID: 76561198045361873 [API loaded no]
----------------------------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-------------------------
------------------------KFStoryGame - Release-------------------------
-------------------------KFStoryUI - Release--------------------------
-----------------------SideShowScript - Release-----------------------
------------------------FrightScript - Release------------------------
-------------------------KazamaMod - Release--------------------------
Analyzing...
Parsing Kazama
F:\Steam\SteamApps\common\KillingFloor\KazamaMod\Classes\Kazama.uc(23) : Error,
Unexpected end of file at end of Class
Compile aborted due to errors.
Failure - 1 error(s), 0 warning(s)
Appuyez sur une touche pour continuer...
 
Upvote 0
Here just add this line
PRE.Species=Class'KFMod.PyroRedSpecies';
as in
Code:
class Kazama extends PlayerRecordClass;

#exec obj load file="KF_Soldier4_Kazama_T.utx"
#exec obj load file="KFPortraits.utx"
#exec obj load file="KF_Soldier_Trip.ukx"

simulated static function xUtil.PlayerRecord FillPlayerRecord()
{
    local xUtil.PlayerRecord PRE;

[COLOR="Lime"][B]    PRE.Species=Class'KFMod.PyroRedSpecies';[/B][/COLOR]
    PRE.MeshName = string(Mesh'Pyro_Tf2');
    PRE.BodySkinName = string(Material'Uniforms.KF_Pyro_Red_cmb');
    PRE.FaceSkinName = string(Material'Uniforms.KF_Pyro_Red_cmb');
    PRE.Portrait = Texture'Pyro_Red_Portrait';
    PRE.TextName = "Pyro decided to get a costume change.";
    PRE.VoiceClassName = string(Class'KFVoicePackTwo');
    PRE.Sex = "M";
    PRE.Menu = "SP";
    PRE.Skeleton = string(Mesh'Pyro_Tf2');
    PRE.Ragdoll = "British_Soldier1";
    return PRE;
}
If you also want, you can add Red Pyro's portrait into KF_Soldier4_Kazama_T so you dont have to load up KFPortraits
 
Upvote 0