Radio in Heavymetal skin - ghost in the machine?

This is the place to post your skins, and discuss skinning

Radio in Heavymetal skin - ghost in the machine?

Postby edgley on Sat Oct 09, 2004 12:09 am

Hi,

I have tried to make a radio page like the one in the heavymetal skin.

All works, expect that when I hit the icon for a new station, it gets added to the playlist rather than replacing the one I am listening too.

What might I be doing wrong please?

Thanks,

Simon.
Last edited by edgley on Sun Oct 10, 2004 11:23 am, edited 1 time in total.
edgley
 
Posts: 240
Joined: Wed Apr 21, 2004 4:44 pm
Location: london

Postby hjackson on Sat Oct 09, 2004 6:42 am

Edgley, we will probably need more info... Please show us some lines from your xml file for your radio page.
BTW, did you try just editing Badabing's radio.xml file by cutting and pasting in the urls of your winamp radio stations (and the address of your station's coverart)? That is what I did to get my own station list.

hjackson
hjackson
 
Posts: 371
Joined: Sat Nov 29, 2003 7:12 am
Location: Tampa, Florida

Postby edgley on Sun Oct 10, 2004 12:13 am

I did try putting in the radio.xml from the heavy skin into mine, and that worked fine.

It allowed me to see the code, and also see how it worked (in theory!).


anyway, here is the code from my radio.xml:

<?xml version="1.0" encoding="UTF-8"?>
<skin background="Background.jpg">
<skinsize>1024,768</skinsize>
<usedefault>True</usedefault>

<eventbutton>
<imagename>radio_station</imagename>
<location>213,67,600,400</location>
<navitem>True</navitem>
<font>arial,1.953125%,regular</font>
<type>category</type>
<database>radio</database>
<display>%display%</display>
<details></details>
<defaultlisting>False</defaultlisting>
<ratio>1:1</ratio>
<columns>4</columns>
<overlay>all</overlay>
<layout>default</layout>
<scroll>Left Right</scroll>
<rows>0</rows>
<keepaspectratio>False</keepaspectratio>
</eventbutton>

<eventbutton>
<eventid>goto:goto menu</eventid>
<imagename>left.png</imagename>
<location>10,10,50,50</location>
<navitem>True</navitem>
<keepaspectratio>True</keepaspectratio>
</eventbutton>

</skin>

Thanks!

Simon.
edgley
 
Posts: 240
Joined: Wed Apr 21, 2004 4:44 pm
Location: london

Postby art on Sun Oct 10, 2004 5:08 am

try adding event "music:track play"
art
 
Posts: 284
Joined: Sat Mar 20, 2004 8:40 am
Location: Allen, TX

Postby edgley on Sun Oct 10, 2004 11:22 am

OMG, it worked!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

BUT:
As soon as I exit and reload the skin, it all goes pear shaped.

I go back to the radio page, and there are no stations listed.
So I go into the database, and it is now empty :(

So I look at the xml database file, and it is okay.

So I reload Xlobby again, and it hangs at the splash screen at the loading screens moment.

So I kill it, delete my radio.xml (the screen and not the database) and it loads okay, and the database is back.

What the heck is going on???

Simon.
edgley
 
Posts: 240
Joined: Wed Apr 21, 2004 4:44 pm
Location: london

Postby art on Sun Oct 10, 2004 4:17 pm

edgley wrote:OMG, it worked!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Glad to hear that ...


edgley wrote:What the heck is going on???

Simon.


I'm not sure, but I would try creating fresh screen with just a category for the database and one button to go to the main menu (like you have), let the XL create all the xml code and compare it to what you have in your old screen...
By the way here is cut from my radio screen, maybe it will help you:
<eventbutton>
<eventid>music:track play</eventid>
<imagename>stations</imagename>
<location>288,207,678,494</location>
<navitem>True</navitem>
<fontresource>playListDeatails</fontresource>
<font>Zurich Ex BT,2.60416666666667%,#E2FFFB,regular</font>
<shadow>False</shadow>
<outline>1</outline>
<outlinecolor>#000000</outlinecolor>
<textMovement>False</textMovement>
<type>category</type>
<database>radio</database>
<display> %genre% - %display% - %country%</display>
<details></details>
<defaultlisting>True</defaultlisting>
<ratio>1:1</ratio>
<columns>1</columns>
<overlay>missing</overlay>
<layout>default</layout>
<scroll>Up Down</scroll>
<defaultnav>True</defaultnav>
<keepaspectratio>True</keepaspectratio>
</eventbutton>
art
 
Posts: 284
Joined: Sat Mar 20, 2004 8:40 am
Location: Allen, TX

Postby edgley on Sun Oct 10, 2004 9:38 pm

But thats what I did, Art.

All I copied across was the oringinal database, and I change the path line in it to the correct one for my system.

will try your code and see what happens.

thanks!

Simon.
edgley
 
Posts: 240
Joined: Wed Apr 21, 2004 4:44 pm
Location: london

Postby art on Mon Oct 11, 2004 2:38 am

edgley wrote:But thats what I did, Art.


Sorry, somehow I got an impression that you were changing heavymetal screen ...
Anyway, let us know if you had any luck.....
art
 
Posts: 284
Joined: Sat Mar 20, 2004 8:40 am
Location: Allen, TX

Postby art on Mon Oct 11, 2004 1:44 pm

I tried your radio.xml code with few changes and it worked for me. Changes are:
<columns>4</columns> change to 1, or keep it if you want thumbs view
<overlay>all</overlay> change to - missing
<rows>0</rows> delete this line
When I loaded this screen in XL (no problems here) I went to skin editor and unchecked "thumbs" in category ...and that's all. Good luck.
art
 
Posts: 284
Joined: Sat Mar 20, 2004 8:40 am
Location: Allen, TX