Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,804,641 Members 44,341 Now Online
XDA Developers Android and Mobile Development Forum

[APP][3rd Aug] Convert your CPR Titanium or PLG file to different (all) resolutions!

Tip us?
 
OndraSter
Old
(Last edited by OndraSter; 20th September 2009 at 09:54 AM.)
#1  
OndraSter's Avatar
Recognized Developer - OP
Thanks Meter 277
Posts: 2,082
Join Date: Mar 2009
Location: Prague

 
DONATE TO ME
Default [APP][3rd Aug] Convert your CPR Titanium or PLG file to different (all) resolutions!

Convert your CPR file to different resolution by one click

Hello guys,
TPC asked me for one tool - he has made his own Titanium plugin and wanted to convert it to Fuze, that has got different resolution than Kaiser that he built it on.

I've written that app and here ya go:


It converts all Height, Width, Left, Top, ItemHeight and ItemWidth attribs in .cpr file. It isn't perfect because some values you'll have to adjust manually, but rewriting all thousands lines of code takes much longer.

It was built for Titanium CPR file, but it will probably work on any different CPR file (since it is all the same XML).

You need only .NET Framework!


If you like my work and want me to continue developing tools, Buy me a beer!

Bugfixed:
v1.1: Now it can handle . numbers
Lumia 920 + 800 - Official WP AppHub developer

PINCH TO ZOOM ON ANY WINMO DEVICE! | Start Menu Back Gesture | LockScreenPatcher | Move the keyboard to the bottom
====
[CPR & PLG Resolution Convertors] | [Right Click Recmod and Reverse] | [REG/RGU Cleaner] | [Hacking ConnectionSetupDB files]
====
Do you like my work? Buy me beer.
Have you bricked your phone? I can reflash bootloader and radio when you can't anymore! PM me!
 
OndraSter
Old
(Last edited by OndraSter; 9th August 2009 at 06:07 PM.)
#2  
OndraSter's Avatar
Recognized Developer - OP
Thanks Meter 277
Posts: 2,082
Join Date: Mar 2009
Location: Prague

 
DONATE TO ME
PLG Resizer - convert your .plg to all resolutions



If you like my work and want me to continue developing tools, Buy me a beer!


V1: without generate landscape function
V2: added generate landscape function + some anti-crash fixes
V2.1: fixed bug that when in file were both landscape + portrait modes tool crashed (occured only in v2, v1 was working fine)
Attached Files
File Type: zip PLG-convertor-v1.0.zip - [Click for QR Code] (7.5 KB, 37 views)
File Type: zip PLG-convertor-v2.0.zip - [Click for QR Code] (7.7 KB, 30 views)
File Type: zip PLG-convertor-v2.1.zip - [Click for QR Code] (7.7 KB, 558 views)
Lumia 920 + 800 - Official WP AppHub developer

PINCH TO ZOOM ON ANY WINMO DEVICE! | Start Menu Back Gesture | LockScreenPatcher | Move the keyboard to the bottom
====
[CPR & PLG Resolution Convertors] | [Right Click Recmod and Reverse] | [REG/RGU Cleaner] | [Hacking ConnectionSetupDB files]
====
Do you like my work? Buy me beer.
Have you bricked your phone? I can reflash bootloader and radio when you can't anymore! PM me!
 
Cal-El
Old
#3  
Cal-El's Avatar
Senior Member
Thanks Meter 76
Posts: 1,687
Join Date: Jul 2008
Location: Golden Valley, MN
WOW! This is ground breaking, I will let you know what I find! Thank you!
White LG G3
LG D851
Running whatever is new to play with.
I don't want to gain the whole world and lose my soul!
-Toby Mack.
 
SRgustavo
Old
#4  
SRgustavo's Avatar
Senior Member
Thanks Meter 11
Posts: 195
Join Date: Dec 2007
Location: Rosario
really good man . i'll give it a try
thanx
 
MichelDiamond
Old
(Last edited by MichelDiamond; 3rd August 2009 at 01:02 AM.)
#5  
MichelDiamond's Avatar
Retired Recognized Developer
Thanks Meter 272
Posts: 2,222
Join Date: Jul 2009

 
DONATE TO ME
What a great idea! And I'm not thinking about CPR alone...

What do you think: Would it be possible to take a .plg-File in any resolution (and perhaps landsape and portrait) - and the converter would make the output-plg-File for all resolutions in one file?

