INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Why is [Zone] empty when 'Player' is selected?  (Read 1981 times)

aviateur

  • World Citizen
  • ***
  • Posts: 159
Why is [Zone] empty when 'Player' is selected?
« on: March 15, 2017, 04:49:40 pm »

Hello Mates:

According to my Player > Zone option, I have two zones from which to select: 'Player' and Akurate DSM...'. When the Player zone is selected, why is the [Zone] variable empty? I created a work-around for 'Customize Display' (see Image) that displays the text 'Server' when [Zone] is empty. I'm just curious as to why it is empty. When the other zone, 'Akurate DSM...' is selected, [Zone] is not empty.

Cheers,
Lawrence
Logged
Two Cows Walk Into a Bar ...

aviateur

  • World Citizen
  • ***
  • Posts: 159
Re: Why is [Zone] empty when 'Player' is selected?
« Reply #1 on: March 15, 2017, 05:44:03 pm »

... and by the way, I just installed 22.0.81 so I now can take advantage of the function, 'UnMoveArticles' so I changed the 'Customize Display' (see image).

Cheers,
Lawrence
Logged
Two Cows Walk Into a Bar ...

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42444
  • Shoes gone again!
Re: Why is [Zone] empty when 'Player' is selected?
« Reply #2 on: March 16, 2017, 08:21:46 am »

I just added a new zone and called it "Player" and the text showed up no problem.

I was wondering if using the default zone name would make the name not show up?  You could try renaming it to "My Player" but I'm not sure if that's it.
Logged
Matt Ashland, JRiver Media Center

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42444
  • Shoes gone again!
Re: Why is [Zone] empty when 'Player' is selected?
« Reply #3 on: March 16, 2017, 08:27:05 am »

The call actually sets this to true:
bool bReturnEmptyIfDefaultNameAndZone0

So if you have a zone zero with the default name, it won't populate.

Not sure if that's a problem or not really.  Just renaming the zone should work.
Logged
Matt Ashland, JRiver Media Center

aviateur

  • World Citizen
  • ***
  • Posts: 159
Re: Why is [Zone] empty when 'Player' is selected?
« Reply #4 on: March 16, 2017, 10:22:29 am »

Matt, Hi:

Thanks for the reply. As you suggested, renaming the default local zone from 'Player' to 'Server' worked (see image). As such that eliminates my need to perform the zone name text manipulation (IsEmpty testing) in the 'Customize Display' code for all zones. Thanks. This is a curious point. I wasn't able to see any trace of something called zone 0. Can I assume that is internal to you (code), say, the first element in a zone array structure?

Cheers,
Lawrence
Logged
Two Cows Walk Into a Bar ...

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42444
  • Shoes gone again!
Re: Why is [Zone] empty when 'Player' is selected?
« Reply #5 on: March 16, 2017, 10:24:00 am »

Matt, Hi:

Thanks for the reply. As you suggested, renaming the default local zone from 'Player' to 'Server' worked (see image). As such that eliminates my need to perform the zone name text manipulation (IsEmpty testing) in the 'Customize Display' code for all zones. Thanks. This is a curious point. I wasn't able to see any trace of something called zone 0. Can I assume that is internal to you (code), say, the first element in a zone array structure?

Cheers,
Lawrence

Right.  The first zone the program makes will be numbered zone zero.
Logged
Matt Ashland, JRiver Media Center

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Why is [Zone] empty when 'Player' is selected?
« Reply #6 on: March 16, 2017, 05:24:04 pm »

I'm guessing it was coded this way to not show a Zone for people using the default configuration and only one zone.  So they wouldn't be confused.   Just a guess.

Brian.
Logged
Pages: [1]   Go Up