Page MenuHomeFeedback Tracker

Static map objects
Closed, ResolvedPublic

Description

Since 1.18 and the 'adding' of 'Static_' defined objects into cfgVehilces, no longer can you define them in cfgNonAiVehilces and be able to query them from the map.
Prior to 1.18 if an object was defined in cfgNonAiVehilces with the object class name prefixed with 'static_' you could then also created a scripted class, then use scripts to interact with baked in map objects that use the defined model from the config entry.
POST 1.18 this is no longer available. the engine has NO way to query the baked in to map objects. PLEASE return ALL of the 'Static_' defined objects BACK to cfgNonAiVehilces, if and if so desired, make all of the entries in cfgVehilces to "Land_".

Details

Severity
Major
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

PRE 1.18
defined a map object model in CfgNonAIVehicles as such..

class CfgNonAIVehicles
{
	class StaticObject;
	class Static_Garbage_Bin: StaticObject
	{
		scope = 2;
		model = "\DZ\structures\residential\Misc\Garbage_Bin.p3d";
	};
};

with this.. you can define a scripted class in 4_World..

class Static_Garbage_Bin extends Object 
{
	void Static_Garbage_Bin()
	{
		Print( GetType() + " found at POS=<" + GetPosition() + ">" );
	}
}

and this will print to logs the POS of every one of those objects that is baked into the map.

POST 1.18
none of this works.

Event Timeline

Zedmag created this task.Jun 16 2022, 10:18 PM
Geez changed the task status from New to Acknowledged.Jun 17 2022, 3:56 PM
Geez added a subscriber: Geez.

Thank you for the report Zedmag.
We are currently looking into the problem.
Regards,
Geez

Geez closed this task as Resolved.EditedJun 24 2022, 11:34 AM
Geez claimed this task.

Hello Zedmag.
The issue has been resolved for the current experimental - Newly implemented static objects were renamed to StaticObj_* instead of Static_

Regards,
Geez

Does this mean the original back end mechanics of linking map objects to "Static" config will be the way it was?

Geez added a comment.Jun 27 2022, 4:51 PM

Hello, Zedmag.
Yes, your mods should work without any changes needed.
Regards,
Geez