Page MenuHomeFeedback Tracker

Feature Request: Prevent Eden Editor from overwriting custom attribute when mod is not present
Closed, ResolvedPublic

Description

There are quite a few Eden Editor mods which write custom attribute to the mission.sqm. However, if an scenario creator loads a mission without the Eden Editor mod which was used to create it and either by accident saves the mission, or by autosave, the custom attributes get deleted from the mission.sqm and there is no way to restore them.

Since I've released 3den Enhanced I have received dozens of requests to add a system to prevent that, but there is nothing I can do about it.

Details

Severity
Feature
Resolution
Fixed
Reproducibility
Always
Operating System
Windows 10 x64
Category
Eden Editor
Additional Information

Example of attributes that get removed:

In mod config:

class ENH_SoundVolume
{
	displayName = $STR_ENH_SOUNDVOLUME_DISPLAYNAME;
	tooltip = "";
	property = "ENH_soundVolume";
	control = "Slider";
	expression = "if (!is3DEN && {hasInterface}) then {0 fadeSound _value}";
	defaultValue = "1";
};

In mission.sqm

class Attribute5
{
	property="ENH_musicVolume";
	expression="if (!is3DEN && {hasInterface}) then {0 fadeMusic _value}";
	class Value
	{
		class data
		{
			class type
			{
				type[]=
				{
					"SCALAR"
				};
			};
			value=0.30000001;
		};
	};
};

Full mission.sqf with custom attributes (Find the custom ones by searching for property="ENH_

Event Timeline

R3vo created this task.Oct 6 2020, 12:10 PM
R3vo edited Additional Information. (Show Details)Oct 6 2020, 12:34 PM
R3vo edited Additional Information. (Show Details)Oct 6 2020, 12:40 PM
BIS_fnc_KK changed the task status from New to Assigned.
R3vo renamed this task from Feature Request: beforeSave / beforeAutosave Eden Editor EH to Feature Request: Prevent Eden Editor from overwriting custom attribute when mod is not present.Oct 6 2020, 12:45 PM
R3vo updated the task description. (Show Details)
7erra added a subscriber: 7erra.Oct 6 2020, 5:11 PM

Since rev 147300 new property is3DENmod = 1; should be used in CfgPatches so that mission saved with modded 3DEN will trigger warning in unmodded 3DEN https://community.bistudio.com/wiki/Eden_Editor:_Modding#Addon_Configuration

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Feb 19 2021, 1:38 PM
BIS_fnc_KK changed the task status from Assigned to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.
R3vo added a comment.Apr 27 2021, 11:45 PM

Works! Can be closed.

R3vo updated the task description. (Show Details)Apr 27 2021, 11:45 PM
LouMontana closed this task as Resolved.May 3 2021, 11:24 AM
LouMontana changed Resolution from Open to Fixed.