Move more diag_log to debug lines

This commit is contained in:
oiad
2017-09-09 12:16:58 +12:00
committed by GitHub
parent ea38067cc1
commit e8a64c3757

View File

@@ -1,4 +1,4 @@
/*%FSM<COMPILE "C:\Program Files (x86)\Bohemia Interactive\Tools\FSM Editor Personal Edition\scriptedFSM.cfg, DayZ Server Vehicle Sync">*/ /*%FSM<COMPILE "scriptedFSM.cfg, DayZ Server Vehicle Sync">*/
/*%FSM<HEAD>*/ /*%FSM<HEAD>*/
/* /*
item0[] = {"init",0,250,-75.000000,-425.000000,25.000000,-375.000000,0.000000,"init"}; item0[] = {"init",0,250,-75.000000,-425.000000,25.000000,-375.000000,0.000000,"init"};
@@ -9,7 +9,7 @@ item4[] = {"",7,210,-204.000015,271.000000,-195.999985,279.000031,0.000000,""};
item5[] = {"",7,210,-204.000015,-104.000000,-196.000000,-96.000000,0.000000,""}; item5[] = {"",7,210,-204.000015,-104.000000,-196.000000,-96.000000,0.000000,""};
item6[] = {"initialized",4,218,-75.000000,-350.000000,25.000000,-300.000000,0.000000,"initialized"}; item6[] = {"initialized",4,218,-75.000000,-350.000000,25.000000,-300.000000,0.000000,"initialized"};
item7[] = {"prepare",2,250,-75.000000,-275.000000,25.000000,-225.000000,0.000000,"prepare"}; item7[] = {"prepare",2,250,-75.000000,-275.000000,25.000000,-225.000000,0.000000,"prepare"};
item8[] = {"update_objects",2,250,-125.000000,75.000000,-25.000000,125.000000,0.000000,"update objects"}; item8[] = {"update_objects",2,4346,-125.000000,75.000000,-25.000000,125.000000,0.000000,"update objects"};
item9[] = {"Objects_need_upd",4,218,-125.000000,0.000000,-25.000000,50.000000,1.000000,"Objects" \n "need update"}; item9[] = {"Objects_need_upd",4,218,-125.000000,0.000000,-25.000000,50.000000,1.000000,"Objects" \n "need update"};
item10[] = {"FenceObjects_need",4,218,-25.000000,0.000000,75.000000,50.000000,1.000000,"FenceObjects" \n "need update"}; item10[] = {"FenceObjects_need",4,218,-25.000000,0.000000,75.000000,50.000000,1.000000,"FenceObjects" \n "need update"};
item11[] = {"update_objects_1",2,250,-25.000000,75.000000,75.000000,125.000000,0.000000,"update objects"}; item11[] = {"update_objects_1",2,250,-25.000000,75.000000,75.000000,125.000000,0.000000,"update objects"};
@@ -26,8 +26,8 @@ link9[] = {8,3};
link10[] = {9,8}; link10[] = {9,8};
link11[] = {10,11}; link11[] = {10,11};
link12[] = {11,3}; link12[] = {11,3};
globals[] = {25.000000,1,0,0,0,640,480,1,15,6316128,1,-520.235962,640.978394,444.212921,-448.684845,779,598,1}; globals[] = {0.000000,0,0,0,0,640,480,1,15,6316128,1,-520.235962,640.978394,444.212921,-448.684845,779,895,1};
window[] = {2,-1,-1,-32000,-32000,780,52,1381,52,3,797}; window[] = {2,-1,-1,-1,-1,803,75,1404,75,3,797};
*//*%FSM</HEAD>*/ *//*%FSM</HEAD>*/
class FSM class FSM
{ {
@@ -38,6 +38,7 @@ class FSM
class init class init
{ {
name = "init"; name = "init";
itemno = 0;
init = /*%FSM<STATEINIT""">*/""/*%FSM</STATEINIT""">*/; init = /*%FSM<STATEINIT""">*/""/*%FSM</STATEINIT""">*/;
precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/; precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
class Links class Links
@@ -45,6 +46,7 @@ class FSM
/*%FSM<LINK "initialized">*/ /*%FSM<LINK "initialized">*/
class initialized class initialized
{ {
itemno = 6;
priority = 0.000000; priority = 0.000000;
to="prepare"; to="prepare";
precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/; precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
@@ -59,6 +61,7 @@ class FSM
class waiting class waiting
{ {
name = "waiting"; name = "waiting";
itemno = 2;
init = /*%FSM<STATEINIT""">*/""/*%FSM</STATEINIT""">*/; init = /*%FSM<STATEINIT""">*/""/*%FSM</STATEINIT""">*/;
precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/; precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
class Links class Links
@@ -66,6 +69,7 @@ class FSM
/*%FSM<LINK "FenceObjects_need">*/ /*%FSM<LINK "FenceObjects_need">*/
class FenceObjects_need class FenceObjects_need
{ {
itemno = 10;
priority = 1.000000; priority = 1.000000;
to="update_objects_1"; to="update_objects_1";
precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/; precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
@@ -76,6 +80,7 @@ class FSM
/*%FSM<LINK "Objects_need_upd">*/ /*%FSM<LINK "Objects_need_upd">*/
class Objects_need_upd class Objects_need_upd
{ {
itemno = 9;
priority = 1.000000; priority = 1.000000;
to="update_objects"; to="update_objects";
precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/; precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
@@ -90,6 +95,7 @@ class FSM
class prepare class prepare
{ {
name = "prepare"; name = "prepare";
itemno = 7;
init = /*%FSM<STATEINIT""">*/"diag_log (""CLEANUP: INITIALIZING Vehicle SCRIPT"");" \n init = /*%FSM<STATEINIT""">*/"diag_log (""CLEANUP: INITIALIZING Vehicle SCRIPT"");" \n
"" \n "" \n
"" \n "" \n
@@ -104,6 +110,7 @@ class FSM
/*%FSM<LINK "true">*/ /*%FSM<LINK "true">*/
class true class true
{ {
itemno = 1;
priority = 0.000000; priority = 0.000000;
to="waiting"; to="waiting";
precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/; precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
@@ -118,7 +125,10 @@ class FSM
class update_objects class update_objects
{ {
name = "update_objects"; name = "update_objects";
init = /*%FSM<STATEINIT""">*/"diag_log format[""INFO: needUpdate_objects=%1"",needUpdate_objects];" \n itemno = 8;
init = /*%FSM<STATEINIT""">*/"if (object_debug) then {" \n
" diag_log format[""INFO: needUpdate_objects=%1"",needUpdate_objects];" \n
"};" \n
"" \n "" \n
"{" \n "{" \n
" needUpdate_objects = needUpdate_objects - [_x];" \n " needUpdate_objects = needUpdate_objects - [_x];" \n
@@ -131,6 +141,7 @@ class FSM
/*%FSM<LINK "true">*/ /*%FSM<LINK "true">*/
class true class true
{ {
itemno = 3;
priority = 0.000000; priority = 0.000000;
to="waiting"; to="waiting";
precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/; precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
@@ -145,6 +156,7 @@ class FSM
class update_objects_1 class update_objects_1
{ {
name = "update_objects_1"; name = "update_objects_1";
itemno = 11;
init = /*%FSM<STATEINIT""">*/"diag_log format[""INFO: needUpdate_FenceObjects=%1"",needUpdate_FenceObjects];" \n init = /*%FSM<STATEINIT""">*/"diag_log format[""INFO: needUpdate_FenceObjects=%1"",needUpdate_FenceObjects];" \n
"" \n "" \n
"{" \n "{" \n
@@ -158,6 +170,7 @@ class FSM
/*%FSM<LINK "true">*/ /*%FSM<LINK "true">*/
class true class true
{ {
itemno = 3;
priority = 0.000000; priority = 0.000000;
to="waiting"; to="waiting";
precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/; precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;