Page MenuHomeFeedback Tracker

BIS_fnc_3DENNotification zero divisor
Feedback, NormalPublic

Description

rpt logs em this error:

 1:39:36 Error in expression <= 2 + (ctrltextheight _ctrlNotification / _ctrlNotificationTextHeight);}; 

_ctr>
 1:39:36   Error position: </ _ctrlNotificationTextHeight);}; 

_ctr>
 1:39:36   Error Nullteiler

when i launche directly into an 3den mission file with an Custom containing a 3DENNotification call.

Details

Severity
Trivial
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Eden Editor
Steps To Reproduce

Create a custom Attribute eg:
config.cpp

class Cfg3DEN
{
	class Mission
	{
		class Scenario
		{
			class AttributeCategories
			{
				class Test
				{
					displayName="CustomSettings";
					collapsed=0;
					class Attributes
					{
						class My_CustomSettings
						{
							property="MY_Test";
							value=0;
							defaultValue="false";
							control="Checkbox";
							displayName="My test";
							expression="if is3den then {['Save the Mission to Apply your change !', 5] call BIS_fnc_3DENNotification;};";
							wikiType="[[Bool]]";
						};
                    };
                };
            };
        };
    };
};

save a mission with this Attribute
eg:
mission.sqm

...
class CustomAttributes
{
	class Category0
	{
		name="Scenario";
		class Attribute0
		{
			property="MY_Test";
			expression="if is3den then {['Save the Mission to Apply your change !', 5] call BIS_fnc_3DENNotification;};";
			class Value
			{
				class data
				{
					class type
					{
						type[]=
						{
							"BOOL"
						};
					};
					value=1;
				};
			};
		};
		nAttributes=1;
	};
};
...

Lauch arma directly into that mission
and then the error will show up.

Additional Information

So a fix would be a check for a zero divisor but in gerneral the problem is that as a mission editor you dont get notified that you have to save the mission after you have adjusted an attribute.
So maybe saving the mission when confirming the general attributes would be appropriate.

Event Timeline

VisMotrix edited Additional Information. (Show Details)Jul 17 2021, 2:11 AM
R3vo changed the task status from New to Confirmed Internally.EditedJul 18 2021, 11:08 AM
R3vo added a subscriber: R3vo.

The issue is not the zero divisor error but that fact that this function executes when no display 313 is available.

Solutions could be:

  • Add an is3DEN check
  • Add a check for display 313
  • Make it also show if display 313 is not available

I added some related tickets.

R3vo removed a subscriber: R3vo.Jul 21 2021, 6:10 PM
R3vo changed the task status from Confirmed Internally to New.

should only play sound outside of 3den (next update)

BIS_fnc_KK changed the task status from New to Feedback.May 12 2022, 6:33 PM