Vampurica / DZMS-DayZMissionSystem

A logic and useability rewrite of the DayZChernarus Mission System
17 stars 22 forks source link

DZMSMajDone Error #33

Closed geek-at closed 10 years ago

geek-at commented 10 years ago

My RPT File is spamming millions of lines with

23:25:26   Error position: <DZMSMajDone};
DZMSMajDone = nil;
};>
23:25:26   Error Undefined Variable in: dzmsmajdone
23:25:26 File z\addons\dayz_server\DZMS\Scripts\DZMSMajTimer.sqf, line 42
23:25:26 Error in expression <or Mission %1.",_varName];

waitUntil {DZMSMajDone};
DZMSMajDone = nil;
};>

Line 42 in DZMSMajTimer.sqf is:

waitUntil {DZMSMajDone};

What might be the problem? Everything is stock.

rockeumel commented 10 years ago

maybe its better to set the variable "DZMSMajDone = false;" and not "nil". Or change the Boolean Condition in "waitUntil {DZMSMajDone};" to "waitUntil {!isNil "DZMSMajDone"};"

geek-at commented 10 years ago

I've just tried that but it still says

11:14:06   Error position: <DZMSMajDone};
DZMSMajDone = false;
};>
11:14:06   Error Nicht definierte Variable in Ausdruck: dzmsmajdone
11:14:06 File z\addons\dayz_server\DZMS\Scripts\DZMSMajTimer.sqf, line 44
11:14:06 Error in expression <or Mission %1.",_varName];

waitUntil {DZMSMajDone};
DZMSMajDone = false;

I think the DZMSMajDone var isn't set. In my understanding it should be set to true in either mission. The strange part is that missions work like charm. Vehicles, Enemies.. everything spawns but the log keeps spamming millions of lines

rockeumel commented 10 years ago

Crazy, i download the pack and open the file in the editor, but it only has 38 lines of code. please change and test these: in DZMSInit.sqf: above

// Let's get the clocks running! [] ExecVM DZMSMajTimer; [] ExecVM DZMSMinTimer;

insert:

DZMSMajDone = false;

Vampurica commented 10 years ago

The problem as I've seen it is a bracket problem trickling down from before DZMS runs. It then causes the waitUntil to error claiming that the variable is undefined when the waitUntil is actually supposed to wait until it becomes defined before continuing.

Vampurica commented 10 years ago

Fixed in recent commit.