This is the source code to FX Enhancer 4. Originally released by the author.
FX Enhancer 4 was previously released on moddb here and here.
FXE4 Source Code Release Mini-Tutorial
First off, my code is un-supported and I will not be providing e-mail help for it, I will however occasionally
reply to messages posted on the Blood 2 mod list re: it.
In this guide my instructions are intended to help you compile my code, not to tell you how to code,
there are countless books available for that. The intructions also only apply if you installed FXE4 source
to the default directory during installation (c:\fxe4src). If you wish to follow this tutorial I
recommend you install to this directory so my instructions are easier to follow.
The code includes all the files from the standard Blood 2 src, including all my changes I have made. it also
includes the original .dsp workspace files which work in MSVC++ 5.0 This guide is intended for people
owning MSVC++ 6.0 as I cannot help people running version 5.0 as I don't own it and thus wouldn't be
able to help people running it, this guide will probably not help you as I assume versions 5.0 and 6.0 are
different.
First open up
C:\FXE4src\ClientShellDLL\ClientShellDLL.dsp
First you will be given a conversion message stating that for MSVC++ 6.0 to use the workspace it must be
convereted from the old .dsp format to the new .dsw format. Once you have OK'd this and the workspace
has been converted the workspace for CShell.dll will open up which contains the build information and
class information. The first thing you need to change is the active configuration, to get it to work with
Blood 2 retail. Click Build -> Set Active Configuration and choose "Win32 Release" from the list. Next we
need to adjust the resources setting. To do this click Project -> Settings. Then select the resources tab.
The resources need to changes to the place where you installed FXE4source to. Assuming you used the
default installation directory, you would need to change the resources settings from my settings to
c:\fxe4src\appheaders;c:\fxe4src\shared;c:\fxe4src\misc
This instructs MSVC++ where to get the resources other than those in the .dsw's directory for building the dll.
Once you have done this, you should be ready to build the dll. To do this click Build -> Rebuild All , the dll
will be output to C:\Blood2 from here you should put it into a folder ready for rezzing.
Use the same procedure as above for the Objectdll.dsp to build Object.lto and also for Cres.dsp for building
Cres.dll and SRes.dll (see below)
Once you have built your dlls simply but them into a directory before you rez them up, however, you must
make a duplicate of cres.dll and rename it to Sres.dll. Then you will be ready to lithrez your folder.
Unrez fxe4.rez to see how the directory structure should be if need be. The dlls you should have in there
are:
CRes.dll
SRes.dll (identical to the file above, you need to duplicate the one above to create this)
Object.lto
CRes.dll
Once you've got your buliding working, you can get to work modifying my code and then rebuilding it and
trying out your changes. Please note that using the above settings, for some reason, when buliding CShell.dll
you may get this message when you click Rebuild All:
Command line warning D4002 : ignoring unknown option '/Ot'
Command line warning D4002 : ignoring unknown option '/Oi'
Command line warning D4002 : ignoring unknown option '/Oy'
Command line warning D4002 : ignoring unknown option '/Ob1'
This does not matter as the commands are being ignored, and you can leave the settings how they are if
this occurs. As long as when your building is finished the read out says there were 0 errors then your
code is fine to use, although unless your warnings are ignored I recommend you try and fix them.
Good luck,
Tren
15/08/99