Call of Duty 5: Fixing Physic Preset
Step 1
Open cod5\deffiles\xmodel.gdf
in a hex/plain text editor. Delete the line near the bottom of the file which reads:
reldir("share/main/physic/")
This will allow you to select any file as a physics preset, instead of having to get one from cod5\share\main
which doesn't exist.
Step 2
Open cod5\deffiles\xmodel.dll
in a hex editor, search for
%main/physic/%s
and replace it with
%s///////////%s
This will stop the converter looking in main/physic/C:\blahblah\cod5, which is just messed up.
Step 3
Convert your model in Asset Manager, oh and make sure you've given it a physics preset in cod5\raw\physic
.
Step 4
In cod5\raw\xmodel
, find the model you just converted and open it in a hex editor. Near the top you should see something like:
=³Araw\physic\barrel_metal
change that to this:
\\\\\\\\\\\\\\barrel_metal
and there are always three characters before raw\
which you need to select whilst editing it too. Those three chars are what you see when the original 'no physics preset' error comes up.
Step 5
Now, compile your mod.ff and you're done!
You need to repeat Step 3 every time you re-convert the xmodel_export file in Asset Manager, but not every time you compile the mod fastfile.
By NovemberDobby