Old 19th January 2019, 13:41   #1
ariszlo
Senior Member
 
Join Date: Jun 2015
Location: Hungary
Posts: 440
Fixing old freeform skins

This thread is collecting fixes for issues that arise when old freeform skins are used in recent Winamp.

BREAKING NEWS: Big Bento Modern v1.1 and Quinto Black CT v2.6 released!
ariszlo is online now   Reply With Quote
Old 19th January 2019, 13:59   #2
ariszlo
Senior Member
 
Join Date: Jun 2015
Location: Hungary
Posts: 440
asynchronous entity

Dominator is a Winamp 3 skin with interesting animations. When you try to use it in recent versions of Winamp, Winamp will throw up the following error message and then crash:
Quote:
asynchronous entity at line 344
How to fix it?

Asynchronous entity errors occur when a tag is not closed in an xml file. Line 344 tells us that Winamp tried to find the closing tag until line 344 and then gave it up. So we should look for an xml file with 344 lines.

Dominator's studio-elements.xml has exactly 344 lines so the unclosed tag should be in that file.

Short explanation. With respect to how you close them, there are two types of tags. Enclosing tags have an opening tag and a closing tag. An opening tag looks like this:
PHP Code:
<elements
and a closing tag looks like this:
PHP Code:
</elements
The other type of tags is self-closing tags. Self-closing tags have a slash before the final greater-than sign. "Include" tags are self-closing:
PHP Code:
<include file="whatever.xml"/> 
The unclosed tag will be easy to find in Dominator's studio-xml because its very first line contains an include tag that does not have a slash before the greater-than sign. So all you need to do is add the missing slash like this:
PHP Code:
<include file="tooltips.xml"/> 
Adding the missing slash will fix the asynchronous entity error and there will be no more crashes.

Check out this topic for another skin in which the closing member was missing of an enclosing tag.

BREAKING NEWS: Big Bento Modern v1.1 and Quinto Black CT v2.6 released!
ariszlo is online now   Reply With Quote
Old 19th January 2019, 16:02   #3
Victhor
Late skinner & Moderator
 
Victhor's Avatar
 
Join Date: May 2003
Location: Argentina
Posts: 1,560
Good call, I wish I have more free time.. Will be watching on this though.

Ps: Why "freeform" and not "modern"?
Victhor is offline   Reply With Quote
Old 19th January 2019, 16:13   #4
ariszlo
Senior Member
 
Join Date: Jun 2015
Location: Hungary
Posts: 440
Play/Pause button

Once you have fixed the asynchronous entity error for Dominator, you will run into another bug: the Play/Pause button will not start playback at startup.

Background info: Skins that have a single Play/Pause button (rather than two separate buttons) toggle Play and Pause with the help of a maki script. The problem is that the old play2pause.maki, which used to work well with Winamp 3, does not work well with recent versions of Winamp.

How to fix it?

Copy pjn123's sc_PlayPause.maki into the skin's scripts directory and replace this line in the xml file that contains it (player-normal-group.xml in Dominator):
PHP Code:
<script id="play2pause" file="scripts/play2pause.maki"/> 
with this one:
PHP Code:
<script file="scripts/sc_PlayPause.maki" param="Play;Pause"/> 
You should also put sc_PlayPause.m into the skin's script directory to
  • help others learn how the script was written and
  • give credit to pjn123
Attached Files
File Type: zip sc_playpause.zip (1.9 KB, 3 views)

BREAKING NEWS: Big Bento Modern v1.1 and Quinto Black CT v2.6 released!
ariszlo is online now   Reply With Quote
Old 19th January 2019, 16:21   #5
ariszlo
Senior Member
 
Join Date: Jun 2015
Location: Hungary
Posts: 440
Quote:
Originally Posted by Victhor View Post
Ps: Why "freeform" and not "modern"?
I find "old modern" a bit odd. Originally, I was thinking on a longer title: "Fixing old freeform skins (WA3 and WA5 Modern)". But then decided on this shorter one.

BREAKING NEWS: Big Bento Modern v1.1 and Quinto Black CT v2.6 released!
ariszlo is online now   Reply With Quote
Old 19th January 2019, 20:31   #6
ariszlo
Senior Member
 
Join Date: Jun 2015
Location: Hungary
Posts: 440
Play/Pause simpler

After I had posted the Play/Pause fix using pjn123's sc_PlayPause.maki, I found a faster fix.

All you need to do is overwrite the skin's original play2pause.maki file with the one in the attached zip archive. You do not need to replace any line in any xml file.

The source of the attached play2pause.maki is FrisbeeMonkey's Play-to-Pause script to which I applied SLoB's fix.
Attached Files
File Type: zip play2pause-updated.zip (2.5 KB, 3 views)

BREAKING NEWS: Big Bento Modern v1.1 and Quinto Black CT v2.6 released!
ariszlo is online now   Reply With Quote
Old 19th January 2019, 22:12   #7
ariszlo
Senior Member
 
Join Date: Jun 2015
Location: Hungary
Posts: 440
Scrollbars

When you load a Winamp 3 skin into current Winamp then the original scrollbars will be replaced with scrollbars generated from the generic button and other elements.

To restore the original scrollbars, change the version number of WinampAbstractionLayer to 1.3 in skin.xml like this:
PHP Code:
<WinampAbstractionLayer version="1.3"
Attached Thumbnails
Click image for larger version

Name:	scrollbars.png
Views:	16
Size:	18.2 KB
ID:	54333  

BREAKING NEWS: Big Bento Modern v1.1 and Quinto Black CT v2.6 released!
ariszlo is online now   Reply With Quote
Old 21st January 2019, 20:46   #8
ariszlo
Senior Member
 
Join Date: Jun 2015
Location: Hungary
Posts: 440
TrueType font size

Winamp 5 displays TrueType fonts smaller than Winamp 3. So if you want to preserve the original look of a Winamp 3 skin when updating it for Winamp 5, you need to multiply the fontsize value of TrueType fonts by 1.3.

Dominator, whose startup crashes were fixed in comment #2, uses a TrueType font in the title bars of Playlist Editor, Media Library, etc.

The size of the title bar font of these windows is defined in standardframe.xml. Open the file, find the groupdef of wasabi.titlebar and increase the fontsize from 13 to 17.
Attached Thumbnails
Click image for larger version

Name:	truetype-fontsize.png
Views:	3
Size:	43.5 KB
ID:	54338  

BREAKING NEWS: Big Bento Modern v1.1 and Quinto Black CT v2.6 released!
ariszlo is online now   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump