Necrogiant
HV August - 16 - 2010 News, Articles10 COMMENTS

This Tutorial was written by dany25

1. Installation:

  • You need to extract the pkmdl and dds from Models.pak to Painkiller\Data\Models directory and Textures.pak to Painkiller\Data\Textures directory with Dragonunpacker.
  • Download Blender and install it.
  • Download Milkshape3d and install it.
  • Download the pkmdl script and extract it directly into the scripts directory (for directly use in import export)

    Windows 7/Vista: C:\Users\USERNAME\AppData\Roaming\Blender Foundation\Blender\.blender\scripts,

    Windows XP: C:\Documents and Settings\USERNAME\Application Data\Blender Foundation\Blender\.blender\scripts.

2. Load Blender and import a pkmdl:

PKMDL

Click on File => Import => Pkmdl and go to

C:\Program Files\DreamCatcher\Painkiller Black Edition\Data\Models\clown.pkmdl

Press pav_num 3 => pav_num 1 to see him in front of you.

PKMDL

Now Export to wavefront obj don’t mess with export options just save the obj file.

Load Milkshape 3d don’t close Blender and import the wavefront obj file.

PKMDL

Oh no!!! I see the clown all black!!! Don’t fear just click on Edit => Refresh Textures

PKMDL

Now add a primitive object look like a sphere for the left hand.

PKMDL

Add a new material Materials tab => click on the first none. And load the clown.dds texture:

C:\…\DreamCatcher\PainkillerBlackEdition\Data\Textures\Models\clown.dds

PKMDL

Select only the sphere and press Ctrl + T.

PKMDL

Click on Scale and click on the texture to change the size of sphere uvmap and Move it
where you want (I move it on the green clown hair).

PKMDL

Now Select all (Ctrl+A) and Rotate (Model tab => Rotate) with Rotate Options => Origin and Global checked X 90 Y 0 Z 0 and click on Rotate.

PKMDL

Now Delete the Clown object (Not the Sphere) and the clown Material. And Click on File Export to 3ds.

PKMDL

Go back to Blender and Import your 3ds file with Size Constraint = 40. And Select the left hand and the sphere and move it to a second layer (key M) Select the sphere and switch to Edit Mode and move the sphere a little under the left hand.

PKMDL

And group the objects together (under see the image).

PKMDL

Now you can Move the object to the first layer.

PKMDL

Deselect all. Switch to Edit mode and go to under Vertex Groups => select dlo_prawa_root. Click on Select (always in Vertex Groups).

PKMDL

And press Ctrl + left mouse button and select the sphere. Click on Assign (always in Vertex Groups).

PKMDL

Now for finished Select only the sphere always in Edit Mode and move it a little to the left hand. Select the Armature (skeleton) and click on File => Export => Pkmdl and save it to
!!!MAKE A COPY FIRST!!!

C:\Program Files\DreamCatcher\Painkiller Black Edition\Data\Models\clown.pkmdl

Now launch the game or PainEditor and you see it!!!

PKMDL

3. Links:

  • SlavOK

    Wow! Yes it is already higher programming 🙂

  • Eggtooth

    Thank you. It will be usefull for Painkiller Redemption models.

  • Peppins

    How I can do it with blender 2.60? I have estracted on script folder but don’t work :S

  • Stebe

    HELLO… I CANNOT GET THE EXPORTER TO WORK. IT EXPORTS “.BLEND” FILES, NEVER “.PKMDL”. PLEASE EXPLAIN HOW TO DO THIS BETTER. . . 🙁 THERE ARE A LOT OF MISSING DETAILS HERE!!! =((( I *NEED* TO FIGURE THIS OUT!!! HELP!!!

    Come help @ irc.quakenet.org #painkiller

  • danymod

    Long time ago i have made this tutorial…
    Anyway for exporting just click on File> Export> Painkiller (pkmdl).
    Normally this script work on Blender 2.49b.

  • danymod

    Also you need to have an armature before exporting to pkmdl

  • Stebe

    Yes, I have an armature…
    Yes, I have Blender 2.49b and tried to match all steps…
    Yes, I have tried to export .pkmdl from IMPORTED PK .pkmdl…
    No, it is not working…
    🙁

    Has ANYONE besides dany been able to do this???

    • crono

      your fucked stebe no one is ever gonna help u

  • danymod

    Hi,

    Sorry for later reply…
    If you check the log file.
    I tested your file the error is you just need to rename the first bone (joint 37) to the name ROOOT.
    I tested the exporter works 🙂
    https://dl.dropbox.com/u/68586225/water.pkmdl

    Regards

  • situkka

    Simply: Thank you!!

Categories

Painkiller is a first-person shooter game released on April 12, 2004. The game takes place in Purgatory and Hell. The main character is Daniel Garner.