PDA

View Full Version : GAC+ help



theguywiththefunnyhair
April 29th, 2007, 02:53 AM
Hi,

I have recently decided to have a crack at using the GAC+ object to display my library in NR.

I've spent a bit of time playing around and getting a feel for it and i have to say i wish i'd got stuck into it a while ago.

I am a little stumped right now and i'm wondering what i have when MP.Gac1.Items[n].Type is equal to 1? The manual (is it up-to-date?) says

"MP.var.Items[n].Type: The type of item. -1 = empty; 0 = folder; 2 = file."

but makes no mention of '=1'

Thanks

Dan

theguywiththefunnyhair
May 2nd, 2007, 02:39 AM
does anyone else ever see MP.var.Items[n].Type = 1 ?

Ben S
May 2nd, 2007, 05:56 PM
Yes. I believe 2 = file in the docs is a mistake. 1 should be a file, 0 should be a folder (unless I'm mistaken).

theguywiththefunnyhair
May 10th, 2007, 04:50 AM
Thanks Ben,

I wonder if you could take a second to explain something to me.

I understand the 'rootscheme' is defined in the player and sets which metatag is used to group the gac objects children and how far you can drill down, BUT what does 'scheme' refer to? Where are the possible choices defined and what does is set?

Thanks again

Dan

Jlee
May 10th, 2007, 11:13 PM
Are you using JRMC?

It's the path to the view scheme you want to view. E.g. Media Library\Audio\My View Scheme

theguywiththefunnyhair
May 11th, 2007, 02:46 AM
Hi Jlee,

Thanks for your input, i've been scratching my head about this since the first time i saw it.

To answer you question, no. I'm not using JRMC.... So i gather its just a JRiver thing?? Do you know what effect it has if your using another player?

For example if i use (not using JRMC);
SetRootScheme(NetRemote.GetVariable('MP.AlbumsRoot '))
SetScheme(NetRemote.GetVariable('MP.ArtistsRoot')) it looks to me like the root scheme just becomes the value of MP.ArtistsRoot. Is this expected (or even correct)?

Also if you have a minute can you give me an idea of what setting the view scheme does (when using JRMC) that you cant do by setting a rootscheme.

Thanks

Dan

Jlee
May 11th, 2007, 05:19 AM
I'm not exactly sure. I think these root schemes are there to make life easier for people who do not know how to customise the media player and set up their own schemes. Why would you not use JRMC? It's so much more powerful and customisable than anything else out there and NR support is therefore very comprehensive. Don't spend time customising your set up until you have the right tools in place! Get JRMC and then start experimenting with GAC - it will save you time in the long run and give you a much better system!

Ben S
May 11th, 2007, 08:31 PM
You guys are talking about two different things.

The "LibraryRoot" (JLee is talking about) is where you can set what the root of the tree view fetches.

The "SchemeRoot" (Dan is talking about) is how the GAC+ Lua knows if it can go "up" or not.

In the default CCF, when jumping to genres/etc it does a SetRootScheme. If you drill -into- a genre it does a SetScheme. This allows you to "go back up" a folder to get back to the genre.

theguywiththefunnyhair
May 12th, 2007, 09:14 PM
Hi Ben,

I know your very busy and i feel bad for taking up your time with this noobishness, but i really need to get this clear in my head, so please forgive me.

I'm not sure Jlee and i were talking about different things. I was asking about the 2 GAC functions
GAC:SetRootScheme()
GAC:SetScheme() and i think Jlee was also talking about the same thing (Jlee plz correct me if i'm wrong).


In the default CCF, when jumping to genres/etc it does a SetRootScheme. If you drill -into- a genre it does a SetScheme. This allows you to "go back up" a folder to get back to the genre.
When you refer to the default .ccf which one do you mean? Flatstyle? When that ccf switches between artist/genre etc it uses GAC:GoScheme() and when you drill into it calls GAC:DefaultAction()


The "SchemeRoot" (Dan is talking about) is how the GAC+ Lua knows if it can go "up" or not Now you've really confused me.. is the SchemeRoot the result of the GAC:SetRootScheme() function?

It might be only me struggling to get my head around how and when to use these particular functions, but i think it's quite tricky! Maybe its just because their names are so similar... Would it be possible to get a little more detail on the intended usage for these functions?

Thanks for your patience

Dan

Ben S
May 14th, 2007, 04:50 PM
You're probably right, maybe I am confused.

The root scheme is the one set with GoScheme (you're right). The other scheme changes when the DefaultAction changes it, allowing you to go back up to the original scheme gone to.

I don't think you should ever have to call Either SetRootScheme.