Release Skin XML Converter + Formatter - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +---- Forum: Skin helper addons (https://forum.kodi.tv/forumdisplay.php?fid=300) +---- Thread: Release Skin XML Converter + Formatter (/showthread.php?tid=132720) |
Skin XML Converter + Formatter - phil65 - 2012-05-30 [RELEASE] Skin XML Converter + Formatter 1.0 Thaught it would be best to make a new thread for this... At the moment the tool can: - convert between 1080 and 720 resolutions - convert encoding - change indenting and format the code - remove trailing whitespaces - change EOL - add headers - scale animation times/delays (useful to get rid of effectslowdown values <> 1 in addons.xml) - check for unused and undefined includes - start a script involving texturepacker to build the skin (thx to JezzX / Hitcher for the batch script) here´s the download https://github.com/phil65/xmlconvertgui/tree/master/PublicRelease and here the according github repo https://github.com/phil65/xmlconvertgui texture and font checking not workin properly atm if you want to use the script easiest way is to clone the repo. cheers RE: [RELEASE] Skin XML Converter - phil65 - 2012-06-04 just as a heads-up for all skinners here. just checked some skins with the tool, and almost all of them (except confluence) have a fair amount of either unused or undefined includes hidden in the code. RE: [RELEASE] Skin XML Converter - Jezz_X - 2012-06-04 (2012-06-04, 02:14)phil65 Wrote: just as a heads-up for all skinners here. hehe I rule RE: [RELEASE] Skin XML Converter - Tobby - 2012-06-04 (2012-06-04, 05:24)Jezz_X Wrote:Haha(2012-06-04, 02:14)phil65 Wrote: just as a heads-up for all skinners here. RE: [RELEASE] Skin XML Converter - Jezz_X - 2012-06-04 SO I gave it a shot and its not real accurate on the checking texutres bit I did a test on jx720 and while the fonts and the includes were right the missing textures where way off it gave me this list Quote:Building Texture List And Just by doing a search in Notepad++ on a couple of the top ones (in bold above) I new I had I got this Quote:Search "check-box.png" (1 hits in 1 files) RE: [RELEASE] Skin XML Converter - Jezz_X - 2012-06-04 It also fails on the ipad touched skin because it doesn't have the folders you assume it does 720p/1080p Touched uses the new way of having a skin folders which lets you use any folder name you want in this case the folder is named 4x3Hirez https://github.com/xbmc/skin.touched You can easily do the proper check in your app by using the lines in the addon.xml that define it and gives you all the dimensions to use with you calculations https://github.com/xbmc/skin.touched/blob/master/addon.xml PHP Code: <res width="1280" height="960" aspect="4:3" default="true" folder="4x3Hirez" /> RE: [RELEASE] Skin XML Converter - Hitcher - 2012-06-04 (2012-06-04, 07:23)Jezz_X Wrote: It also fails on the ipad touched skin because it doesn't have the folders you assume it does 720p/1080p +1 for this as I'm not using 720p/1080i folders anymore either. RE: [RELEASE] Skin XML Converter - phil65 - 2012-06-04 Texture checking is broken (and probably will never be 100% because of infolabels inside texture tag) include check works good though. will adjust the tool to read the folder name from addon.xml. RE: [RELEASE] Skin XML Converter - phil65 - 2012-06-04 changed it to use the folder name from addon.xml. RE: [RELEASE] Skin XML Converter - Hitcher - 2012-06-04 (2012-06-04, 12:21)phil65 Wrote: changed it to use the folder name from addon.xml. Nice one phil, thanks. EDIT: There seems to be a problem converting from 1080 to 720. 1920 becomes 1267 instead of 1280 1080 becomes 713 instead of 720 EDIT2: That was quick, thanks. RE: [RELEASE] Skin XML Converter - phil65 - 2012-06-04 (2012-06-04, 12:47)Hitcher Wrote:(2012-06-04, 12:21)phil65 Wrote: changed it to use the folder name from addon.xml. fixed now, thx. RE: [RELEASE] Skin XML Converter - Jezz_X - 2012-06-05 So I have to ask when you say fixed do you mean its just the code or you updated the original file without a version bump ? because it still links to the same one RE: [RELEASE] Skin XML Converter - Martijn - 2012-06-05 (2012-06-05, 11:14)Jezz_X Wrote: So I have to ask when you say fixed do you mean its just the code or you updated the original file without a version bump ? because it still links to the same one Judging from the github commit date it should be the fix one without a version bump RE: [RELEASE] Skin XML Converter - phil65 - 2012-06-05 yep, i´m always pushing the code change + the compiled exe to github so people do not have to compile themselves. RE: [RELEASE] Skin XML Converter - Jezz_X - 2012-06-05 (2012-06-05, 14:12)phil65 Wrote: yep, i´m always pushing the code change + the compiled exe to github so people do not have to compile themselves. btw you do know github has a binary downloads section do you don't have to commit it to your git repo (but I guess putting it in the repo is easier) https://github.com/phil65/xmlconvertgui/downloads |