WARNING: The forum is now in read-only mode as we will soon be transitioning to different forum software. Feel free to join our Discord server in the meantime.
[Bot] Google
Posts:100
Joined:Sun Aug 25, 2013 7:41 am
Location:Russia
Weapons damage

Sun Sep 01, 2013 11:11 am

Hello, I have a question about weapon damage change and server crash. I edit level-00.fbrb in "mp _ common" and change some damage parameters.
in Objects\weapons\Handheld\BU_sni_M95\BU_sni_M95_Firing.dbx
<field name="DamageToDistribute">0</field>
<field name="StartDamage">100.0</field>
<field name="EndDamage">100.0</field>

in Objects\weapons\Handheld\US_at_M136\US_at_M136_Firing.dbx
<field name="ImpactImpulse">16000.0</field>
<field name="Damage">520.0</field>
<field name="WarnTarget">wtWarnVehicle</field>

Server works with this parameters some time, but then crashes with this error:

Code: Select all

[UTC 09/01/2013 07:15:35.431] Engine/Game/GameplayCommon/Weapons/WeaponFiring.cpp(1277): "Main": Assert: (primaryHasInfiniteMags() || numBulletsWanted >= 0) Mags 6, -3 (S20K)

or with this:

Code: Select all

[UTC 09/01/2013 10:27:38.513] Engine/Game/GameplayCommon/Weapons/WeaponFiring.cpp(1091): "Main": Assert: (m_primaryFire.projectilesInMagazine <= primaryAmmoMagCapacity()) Magazine with capacity 4 contains 8 projectiles.


What am I doing wrong?

emi-liano
Posts:102
Joined:Wed Dec 26, 2012 3:49 am
Location:Behind you!
Contact: Website WLM Yahoo Messenger AOL

Re: Weapons damage

Sun Sep 01, 2013 11:48 am

Hi, it looks like you also change the ammunition parameters. The first error is about the S20K shotgun, it seems that you are exceeding the max number of bullets, and the second error is similar (Magazine with capacity 4 contains 8 projectiles). you set 4 as maximun capacity but you are trying to fit 8 bullets.
your server crash sometimes because somebody or you, where trying to use this weapon. Try to restore the common or fix the ammunition parameters.

[Bot] Google
Posts:100
Joined:Sun Aug 25, 2013 7:41 am
Location:Russia

Re: Weapons damage

Sun Sep 01, 2013 12:13 pm

I change only this two parameters. My server is R34 but I use R32 level-00.fbrb files, because BC2Mod crashes when I try to archive R34 fbrb. Is it possible that this error occurs because of it? But with multi vehiclespawn R32 fbrb files works fine :?

[Bot] Google
Posts:100
Joined:Sun Aug 25, 2013 7:41 am
Location:Russia

Re: Weapons damage

Mon Sep 02, 2013 6:21 pm

And again I have this error with

Code: Select all

[UTC 09/02/2013 18:07:40.954] Engine/Game/GameplayCommon/Weapons/WeaponFiring.cpp(1277): "Main": Assert: (primaryHasInfiniteMags() || numBulletsWanted >= 0) Mags 6, -6 (S20K)
and the same error with usas-12
But I don't change anything in mp_common. Anybody knows how to fix this? Maybe possible disable this weapons?

User avatar
RobbingHood
Posts:3305
Joined:Mon Dec 17, 2012 8:50 pm

Re: Weapons damage

Sat Sep 07, 2013 2:01 pm

I had this problem with the "extended magazine" perk for shotguns. If someone uses a shotgun with this feature, and someone else, who doesn't picks it up, the server crashes.

Don't know how to fix it, though.

[Bot] Google
Posts:100
Joined:Sun Aug 25, 2013 7:41 am
Location:Russia

Re: Weapons damage

Sun Sep 08, 2013 7:04 am

I try to disable spawn with S20k and USAS 12 with procon plugin. Server shuts down less often, but sometimes it crashes.

-=V12-POWER=-
Posts:57
Joined:Sat Apr 13, 2013 9:09 pm

Re: Weapons damage

Fri Sep 27, 2013 10:36 pm

Put your backup files for mp_common and start it over again. There's almost no way to determine what causes X thing unless the server tells you, or use R32 files

Return to “Modifications”

Who is online

Users browsing this forum: No registered users and 52 guests