(Dydo?) scavenger AI error "MAX_PLAYERS"

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
User avatar
Arreon
Trained
Trained
Posts: 324
Joined: 15 Feb 2009, 05:57

(Dydo?) scavenger AI error "MAX_PLAYERS"

Post by Arreon »

Every time I try to play with Scavengers, Warzone crashes and gives me the same error each time. It looks like this:

Code: Select all

error     |11:39:29: [scr_error] script parse error: 'FLEX: macro name 'MAX_PLAYERS' is already reserved' at scavfact.slo:31 Token: -2, Text: 'MAX_PLAYERS'
Anyone know what's going on? If anyone can tell me what to type in to fix it, I'd appreciate it (I assume it's a simple fix). :)
OS: Windows 7 Home Premium 64-bit
Processor: AMD Phenom II X6 1045T (6 CPUs), ~2.7GHz
Memory: 8192MB RAM
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: (Dydo?) scavenger AI error "MAX_PLAYERS"

Post by Per »

You failed to mention which version of Warzone you tried. However, if you tried the latest master, then simply remove the line it complains about, and it should work. (MAX_PLAYERS is now a script constant, and must not be redefined from inside a script.)
User avatar
Arreon
Trained
Trained
Posts: 324
Joined: 15 Feb 2009, 05:57

Re: (Dydo?) scavenger AI error "MAX_PLAYERS"

Post by Arreon »

Still doesn't work. I'm using the latest master build, by the way.

I deleted the line you suggested, but I get this error now:

Code: Select all

error     |02:27:10 [scr _error] script parse error: 'syntax error, unexpected _OR, expecting BOOLEQUAL or NOTEQUAL or '&'' at scavfact.slo:138 Token: 281, Text: 'or'
OS: Windows 7 Home Premium 64-bit
Processor: AMD Phenom II X6 1045T (6 CPUs), ~2.7GHz
Memory: 8192MB RAM