[MOD] Launcher Panels Views [WIP]

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Angelscry Offline
Skilled Python Coder
Posts: 2,704
Joined: Sep 2010
Reputation: 37
Location: MTL, Canada
Post: #11
Hitcher Wrote:I'd send that mod off as a patch to the author so everyone can benefit from it.
Thank you Hitcher. I have also post the patch yesterday on the Launcher official thread.
find quote
ppic Offline
Skilled Python Coder
Posts: 2,663
Joined: Feb 2009
Reputation: 10
Location: France idf
Post: #12
hum Confused

you have the rom path.
the fanart is in the same path

so without modifing the launcher addons and without modify the xml, you can have what you need !

Code:
fanart = os.path.join(os.path.dirname(filename) , "fanart.jpg")

so users just have to put the fanart in the rom directory, should be easier no ?

[Image: widget]
Passion-XBMC Repository Download your SVN skins and addons
TvTunes Addon Download Play your theme while browsing library
TVshow Next Aired display next aired infos from tvrage.com
Logo Downloader Script download Logo/clearart/show thumbs/poster/banner
Bande-Annonce Allociné plugin watch trailers in french and vo
SportLive Script Live score match info in XBMC (not compatible dharma)
(This post was last modified: 2010-10-06 03:07 by ppic.)
find quote
Angelscry Offline
Skilled Python Coder
Posts: 2,704
Joined: Sep 2010
Reputation: 37
Location: MTL, Canada
Post: #13
Some people prefers to create one directory per rom and store corresponding cover and fanart images into the same directory. At the opposite, some people prefers to store all the roms into one directory, covers into a second directory and fanart into a third directory. It depend on people. Your solution is interesting but seems more restrictive than the possibility to acces and store files from where you want, like this :
Code:
<rom>
    <name>Mario kart 64</name>
    <filename>/mnt/multimedias/consoles/nintendo64/roms/Mario Kart 64.z64</filename>
    <thumb>/mnt/multimedias/images/nintendo64-mario_kart_64.jpg</thumb>
    <fanart>/mnt/somewhere/into/my/harddrive/fanart.jpg</fanart>
</rom>
find quote
TheDuffMan Offline
ShareThe.TV admin
Posts: 273
Joined: Nov 2008
Reputation: 13
Post: #14
This looks really good. The RessurrectionXtras project comes with screenshots of all games as well.
find quote
marjanovich Offline
Member
Posts: 97
Joined: Mar 2010
Reputation: 1
Location: Sacramento, Ca
Post: #15
ppic Wrote:hum Confused

you have the rom path.
the fanart is in the same path

so without modifing the launcher addons and without modify the xml, you can have what you need !

Code:
fanart = os.path.join(os.path.dirname(filename) , "fanart.jpg")

so users just have to put the fanart in the rom directory, should be easier no ?

Where would that modification go? Just in the myPrograms.xml itself?
find quote
Evilware Offline
Junior Member
Posts: 10
Joined: Oct 2010
Reputation: 0
Location: Germany
Post: #16
Hi there , i wanted to now if it is possible to add the poster view to the launcher ?
(sorry for my English i am from Germany ^^)

THX @ ALL
find quote
Angelscry Offline
Skilled Python Coder
Posts: 2,704
Joined: Sep 2010
Reputation: 37
Location: MTL, Canada
Post: #17
Evilware Wrote:Hi there , i wanted to now if it is possible to add the poster view to the launcher ?
Yes, I think I will be able to add the poster view to this mod.

Actually I'm working on the Launcher Addon to add support of additionnal informations like genre, release date, publisher and game plot into the launchers.xml file, like this :

Code:
<rom>
<name>Legend of zelda - a link to the past</name>
<filename>/mnt/multimedias/consoles/snes/roms/Legend of Zelda - A Link to the Past.smc</filename>
<thumb>/mnt/multimedias/consoles/snes/covers/Legend of Zelda - A Link to the Past.jpg</thumb>
<fanart>/mnt/multimedias/consoles/snes/fanarts/Legend of Zelda - A Link to the Past.jpg</fanart>
<genre>Action-adventure</genre>
<release>1991</release>
<company>Nintendo</company>
<plot>An evil sorcerer named Agahnim gains control of Hyrule and uses his power to free Ganon from his prison in the Dark World. After rescuing Princess Zelda from Agahnim's grasp, Link frees the descendents of the Seven Sages and strengthens the magical seals designed to keep Ganon safely locked away.</plot>
</rom>

And in parallel, I'm also working on this mode to display those informations into Alsaka Revisited, like below :

[Image: screenshot000ls.jpg]
find quote
Evilware Offline
Junior Member
Posts: 10
Joined: Oct 2010
Reputation: 0
Location: Germany
Post: #18
Really BIG THX for your great work, i can´t wait ,looking forward to it ^^ .
find quote
clock2113 Offline
Fan
Posts: 636
Joined: Feb 2007
Reputation: 0
Location: XBMC+Unraid=Happy!
Post: #19
Also looking forward to it! Smile

XBMC: XBMCbuntu 12.0, with Transparency!
17.5 TB Unraid Server: 2500 movies, 8800 episodes of TV Apps: SABnzbd, Sickbeard, Couchpotato, mySQL
HTPC: E6500, mAtx, 210GT
Watching on: Sony 32" Bravia with lowend Sony 5.1 HTIB
find quote
Angelscry Offline
Skilled Python Coder
Posts: 2,704
Joined: Sep 2010
Reputation: 37
Location: MTL, Canada
Post: #20
Ok, this is the second version of my MOD for the Alaska Revisted theme for the Launcher Addon use.
This version add support of fanarts and additionnal games or roms information like : game genre, release date, game plot, publisher.

