Creating image resource packs
#1
Hi,

I've tried googling etc. but nothing seemed to present how you do this?

I'd like to look into moving some image packs out of skin into resource packs, for packs that exist like studios I know I can do a PR with ones I have that are not in the pack etc. but what is the process for creating something like movie genre packs for white / colored that are skin specific. I see various skin packs aleady in the image resource selector.

Anyone point me in the right direction please?

Thanks

Mike.
SKIN: Aeon Madnox
RIP Schimi2k, we miss you.
When I grow up I want to be a skilled skinner
Thank me by ⬇ adding to my + reputation
Reply
#2
Yeh needs to be updated on the wiki really as this feature has been around for a while.

There are loads of them here on github

https://github.com/xbmc-addons

Example of a Movie Genre Pack

https://github.com/XBMC-Addons/resource....ons.poster

Its a shame Estuary doesnt support them yet as that would be a nice start point, but I believe the Estuary Mod does. Might be worth looking at that.

https://github.com/Guilouz/repository.gu...stuary.mod
Reply
#3
Estuary already supports several resource add-on types, see skin settings.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#4
(2016-11-17, 20:01)phil65 Wrote: Estuary already supports several resource add-on types, see skin settings.

Thanks I was testing Music Genre's last night.

I've just seen that Weather and Fanart packs are already supported.

Awesome!
Reply
#5
no one?
SKIN: Aeon Madnox
RIP Schimi2k, we miss you.
When I grow up I want to be a skilled skinner
Thank me by ⬇ adding to my + reputation
Reply
#6
For the several I've created, I just copied an existing one and modified it. Are you asking about how to create the resource add-on, contents of addon.xml, etc, or how to integrate it into your skin?
Reply
#7
Hi braz,

the actual add-on if that is what they are classed as, just unique packs available in the look and feel section of the image resource selector. I've seen some skin specific packs but can't find any pointers in creating / adding one and that's what I'm after.

Thanks.
SKIN: Aeon Madnox
RIP Schimi2k, we miss you.
When I grow up I want to be a skilled skinner
Thank me by ⬇ adding to my + reputation
Reply
#8
Marcel is fresh with this changes, he remove all media folder files on his new reposority on github
https://github.com/marcelveldt/repository.marcelveldt
Lot of changes in his skin Titan, use that code in all code for your skin.
https://github.com/marcelveldt/skin.tita...256f55ddda

He remove all textures in his skin and change code from
Code:
resource://resource.images.skinicons.titan/

Create resource.images for all madNox skin and your skin will take space around 40 MB.
All resource.images put on github as addon, set in addon string to
Code:
<import addon="resource.images.skinicons.madnox" version="1.0.0"/>
User must install your new repository...and all addon for your skin will import automatic..

Something like that ....I plan to do simular.
AeonMQ7 have same as Titan all media is from resorce:// (OK not all but most of them)
XBoxMediaCenter (Kodi Matrix ) 19.3 , AndroidBox -Matrix Skin AeonMQ6
Reply
#9
Mike, take a look here at the existing resource addons. Download one of the same type you would like to create. Then just replace the images with your own, add your own icon and fanart, and adjust the addon.xml as needed.

https://github.com/XBMC-Addons

Creating one is the easy part. Depending on how comfortable you are with github, the hard part will be submitting it to the Kodi repo.

Here are some instructions for submitting to github, though I am by no means an expert at this and others can probably weigh in with more specific assistance.

https://github.com/xbmc/xbmc/blob/master...IBUTING.md
Reply
#10
To follow on to what Angelinas posted, I use several image resource addons in Mimic. In the weather window, I have buttons for the user to select which image pack they want to use for the weather icons and fanart.

Code:
<control type="button" id="210">
    <description>Select weather icons</description>
    <include>ButtonCommonValues</include>
    <label>31158</label>
    <onclick>RunScript(script.image.resource.select,property=weathericons&amp;type=resource.images.weathericons)</onclick>
    <visible>System.HasAddon(script.image.resource.select)</visible>
</control>
<control type="button" id="211">
    <description>Select weather fanart</description>
    <include>ButtonCommonValues</include>
    <label>$LOCALIZE[424] [LOWERCASE]$LOCALIZE[20445][/LOWERCASE]</label>
    <onclick>RunScript(script.image.resource.select,property=weatherfanart&amp;type=resource.images.weatherfanart)</onclick>
    <visible>System.HasAddon(script.image.resource.select)</visible>
</control>

Then I use a variable to display the selected weather icons, with the default pack as a fallback.

Code:
<variable name="WeatherIconVar">
    <value condition="System.HasAddon(script.image.resource.select) + !String.IsEmpty(Skin.String(weathericons.path))">$INFO[Skin.String(weathericons.path)]</value>
    <value>resource://resource.images.weathericons.default/</value>
</variable>
Reply
#11
There's also some great info in how the image resource select addon works on its github page.

https://github.com/ronie/script.image.resource.select

Hope this all helps!
Reply
#12
(2016-11-18, 21:24)braz Wrote: To follow on to what Angelinas posted, I use several image resource addons in Mimic. In the weather window, I have buttons for the user to select which image pack they want to use for the weather icons and fanart.
Braz ...MadNox already have that code...Isue is that have Mike is big skin full of textures,background More then 700 MB.
He want to split grafic from xml....
His extra folder is more then 500 MB and want to move in Resource .When he move media folder to resources his skin will be under 40 MB.That is his question....
How to do this?.

(2016-11-18, 21:34)braz Wrote: There's also some great info in how the image resource select addon works on its github page.

https://github.com/ronie/script.image.resource.select

Hope this all helps!

good start Smile

Mike, Just sugestion
Resource pack dont have to compile in texture.xbt, leave images in jpg or png format (with compile size of textures is biger then as simple format, I dont understand why skiner use texture.xbt!!) .
XBoxMediaCenter (Kodi Matrix ) 19.3 , AndroidBox -Matrix Skin AeonMQ6
Reply
#13
(2016-11-18, 21:49)Angelinas Wrote: Mike, Just sugestion
Resource pack dont have to compile in texture.xbt, leave images in jpg or png format (with compile size of textures is biger then as simple format, I dont understand why skiner use texture.xbt!!) .
Image resource addons with small images (icons, etc), can and should be packed into an xbt file with the compile="true" tag in the addon.xml. Image resource addons that provide fanart should set this to false.
Reply

Logout Mark Read Team Forum Stats Members Help
Creating image resource packs0