Why? Do I need Glasses? Is 0 still = to 0?

Post here issues and solutions that relate to MainLobby Server 3
Art Dustman
Expert
Expert
Posts: 576
Joined: Fri Nov 10, 2006 3:22 pm
Location: NJ
Contact:

Why? Do I need Glasses? Is 0 still = to 0?

Postby Art Dustman » Fri May 20, 2011 3:22 pm

So I have the BDP check command to see if it's on as such:

MLConditional|IsEqual##{{cx7000es_{{media_{{clientname}}_activeplayer}}_power}}#0##setvariable|cx7000cktrue~yup##setvariable|cx7000ckfalse~nope

And MLserver kindly tells me that these are in fact, not equal and I get a "nope" -- but alas as below:

{{cx7000es_{{media_{{clientname}}_activeplayer}}_power}} = power state that when put into a name label shows a value of 0

So, how is 0 NE 0 ? 2 hours spent on many commands to isolate this.... [-o<

User avatar
CinemarDave
Site Admin
Site Admin
Posts: 10535
Joined: Fri Feb 07, 2003 8:56 am
Location: Planet Earth
Contact:

Re: Why? Do I need Glasses? Is 0 still = to 0?

Postby CinemarDave » Fri May 20, 2011 3:50 pm

Look at the comparison "#0##". If this is a direct cut and paste from the macro you are missing a # before the 0.

Art Dustman
Expert
Expert
Posts: 576
Joined: Fri Nov 10, 2006 3:22 pm
Location: NJ
Contact:

Re: Why? Do I need Glasses? Is 0 still = to 0?

Postby Art Dustman » Fri May 20, 2011 3:52 pm

no, it was missed when I edited the post.

Art Dustman
Expert
Expert
Posts: 576
Joined: Fri Nov 10, 2006 3:22 pm
Location: NJ
Contact:

Re: Why? Do I need Glasses? Is 0 still = to 0?

Postby Art Dustman » Fri May 20, 2011 3:59 pm

Ok.. so the play command for the changer calls this macro:

Macro|
SetVariableFast|Media_{{clientname}}_PlayerName~CX7000ES!
SetVariableFast|Media_{{clientname}}_ActivePlayer~<<ChangerNumber>>!
SetVariableFast|Media_{{clientname}}_Transport_Source~CX7000ES!
MLDVDLobby|MakeSource~CX7000ES!
DVDLobby.CX7000ES.PowerOn!
AV.BDP{{Media_{{clientname}}_ActivePlayer}}|DiscDirect~<<SLOT>>~1~1!
MLconditional|IsEqual##{{clientname}}##Greatroom##C1##SetVariable|GreatroomBD~ON!
MLconditional|IsEqual##{{clientname}}##Gameroom##D1##SetVariable|GameRoomBD~ON!
setvariable|cx700e~end of command here!
MLconditional|IsEqual##{{clientname}}##Bar##D1##SetVariable|BarBD~ON!
MLconditional|IsEqual##{{clientname}}##Toyroom##B1##SetVariable|ToyRoomBD~ON!
MLconditional|IsEqual##{{clientname}}##MBR##A1##SetVariable|MBRBD~ON!
MLconditional|IsEqual##{{clientname}}##Emily##B1##SetVariable|EmilyBD~ON!
MLconditional|IsEqual##{{clientname}}##Ethan##B1##SetVariable|EthanBD~ON!
MLconditional|IsEqual##{{clientname}}##Theater##D1##SetVariable|TheaterBD~ON



And the "DVDLobby.CX7000ES.PowerOn" is this:

MLConditional|IsEqual##{{cx7000es_{{media_{{clientname}}_activeplayer}}_power}}##0##Macro|AV.BDP{{media_{{clientname}}_activeplayer}}|Power~On!MLPause|30##

Art Dustman
Expert
Expert
Posts: 576
Joined: Fri Nov 10, 2006 3:22 pm
Location: NJ
Contact:

Re: Why? Do I need Glasses? Is 0 still = to 0? Resolved

Postby Art Dustman » Fri May 20, 2011 4:23 pm

There was crap in my variables that were affecting some clients. More leftover junk from 19.

Art Dustman
Expert
Expert
Posts: 576
Joined: Fri Nov 10, 2006 3:22 pm
Location: NJ
Contact:

Re: Why? Do I need Glasses? Is 0 still = to 0?

Postby Art Dustman » Sat May 21, 2011 10:35 am

Still haven't figured out one thing:

on the default poweron macro command for bluray (cx7000ex), it uses isNE to 1, which works now...

But if you change it to IsEqual to 0, it does not evaluate properly

:|


Return to “MLServer 3”

Who is online

Users browsing this forum: No registered users and 1 guest