thetracker34
Members
-
Joined
-
Last visited
Reputation Activity
-
LCPDFR 1.0 features a change to the Taser where you no longer have to edit or modify any of the original game files. Instead, LCDPFR uses its own models.img, WeaponInfo.xml and definitions.ide to make the Taser available in the game. As LCPDFR now uses its own files, these have to be recognised by the game and as such, it is necessary to edit the data files (images.txt, default.dat and gta.dat respectively). Of course, the point of this change is that the original files do not need to be edited, so we use a file hook in AdvancedHookInit.asi to add a new line to each of the above files when the game is launched. This does not edit your files, but rather makes a copy of them called [filename].tmp, adds in the lines, and makes the game use those files instead.
Unfortunately, this is causing just as many issues as the system before (that it was designed to fix), and is also causing a crash when you quit the game. These two issues can, however, be easily resolved, therefore, if this is causing problems, we recommend that you delete AdvancedHookInit.asi, and read on.
Manually Installing the LCPDFR Taser
After installing LCPDFR 1.0, you will have a folder in the game's 'PC' folder, called 'lcpdfr'. This folder contains all of the Taser files, and will look something like this:
If you do not have this folder, or any of these three files are missing, please re-install LCPDFR 1.0 using the Manual Installation package.
Each of these files has to be referenced in the game's core data files, so we can manually do this by editing them like so:
First, navigate to the game's 'common' folder. In my case, it is found here: C:Program Files (x86)SteamSteamAppscommonGrand Theft Auto IVGTAIVcommon. It should look like this:
Now, right click on the 'data' folder, to bring up the Properties window:
In this window, make sure that the Attribute called 'Read-only', is unticked, like so:
Then, click Apply, you will be presented with a new window:
Make sure that the second option is selected here, and then click OK.
Windows will then make the changes to the folder, allowing you to edit the files inside it. Once this is complete, you should navigate to the 'data' folder inside the 'common' folder, it will look like this:
There are two ways in which you can manually install the LCPDFR Taser:
Method 1: Download the already edited files:
LCPDFR 1.0 Taser Data Files.zip
Simply extract the folder somewhere, and copy the three data files in it to your common/data folder. Be sure to backup the original files first.
Method 2: Make manual file edits:
You will need to make three file edits, as explained below. You should backup these files before you edit them.
Editing gta.dat:
gta.dat contains a list of IDE definitions. We need to add the LCPDFR definitions.IDE to this file. To do this, you'll need to open the file in notepad, and then add the following line:
IDE platform:/LCPDFR/DEFINITIONS.IDE AFTER THE LINE:
IDE platform:/DATA/MAPS/PROPS/vegetation/Int_veg.IDE Your gta.dat file should now look like this:
If so, save the file.
Editing default.dat:
default.dat contains file locations for important gameplay related files, such as car handling and weapons. We need to add the Taser WeaponInfo.xml file to this. To do this, you'll need to open the file in notepad, and then add the following line:
WEAPONINFO platform:/lcpdfr/weaponinfo.xml AFTER THE LINE
WEAPONINFO common:/data/weaponinfo.xml Once done, save the file.
Editing images.txt:
images.txt contains a list of image files, which contain things like models and textures. We need to add the Taser image file to this list so that the game can load the model. To do this, you'll need to open the file in notepad, and then add the following line:
platformimg:/lcpdfr/models 1 AFTER THE LINE
platformimg:/data/maps/east/bronx_w2 0 Now, save the file.
Fixing the crash when you quit the game with the LCPDFR Taser installed:
You might have noticed that when you quit the game, a message box comes up saying you are out of memory and you should reboot your system. This, obviously, is not the case, and you can simply just dismiss the error message. The game will close fine.
Nonetheless, if you wish to fix this problem, the only way to do so is by adding the Taser model into the game like they were before in LCPDFR 1.0. Note that there are no detailed instructions on this, as we recommend for this users who are familiar with using a GTA IV .img editor, like OpenIV. If you are not familar with modifying the game's models and files, there are many tutorials available on this website, and others. You can add the LCPDFR Taser model to the game files by:
Extracting lcpdfr_taser.wdr and lcpdfr_taser.wtd from models.img in the LCPDFR folder, using your favourite GTA IV img editor (OpenIV or SparkIV preferably). Adding lcpdfr_taser.wdr and lcpdfr_taser.wtd to weapons.img in your pc/models/cdimages folder, using your favourite GTA IV img editor (OpenIV or SparkIV preferably). After doing this, you'll need to add the Taser's WeaponInfo.xml into the game as well. You can do this by editing the existing WeaponInfo.xml file, adding the following section of code, so that it fits in with the rest of the weapon entries (this is important, it must come AFTER the opening <weaponinfo version="1"> tag and BEFORE the closing </weaponinfo> tag).
<weapon type="UNUSED0"> <data slot="HANDGUN" firetype="INSTANT_HIT" damagetype="FIRE" group="PISTOL_SMALL" targetrange="8.0" weaponrange="8.0" clipsize="1" ammomax="1500" timebetweenshots="333"> <damage base="0" networkplayermod="3.0" networkpedmod="1.0"/> <physics force="0.0"/> <reload time="2000" fasttime="2000" crouchtime="2000"/> <aiming accuracy="0.25"> <offset x="0.0" y="1.0" z="0.0"/> <crouchedoffset x="0.0" y="1.0" z="0.0"/> <reticule standing="0.65" ducked="0.55" scale="0.3"/> </aiming> <pickup regentime="120000" ammoonstreet="30"/> <controller> <rumble duration="110" intensity="0.02"/> </controller> <flags> <flag>GUN</flag> <flag>CAN_AIM</flag> <flag>CAN_FREE_AIM</flag> <flag>ANIM_RELOAD</flag> <flag>ANIM_CROUCH_FIRE</flag> <flag>SILENCED</flag> </flags> </data> <assets model="lcpdfr_taser"> <anim group="gun@handgun" meleegroup1="firearm_core"/> <effects> <muzzle fx="ambient_flies_sparked"/> </effects> </assets> </weapon> Alternatively, you can download an already edited WeaponInfo.xml file, although be forewarned that any weapon modifications you are using will now use the default weapon settings and values:
WeaponInfo.xml