Jump to content

Photo
- - - - -

RPGs Taking Pistol Ammo Slots (Crash)


  • Please log in to reply
3 replies to this topic
Thread Starter
Jagermeisters
Jagermeisters

    Private First Class

  • Members
  • 28 posts

  • Joined: 08-August 2011

Posted 30 October 2011 - 08:01 #1

I have my own custom config. One of the things I thought was brilliant was LAW/RPG/AT/M203 ammo taking up pistol ammo slots instead of main ones. It worked perfectly for every mission and campaign I played; no problems. Then I re-played the Resistance campaign.

Crash.

Basically, if I end any mission with my men carrying RPG ammo, the game crashes as soon as I hit the next mission briefing (before I actually get to the briefing; but after the cutscene). If I tell them to drop the ammo before the mission ends, it works fine.

I'm guessing this has something to do with Resistance's ammo pool feature. My question...what can I do to fix it? Obviously, regular pistol ammo doesn't cause the game to crash. I really enjoy grenadiers and LAW men being able to carry the same ammo load regular soldiers do, while carring LAWs and M203s. I don't want to give that up.

Some solutions I tried:

- I also tried making LAW ammo magazinetype=0 (instead of magazinetype=32), so it doesn't take up a slot at all. But now soldiers can carry unlimited amounts. Is there a way to limit it?

- Here's my edited RPGLauncher config:

class RPGLauncher:LAWLauncher
{
initSpeed=115;
model="\rhs_rpg22\rpg22e.p3d";
modelspecial="\rhs_rpg22\rpg22.p3d";
modelOptics="optika_RPG";
ammo="RPG22";
magazines[]={"RPGRocket","RPGLauncher"};
displayName="RPG-22 Launcher";
displayNameMagazine="RPG-22 Rocket";
shortNameMagazine="RPG-22 Rocket";
magazineType="4 * 32";
magazineReloadTime=12;
reloadTime=0.5;
opticsZoomMin=0.18;
opticsZoomMax=0.18;
distanceZoomMin=100;
distanceZoomMax=100;
};

class RPGRocket:RPGLauncher
{
};

Edited by Jagermeisters, 30 October 2011 - 08:26.
Added example


zulu1
zulu1

    Sergeant Major

  • Members
  • 1740 posts

  • Joined: 19-February 2006

Posted 30 October 2011 - 14:31 #2

You might have to delete your saved games. Weapons info is stored there and if there is a change it could crash.
System Specs: [Intel i5 655k 3.2ghz unlocked]...[8gb ddr3 1344mhz ram]...[evga GTX660sc 2gb gddr5]...[Creative Sound Blaster X-Fi Xtreme]
Worlds largest collection of OFP files known to man.

Thread Starter
Jagermeisters
Jagermeisters

    Private First Class

  • Members
  • 28 posts

  • Joined: 08-August 2011

Posted 30 October 2011 - 14:51 #3

Even if it's a reverted campaign? I started over and played from the beginning. Do the saves still effect it? I guess I could delete the Saved folder and try again. I'll get back to you.

Edit: I tried deleting the Saved folder, but after a false alarm, it still doesn't work. :(

What caused the false alarm was I deleted magazines= from the config. Now RPGLauncher would use only "RPGLauncher" as its magazine - instead of "RPGRocket." I did that and the game didn't crash... but it caused bigger problems.

- There's problems with RPGLauncher with magazinetype=32. For some reason, I can't select the magazine in the weapon selection screen. It's just not there; it's gone. But SoldierGLAW comes with the ammo and it's there. But if I get get rid of his weapon, then I try to add it back -- it's gone again! Why does it work OK with RPGRocket, but not RPGLauncher as the magazine?

If I can figure that out, it'll also solve the Resistance crash.

Edited by Jagermeisters, 30 October 2011 - 18:25.


Thread Starter
Jagermeisters
Jagermeisters

    Private First Class

  • Members
  • 28 posts

  • Joined: 08-August 2011

Posted 05 November 2011 - 14:24 #4

I SOLVED IT! :D I put this into LAWLauncher config:

weaponType="16 + 4096";

For some reason, that works. Everything works perfectly now.