Jump to content

Ozmosis


xpamamadeus
6,231 posts in this topic

Recommended Posts

From this log, we can assumed Oz will search \Efi\Oz\Theme.bin first before Fv  yo david?

05:537 00:000 Register Interface Handler Period 100 ms 1000000 - Success
05:537 00:000 Unable To Load Theme from \Efi\Oz\Theme.bin - Not Found
05:539 00:002 Loaded Theme ac255206-dcf9-4837-8353-72bbbc0ac849 from Fv
05:539 00:000 Found Black Theme version 1.0.3 by HermitCrabs
  • Like 1
Link to comment
Share on other sites

 

From this log, we can assumed Oz will search \Efi\Oz\Theme.bin first before Fv  yo david?

05:537 00:000 Register Interface Handler Period 100 ms 1000000 - Success
05:537 00:000 Unable To Load Theme from \Efi\Oz\Theme.bin - Not Found
05:539 00:002 Loaded Theme ac255206-dcf9-4837-8353-72bbbc0ac849 from Fv
05:539 00:000 Found Black Theme version 1.0.3 by HermitCrabs

 

Thats great!!!

 

Now if I only I could figure out whats best way to edit these png files and retain their metadata..

 

Thanks

Link to comment
Share on other sites

@cecekpawon Yes! The theme can be loaded from EFI if its name is "Theme.bin". (only in it's non-compressed version, of course)

 

@davidm71 Well, editing the XML File is no problem at all though some variables don't work. If you want to change PNGs within the theme I would suggest to create or find a new PNG with the right size and use something like TweakPNG (http://entropymine.com/jason/tweakpng/) to add a tEXt function which should match the tEXt chunk of the PNG from the original theme that you want to replace. Afterwards you can check if your new Image or Button is displayed correctly. If yes, we will then know that Oz selects the images according to their tEXt chunk.

But I have no clue on how to add a new Badge for a new OS, maybe cecekpawon can help us with that and look up if this is stated in ozmosis.efi.

Link to comment
Share on other sites

@cecekpawon Yes! The theme can be loaded from EFI if its name is "theme.bin" but only of it's not compressed, of course.

 

@davidm71 Well editing the XML File is no problem at all though some variables don't work. If you want to change PNGs within the theme I would suggest to create or find a new PNG and use something like TweakPNG (http://entropymine.com/jason/tweakpng/) to add a tEXt function, which should match the tEXt chunk of the PNG from the original theme that you want to replace. Afterwards you can check if your new Image or Button is displayed correctly. If yes, we will know that Oz selects the images according to their tEXt chunk.

 

@TypeThree,

 

I already found the TweakPNG app and been playing around with it but as far as the best app to perform direct manipulation on the png files do you think Photoshop up to the task or maybe Gimp? I just want to be able to also alter the background. I don't suppose there is a way to load a wall paper or reoccuring pattern?

 

Thanks

Link to comment
Share on other sites

You can create PNGs with anything you want. You could also try to use PNG files of existing Clover themes as there are pretty decend ones. But before you publish anything, ask the creator of the files first...

Maybe theres a way to use an image as background since you could try to add a non working button with the size of the screen and make sure that it is not in the foreground somehow.

You can change the background colour by changing the colour hex value behind the (background:) # in the theme XML (e.g #A7A7A7 = grey, #000000 would be black). The first 3 ones somehow don't change anything but the last 3 ones work. These are for the top (toolbar-) area with the buttons (Shell, Firmware (activated) + Info, Option (deactivated)), for the middle (selector-) area and the bottom (title-) area.

Link to comment
Share on other sites

You can create PNGs with anything you want. You could also try to use PNG files of existing Clover themes as there are pretty decend ones. But before you publish anything, ask the creator of the files first...

Maybe theres a way to use an image as background since you could try to add a non working button with the size of the screen and make sure that it is not in the foreground somehow.

You can change the background colour by changing the colour hex value behind the (background:) # in the theme XML (e.g #A7A7A7 = grey, #000000 would be black). The first 3 ones somehow don't change anything but the last 3 ones work. These are for the top area with the buttons (Shell, Firmware (activated) + Info, Option (deactivated)), for the selector area and the bottom (text-) area.

 

 

I thought of using a button or something to add a large background. Will give it a try. Want to make my own custom designs  and would definitely ask for permission from Clover lets say. As far as changing the theme do you think the Oz creator would mind? Not exactly a direct change of the original code.. just dressing up the esthetics..

 

Thanks

Link to comment
Share on other sites

 

From this log, we can assumed Oz will search \Efi\Oz\Theme.bin first before Fv  yo david?

05:537 00:000 Register Interface Handler Period 100 ms 1000000 - Success
05:537 00:000 Unable To Load Theme from \Efi\Oz\Theme.bin - Not Found
05:539 00:002 Loaded Theme ac255206-dcf9-4837-8353-72bbbc0ac849 from Fv
05:539 00:000 Found Black Theme version 1.0.3 by HermitCrabs

 

@cecekpawon,

 

How did you read those logs??

 

Thanks

Link to comment
Share on other sites

The theme was created because people wanted a nice looking boot selection. If they wouldn't want us to be able to make changes they wouldnt have made it that simple to read out and configure.

 

The log should be bdmesg.

 

 

Thanks for the tip. Viewed the log and it said it loaded the "Black Frog" Horizontal Theme from firmware not disk.. Guess it won't load from disk if theres one in firmware?

Bootcamp? What do you mean? UserInterface has to be enabled in defaults.plist and theme has to be non-compressed.

 

 

I mean the one in the Tutorial Ozmosis Theme linked here: 

 

http://www.insanelymac.com/forum/topic/291655-ozmosis/?p=2208757

Link to comment
Share on other sites

Nope, Theme.bin from EFI is preferred over the one from firmware.

 

The theme from the alanlcarlos-package seems like its to old to work. Try to change values within the HorizontalTheme and see if it loads from EFI or use the latest edition of the BlackTheme, that should work too.

 

If you add new PNGs to a theme make sure to use images with the right size. You can find out the required size by checking bdmesg.

Link to comment
Share on other sites

Maybe I have mixed up my default Oz Efi drive among the other four ssd disk drives I have. All of them have Efi Oz folders. Maybe BDMesg will tell me which one is the master drive.

Link to comment
Share on other sites

Why do they all have an OZ folder? Just try using a current theme as I mentioned above.

 

@cecekpawon or someone else: Do you know how ozmosis determines which badge it has to use for which OS?

 

Probably because I have mixed up the sata cables and when your do a 4-finger reset thats what happens. 

Link to comment
Share on other sites

@cecekpawon,

Thanks. You just made my life easier. Was trying to write something similar in QT but why reinvent the wheel. Nice.

 

Edit: Does your script also concatenate?

Link to comment
Share on other sites

From the source code, I dont think so... Would be great though. But there would have to be an option to select the files that shall be put together.

David did you already try if it's possible for you to replace images with new ones? Are there issues for you?

Link to comment
Share on other sites

From the source code, I dont think so... Would be great though. But there would have to be an option to select the files that shall be put together.

David did you already try if it's possible for you to replace images with new ones? Are there issues for you?

 

 

I almost have put together an executable  program that on the Windows command line would split all the the png files in Theme.bin but Cecekpawon did such a nice job I'm not sure I'm going to continue writing it although his requires php to be installed. Not sure if after the plist file the order of badges matters but I wish I could have experimented with that more if not for the fact I went away for the weekend. Will let you know if there are any issues when I work on it later. If you could point me to a working Black Oz Theme that would be great. I'll do more later..

 

Thanks

Link to comment
Share on other sites

I almost have put together an executable  program that on the Windows command line would split all the the png files in Theme.bin but Cecekpawon did such a nice job I'm not sure I'm going to continue writing it although his requires php to be installed. Not sure if after the plist file the order of badges matters but I wish I could have experimented with that more if not for the fact I went away for the weekend. Will let you know if there are any issues when I work on it later. If you could point me to a working Black Oz Theme that would be great. I'll do more later..

 

Thanks

 

 

I don't know how to extract Ozmosis Theme files nor to pack it, as i wanted to change also the PNG's, for changing the look: Pure as Apple, Black, White or Gray with a New Oz LOGO! But if it can help you here's the OzmosisBlackTheme extracted from QUO_Oz-1479.ROM.

 

OzmosisBlackTheme.zip

Link to comment
Share on other sites

Are you currently working on Windows executable + batch script (and maybe QT for OSX)? That would be great david, please continue! Yes Windows doesnt come with PHP for sure, and my script just a demo trying to know how theme.bin was assembled, and parsed by Oz.

 

I have tried manually add new Badge Sierra (supposed with valid ID), and still get ignored by Oz.

Badge: (w_128 x h_128) "MountainLion" 3039(09)_3030(00) - (id_137 frame_0)
Badge: (w_128 x h_128) "Mavericks" 3131(11)_3030(00) - (id_139 frame_0)
Badge: (w_128 x h_128) "Yosimite" 3133(13)_3030(00) - (id_141 frame_0)
Badge: (w_128 x h_128) "ElCap" 3135(15)_3030(00) - (id_143 frame_0)
Badge: (w_128 x h_128) "Sierra" 3137(17)_3030(00) - (id_145 frame_0)  <======= 
Badge: (w_128 x h_128) "Windows7" 3330(30)_3030(00) - (id_158 frame_0)
Badge: (w_128 x h_128) "Windows8" 3331(31)_3030(00) - (id_159 frame_0)
Badge: (w_128 x h_128) "Windows10" 3332(32)_3030(00) - (id_160 frame_0)

If your upcoming tool is to create another theme with existing valid ID it may work (have not tried my self).

 

Valid struct may looks like this:

- theme.plist
- [null terminator]
- pngs (Font)
- pngs (Pointer)
- pngs (Bus)
- pngs (Button)
- pngs (Device)
- pngs (Badge)
- pngs (Selector)
- pngs (Special)

* Update the script to get ID, as prefix dumped filename to reassemble.

  • Like 1
Link to comment
Share on other sites

How did you figure out that Oz definitely ignores it? Did you also run bdmesg? Normally it should say:

Installed Badge Image 128 x 128 Id 145 Frame 00 "Sierra" (23)
Have you tried to replace the PNG with a new Image or to add a new Badge for a new OS? As far as I know there is a more or less current version of the HorizontalTheme that includes a badge for Sierra but also old versions where the latest badge is only for El Capitan.

 

Could you also attach the PNG that you were trying to add, please? :)

