Pagoda.br 8 Posted September 24, 2021 I work on a big mission, and some players game crash on map, sometimes. We are trying to fix that and created functions to check the parameters of everything put on map with: drawIcon drawRectangle drawLine createMarkerLocal (and other markerLocal function) For example: BRPVP_drawIconCheckCode = [ {_this isEqualType "" && {fileExists _this}}, {_this isEqualType [] && {count _this isEqualTo 4 && {{_x isEqualType 0 && {_x >= 0 && _x <= 1}} count _this isEqualTo 4}}}, {_this isEqualType objNull || (_this isEqualType [] && ((count _this isEqualTo 3 && {{_x isEqualType 0 && {_x >= -50000 && _x <= 50000}} count _this isEqualTo 3}) || {count _this isEqualTo 2 && {{_x isEqualType 0 && {_x >= -50000 && _x <= 50000}} count _this isEqualTo 2}}))}, {_this isEqualType 0 && {_this > 0 && _this <= 100}}, {_this isEqualType 0 && {_this > 0 && _this <= 100}}, {_this isEqualType 0 && {_this >= -3600 && _this <= 3600}}, {_this isEqualType "" && count _this <= 100}, {_this in [false,true,0,1,2]}, {_this isEqualType 0 && {_this > 0 && _this <= 2}}, {_this in ["puristaMedium"]}, {_this in ["left","right","center"]} ]; BRPVP_drawRectangleCheckCode = [ {_this isEqualType objNull || (_this isEqualType [] && ((count _this isEqualTo 3 && {{_x isEqualType 0 && {_x >= -50000 && _x <= 50000}} count _this isEqualTo 3}) || {count _this isEqualTo 2 && {{_x isEqualType 0 && {_x >= -50000 && _x <= 50000}} count _this isEqualTo 2}}))}, {_this isEqualType 0 && {_this >= -500 && _this <= 500}}, {_this isEqualType 0 && {_this >= -500 && _this <= 500}}, {_this isEqualType 0 && {_this >= -3600 && _this <= 3600}}, {_this isEqualType [] && {count _this isEqualTo 4 && {{_x isEqualType 0 && {_x >= 0 && _x <= 1}} count _this isEqualTo 4}}}, {_this isEqualType "" && _this in ["#(rgb,8,8,3)color(1,0.7,0.4,0.5)",""]} ]; BRPVP_drawLineCheckCode = [ {_this isEqualType objNull || (_this isEqualType [] && ((count _this isEqualTo 3 && {{_x isEqualType 0 && {_x >= -50000 && _x <= 50000}} count _this isEqualTo 3}) || {count _this isEqualTo 2 && {{_x isEqualType 0 && {_x >= -50000 && _x <= 50000}} count _this isEqualTo 2}}))}, {_this isEqualType objNull || (_this isEqualType [] && ((count _this isEqualTo 3 && {{_x isEqualType 0 && {_x >= -50000 && _x <= 50000}} count _this isEqualTo 3}) || {count _this isEqualTo 2 && {{_x isEqualType 0 && {_x >= -50000 && _x <= 50000}} count _this isEqualTo 2}}))}, {_this isEqualType [] && {count _this isEqualTo 4 && {{_x isEqualType 0 && {_x >= 0 && _x <= 1}} count _this isEqualTo 4}}} ]; Those functions check all parameter passed to drawIcon, drawRectangle and drawLine function. We run the checks for many days in all players, if a wrong parameter is found it's loged on server and client. We had zero error log generated messages after those days. And map continue to crash sometimes, most of the time it dont generate the error windows and players need to restart their machines, but last day it crashed for me and i was able to save the crash zip file: https://drive.google.com/file/d/1bGosVBdZFGhTHziWkVTJ6JOnQcAbu_LJ/view?usp=sharing What else can i do to try to find what is causing the crash? Edit: Another crash zip: https://drive.google.com/file/d/1b0l2FPnp7BFypbcqyqMjxO-yN-tH-fmT/view?usp=sharing Share this post Link to post Share on other sites