PDA

View Full Version : Problem with MP.GAC



Rob169
September 20th, 2007, 05:03 PM
Hi, and apologies both for newbie and nontechnical status (and language).

I hope someone can help me out with the following:
I am working on a project based on the mce_1024x768.ccf template. I have altered some graphics but avoided changing any code whatsoever.

When running the NR client on the same machine that hosts Mediabridge and WMP everything works perfectly.

When running the NR client on remote machines over both wired and wireless networks, everything works great EXCEPT any function that uses MP.GAC....

I (hope to) attach some images that demonstrate the effect - any assistance or explanation as to why MP.GAC is failing to return data would be gratefully received.

Rob
4113

4114

4115

Rob H
September 20th, 2007, 11:25 PM
That sounds a bit odd - is that NR client definitely connecting to Mediabridge successfully? It should appear in the list of clients in Mediabridge.

My first instinct is to delete the Mediabridge plugin instance and let autodiscovery find it again.

The copy button on the toolbar appears to work though as a workaround.

Rob169
September 21st, 2007, 12:43 AM
Yes, it is odd. The NR client is definitely connecting to Mediabridge (as 192.168.1.6:1047) and other functions work perfectly e.g. it can display album art (using "MP.PlayingNowCover"), artist ("MP.Artist"), track ("MP.Track") etc and all WMP functions e.g. Play, Pause, Next Track, Previous Track, all work from the remote client with no problem at all.

It is only functions that utilize "MP.GAC." and LUA script using gacs e.g. "gacs[1]:GoScheme(NetRemote.GetVariable('MP.AlbumsRoot'));" that simply do nothing from the remote client, even though the selfsame configuration works perfectly on the local machine (i.e. the one hosting Mediabridge).

Where would you delete the Mediabridge plugin? (sorry - very new to this)

Rob H
September 21st, 2007, 01:25 AM
If that all works then deleting the mediabridge plugin won't help.

Can you install NetRemote Designer on this other PC and see if any errors are showing up in the Lua console? Failing that install DebugView from www.sysinternals.com as that will also show any errors.

theguywiththefunnyhair
September 21st, 2007, 02:13 AM
If you've created (edited) this .ccf yourself you could also try double checking that both machines have a copy of the same .ccf open.

Rob169
September 21st, 2007, 02:23 AM
The LUA console shows the following, repeatedly:
[string "NRLUA"]:1 attempt to index global 'gacs' (a nil value)

Rob169
September 21st, 2007, 02:36 AM
Guys - I have it. Using the Designer on the remote machine, rightclicking on System and selecting Edit LUA Script opens the script editor which shows no script.

The script editor on the host machine shows well formed script, so i guess the solution will be simply to paste the script from the server to the client machine.

Have you any idea why the script did not appear on the remote machine? Is LUA script stored within the CCF or as an external assembly?

Rob169
September 21st, 2007, 03:04 AM
Please ignore my last question - I've found the answer in the LUA reference docs. RTFM :)

Thanks for your help, gents - all's right with the world.