Create account / Log in

Strange Zone Not Found Error

Talk about module design ideas and techniques.

Moderators: uckelman, Tim M

Strange Zone Not Found Error

Postby Cundiff » September 25th, 2020, 1:30 am

Howdy Gents,

Been doing this for a couple of years now and you'd think there wasn't a Zone I couldn't possibly build right. It's not rocket science. It's as easy and basic as it gets .... I thought.

- Bad Data in Module: British Bomber [Return to Deck] - Expression evaluation error {Main Map}
- Bad Data in Module: British Bomber [Send to Location - Send to Enemy] - Zone not found Zone[{Enemy}]=
- Bad Data in Module: British Bomber [Send to Location - Send to Destroyed] - Zone not found Zone[{Destroyed}]=

Now there's one other oddity. When I draw a bomber from the stack, I try to send it to it's Ready Box. But it's Grayed Out. However, I can send it to the Enemy Destroyed Stack, and THEN the Ready Box is Black and available for me to send aircraft to the Ready Box. But the Send to Ready Box should be available ALL the time.

All these Send To commands are housed in the Game Piece Prototype - Aircraft Prototype.

Some work, some don't, but they all look the same to me. I cannot figure out why some don't work. And I cannot figure out why the zones are not recognized.

This should be easy, or at least I thought.

I've already loaded this to my DropBox

HELP !
Cundiff
 
Posts: 189
Joined: January 3rd, 2017, 8:51 am

Re: Strange Zone Not Found Error

Postby Brent Easton » September 25th, 2020, 3:37 am

Could you show the source of that Beanshell?

{Main Map} is an invalid Beanshell expression.

It should be {"Main Map"}

If you are mixing $$ variables, you still need the quotes, so it would be

{"$CurrentMap$"}

Regards.
User avatar
Brent Easton
 
Posts: 3226
Joined: December 21st, 2007, 3:06 am
Location: Berry, NSW, Australia

Re: Strange Zone Not Found Error

Postby Cundiff » September 25th, 2020, 4:13 am

I dropped you a PM with the module's DropBox link.

I appreciate your help,
Thanks,
Tom
Cundiff
 
Posts: 189
Joined: January 3rd, 2017, 8:51 am

Re: Strange Zone Not Found Error

Postby Brent Easton » September 25th, 2020, 4:40 am

In your Send To Location traits in your Aircraft prototype, the Map and Zone names can be specified in one of two ways:

a) The actual name of the map with no quotation marks e.g.
Code: Select all
Main Map

or
b) A {} expression that generates the name of the map e.g.
Code: Select all
{"Main Map"}


Using
Code: Select all
{Main Map}
for the Send to Ready, Destroyed or Enemy zones is not correct. The Send to Enemy Destroyed is correct.

Similarly for Zones. Ready and Enemy Destroyed are incorrect, Destoyed and Enemy are correct.

Regards.
User avatar
Brent Easton
 
Posts: 3226
Joined: December 21st, 2007, 3:06 am
Location: Berry, NSW, Australia

Re: Strange Zone Not Found Error

Postby Cundiff » September 25th, 2020, 5:22 am

EXCELLENT !! That worked perfectly. Thanks Much,
Tom
Cundiff
 
Posts: 189
Joined: January 3rd, 2017, 8:51 am


Return to Module Design

Who is online

Users browsing this forum: Bing [Bot] and 6 guests