It is currently March 29th, 2024, 12:18 am

[D2D][Fixed] Tricky Code Bug or another Crop issue - or maybe both

Backwards compatibility issues related to the conversion of Rainmeter to D2D.
User avatar
Mor3bane
Posts: 943
Joined: May 7th, 2016, 7:32 am

[D2D][Fixed] Tricky Code Bug or another Crop issue - or maybe both

Post by Mor3bane »

Rainmeter-4.3-r3236-D2D

Hi, so this is a Album Cover Meter. There is two features of this. The basic function being the album image.

Feature 1: animated B&W image called "Diamond-{ImageNumberCalc].jpg', when there is not album art.
Feature 2: static image of the iTunes logo on hover.

Those features use the "tricky code" to function as originally intended.

Feature 1 is the broken one. Feature 2 is fine.
Untitleda.jpg
So from this image it looks like a cropping issue, or possibly the "tricky code" at the end of the ini:

Code: Select all

[Rainmeter]
Author=Morbane
Update=1000
ContextTitle=Variables.inc
ContextAction=["#@#RoundVariables.inc"]
ContextTitle2=Alpha
ContextAction2=[!LoadLayout "Alpha"]
ContextTitle3=Beta
ContextAction3=[!LoadLayout "Beta"]
Group=iPicture | Big

[Variables]
@Include=#@#RoundVariables.inc
Color=#GlobalFontColor#
TextColor=#Color#
ColorZ=#ColorOffset#
PlayerName=#Player#
Goth=#Gothic#

[Background]
Meter=Image
ImageName=#@#Background.png
X=40
Y=40

[ImageNumberCalc]
Measure=Calc
Formula=Counter%10
DynamicVariables=1

[Player]
Measure=NowPlaying
PlayerName=#PlayerName#
PlayerType=Title
DisableLeadingZero=1

[Album]
Measure=NowPlaying
PlayerName=#PlayerName#
PlayerType=Album
DisableLeadingZero=1

[TrackNum]
Measure=NowPlaying
PlayerName=#PlayerName#
PlayerType=Number

[mCover]
Measure=NowPlaying
PlayerName=[Player]
PlayerType=Cover
Substitute="":"#@#diamond\diamond-[ImageNumberCalc].jpg"
DynamicVariables=1

[Cover]
Meter=Image
MeasureName=mCover
MaskImageName=#@#mask.png
AntiAlias=1
Y=63
X=64
W=211
H=211
ToolTipType=1
ToolTipText=[Album]#CRLF#Track: [TrackNum]#CRLF#[Player]
LeftMouseDownAction=iTunes
RightMouseDownAction=["C:\Program Files (x86)\Windows Media Player\wmplayer.exe"]
MouseOverAction=[!SetOption mCover Substitute """":"#*@*#Logo.png"""]
MouseLeaveAction=[!SetOption ImageNumberCalc Formula "Counter % 10"][!SetOption mCover Substitute """":"#*@*#diamond\diamond-[*ImageNumberCalc*].jpg"""][!UpdateMeasure mCover][!UpdateMeasure ImageNumberCalc][!Redraw]
SolidColor=0,0,0,0
DynamicVariables=1
Untitleda.jpg
You do not have the required permissions to view the files attached to this post.
My DevArt Gallery

There are many ways to be different - there is only one way to be yourself - be amazing at it

The law of averages says what it means; even if you get everything right, you will get something wrong. Therefore; self managing error trapping initiates another set of averages - amongst the errors, some of them will not be errors, instead those instances will appear to be "luck". One cannot complain of the 'appearance' of 'infinite regress of causation', even if it does not have a predictable pattern, only that it requires luck to achieve.
User avatar
Brian
Developer
Posts: 2674
Joined: November 24th, 2011, 1:42 am
Location: Utah

Re: Tricky Code Bug or another Crop issue - or maybe both

Post by Brian »

r3250 should fix this issue.

I couldn't see any "Crop" option in your test skin, so it was tricky to find what was causing this. Turns out it was with how masked images were "moved" when drawing. Anyway, we fixed it (hopefully :D).

-Brian
User avatar
Mor3bane
Posts: 943
Joined: May 7th, 2016, 7:32 am

Re: [Fixed] Tricky Code Bug or another Crop issue - or maybe both

Post by Mor3bane »

is r3250 aVAILABLE yet?

jsmorley's pinned link only has r3249
My DevArt Gallery

There are many ways to be different - there is only one way to be yourself - be amazing at it

The law of averages says what it means; even if you get everything right, you will get something wrong. Therefore; self managing error trapping initiates another set of averages - amongst the errors, some of them will not be errors, instead those instances will appear to be "luck". One cannot complain of the 'appearance' of 'infinite regress of causation', even if it does not have a predictable pattern, only that it requires luck to achieve.