Page MenuHomeFeedback Tracker

[RPT Spam] Duplicate magazine XXX detected (id 2:10045858) in slots player and medium
Feedback, NormalPublic

Description

Overall this version is way more spammy than "Duplicate weapon XXX detected" - can easily lead to 100s of MBs in a session

Some more info here:
https://discord.com/channels/105462288051380224/108187245529268224/1036565628527579176

Might be related to AI only muzzles
https://discord.com/channels/105462288051380224/122121444703338496/298202483153436672

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Error Message

Event Timeline

dedmen added a subscriber: dedmen.EditedJun 13 2023, 12:50 PM

Looks like you have a config error.
You have magazine both in "player" and "close/short/medium/far" modes of a weapon.
Just stop doing that?

Find out what weapon uses SPE_50x_SprGr34_Pak40_HE and look at its config

KercKasha added a subscriber: KercKasha.EditedJun 13 2023, 1:24 PM

To explain what we're doing and why the error is happening:

The issue occurs when you have a player commander and an AI Gunner of a tank. The player commander orders the AI gunner to switch magazine/shell type and the RPT spam starts.

The reason it's happening is because we have AI only muzzles to allow for AI to engage with HE shells and the like.

Example:

class SPE_M3_L40_HE_AI: SPE_M3_L40_base
{
    magazines[] = {"SPE_45x_M48_HE","SPE_M48_HE"};
    magazineWell[] = {"SPE_75x350mm_M3_HE"};
    modes[] = {"close","short","medium","far"};
};
class SPE_M3_L40: SPE_M3_L40_base
{
    muzzles[] = {"MODE_PLAYER_ALL","MODE_AI_HE"};
    magazines[] = {"SPE_30x_M61_M1_AP","SPE_14x_T45_M1_APCR","SPE_45x_M48_HE","SPE_14x_M64_WP","SPE_10x_M89_SMK","SPE_M61_M1_AP","SPE_T45_M1_APCR","SPE_M48_HE","SPE_M64_WP","SPE_M89_SMK"};

    magazineWell[] = {"SPE_75x350mm_M3_AP","SPE_75x350mm_M3_APCR","SPE_75x350mm_M3_WP","SPE_75x350mm_M3_HE","SPE_75x350mm_M3_SMK"};

    class MODE_AI_HE: SPE_M3_L40_HE_AI {};
    class MODE_PLAYER_ALL: SPE_M3_L40_base {};
};

When the AI swaps magazine type it has HE magazine loaded in both it's specific muzzle and the player one, causing the spam.

We've used this set up for awhile with no issue until this RPT spam appeared

dedmen added a comment.EditedJun 19 2023, 10:56 AM

Well the RPT spam is not new 😢 That code is atleast 5 years old.

Instead of adding SPE_M3_L40>>magazines
leave that empty and only add
SPE_M3_L40 >> MODE_PLAYER_ALL >> magazines

That should shut it up. Because you cannot have two magazines at the same time, but if they are in different muzzles, you can't have two muzzles active at the same time.

Sorry missed the notification on this one - will give it a shot and report back

Unfortunately no luck.

I set

	class SPE_M3_L40: SPE_M3_L40_base
	{
		magazines[] = {};
		magazineWell[] = {};
		muzzles[] = {"MODE_PLAYER_ALL","MODE_AI_HE"};
		class MODE_AI_HE: SPE_M3_L40_HE_AI {};

but it continues to spam:

15:01:56 Duplicate magazine SPE_42x_M48_HE detected (id 0:10000118) in slots player and close
15:01:56 Duplicate magazine SPE_42x_M48_HE detected (id 0:10000118) in slots player and short
15:01:56 Duplicate magazine SPE_42x_M48_HE detected (id 0:10000118) in slots player and medium
15:01:56 Duplicate magazine SPE_42x_M48_HE detected (id 0:10000118) in slots player and far
dedmen added a comment.EditedJul 3 2023, 5:31 PM

Hmpf. That was my only idea 😢
I'll move it to diag binary only

dedmen changed the task status from New to Feedback.Jul 3 2023, 5:34 PM

Next dev branch it shouldn't be spamming in retail builds