Creating A PFX File

From OuroDev
Revision as of 19:58, 23 March 2020 by HixxyDubz (talk | contribs) (Creating A PFX File)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This page is to show how you can create your very own PFX file.

While not from scratch (as that will take some knowledge in c++) by the end of this very short tutorial, you will know how to make PFX files for each of your powers in your new powerset. First off, whether you are editing a powersets power or making your own, its always good to make backups, so please make sure you back up first before going ahead with this as the programs i use auto save often so you do not want to have your original files overwritten until you are comfortable with the changes.

Ok so the first thing you will need to do is locate where the PFX files are, for me, since i have extracted them from the source code, are on my desktop.

so it will go like this: C:\Users\NAME\Desktop\AnimFX Locate the Definitions folder in your source folder, then menu>Powers>AnimFX, this folder will contain all the PFX files of every powerset ability in the game, whether used for players or NPC's. If you have v2i2 version of OuroDev then we will use Primalist's "Primalist_FeralMight_BrutalSwipe.PFX" as an example for this tutorial, proceed to open the file with Notepad++. This is a personal choice and not everyone will use this but for me, and for the sake of this tutorial we will use this progrma due to its easy to read structure. Once opened up, you will notice what appears to be file names that end in "NAME.fx" and a section that shows "PrimaryTint" and "SecondaryTint", this is of course where we will start.

This particular part is for creating the colour of your power that will be set to default once compiled and binned into your server, the format that the colour code is in is default, so in order to get the correct colour, it is imperative that you find a website that allows you to select a colour and provide you that colour number, preferably a "colour table" website, once you have your selected colour then proceed to write it down somewhere to keep a record of it, as you will be editing this colour into every power in your powerset, or, if it's just one power then only once.

Once that is done, you will notice the files that end in ".fx", these are the fx files that make up the PFX file altogether, some powers will have "ActivationFX" and then the power.fx in that line. ActivationFX just means the FX that starts your power off, in order to locate these particular files you will need to go back to your Definitions folder and look inside to see a folder called "fx". These are where all your FX powers will be, all you have to do is right click the FX name, rename, then copy that name and paste it into your PFX file, replacing the old name that you wish to replace.

Some FX files may state that they are "Activation" FX files, while others are "NAMEHit.fx", these are for the animation when the enemy gets hit with, the "AttackFX" is your main attack FX and some files may be named as such, so its best to fiddle around and see what you come up with, if a power does not have a colour tint option, then you can pretty much enter one in manually as shown in the folder itself.

Change the colour as needed but make sure it is in the format as shown just under:

//// ------------------------- FX RELATED FIELDS --------------------------------------//

Once that is all done, save your work to a location and then bin your work to your server and test out your newly created PFX.

Bare in mind, this is a work in progress and not everything may work the way you want to the first go around, which is best to take your time and do some data diving before actually constructing your new PFX file and get to grips with how it is constructed, most of it is pretty understandable and you will soon learn how to make new PFX files in no time.