Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

GTA4 - modding ability


opium_addict
 Share

Recommended Posts

OK there was a bug that caused the game to crash in the middle of the game while modding, i am addressing this now and i will release a fix (NO SRC) later.

Link to comment
Share on other sites

OK there was a bug that caused the game to crash in the middle of the game while modding, i am addressing this now and i will release a fix (NO SRC) later.

Pls could you make a support for vista, too?

I think its not that bad to add some lines for you to enable the ASLR for Vista....

Link to comment
Share on other sites

OK there was a bug that caused the game to crash in the middle of the game while modding, i am addressing this now and i will release a fix (NO SRC) later.

Pls could you make a support for vista, too?

I think its not that bad to add some lines for you to enable the ASLR for Vista....

read aru's post, fix it that way; that security technique is not something i am aware that i can fix.

Link to comment
Share on other sites

Ahahaha, 3 days and gta4 is already moddable. nice try R*, but you failed.

WbZaxRP.png

Link to comment
Share on other sites

OK there was a bug that caused the game to crash in the middle of the game while modding, i am addressing this now and i will release a fix (NO SRC) later.

Pls could you make a support for vista, too?

I think its not that bad to add some lines for you to enable the ASLR for Vista....

read aru's post, fix it that way; that security technique is not something i am aware that i can fix.

It doesn't work, atleast for me and DexX.. So or the fix just doesn't work or we're doing something wrong.

Link to comment
Share on other sites

If it possible with this tool to start the game with "fonts.dat" replaced with "fonts_r.dat" (Russian .dat)?

Does anyone know how to use russian fonts "fonts_r.wtd" & "fonts_r_streamed_1.wtd" in the game?

Link to comment
Share on other sites

I asked because the way with the registry didnt work for me too...

i tried the dep way too but nothing changed... still the crash while loading the gta4.exe...

Link to comment
Share on other sites

here is a mod i made with changes to the weapon file tounge.gif

 

 

 

here is how

 

<weapon type="PISTOL">

  <data slot="HEAVY" firetype="PROJECTILE" damagetype="EXPLOSIVE" group="ROCKET" targetrange="50.0" weaponrange="100.0" clipsize="17" ammomax="1500" timebetweenshots="333">

  <damage base="25" networkplayermod="3.0" networkpedmod="1.0"/>

  <reload time="2000" fasttime="2000" crouchtime="2000"/>

 

  <aiming accuracy="0.5">

    <offset        x="0.15" y="1.0" z="0.55"/>

    <crouchedoffset x="0.2"  y="1.0" z="0.05"/>

    <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>CREATE_VISIBLE_ORDNANCE</flag>

  </flags>

 

  <projectile>

    <typetocreate type="ROCKET"/>

    <offset    x="0.54" y="0.0" z="0.055"/>

    <rotoffset x="0.0"  y="0.0" z="-1.571"/>

  </projectile>

  </data>

 

  <assets model="w_glock">

  <anim group="[email protected]" meleegroup1="firearm_core"/>

 

  <effects>

    <muzzle fx="muz_pistol_small"/>

    <shell fx="weap_ejected_pistol"/>

  </effects>

  </assets>

</weapon>

 

 

and shotgun

 

 

<weapon type="SHOTGUN">

  <data slot="SHOTGUN" firetype="INSTANT_HIT" damagetype="BULLET" group="SHOTGUN" targetrange="45.0" weaponrange="50.0" clipsize="80" ammomax="80" timebetweenshots="1233">

  <damage base="20" networkplayermod="5.0" networkpedmod="1.0"/>

  <physics force="1800.0"/>

  <reload time="2933" fasttime="2933" crouchtime="2933"/>

 

  <aiming accuracy="0.08">

    <offset        x="0.16" y="1.0" z="0.44"/>

    <crouchedoffset x="0.16" y="1.0" z="0.0"/>

    <reticule standing="1.0" ducked="1.0" scale="0.0"/>

  </aiming>

 

  <pickup regentime="240000" ammoonstreet="16"/>

 

  <controller>

    <rumble duration="200" intensity="1.0"/>

  </controller>

 

  <flags>

    <flag>GUN</flag>

    <flag>CAN_AIM</flag>

    <flag>CAN_FREE_AIM</flag>

    <flag>ANIM_RELOAD</flag>

    <flag>ANIM_CROUCH_FIRE</flag>

    <flag>HIGHER_BREAK_FORCE</flag>

    <flag>ARMOUR_PENETRATING</flag>

  </flags>

  </data>

 

  <assets model="w_shotgun">

  <anim group="[email protected]"/>

 

  <effects>

    <muzzle fx="muz_shotgun"/>

    <shell fx="weap_ejected_shotgun"/>

  </effects>

  </assets>