A .plg is a part of the .cpr - so it could be possible - your parser should only recogonize then <layer>...</layers>-Tags to know where the Resolution-Parts are to find and where the new resolutions should be inserted (Multi-Select instead of Single-Select)
For fine adjustings - perhaps there are some further algorithm to find - I think, it would work without very good.

That would be totally great!

And thanx for sharing your cpr-converter

Micha



Sense Apps: by me: CHTS,CHTSLoco | partly by me: CHTEditor | system parts by me: CHT

Other Apps: Blue Prodigy | TICS | MichasRefresh | TitaniumStarter | TitaniumRSS


 
gullum
Old
#6  
gullum's Avatar
Senior Member
Thanks Meter 10
Posts: 2,470
Join Date: Mar 2007
since the cpr are realy xml could be good also if prssible to resize aplication skins (full screen player, audio manager) anyway I'll try it
Bye bye HTC
 
twopumpchump
Old
(Last edited by twopumpchump; 3rd August 2009 at 04:48 AM.)
#7  
twopumpchump's Avatar
Recognized Developer / Retired Senior Moderator
Thanks Meter 355
Posts: 4,044
Join Date: Aug 2008
Location: Kentucky

 
DONATE TO ME
congrats on the new tool, it works great


ps...i want everybody to know that i came up with this idea because im LAZY lol. great work by ondraster for making this happen
 
drkfngthdragnlrd
Old
(Last edited by drkfngthdragnlrd; 3rd August 2009 at 06:50 AM.)
#8  
drkfngthdragnlrd's Avatar
Retired Recognized Developer
Thanks Meter 265
Posts: 2,401
Join Date: Mar 2008
Location: Pacoima, CA

 
DONATE TO ME
Great work man, works awesome. I just used it to port my NeoTitanium skin to all resolutions & so far so good.

EDIT: Make sure the paths don't have spaces. This will cause an error.
T-Mobile HTC 8X
ROM: Stock | HardSPL:Stock | Radio: Stock


 
OndraSter
Old
#9  
OndraSter's Avatar
Recognized Developer - OP
Thanks Meter 277
Posts: 2,082
Join Date: Mar 2009
Location: Prague

 
DONATE TO ME
Quote:
Originally Posted by MichelDiamond View Post
What do you think: Would it be possible to take a .plg-File in any resolution (and perhaps landsape and portrait) - and the converter would make the output-plg-File for all resolutions in one file?
It shouldn't be problem, but I couldn't find any .plg in SYS, so I haven't got it test on. Send me one/link me to one and I'll try it.

Quote:
Originally Posted by gullum View Post
since the cpr are realy xml could be good also if prssible to resize aplication skins (full screen player, audio manager) anyway I'll try it
I took a look at FullScreenPlayer's XML file and I think it won't be hard.

Quote:
Originally Posted by drkfngthdragnlrd View Post
Great work man, works awesome. I just used it to port my NeoTitanium skin to all resolutions & so far so good.

EDIT: Make sure the paths don't have spaces. This will cause an error.
It works with spaces in path OK for me.


Thanks from everyone.
Lumia 920 + 800 - Official WP AppHub developer

PINCH TO ZOOM ON ANY WINMO DEVICE! | Start Menu Back Gesture | LockScreenPatcher | Move the keyboard to the bottom
====
[CPR & PLG Resolution Convertors] | [Right Click Recmod and Reverse] | [REG/RGU Cleaner] | [Hacking ConnectionSetupDB files]
====
Do you like my work? Buy me beer.
Have you bricked your phone? I can reflash bootloader and radio when you can't anymore! PM me!
 
MichelDiamond
Old
#10  
MichelDiamond's Avatar
Retired Recognized Developer
Thanks Meter 272
Posts: 2,222
Join Date: Jul 2009

 
DONATE TO ME
Quote:
Originally Posted by OndraSter View Post
It shouldn't be problem, but I couldn't find any .plg in SYS, so I haven't got it test on. Send me one/link me to one and I'll try it.
Thank you - I'll send you one with VGA portrait and landscape - if the Converter could make a difference betweend portrait resizing and landscape resizing - that would be real cool.

after <layers> the marks of the resolutions are to find

after </layers> the new resolutions should be inserted, that it works in each .plg of each Plugin

Thanx in advance for trying
Micha
Attached Files
File Type: zip JMLToday_v5.3.zip - [Click for QR Code] (1.5 KB, 74 views)



Sense Apps: by me: CHTS,CHTSLoco | partly by me: CHTEditor | system parts by me: CHT

Other Apps: Blue Prodigy | TICS | MichasRefresh | TitaniumStarter | TitaniumRSS



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes