Page MenuHomeFeedback Tracker

featureType = 2; can make some artifacts
Feedback, NormalPublic

Description

featureType = 2, which makes an object always visible, can make the ghost of it, which has no shadow or collision, not even an object, just a resolution LOD.
It is very easy to reproduce with USS Freedoms too.

Details

Severity
Minor
Resolution
Open
Reproducibility
Random
Operating System
Windows 10 x64
Category
Visual-Structures
Steps To Reproduce
  1. Go to VR, bottom left (0,0)
  2. Execute this code
for "_x" from 0 to 15 do { 
    for "_y" from 0 to 15 do { 
        createVehicle ["Land_spp_Tower_F",[_x*30,_y*30,0],[],0,"CAN_COLLIDE"] ; 
    } ; 
} ;
  1. Ctrl+N to create new screnario
  2. You may see one or two solar tower is still present, with no shadow or collision
  3. Alt+Tab and back may remove the artifact
Additional Information

This can happen with setFeatureType 2 script command.
If we use deleteVehicle to remove the featureType 2 vehicle, will never create an artifact, so I would assume this only happens when a vehicle has been removed in a special case.
flush cheat code will remove the artifact too.

Event Timeline

POLPOX created this task.Jul 16 2023, 10:07 PM
honger added a subscriber: honger.Jul 19 2023, 12:19 AM
POLPOX edited Additional Information. (Show Details)Jul 21 2023, 12:03 PM
POLPOX edited Additional Information. (Show Details)
Lexx2k added a subscriber: Lexx2k.Aug 2 2023, 2:19 PM
dedmen set Ref Ticket to AIII-56304.Apr 2 2024, 10:26 AM
dedmen added a subscriber: dedmen.Apr 2 2024, 3:17 PM

At the end of a Eden scenario, all objects are cleaned up, and if their reference count goes to zero they are deleted. And usually at this point an object only has one reference to it.
Eden has a "mouse handler" that checks what is under your mouse cursor, and stores a reference to the object under the cursor.

So, the object that was under the cursor still has a reference in the mouse handler, that kept it alive across the "New scenario" boundary, and afterwards the feature object kept itself alive because it was rendering (tabbing out clears the rendering list which could make its refcount go to zero and make it disappear).

That's a really fun one.
This is exclusive to Eden, there might be similar issues where something else keeps an object alive in a different situation, would need a repro for that situation.

dedmen changed the task status from New to Feedback.Apr 2 2024, 4:25 PM

next dev or prof