</weapon>

Link to comment
Share on other sites

I've also done a little launcher. It works for me with Vista x64.

Copy it to your GTAIV directory and run. Then the game will start automatically.

Download

Link to comment
Share on other sites

KickyMcAssington

 

here is a mod i made with changes to the weapon file tounge.gif

 

 

 

here is how

 

<weapon type="PISTOL">

  <data slot="HEAVY" firetype="PROJECTILE" damagetype="EXPLOSIVE" group="ROCKET" targetrange="50.0" weaponrange="100.0" clipsize="17" ammomax="1500" timebetweenshots="333">

   <damage base="25" networkplayermod="3.0" networkpedmod="1.0"/>

   <reload time="2000" fasttime="2000" crouchtime="2000"/>

 

   <aiming accuracy="0.5">

    <offset         x="0.15" y="1.0" z="0.55"/>

    <crouchedoffset x="0.2"  y="1.0" z="0.05"/>

    <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>CREATE_VISIBLE_ORDNANCE</flag>

   </flags>

  

   <projectile>

    <typetocreate type="ROCKET"/>

    <offset    x="0.54" y="0.0" z="0.055"/>

    <rotoffset x="0.0"  y="0.0" z="-1.571"/>

   </projectile>

  </data>

 

  <assets model="w_glock">

   <anim group="[email protected]" meleegroup1="firearm_core"/>

 

   <effects>

    <muzzle fx="muz_pistol_small"/>

    <shell fx="weap_ejected_pistol"/>

   </effects>

  </assets>

</weapon>

 

 

and shotgun

 

 

<weapon type="SHOTGUN">

  <data slot="SHOTGUN" firetype="INSTANT_HIT" damagetype="BULLET" group="SHOTGUN" targetrange="45.0" weaponrange="50.0" clipsize="80" ammomax="80" timebetweenshots="1233">

   <damage base="20" networkplayermod="5.0" networkpedmod="1.0"/>

   <physics force="1800.0"/>

   <reload time="2933" fasttime="2933" crouchtime="2933"/>

 

   <aiming accuracy="0.08">

    <offset         x="0.16" y="1.0" z="0.44"/>

    <crouchedoffset x="0.16" y="1.0" z="0.0"/>

    <reticule standing="1.0" ducked="1.0" scale="0.0"/>

   </aiming>

 

   <pickup regentime="240000" ammoonstreet="16"/>

 

   <controller>

    <rumble duration="200" intensity="1.0"/>

   </controller>

 

   <flags>

    <flag>GUN</flag>

    <flag>CAN_AIM</flag>

    <flag>CAN_FREE_AIM</flag>

    <flag>ANIM_RELOAD</flag>

    <flag>ANIM_CROUCH_FIRE</flag>

    <flag>HIGHER_BREAK_FORCE</flag>

    <flag>ARMOUR_PENETRATING</flag>

   </flags>

  </data>

 

  <assets model="w_shotgun">

   <anim group="[email protected]"/>

 

   <effects>

    <muzzle fx="muz_shotgun"/>

    <shell fx="weap_ejected_shotgun"/>

   </effects>

  </assets>

</weapon>

Very nice(borat voice) biggrin.gif

 

 

I was going to go crazy with the weapons until I remembered what happened when I did that in San Andreas

I seem to recall having my car one shot'ed by npc's after ramping up the damage, so my question then, Does this effect the NPC's weapons as well? as in, with this weapon mod will the cops now be shooting rocket pistols at you? tounge.gif

 

Hopefully the in game crash you mentioned is an easy fix.

I'm going to get back to modding now, hopefully I wont run into the bug before it gets fixed :-)

Edited by KickyMcAssington
Link to comment
Share on other sites

