It is currently March 29th, 2024, 11:43 am

Some PNG files won't display

Report bugs with the Rainmeter application and suggest features.
tommasz1
Posts: 7
Joined: September 15th, 2017, 12:32 pm

Re: Some PNG files won't display

Post by tommasz1 »

I looked in the debug log and saw this:

ERRO (15:00:46.462) Hero\Drive Info\Drive Info - Bottom.ini: !ShowMeter: [MainInfo2] not found
ERRO (15:00:46.462) Hero\Drive Info\Drive Info - Bottom.ini: !HideMeter: [Line] not found

MainInfo2 was commented out. Removing the comment fixed the issue. I'm not sure why, though.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Some PNG files won't display

Post by balala »

tommasz1 wrote:Nothing happens. I also tried changing it to 0 and 2 and nothing happen either.
Then check first the log and see if there are error messages, related to missing images. Something like Background: Unable to open...
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Some PNG files won't display

Post by balala »

tommasz1 wrote:I looked in the debug log and saw this:

ERRO (15:00:46.462) Hero\Drive Info\Drive Info - Bottom.ini: !ShowMeter: [MainInfo2] not found
ERRO (15:00:46.462) Hero\Drive Info\Drive Info - Bottom.ini: !HideMeter: [Line] not found

MainInfo2 was commented out. Removing the comment fixed the issue. I'm not sure why, though.
Again I was a bit late...
Please post the whole code of the Bottom.ini.
tommasz1
Posts: 7
Joined: September 15th, 2017, 12:32 pm

Re: Some PNG files won't display

Post by tommasz1 »

Here it is:

Code: Select all

;======================================================================================= 
; 
; Arkan Tab for Rainmeter
; Drive Information
; http://aidaaah.deviantart.com
;
;=======================================================================================


[Rainmeter]
Author=aidaaah@rocketmail.com
AppVersion=1.1
Update=60000

MouseOverAction=!Execute [!RainmeterMoveMeter 0 220 Overlay1][!RainmeterRedraw]
MouseLeaveAction=!Execute [!RainmeterMoveMeter 0 220 Overlay1][!RainmeterRedraw]


[Metadata]
Name=Drive Information | Bottom
Config=ArkanTab | Drive Info | Drive - Bottom
Description=Drive Information
Instructions=Change drive letters in [Variable] section.
Version=1.0
Tags=Drive | Information | Arkan | Tab | aidaaah | ;)
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Preview=#SKINSPATH#Arkan Tab\Preview.png


;=======================================================================================


[Variables]
ShowAll=[!RainmeterShowMeter Drive1Label][!RainmeterShowMeter Drive1Total][!RainmeterShowMeter Drive1Usage][!RainmeterShowMeter Piegram1][!RainmeterShowMeter Piegram1X][!RainmeterShowMeter Drive2Label][!RainmeterShowMeter Drive2Total][!RainmeterShowMeter Drive2Usage][!RainmeterShowMeter Piegram2][!RainmeterShowMeter Piegram2X][!RainmeterShowMeter Drive3Label][!RainmeterShowMeter Drive3Total][!RainmeterShowMeter Drive3Usage][!RainmeterShowMeter Piegram3][!RainmeterShowMeter Piegram3X][!RainmeterShowMeter B][!RainmeterShowMeter B1][!RainmeterShowMeter B2][!RainmeterShowMeter Line]
HideAll=[!RainmeterHideMeter Drive1Label][!RainmeterHideMeter Drive1Total][!RainmeterHideMeter Drive1Usage][!RainmeterHideMeter Piegram1][!RainmeterHideMeter Piegram1X][!RainmeterHideMeter Drive2Label][!RainmeterHideMeter Drive2Total][!RainmeterHideMeter Drive2Usage][!RainmeterHideMeter Piegram2][!RainmeterHideMeter Piegram2X][!RainmeterHideMeter Drive3Label][!RainmeterHideMeter Drive3Total][!RainmeterHideMeter Drive3Usage][!RainmeterHideMeter Piegram3][!RainmeterHideMeter Piegram3X][!RainmeterHideMeter B][!RainmeterHideMeter B1][!RainmeterHideMeter B2][!RainmeterHideMeter Line]

Drive1=C:
Drive2=F:
Drive3=G:
Drive4=F:
Drive5=G:

Color1=0,0,0,200
;255,255,255,255
Color2=175,255,250
;255,255,255,150

[Style]
FontColor=255,255,255,255
FontSize=9
StringAlign=LEFT
StringStyle=NORMAL
;StringEffect=SHADOW
FontFace=Calibri
;AvantGarde LT Medium
AntiAlias=1


;=======================================================================================
;Measure Section
;=======================================================================================


[MeasureHDD1]
Measure=FreeDiskSpace
InvertMeasure=1
Drive=#Drive1#

[MeasureHDD1x]
Measure=FreeDiskSpace
InvertMeasure=0
Drive=#Drive1#

[MeasureLabelHDD1]
Measure=FreeDiskSpace
Label=1
Substitute="":"Local Disk"
Drive=#Drive1#

[MeasureTotalHDD1]
Measure=FreeDiskSpace
Total=1
Drive=#Drive1#

[MeasureHDD2]
Measure=FreeDiskSpace
InvertMeasure=1
Drive=#Drive2#

[MeasureHDD2x]
Measure=FreeDiskSpace
InvertMeasure=0
Drive=#Drive2#

[MeasureLabelHDD2]
Measure=FreeDiskSpace
Label=1
Drive=#Drive2#
Substitute="":"Local Disk"

[MeasureTotalHDD2]
Measure=FreeDiskSpace
Total=1
Drive=#Drive2#

[MeasureHDD3]
Measure=FreeDiskSpace
InvertMeasure=1
Drive=#Drive3#

[MeasureHDD3x]
Measure=FreeDiskSpace
InvertMeasure=0
Drive=#Drive3#

[MeasureLabelHDD3]
Measure=FreeDiskSpace
Label=1
Drive=#Drive3#
Substitute="":"Local Disk"

[MeasureTotalHDD3]
Measure=FreeDiskSpace
Total=1
Drive=#Drive3#

[BGRing]
Measure=Calc
Formula=360



;=======================================================================================
;Background Section
;=======================================================================================

[Tab]
Meter=IMAGE
X=0
Y=220
ImageName=bot20i.png
;H=20
;W=200

[Overlay1]
Meter=IMAGE
X=0
;-221
Y=220
;-201
ImageName=bot20i.png
LeftMouseDownAction=!Execute [!RainmeterHideMeter Overlay1][!RainmeterHideMeter MainInfo1][!RainmeterHideMeter MainInfo2][!RainmeterShowMeter Label][!RainmeterShowMeter Overlay2][!RainmeterShowMeter Background][!RainmeterShowMeter B][!RainmeterShowMeter B1][!RainmeterShowMeter B2][!RainmeterShowMeter G][!RainmeterShowMeter G1][!RainmeterShowMeter G2]#ShowAll#[!RainmeterRedraw]

[Overlay2]
Meter=IMAGE
X=0
Y=220
ImageName=bot20i.png
Hidden=1
LeftMouseDownAction=!Execute [!RainmeterShowMeter Overlay1][!RainmeterShowMeter MainInfo1][!RainmeterShowMeter MainInfo2][!RainmeterHideMeter Label][!RainmeterHideMeter Overlay2][!RainmeterHideMeter Background][!RainmeterHideMeter B][!RainmeterHideMeter B1][!RainmeterHideMeter B2][!RainmeterHideMeter G][!RainmeterHideMeter G1][!RainmeterHideMeter G2]#HideAll#[!RainmeterRedraw]

[Background]
Meter=IMAGE
X=0
Y=0
ImageName=bot200.png
;H=200
;W=200
Hidden=1

[MainInfo1]
MeasureName=MeasureHDD1
MeasureName2=MeasureHDD2
MeasureName3=MeasureHDD3
Meter=STRING
X=100
Y=205
MeterStyle=Style
FontSize=7
StringAlign=CENTER
Percentual=1
Text="  #Drive1#\ %1%       #Drive2#\ %2%      #Drive3#\ %3%"

[Label]
Meter=STRING
X=130
Y=9
MeterStyle=Style
FontSize=11
StringAlign=CENTER
;StringEffect=SHADOW
Text=Drive Information
Hidden=1

[B]
Meter=BUTTON
X=213
Y=40
ButtonImage=Button.png
ButtonCommand=!Execute [#Drive1#]
Hidden=1

[B1]
Meter=BUTTON
X=213
Y=100
ButtonImage=Button1.png
ButtonCommand=!Execute [#Drive2#]
Hidden=1

[B2]
Meter=BUTTON
X=213
Y=160
ButtonImage=Button2.png
ButtonCommand=!Execute [#Drive3#]
Hidden=1

[exit]
Meter=Image
X=201
Y=245
W=16
H=16
ImageName=x.png
RightMouseDownAction=!execute [!RainmeterDeactivateConfig]




;=======================================================================================
;Meter Section
;=======================================================================================


[Drive1Label]
Meter=STRING
MeasureName=MeasureLabelHDD1
X=75
Y=40
MeterStyle=Style
Text="%1 [#Drive1#]"
Hidden=1


[Drive1Total]
MeasureName=MeasureTotalHDD1
Meter=STRING
X=r
Y=15r
MeterStyle=Style
AutoScale=1
Text="Total Size  %1B"
Hidden=1

[Drive1Usage]
MeasureName=MeasureHDD1
MeasureName2=MeasureHDD1X
Meter=STRING
X=r
Y=15r
MeterStyle=Style
AutoScale=1
Percentual=1
Text="Used %1%   |   Free %2%"
Hidden=1


[Piegram1X]
Meter=ROUNDLINE
MeasureName=BgRing
X=40
Y=63
LineWidth=5.0
LineLength=22
LineStart=0
StartAngle=4.7124
AntiAlias=1
LineColor=#Color2#
Solid=1
Hidden=1

[Piegram1]
Meter=ROUNDLINE
MeasureName=MeasureHDD1
X=r
Y=r
LineWidth=5.0
LineLength=21
LineStart=0
StartAngle=4.7124
AntiAlias=1
LineColor=#Color1#
Solid=1
Hidden=1

[Drive2Label]
Meter=STRING
MeasureName=MeasureLabelHDD2
X=75
Y=100
MeterStyle=Style
AutoScale=1
Text="%1 [#Drive2#]"
Hidden=1

[Drive2Total]
MeasureName=MeasureTotalHDD2
Meter=STRING
X=r
Y=15r
MeterStyle=Style
AutoScale=1
Text="Total Size  %1B"
Hidden=1

[Drive2Usage]
MeasureName=MeasureHDD2
MeasureName2=MeasureHDD2X
Meter=STRING
X=r
Y=15r
MeterStyle=Style
AutoScale=1
Percentual=1
Text="Used %1%   |   Free %2%"
Hidden=1

[Piegram2X]
Meter=ROUNDLINE
MeasureName=BgRing
X=40
Y=123
LineWidth=5.0
LineLength=22
StartAngle=4.7124
AntiAlias=1
LineColor=#Color2#
Solid=1
Hidden=1

[Piegram2]
Meter=ROUNDLINE
MeasureName=MeasureHDD2
X=r
Y=r
LineWidth=5.0
LineLength=21
LineStart=0
StartAngle=4.7124
AntiAlias=1
LineColor=#Color1#
Solid=1
Hidden=1

[Drive3Label]
Meter=STRING
MeasureName=MeasureLabelHDD3
X=75
Y=160
MeterStyle=Style
AutoScale=1
Text="%1 [#Drive3#]"
Hidden=1

[Drive3Total]
MeasureName=MeasureTotalHDD3
Meter=STRING
X=r
Y=15r
MeterStyle=Style
AutoScale=1
Text="Total Size  %1B"
Hidden=1

[Drive3Usage]
MeasureName=MeasureHDD3
MeasureName2=MeasureHDD3X
Meter=STRING
X=r
Y=15r
MeterStyle=Style
AutoScale=1
Percentual=1
Text="Used %1%   |   Free %2%"
Hidden=1

[Piegram3X]
Meter=ROUNDLINE
MeasureName=BgRing
X=40
Y=183
LineWidth=5.0
LineLength=22
LineStart=0
StartAngle=4.7124
AntiAlias=1
LineColor=#Color2#
Solid=1
Hidden=1

[Piegram3]
Meter=ROUNDLINE
MeasureName=MeasureHDD3
X=r
Y=r
LineWidth=5.0
LineLength=21
LineStart=0
StartAngle=4.7124
AntiAlias=1
LineColor=#Color1#
Solid=1
Hidden=1

-----------

[G]
Meter=IMAGE
X=22
Y=45
ImageName=Grow.png
Hidden=1


[G1]
Meter=IMAGE
X=22
Y=105
ImageName=Grow.png
Hidden=1


[G2]
Meter=IMAGE
X=22
Y=165
ImageName=Grow.png
Hidden=1
Last edited by Brian on September 20th, 2017, 7:13 pm, edited 1 time in total.
Reason: Please use [code] tags.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Some PNG files won't display

Post by balala »

  • Never use neither the !Rainmeter... bang prefix, neither the !Execute bang. Both was deprecated long time ago. Simply remove them.
  • Remove the [![color=#FF0000]Rainmeter[/color]HideMeter MainInfo2] bang, respectively the [![color=#FF0000]Rainmeter[/color]ShowMeter MainInfo2] bang from the LeftMouseDownAction options of the [Overlay1] and [Overlay2] meters, accordingly. The [MainInfo2] meter doesn't exist, so you can't hide or show it.
  • Also remove the [![color=#FF0000]Rainmeter[/color]ShowMeter Line] from the ShowAll, respectively the [![color=#FF0000]Rainmeter[/color]HideMeter Line] bang from the HideAll variables ([Variables] section). This meter also doesn't exist.
  • Replace all LeftMouseDownAction options with LeftMouseUpAction. Here you can find out why have to do this.
Although all these probably won't help, first please make all these changes.

Furthermore, are you sure all .ini files are in the same folder as the bot200.png image?
tommasz1
Posts: 7
Joined: September 15th, 2017, 12:32 pm

Re: Some PNG files won't display

Post by tommasz1 »

This is not my skin but if I ever create one I will follow your advice.

Yes, each .ini file is in a separate directory with the PNG files. The PNG files all have the same name but they're distinct files.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Some PNG files won't display

Post by balala »

tommasz1 wrote:This is not my skin but if I ever create one I will follow your advice.
Yes, but you can anyway remove those bangs.
tommasz1 wrote:Yes, each .ini file is in a separate directory with the PNG files. The PNG files all have the same name but they're distinct files.
Please pack the whole root config (the first folder under the Skins folder, which contains those skins) and upload it. I'd like to check it.