Page 1 of 1

Weapons randomly switch from ineffective to lethal [Solved]

Posted: Thu Jul 18, 2013 1:31 am
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

Re: Weapons randomly switch between ineffective and lethal

Posted: Thu Jul 18, 2013 1:33 am
by THEWULFMAN
Post your weapon ODF's. All of the ones that give you troubles. Their parent ODF's too.

Re: Weapons randomly switch between ineffective and lethal

Posted: Thu Jul 18, 2013 1:34 am
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.

Re: Weapons randomly switch between ineffective and lethal

Posted: Thu Jul 18, 2013 1:41 am
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.

Re: Weapons randomly switch from ineffective to lethal

Posted: Thu Jul 18, 2013 1:53 am
by ARCTroopaNate
Clean and re-munge? Manual clean?

Re: Weapons randomly switch from ineffective to lethal

Posted: Thu Jul 18, 2013 1:55 am
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.

Re: Weapons randomly switch from ineffective to lethal

Posted: Thu Jul 18, 2013 2:07 am
by ARCTroopaNate
Try cleaning and munging, munge all the sides.

Re: Weapons randomly switch from ineffective to lethal

Posted: Thu Jul 18, 2013 4:34 am
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)

Re: Weapons randomly switch from ineffective to lethal [Solv

Posted: Thu Jul 18, 2013 12:05 pm
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.