the hook works with a modified handling.dat, but ingame the handling is exactly the same. i tried setting damage multiplier to 0, and the car still took damage but the game crashed right when the car was supposed to blow up. all handling settings dont seem to affect how the car drives aswell.

Link to comment
Share on other sites

KickyMcAssington
the hook works with a modified handling.dat, but ingame the handling is exactly the same. i tried setting damage multiplier to 0, and the car still took damage but the game crashed right when the car was supposed to blow up. all handling settings dont seem to affect how the car drives aswell.

If that's true I think I will cry :-(

Handling is what I'm most excited to be able to mod, I want better traction damn it! :-)

 

be right back with a test to confirm handling.dat isn't working yet.

Link to comment
Share on other sites

game loads with handling.dat deleted, it's being loaded from somewhere else (im on retail, maybe cd?)

 

edit: filelist.pak has handling info in, im gonna try editing that

Edited by DuKtape
Link to comment
Share on other sites

KickyMcAssington
game loads with handling.dat deleted, it's being loaded from somewhere else (im on retail, maybe cd?)

 

edit: filelist.pak has handling info in, im gonna try editing that

Good eye sir smile.gif

 

That explains why editing handling.dat was crashing my game.

Drastic changes would crash the game as it loaded but subtle ones only crashed in game after a couple min. Also The changes didn't seem to take effect, though as I said they had to be subtle to get past the crash so who knows for sure.

I guess the files are conflicting tounge.gif

 

I'll try editing filelist.pak as well.

Both files may have to match up, I'll have a look anyway.

Thanks.

Link to comment
Share on other sites

WearingNothing

Ive tried opening the .pak file. I edited somthing then saved it. It crashes on start of gta iv. Its probally because if you look at the top of the file when you open there is some stuff that Notepad can't get right so when you save you just screw up that part. Id guess someone would need to make somthing to open the file correctly.

Link to comment
Share on other sites

well you open it with a hex editor lol. i tried changing the handling in filelist.pak, game crashes some time into the loading screen. tried changing both files so they match, crashes too.

Link to comment
Share on other sites

KickyMcAssington

Also If you delete filelist.pak and leave handling.dat the game will still start up, it only crashed 1 minute into gameplay. weird..

I think I'm out of my depth now :-(

 

Now after putting everything back to my default backups (other then the weapon tweak) the game is still crashing after a couple min, though now I cant be sure if its because of all the alt-tabbing I've been doing and the extra windows I've got open and the crashes I've had without rebooting or if its the weapon mod :-)

Time to reboot I think.

Link to comment
Share on other sites

I've also done a little launcher. It works for me with Vista x64.

Copy it to your GTAIV directory and run. Then the game will start automatically.

Download

Doesn't work. File was removed. Upload a new one?

Link to comment
Share on other sites

is this working with the non STEAM version.

Yes

what files are safe to mod modify at this time.

Link to comment
Share on other sites

WearingNothing

 

well you open it with a hex editor lol. i tried changing the handling in filelist.pak, game crashes some time into the loading screen. tried changing both files so they match, crashes too.

I just changed only the .pak file and gave my stallion alot of Mass. It has worked, i can't really video it but all you need to change is the .pak file.

Link to comment
Share on other sites

 

Download < Uploaded the one posted above, and this works with non-steam and steam if im not mistaken

Thank you.

 

Using that launcher, I edited my visualSettings.dat (common/data) to give the cars green headlights;

http://img523.imageshack.us/my.php?image=greenlightsrm4.jpg

 

Not a proper mod by any means, just a quick and obvious test. Now it's time to overhaul that file.

 

Note that for the visualsettings.dat file, there is also an .xls file of the same name, and it is also in filelist.pak. The only file i edited was visualsettings.dat in the data folder. Nothing else.

Link to comment
Share on other sites

I'm actually pretty sure you can edit the visualSettings.dat with my launch-injector as well.

 

Anyway, for the post asking about handling edits, and talking of "subtle" crashes, it could be because i did not update the version (i am using an updated version) there is no ingame crashes.

 

i will release it in the first post and update links etc.

Link to comment
Share on other sites

 

I'm actually pretty sure you can edit the visualSettings.dat with my launch-injector as well.

I couldn't start the game with your launcher, thus i never attempted to modify any files until i could launch a stock game first.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.