Convert a Survivor Mod to a Different Survivor
This was my checklist for working on 21 requests to convert existing survivor addons to a different survivor and having their anims work correctly online.
The main conversion is described here: Modding the Body Animations By Swapping with Another Survivor's Animations
Start
Create work folder.
Copy template folders to work folder.
Rename "Zoey_CustomName" folders.
Rename "Zoey_CustomName.txt" file.
"01 setup"
Copy vpk to "01 setup" folder.
Unpack vpk.
Decompile world model.
Compile world model for model viewer.
Tweak the world model qc file as needed.
Check mesh, jigglebones, face anims (blink and jaw_drop).
Decompile view model.
Compile view model for model viewer.
Tweak the view model qc file as needed.
Check mesh; it will probably be messed up anim, but that doesn't matter.
Copy the files in the world model's decompile folder to "02 source" folder.
Copy the files in the view model's decompile folder to "02 source" folder.
"02 source"
Rename the files in "02 source" to the correct survivor-based names.
Rename the view model reference mesh smd file to "<survivor_arms_mesh_name>_reference.smd".
Rename the file names in qc files to the correct survivor-based names.
Rename the reference mesh smd file name in view model qc file to "<survivor_arms_mesh_name>_reference.smd".
Replace $cdmaterials lines in world model qc file and in view model qc file to this:
$cdmaterials "models\ZeqMacaw\Zoey_CustomName\"
Add in $attachment lines, as needed, for "melee", and "L_weapon_bone".
Tweak the animation lines in the world model qc file to use separate "$declaresequence" qci file, as needed.
Compile world model for model viewer.
Verify animations line up with the survivor being replaced.
Check physics model, hitboxes, jigglebones, face anims.
Copy texture files used by world model to "03 release\Zoey_CustomName\materials\models\ZeqMacaw\Zoey_CustomName" folder.
Rename paths used in vmt files to the new path.
Copy the world model's texture files to the relevant subfolder of L4D2's materials folder.
Check translucency, eyes.
Set the $texturegroup lines for boomer-bile.
If needed, create boomer-bile vmt files.
Compile view model for model viewer.
Check mesh; it will probably be messed up anim, but that doesn't matter.
Copy texture files used by view model to "03 release\Zoey_CustomName\materials\models\ZeqMacaw\Zoey_CustomName" folder.
Rename paths used in vmt files to the new path.
Copy the view model's texture files to the relevant subfolder of L4D2's materials folder.
"03 release"
Compile world model for game.
Copy world model files from game's "models\survivors" folder to "03 release" "models\survivors" folder.
Compile view model for game.
Copy view model files from game's "models\weapons\arms" folder to "03 release" "models\weapons\arms" folder.
Edit the addoninfo.txt file.
Edit the "<survivor_name>_CustomName.txt" file.
Copy or create addonimage.jpg file.
Copy or create the 3 vgui image files.
Rename the vgui files to correct survivor-based names.
Create image with HLMV to be used in thumbnail image.
Test the vpk (and get screenshots)
Pack the mod folder into vpk file.
Clear the L4D2 addons folder.
Copy the vpk file to the L4D2 addons folder.
Start L4D2.
Check via Add-ons menu item the mod's image and description.
Check via creation of lobby the lobby image.
Check in online game for correct anims.
Check via "map" console command for these things:
correct view model
correct world model
correct avatar image
translucency
flashlight on translucent areas
flashlight shows shadow of world model
correctly holds two-handed melee in hands
correctly shows melee weapon on back when not in hands
boomer bile texture shows when world model is puked on
Create 3 screenshots within game:
front of world model
back of world model
view model
Cut the 3 screenshot images from L4D2's screenshots folder and paste them into "02 source\images" folder.
Copy the front view and back view screenshots to release folder.
Edit the view model screenshot adding in the lobby image and incap image.
Save the edited view model image to release folder.
Upload the vpk
Go through enough steps to get the URL of the addon page.
Copy-paste the addon URL into addoninfo.txt file.
Re-pack the mod folder into the vpk file.
Accepted with credit
Disable user screenshots
Link to original mod that was converted.
Upload the addon vpk file.