Jump to content

GTA4 - modding ability


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.

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....

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.

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.

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="gun@handgun" 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="gun@shotgun"/>

 

  <effects>

    <muzzle fx="muz_shotgun"/>

    <shell fx="weap_ejected_shotgun"/>

  </effects>

  </assets>

</weapon>

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="gun@handgun" 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="gun@shotgun"/>

 

   <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

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.

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.

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.

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.

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.

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.

 

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.

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.

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
  • 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.