Weapons randomly switch from ineffective to lethal [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
CalvaryCptMike
Captain
Captain
Posts: 476
Joined: Sat Feb 19, 2011 3:10 pm
Projects :: Nothing--absolutely nothing
Location: Freed by alien robots, now living on Mars
Contact:

Weapons randomly switch from ineffective to lethal [Solved]

Post by CalvaryCptMike »

EDIT: Solved...A manual clean did the job, thanks ArcTroopaNate! :D

Okay, so I'm working on my mod, and everything is going well, I haven't made any major changes lately, but now all of a sudden, whenever I play any unit on any map, the primary weapon is practically useless.

For example, I go on utapau and play as the rebel rifleman (not the stock one, a heavily modified one) when I shoot at enemy soldiers and hit them, the bullets don't damage the enemy unit. The effects still flash, and the enemy unit "flinches" while it's hit, but is unharmed. I switch to the pistol, and it works fine. I tried restarting the game, the same thing happens on every level, even with different units, and different weapons, with completely different ordinances. What's even weirder is that the rifle sometimes works, especially at very close range, where it kills the enemy unit with like one shot. It's very inconsistent though.

The log showed several memory pools needed to be raised, but when I raised them, they had no affect. I've never had this problem before and help would be greatly appreciated.

Thanks! :D
Last edited by CalvaryCptMike on Thu Jul 18, 2013 4:31 am, edited 2 times in total.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Weapons randomly switch between ineffective and lethal

Post by THEWULFMAN »

Post your weapon ODF's. All of the ones that give you troubles. Their parent ODF's too.
CalvaryCptMike
Captain
Captain
Posts: 476
Joined: Sat Feb 19, 2011 3:10 pm
Projects :: Nothing--absolutely nothing
Location: Freed by alien robots, now living on Mars
Contact:

Re: Weapons randomly switch between ineffective and lethal

Post by CalvaryCptMike »

Wow! really fast reply. however, like I said, I haven't changed a thing in the weapon odfs. I can still post them, but I fail to see the point.

EDIT: to be more specific, before I started modding today, I played my mod for a bit, it worked fine.

Then, I gave one guy a bit more ammo, made a new grenade and gave it to the same guy, lowered someones shield, and raised someones health (not a parent class). Also, I lowered and raised reinforcements on certain maps, and changed the lists so that my snow units would appear on snow maps. I also created a new effect for the new grenade. I'm 99% sure that's all I did.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Weapons randomly switch between ineffective and lethal

Post by THEWULFMAN »

The only thing that can cause a problem at all like this, to my knowledge, is contained in the DamageTransition lines in the weapon ordnance. I don't know what else it could be beyond that.
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Re: Weapons randomly switch from ineffective to lethal

Post by ARCTroopaNate »

Clean and re-munge? Manual clean?
CalvaryCptMike
Captain
Captain
Posts: 476
Joined: Sat Feb 19, 2011 3:10 pm
Projects :: Nothing--absolutely nothing
Location: Freed by alien robots, now living on Mars
Contact:

Re: Weapons randomly switch from ineffective to lethal

Post by CalvaryCptMike »

Well I thought it couldn't hurt to double check so I went and played all the units again. The clone troopers gun worked fine, but the droid rifle and rebel rifle didn't. I checked, and the droid and rebel rifle share parent ordances: "com_weap_inf_rifle_ord". D'oh..

In that file the damage transition was set to instant and the end damage was set to 0. I changed it to the same as the beginning damage and munged the common side. I was feeling pretty silly at the moment, :roll: but then when I ran the level, the gun still didn't work! :runaway:

What's even weirder is that the AI next to me, using the SAME unit and gun, are shooting the enemies dead no problem. I'm the only one with an issue.
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Re: Weapons randomly switch from ineffective to lethal

Post by ARCTroopaNate »

Try cleaning and munging, munge all the sides.
CalvaryCptMike
Captain
Captain
Posts: 476
Joined: Sat Feb 19, 2011 3:10 pm
Projects :: Nothing--absolutely nothing
Location: Freed by alien robots, now living on Mars
Contact:

Re: Weapons randomly switch from ineffective to lethal

Post by CalvaryCptMike »

ARCTroopaNate wrote:Try cleaning and munging, munge all the sides.
I did it and it solved the problem! Thanks dude!

When I was making the new grenade, I put one of the ordance references in wrong. When munging, I got an error saying "levelpack.exe has crashed." I fixed the ordnance and munging worked after that, but it must have messed some stuff up in the process. Anyways the clean fixed it so thanks a ton, I never woulda thought to do that. 8)
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Re: Weapons randomly switch from ineffective to lethal [Solv

Post by ARCTroopaNate »

No problem, first thing I do when I encounter something that I'm not sure what caused is clean and munge, and if that doesn't work manual clean and munge, sometimes it just doesn't munge well and cleaning and re-munging can fix it.
Post Reply