Link to comment
Share on other sites

Can't do testing right now either but this one should still be working:

Your theme doesnt have badge at all?

 

 

FontType1: (w_739 x h_15) "OregonMedium" 3030(00)_3132(12) - (id_0 frame_12)
FontType1: (w_962 x h_22) "OregonMedium" 3030(00)_3138(18) - (id_0 frame_18)
FontType1: (w_1277 x h_29) "OregonMedium" 3030(00)_3234(24) - (id_0 frame_24)
FontType1: (w_1803 x h_41) "OregonMedium" 3030(00)_3336(36) - (id_0 frame_36)
Pointer: (w_15 x h_22) "Default" 3030(00)_3030(00) - (id_1 frame_0)
Button: (w_48 x h_48) "Options" 3031(01)_3030(00) - (id_9 frame_0)
Button: (w_48 x h_48) "Info" 3032(02)_3030(00) - (id_10 frame_0)
Button: (w_48 x h_48) "Shell" 3033(03)_3030(00) - (id_11 frame_0)
Button: (w_48 x h_48) "Firmware" 3034(04)_3030(00) - (id_12 frame_0)
Device: (w_128 x h_128) "InternalDisk" 3031(01)_3030(00) - (id_513 frame_0)
Device: (w_128 x h_128) "ExternalDisk" 3032(02)_3030(00) - (id_514 frame_0)
Device: (w_128 x h_128) "OpticalDisk" 3033(03)_3030(00) - (id_515 frame_0)
Device: (w_128 x h_128) "UniversalSerialBus" 3034(04)_3030(00) - (id_516 frame_0)
Device: (w_128 x h_128) "Firewire" 3035(05)_3030(00) - (id_517 frame_0)
Device: (w_128 x h_128) "ThunderBolt" 3036(06)_3030(00) - (id_518 frame_0)
Device: (w_128 x h_128) "Ethernet" 3037(07)_3030(00) - (id_519 frame_0)
Device: (w_128 x h_128) "Firmware" 3038(08)_3030(00) - (id_520 frame_0)
Device: (w_128 x h_128) "RecoveryVolume" 3039(09)_3030(00) - (id_521 frame_0)
Device: (w_128 x h_128) "CoreStorage" 3130(10)_3030(00) - (id_522 frame_0)

 

 

 

How did you figure out that Oz definitely ignores it? Did you also run bdmesg? Normally it should say:

Installed Badge Image 128 x 128 Id 145 Frame 00 "Sierra" (23)
Have you tried to replace the PNG with a new Image or to add a new Badge for a new OS? As far as I know there is a more or less current version of the HorizontalTheme that includes a badge for Sierra but also old versions where the latest badge is only for El Capitan.

 

Could you also attach the PNG that you were trying to add, please? :)

 

 

Because I never get badge for Sierra rendered in GUI? While Oz can read it as 10.12 >>>

I saw similar log (*before get deleted) which contain Sierra badge already (with exact "145" ID).

I just had an older version of theme.bin with no Sierra badge. Attached theme.bin, dummy badge & log :)

Link to comment
Share on other sites

No i've extracted it "as is" using UEFITool and no raw body or something else, now here's uncompressed one using MMTool

 

OzmosisBlackTheme.zip

Edited by fantomas1
All posts must be clearly written and easy to read.
Link to comment
Share on other sites

×
×
  • Create New...