It is currently March 29th, 2024, 8:22 am

Meter=IMAGE Errors after Update 4.5

Get help with creating, editing & fixing problems with skins
User avatar
pds
Posts: 79
Joined: April 12th, 2014, 12:52 pm
Location: Slovakia

Meter=IMAGE Errors after Update 4.5

Post by pds »

Hello.
I have one problem that appeared after updating to version >4.5. With version 4.3 everything was without problems. I have made a small stream/mp3 music player via winamp. I made station logos for radio streams. No errors in Log.

After updating the program, error messages started appearing in the log when I switch the stream and before all items are loaded:
error.jpg
I tried to eliminate these errors, but I don't know what else to do. Those error messages annoy me.

Could you help me with that if possible?

I think the elegant and simplest solution is to add to "Meter Image Option" smt like this : ErrorImagePath=xyz.jpg

I am sending the simplified code of my skin :

Code: Select all

[Rainmeter]
Update=50
BackgroundMargins=5,15,4,5
         

[Metadata]
Name= Test image
Author=-pds- 2022
Version=1.0

[MeterBack]
Meter=Shape
Shape=Rectangle 0.75,0.75,450,102,5 | StrokeWidth 0.5 | Stroke Color 244,163,30,255 | Fill Color 0,0,0,230


[Style1]
StringCase=upper
FontFace=enhanced dot digital-7 pds
FontColor=f4a31e
StringEffect=SHADOW
FontEffectColor=0,0,0,250
FontSize=14
AntiAlias=0 
ClipString=1
ClipStringW=300 
;zvýrazní Guns N Roses
InlineSetting=Weight | 800
InlinePattern=(GU.*ES)
W=440
H=24



[RadioStanica]
Measure=Plugin
Plugin=WindowMessagePlugin.dll
WindowClass=Winamp v1.x
RegExpSubstitute=1
Substitute="(?si).*\((.*?)\).*":"\1",":":""


[MeasureWinampTest]
Measure=Plugin
Plugin=NowPlaying
PlayerName=Winamp
PlayerType=File
RegExpSubstitute=1
substitute="http.*":"stream",".*\\.*":"file"
IfMatch=file
IfMatchAction=[!HideMeterGroup 0][!HideMeterGroup 4][!Redraw]
IfNotMatchAction=[!ShowMeterGroup 0][!ShowMeterGroup 4][!Redraw]
IfMatchMode=1


[MeasurePlayer]
Measure=NowPlaying
PlayerName=Winamp
PlayerType=TITLE
IfMatch=(?i)\[
IfMatchAction=[!SetOption MeterCoverRadio ImageName Band/X.png][!Redraw]
IfNotMatchAction=[!SetOption MeterCoverRadio ImageName Logos/[RadioStanica].png][!Redraw]
IfMatchMode=1


[MeasureArtist]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=ARTIST


[MeasureAlbum]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=ALBUM

[MeasureCOVER]
Measure=NowPlaying
PlayerName=[MeasurePlayer]
PlayerType=Cover


;------------------------------------METERs---TEXTs----------------;

[MeterArtist]
Meter=String
MeasureName=MeasureArtist
MeterStyle=Style1
X=5
Y=5
Text="Artist : %1"
ToolTipText=%1

[MeterRadio]
Meter=String
MeasureName=RadioStanica
MeterStyle=Style1
X=0r
Y=0R
Text="Radio  : %1"
Group=0
Hidden=1

;[MeterX]
;Meter=String
;MeterStyle=Style1
;X=320
;Y=70
;Text="... Zmena ..."
;Hidden=1

;------------------------------------METERs---IMAGEs---------------;

[MeterCover]
Meter=IMAGE
MeasureName=MeasureCover
X=250 
Y=40
H=44
AntiAlias=1
Group=3
ImageAlpha=175 
DynamicVariables=1 


[MeterCoverRadio]
Meter=IMAGE
ImageName=Logos\[RadioStanica].png
X=10
Y=55
W=100
H=40
AntiAlias=1
Group=4
ImageAlpha=175
PreserveAspectRatio=1
DynamicVariables=1
Hidden=1
You do not have the required permissions to view the files attached to this post.
User avatar
tass_co
Posts: 511
Joined: May 4th, 2020, 3:01 pm
Location: Ankara, TURKEY

Re: Meter=IMAGE Errors after Update 4.5

Post by tass_co »

pds wrote: September 3rd, 2022, 9:48 am Hello.
I have one problem that appeared after updating to version >4.5. With version 4.3 everything was without problems. I have made a small stream/mp3 music player via winamp. I made station logos for radio streams. No errors in Log.

After updating the program, error messages started appearing in the log when I switch the stream and before all items are loaded:
error.jpg

I tried to eliminate these errors, but I don't know what else to do. Those error messages annoy me.

Could you help me with that if possible?

I think the elegant and simplest solution is to add to "Meter Image Option" smt like this : ErrorImagePath=xyz.jpg

I am sending the simplified code of my skin :

I'm not entirely sure but I think it's due to the following line of code.

Code: Select all

[MeasurePlayer]
.
.
IfMatchAction=[!SetOption MeterCoverRadio ImageName "Band\X.png"][!Redraw] ;<==== CHANGED 
IfNotMatchAction=[!SetOption MeterCoverRadio ImageName "Logos\[RadioStanica].png"][!Redraw] ;<==== CHANGED"
IfMatchMode=1
.
And maybe this one (im not sure)

Code: Select all

[MeasureWinampTest]
.
.
substitute=".*http.*":"stream",".*\\.*":"file" ;<=== ADDED ".*"
.
.

Also

Code: Select all

[RadioStanica]
.
.
Substitute="(?si).*\((.*?)\).*":"\1",":":"" <=== YOU SHOULD REMOVE "2. "


It will be more useful if you share the skin as a package.
I don't know where i going from here, but i promise it won't be boring... :great: