Any skilled coder here who can quickly write a program to convert 720p xmls to 1080? had a chat about that with someone from team blackbolt some time ago, but it never became reality.
all <posx> und <posy> tags would have to be multiplied by 1.5 and then rounded up, and if possible, the same for the animation tags, which are probably a bit more difficult to parse/modify.
I´m tryin it with perl myself atm, just didn´t get it till now.
thanks in advance
EDIT: wrote a program myself now, here it is:
https://github.com/phil65/xmlconvertgui/
Converts ALL skin coordinates/font sizes to their corresponding 1920x1080 values. you only have to adjust the addon.xml yourself.
Can also detect unused textures.
phil65
Skilled Skinner Posts: 4,456 Joined: Mar 2009 Reputation: 56 Location: Cologne, Germany |
2012-03-01 06:55
Post: #1
(This post was last modified: 2012-05-23 18:53 by phil65.)
|
| find quote |
Jezz_X
Team-XBMC Skinner Joined: Jun 2006 Reputation: 55 Location: Earth |
2012-03-01 09:39
Post: #2
The question I got to ask is why ? xbmc automatically does what your trying to do anyway when you turn it to 1080p, so whats the point ?
Now making one from scratch in 1080p is a different thing alltogether and it more comes down to the images than the xmls Skins I have done.... ![]() And others in the past... Want to know what I'm working on currently? Check me out on Google+ |
| find quote |
Big_Noid
Skilled Skinner Joined: Jul 2010 Reputation: 68 Location: Below sea level |
2012-03-01 12:21
Post: #3
One reason for doing this is if you already have 1080p textures, but a skin coded in 720p. For instance using border= on textures works good on native resolution of textures, but when you are coding 720p with 1080p textures that really screws that up.
|
| find quote |
phil65
Skilled Skinner Posts: 4,456 Joined: Mar 2009 Reputation: 56 Location: Cologne, Germany |
2012-03-06 03:53
Post: #4
i just created this in VB:
Code: Sub Main()can anyone help me to write the output file with the correct encoding? is Unicode right? How can I choose ANSI? when I convert an XML (taken from confluence) with that, all line breaks are removed.... EDIT: I think I got it ![]() here´s the code to convert the posx, posy, width and height values to 1080p. the animations have to be tweaked by hand, don´t know if i will get that running too. Code: Imports System.XmlEDIT: added some more elements: it now converts posx,posy,width,height,textwidth,textoffsetx,textoffsety,radioposx,radioposy,radiowidth,radioheight. can post an exe if someone wants it.
(This post was last modified: 2012-03-06 05:36 by phil65.)
|
| find quote |
ZombieRobot
Fan Joined: May 2010 Reputation: 4 Location: Mount Maunganui , New Zealand |
2012-03-06 07:18
Post: #5
Phil your the man i dont know how long i have needed this exact thing
|
| find quote |
phil65
Skilled Skinner Posts: 4,456 Joined: Mar 2009 Reputation: 56 Location: Cologne, Germany |
2012-03-06 08:03
Post: #6
ZombieRobot Wrote:Phil your the man i dont know how long i have needed this exact thing no problem. let me know if it works for you. |
| find quote |
jmarshall
Team-XBMC Developer Posts: 24,523 Joined: Oct 2003 Reputation: 138 |
2012-03-06 08:15
Post: #7
Nice work. Some notes to improve your program (feel free to ignore!)
1. Put the 1.5 in a (constant) variable, so you can more easily change it later should a different transformation be required. 2. Put the tag names into an array at the top, and cycle through that array rather than c&p the code multiple times. Alternatively, make the bit you've c&p'd a function that takes in the info it needs to do the conversion and then just call that function with each different tag you need to convert. Much faster to change then, and it makes sure all the code blocks are identical. Cheers, Jonathan Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |
phil65
Skilled Skinner Posts: 4,456 Joined: Mar 2009 Reputation: 56 Location: Cologne, Germany |
2012-03-06 09:03
Post: #8
jmarshall Wrote:Nice work. Some notes to improve your program (feel free to ignore!) thx for feedback. I will try to set up a small gui to make things easier to use and optimize the code as you said. I just don´t succeed with transforming the animation attributes "start" and "end" at the moment because they can have different amount of coordinates. any help is greatly appreciated. |
| find quote |
eumel
Alaska Group Joined: Jun 2009 Location: Germany |
2012-03-06 09:57
Post: #9
phil65 Wrote:Any skilled coder here who can quickly write a program to convert 720p xmls to 1080? had a chat about that with someone from team blackbolt some time ago, but it never became reality.It became reality, you have to ask Equinox, he is the man wrote one script. |
| find quote |
phil65
Skilled Skinner Posts: 4,456 Joined: Mar 2009 Reputation: 56 Location: Cologne, Germany |
2012-03-06 10:34
Post: #10
did this tool convert the animation tags, too?
EDIT: optimized code and created a gui. i can upload it if someone wants it.
(This post was last modified: 2012-03-06 12:12 by phil65.)
|
| find quote |

![[Image: skinsq.png]](http://img854.imageshack.us/img854/931/skinsq.png)

![[Image: badge.gif]](http://www.ohloh.net/projects/9132/badge.gif)
![[Image: tbb_sig_2010.png]](http://www.teamblackbolt.co.uk/data/media/tbb_sig_2010.png)
![[Image: skinconvert.jpg]](http://img513.imageshack.us/img513/4251/skinconvert.jpg)
Search
Help