Now this part is using txt2dat.exe
Before we start this, create a folder somewhere easy like the C:\ drive. Name it anything. Mine is "Something" Now create another folder inside that named MEDIA. Like this: "C:\SOMETHING\MEDIA"
For ease of creating more folders, hit the key CTRL+SHIFT+N in that order. Or, download
this, extract, and place it in your C:\ drive so it looks like "C:\SOMETHING\MEDIA"
===========================================================================================================================================================================================================
STEP 1: First thing, pick a .txt file you want to mess with. In this case for simplicity, I will be using a level 2 pistol.
Pistol in game before changes. I will be changing the speed.
The speed before the change. For every increment of 10 speed, in game it will be up by 0.08. Example: 100 speed in the .txt file is 0.80 speed in game.
In this case, 70 speed is 0.56 speed in game.
Speed changed to 40 which should be 0.32
============================================================================================================================================================================================================
STEP 2: Spoiler for Drag and drop.
Drag and drop. Simple as that. Use txt2dat.exe.

You will know if it worked by the modified date.

You will also change the folders based on where the file is located. Example:
ADD_COMBO_FIRE.DAT.txt would translate to
- Code: Select all
MEDIA\AFFIXES\SKILLS\ADD_COMBO_FIRE.DAT
And so on and so forth.
You cannot just put the dat file in the \MEDIA\ folder and then pack or it will not work Example below.

STEP 3-A: This spoiler is for fgaaghf's torch2packer.
First, download
this. Extract it to somewhere and have the folder open in the backround. We will use this later.
Do you have your .dat file in the correct place? Good. Make sure there are no .txt files in the folders when you plan to create the new DATA.PAK.
Now bring forward the torchpacker window and have open the place where the SOMETHING folder is.
Now, drag the SOMETHING folder, or whatever folder you named it, and drop it over the torch2packer.exe. It should pop up with a window saying extracted.
The new DATA.PAK files are now named whatever your SOMETHING folder was called plus .DATA.PAK.
Now copy both of those files into the PAKS directory of where your TL2 is and you are good to go!

STEP 3-B: This spoiler is for cienislaw's paktool. This works the same exact way that fgaaghf's packer does.
First, download
this. Extract it to somewhere and have the folder open in the backround. We will use this later.
Do you have your .dat file in the correct place? Good. Make sure there are no .txt files in the folders when you plan to create the new DATA.PAK.
Now bring forward the paktool window and have open the place where the SOMETHING folder is.
Now, drag the SOMETHING folder, or whatever folder you named it, and drop it over the paktool.exe. It will flash a command prompt window.
The new DATA.PAK files are now named whatever your SOMETHING folder was called plus .DATA.PAK.
Now copy both of those files into the PAKS directory of where your TL2 is and you are good to go!

Now fire up TL2, go in game and spawn the item you modified or if it's your pack or stash check that.
Awesome! It works!
Congratulations! You now have edited a txt file and converted it to .DAT and put in game!