Project

General

Profile

How can I properly view binary/encoded theme files (.ini) ?

Added by Kostas K 3 months ago

Using AdiIRC 3.0 Beta build 2017/08/31 x64 in win10.

 
Whenever I want to try a new custom theme, i'd like to check it first.

But, for example this theme file: https://dev.adiirc.com/attachments/download/950/Tempesta_BlackTheme.v1.0-font.ini (thread) is displayed as binary file when opened in any editor.
Also, the '[Scripts]' section to the end of: https://dev.adiirc.com/attachments/download/874/ZarkBlack_uncompressed_v0.1.ini (thread) is like this:

[Scripts]
n0=Theme_ZarkBlack_Helper.ini£77u/OyBUaGVtZSBaYXJrQmxhY2sgSGVscGVyDQoNCm9uICo6TE9BRDogew0KICAuc2V0Y29uZmlnIEdlbmVyYWwgQm9yZGVyU2l6ZSAxDQogIC5zZXRjb25maWcgTWVzc2FnZXMgTWFya2VyU2l6ZSAxDQogIC5zZXRjb25maWcgTWVzc2FnZXMgVXNlTmlja0NvbHVtbiBUcnVlDQogIC5zZXRjb25maWcgTWVzc2FnZXMgTmlja0NvbHVtbkRpdmlkZXIgMQ0KICAuc2V0Y29uZmlnIE1lc3NhZ2VzIE5pY2tDb2x1bW5FeHBhbmQgVHJ1ZQ0KICAuc2V0Y29uZmlnIE1lc3NhZ2VzIFNob3dTY3JvbGxiYXIgMQ0KICAuc2V0Y29uZmlnIE1lc3NhZ2VzIFBpeGVsU3BhY2luZyA1DQogIC5zZXRjb25maWcgTmlja2xpc3QgTmlja2xpc3RTaG93U2Nyb2xsYmFyIDINCiAgLnNldGNvbmZpZyBNaXNjIExvY2tCYXJzIFRydWUNCiAgLnNldGNvbmZpZyBXaW5kb3dzIGlyY01heGltaXplZCBUcnVlDQogIC5zZXRjb25maWcgV2luZG93cyBTaG93VG9waWMgMQ0KICAuc2V0Y29uZmlnIFdpbmRvd3MgRG9ja2JhclZpcyBGYWxzZQ0KICAuc2V0Y29uZmlnIFdpbmRvd3MgU2hvd01lbnViYXIgRmFsc2UNCiAgLnNldGNvbmZpZyBXaW5kb3dzIFRvb2xiYXIgRmFsc2UNCiAgLnNldGNvbmZpZyBUcmVlYmFyIFRyZWViYXJTaG93Q2xvc2VJY29uIDENCiAgLnNldGNvbmZpZyBUcmVlYmFyIFRyZWViYXJTaG93SWNvbnMgRmFsc2UNCiAgLnNldGNvbmZpZyBUcmVlYmFyIFRyZWViYXJVc2VGb2xkZXJzIEZhbHNlDQogIC5zZXRjb25maWcgVHJlZWJhciBUcmVlYmFyVmVydGljYWxTY3JvbGwgRmFsc2UNCiAgLmRvY2twYW5lbHMgb24NCiAgLnVubG9hZCAtcnMgJHF0KCRzY3JpcHQpDQp9IA==

If I try to enable the latter theme (having "ticked all available items in load theme popup" (as its author suggests) I get the following warning:

 
As I said, I'd like to be able to check a theme file before enabling it.
So, how can I decode/convert such .ini theme files (or their sections) in order to be able to view them as plain text (like the themes that come with the installer )? Is it possible? I couldn't find anything relevant in the wiki.


Replies (3)

RE: How can I properly view binary/encoded theme files (.ini) ? - Added by Kostas K 3 months ago

Update:
I've found that the latter is base64-encoded,
and so, by pasting the string part after "77u/", to e.g. https://www.base64decode.org/, I get the decoded text:

; Theme ZarkBlack Helper

on *:LOAD: {
  .setconfig General BorderSize 1
  .setconfig Messages MarkerSize 1
  .setconfig Messages UseNickColumn True
  .setconfig Messages NickColumnDivider 1
  .setconfig Messages NickColumnExpand True
  .setconfig Messages ShowScrollbar 1
  .setconfig Messages PixelSpacing 5
  .setconfig Nicklist NicklistShowScrollbar 2
  .setconfig Misc LockBars True
  .setconfig Windows ircMaximized True
  .setconfig Windows ShowTopic 1
  .setconfig Windows DockbarVis False
  .setconfig Windows ShowMenubar False
  .setconfig Windows Toolbar False
  .setconfig Treebar TreebarShowCloseIcon 1
  .setconfig Treebar TreebarShowIcons False
  .setconfig Treebar TreebarUseFolders False
  .setconfig Treebar TreebarVerticalScroll False
  .dockpanels on
  .unload -rs $qt($script)
}

But, how to properly view the former one:

this theme file: https://dev.adiirc.com/attachments/download/950/Tempesta_BlackTheme.v1.0-font.ini is displayed as binary file when opened in any editor:

RE: How can I properly view binary/encoded theme files (.ini) ? - Added by Per Amundsen 3 months ago

These posts was sent to the spam folder for some reason, but you can use $decompress to decompress a theme, it's just regular deflate.

    (1-3/3)