Page 1 of 1

[Fixed for V0.39] Counters with no action and value of zero

Posted: Fri May 19, 2006 9:01 pm
by Sophia
Counters can't seem to have both no action and a value of zero, at least as set up in the editor. The compiler complains vigorously.

Posted: Sat May 20, 2006 12:21 am
by George Gilbert
Nope - can't reproduce this. Can set it a zero count, null action in the editor and then compile it without any warnings, let alone errors.

What ends up in your text file?

Posted: Sat May 20, 2006 1:14 am
by Sophia
This ends up in the text file:

Code: Select all

ref000304-1	WALLITEM_COUNTER			3	4	0	CENTRE
I get this:

Code: Select all

---- Reading file "Modules/test.txt" ----
*** CRITICAL ERROR (line 414, item reference ref000304-1 - WALLITEM_COUNTER): Could not get parameter 7 on line number 414. Line begins with "ref000304-1	WALLITEM_COUNTER			3	4	0	CENTRE"
*** CRITICAL ERROR (line 414, item reference ref000304-1 - WALLITEM_COUNTER): Attribute identifier "@@@NO-MORE-STRINGS@@@" not supported. Expecting string of form COUNT=(xxxx).
*** CRITICAL ERROR (line 414, item reference ref000304-1 - WALLITEM_COUNTER): Expecting single numeric value.
*** CRITICAL ERROR (line 414, item reference ref000304-1 - WALLITEM_COUNTER): Could not get parameter 8 on line number 414. Line begins with "ref000304-1	WALLITEM_COUNTER			3	4	0	CENTRE"
*** CRITICAL ERROR (line 414, item reference ref000304-1 - WALLITEM_COUNTER): Could not get parameter 9 on line number 414. Line begins with "ref000304-1	WALLITEM_COUNTER			3	4	0	CENTRE"
*** CRITICAL ERROR (line 414, item reference ref000304-1 - WALLITEM_COUNTER): Attribute identifier "@@@NO-MORE-STRINGS@@@" not supported. Expecting string of form TARGET=(xxxx).
*** CRITICAL ERROR (line 414, item reference ref000304-1 - WALLITEM_COUNTER): Expecting 1 to 8 values for item identifiers for this trigger to target. e.g. TARGET=(1000,1001,1002).
*** CRITICAL ERROR (line 414, item reference ref000304-1 - WALLITEM_COUNTER): Attribute identifier "@@@NO-MORE-STRINGS@@@" not supported. Expecting string of form ACTION=(xxxx).
*** CRITICAL ERROR (line 414, item reference ref000304-1 - WALLITEM_COUNTER): Action "NULL_STRING" not supported. Expecting NULL, ACTIVATE, DEACTIVATE, TOGGLE, RELEASE or DESTROY.

Posted: Sat May 20, 2006 11:28 am
by George Gilbert
Well, the compile error will inevitably follow from what ends up in the text file - so the problem lies in the editor (rather than the compiler).

What you should have got (and what I get) is:

Code: Select all

ref000000-1 WALLITEM_COUNTER 0 0 0 CENTRE COUNT=(0) ACTION=(NULL) TARGET=(NULL)
So...what's the difference between how you create your counter, and I create it.

I'm right clicking on a wall, selecting edit, adding a counter, editing the counter to check that it's got None/zero parameters, closing all the menus and saving. What are you doing![/quote]

Posted: Sat May 20, 2006 6:25 pm
by Sophia
I'm just adding the counter. I don't touch it. So, none of that stuff apparently gets put in. :)

Posted: Sat May 20, 2006 7:24 pm
by George Gilbert
Ah right; that would explain it.

Now fixed for V0.39.