Download:
launcher.panels.views.20101009.zip
The Launcher Panels Views MOD avec been tested on XBMC (SVN 34593) using Alaska Revisited v1.7.1 and Launcher v1.10.2

Installation:
1. Download the zip file and extract the 3 files (Viewtype_Emu_Square_Panel.xml, Viewtype_Emu_Tall_Panel.xml and Viewtype_Emu_Wide_Panel.xml) into /addons/skin.alaska.revisited/720p/

2. Add the following line to /addons/skin.alaska.revisited/720p/MyPrograms.xml just after <allowoverlay>yes</allowoverlay>
Code:
<views>55,500,501,502</views>

3. Then, add the following lines to /addons/skin.alaska.revisited/720p/MyPrograms.xml just after <include>Viewtype_Files</include>
Code:
<include>Viewtype_Emu_Wide_Panel</include>
<include>Viewtype_Emu_Square_Panel</include>
<include>Viewtype_Emu_Tall_Panel</include>

4. Next, add the following lines to /addons/skin.alaska.revisited/720p/Includes.xml just before <include file="Viewtype_Panel.xml" />
Code:
<include file="Viewtype_Emu_Wide_Panel.xml" />
<include file="Viewtype_Emu_Square_Panel.xml" />
<include file="Viewtype_Emu_Tall_Panel.xml" />

5. Add the following lines at the end of /addons/skin.alaska.revisited/language/English/strings.xml before </strings>
Code:
<string id="40000">WIDE COVERS</string>
<string id="40001">SQUARE COVERS</string>
<string id="40002">TALL COVERS</string>

6.Finally, replace the /addons/plugin.program.launcher/resources/lib/launcher_plugin.py code (v1.10.2) by this one : http://pastebin.com/4DvuZiVi

Example of square covers (and corresponding launchers.xml code lines)

[Image: screenshot000dy.jpg]
Code:
<rom>
    <name>Kingdom hearts - chain of memories</name>
    <filename>/mnt/multimedias/consoles/gameboyadvance/roms/Kingdom Hearts - Chain of Memories.gba</filename>
    <thumb>/mnt/multimedias/consoles/gameboyadvance/covers/Kingdom Hearts - Chain of Memories.jpg</thumb>
    <fanart>/mnt/multimedias/consoles/gameboyadvance/fanarts/Kingdom Hearts - Chain of Memories.jpg</fanart>
    <genre>Role-Playing</genre>
    <release>2004</release>
    <publisher>Square Enix</publisher>
    <gameplot>Sora, the Kingdom Hearts' hero from the first game, wanders into a castle where he and his companions, Donald and Goofy, realize their magic and skills, earned in the first game, have been completely stripped away. Sora must traverse the castle on his own this time.</gameplot>
</rom>
Example or tall covers (and corresponding launchers.xml code lines)

[Image: screenshot001sl.jpg]
Code:
<rom>
    <name>Sonic and knuckles</name>
    <filename>/mnt/multimedias/consoles/genesis/roms/Sonic and Knuckles.bin</filename>
    <thumb>/mnt/multimedias/consoles/genesis/covers/Sonic and Knuckles.jpg</thumb>
    <fanart>/mnt/multimedias/consoles/genesis/fanarts/Sonic and Knuckles.jpg</fanart>
    <genre>Action</genre>
    <release>1994</release>
    <publisher>Sonic Team</publisher>
    <gameplot>While Sonic may have defeated Robotnik's Death Egg in Sonic the Hedgehog 3, good villains never die (at least not in video games), they only get nastier. Now Sonic  must ensure the bald one doesn't cause any more trouble on Floating Island. He'll also have to deal with the island's guardian, Knuckles, since the echidna doesn't especially like Sonic poking his blue face around where he doesn't belong.</gameplot>
</rom>
Example fof wide covers (and corresponding launchers.xml code lines)

[Image: screenshot002zu.jpg]
Code:
<rom>
    <name>Legend of zelda - a link to the past</name>
    <filename>/mnt/multimedias/consoles/snes/roms/Legend of Zelda - A Link to the Past.smc</filename>
    <thumb>/mnt/multimedias/consoles/snes/covers/Legend of Zelda - A Link to the Past.jpg</thumb>
    <fanart>/mnt/multimedias/consoles/snes/fanarts/Legend of Zelda - A Link to the Past.jpg</fanart>
    <genre>Action-adventure</genre>
    <release>1991</release>
    <publisher>Nintendo</publisher>
    <gameplot>The land of Hyrule is thrown into turmoil. Ravaged by disasters and pestilence, the country quickly embraces the wizard Agahnim when he uses his magic to restore order. But not all is at it seems. A Link to the Past begins with a distress call from Princess Zelda, who speaks to young hero Link through his dreams.</gameplot>
</rom>

Actually the scrapper of the launcher adddon only support (more or less) the automatic add/importation of covers images (thumbs). For the other information (screenshot, games genre and games plot) you have to add them manually into the userdata/addon_data/plugin.program.launcher/launchers.xml file. That's not perfect, I know, but it is better than nothing. Have fun !!!

Advanced Launcher | Manual | WiKi | Forums | Tutorials | Gallery | GitHub | Archives | Donate

find quote
Post Reply