Page MenuHomeFeedback Tracker

Game freeze in editor
Closed, ResolvedPublic

Description

I was running around Stratis at the airport and the game froze.

If it's relevant, I had this code running from the debug console:

arrow = "Sign_Arrow_F" createVehicle [0,0,0];
testFunc = {
_ins = lineIntersectsSurfaces [

		ATLToASL positionCameraToWorld [0,0,0],
		ATLToASL positionCameraToWorld [0,0,1000],
		player

];
if (count _ins == 0) exitWith {

		arrow setPosASL [0,0,0]

};
_obj = _ins select 0 select 3;
arrow setPosASL (_ins select 0 select 0);
arrow setVectorUp (_ins select 0 select 1);
_intDist = (_ins select 0 select 0) distance (ATLToASL positionCameraToWorld [0,0,0]);
_sel = "";
_info = [];
if not (isNull _obj) then {

		_dist = 10000;
		{
			_ins2 = [_obj,_x] intersect [
				positionCameraToWorld [0,0,0],
				positionCameraToWorld [0,0,_intDist + 0.1]
			];

			{
				if (_x select 1 < _dist) then {
					_dist = _x select 1;
					_sel = _x select 0
				};
			} forEach _ins2;
			if (_sel != "") exitWith {};
		} forEach ["GEOM","IFIRE","FIRE","VIEW"];

};

hintsilent format ["OBJ: %1\nSEL: %2\nMODEL INFO: %3",_obj,_sel,_info];
};
["sample_id","onEachFrame","testFunc"] call BIS_fnc_addStackedEventHandler;

Details

Legacy ID
2956792236
Severity
None
Resolution
Fixed
Reproducibility
Always
Category
Game Crash

Event Timeline

DasAttorney set Category to Game Crash.Aug 13 2015, 1:38 AM
DasAttorney set Reproducibility to Always.
DasAttorney set Severity to None.
DasAttorney set Resolution to Fixed.
DasAttorney set Legacy ID to 2956792236.May 8 2016, 12:30 PM
DasAttorney edited a custom field.
DasAttorney added a subscriber: DasAttorney.

If it helps, I think it's when the script above scans a map object (or certain type of map object) Spawned/editor placed objects seem fine. It was only when I started pointing the cursor at some of the objects that make up the airport that the game started freezing.

As I say though, I'm not sure but wanted to give you some context.

Adam added a comment.Aug 13 2015, 9:10 AM

I was able to reproduce the issue and it is now scheduled for a fix. Thank you.

Adam added a comment.Sep 8 2015, 1:47 PM

Fixed on dev branch!