Page MenuHomeFeedback Tracker

"delete" keyword does not delete classes in missionConfigFile
Need More Info, NormalPublic

Description

Creating a quick config in description.ext

class testClass {
	class testSubClass {
		myProperty = 1;
	};
	class otherTestSubClass {
		myOtherProperty = 2;
		something = 3;
	};
};
class otherTestClass: testClass {
	delete testSubClass;
	class otherTestSubClass: otherTestSubClass {
		delete myOtherProperty;
	};
};

and then checking in config viewer otherTestClass >> testSubClass still exists, but is empty.

In addition to this, the following error message is thrown in RPT: 14:04:47 Warning Message: class 'e:\nextcloud\arma\missions\tmf_dev.vr\description.ext/otherTestClass/testSubClass/' is not defined

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Config
Steps To Reproduce

Put this in a mission description.ext

class testClass {
	class testSubClass {
		myProperty = 1;
	};
	class otherTestSubClass {
		myOtherProperty = 2;
		something = 3;
	};
};
class otherTestClass: testClass {
	delete testSubClass;
	class otherTestSubClass: otherTestSubClass {
		delete myOtherProperty;
	};
};

then check with config viewer that otherTestClass >> testSubClass still exists, but is now empty.

Additional Information

Checking the subclass with isClass returns true, and configClasses shows that it exists.

Event Timeline

R3vo changed the task status from New to Need More Info.Jun 30 2021, 11:17 AM
R3vo added a subscriber: R3vo.

Why exactly would you need to delete classes in mission config?

Why exactly would you need to delete classes in mission config?

Don't remember the exact usecase, but I think it was tied to import.

import someClass;
class someOtherClass: someClass {
  delete someSubClass;
};