It is currently April 26th, 2024, 11:46 am

BUG - ERROR - TYPO - Mystery ctrl+alt+click highlights huge area? [error found]

Get help with creating, editing & fixing problems with skins
User avatar
CodeCode
Posts: 1366
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

BUG - ERROR - TYPO - Mystery ctrl+alt+click highlights huge area? [error found]

Post by CodeCode »

So, I have some code. It bounces around a LOT, but it seems I need everything (maybe not IDK).
Somehow my skin registers an area exceeding 3840 width and I cannot see but it is more than 2160 height.
I poured over all of this code but simply cannot see what is causing this giant area to register during ctrl+alt+click to reposition the skin today.
I dont remember it being so giant before but now somehow it is giant?

Code: Select all

[Rainmeter]
Group=Big
OnRefreshAction=[!HideMeterGroup #ToggleHide2#][!ShowMeterGroup #ToggleFreeze2#][!Update]

[Variables]
@include=#@#WeatherComJSONVariables.inc
@include2=#@#WeatherComJSONMeasures.inc
@include3=#@#SunMoon.inc
@include4=#@#RoundVariables.inc

;==================================Time=============================

[MeasureTime]
Measure=Time
IfCondition=(MeasureTime % 60) = 0

[MeasureHour]
Measure=Time
Format=%H

[MeasureMinute]
Measure=Time
Format=%M

;==========================NEW JSON=================================

[MeasureSunRiseHourString]
Measure=String
String=[@CurrentSunriseTime]
DynamicVariables=1
RegExpSubstitute=1
Substitute="^(.*):.*$":"\1"

[MeasureSunRiseMinuteString]
Measure=String
String=[@CurrentSunriseTime]
DynamicVariables=1
RegExpSubstitute=1
Substitute="^.*:(.*) .*$":"\1"

[MeasureSunriseHour]
Measure=Calc
Formula=[MeasureSunRiseHourString]
RegExpSubstitute=1
Substitute="^\d{1,2}:(\d{1,2})$":"\1","^$":"0","\\":""
DynamicVariables=1

[MeasureSunriseMinute]
Measure=Calc
Formula=[MeasureSunRiseMinuteString]
RegExpSubstitute=1
Substitute="^\d{1,2}:(\d{1,2})$":"\1","^$":"0","\\":""
DynamicVariables=1

[MeasureSunsetHourString]
Measure=String
String=[@CurrentSunsetTime]
DynamicVariables=1
RegExpSubstitute=1
Substitute="^(.*):.*$":"\1"

[MeasureSunsetMinuteString]
Measure=String
String=[@CurrentSunsetTime]
DynamicVariables=1
RegExpSubstitute=1
Substitute="^.*:(.*) .*$":"\1"

[MeasureSunsetHour]
Measure=Calc
Formula=[MeasureSunsetHourString]
RegExpSubstitute=1
Substitute="^\d{1,2}:(\d{1,2})$":"\1","^$":"0","\\":""
DynamicVariables=1

[MeasureSunsetMinute]
Measure=Calc
Formula=[MeasureSunsetMinuteString]
RegExpSubstitute=1
Substitute="^\d{1,2}:(\d{1,2})$":"\1","^$":"0","\\":""
DynamicVariables=1

[MeasureSunriseMoment]
Measure=Calc
Formula=( 60 * [MeasureSunriseHour] + [MeasureSunriseMinute] )
DynamicVariables=1
MaxValue=720
MinValue=0

[MeasureSunsetMoment]
Measure=Calc
Formula=( 60 * [MeasureSunsetHour] + [MeasureSunsetMinute] )
DynamicVariables=1
MaxValue=720
MinValue=0

[MeasureSunRisePercent]
Measure=Calc
Formula=( 3600 * [MeasureSunriseHour] + 60 * [MeasureSunriseMinute] )
DynamicVariables=1
MinValue=0
MaxValue=86400

[MeasureSunSetPercent]
Measure=Calc
Formula=( 3600 * [MeasureSunsetHour] + 60 * [MeasureSunsetMinute] )
DynamicVariables=1
MinValue=0
MaxValue=86400

[MeasureDayLength]
Measure=Calc
Formula=( MeasureSunsetMoment - MeasureSunriseMoment )

[MeasureDayLengthHour]
Measure=Calc
Formula=( Floor ( MeasureDayLength / 60 ))

[MeasureDayLengthMinute]
Measure=Calc
Formula=( MeasureDayLength % 60 )

[MeasureDayLengthPercent]
Measure=Calc
Formula=( MeasureSunSetPercent1 - MeasureSunRisePercent1 )
MinValue=0
MaxValue=86400

;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

[MeasureTime2]
Measure=Time
IfCondition=((#CURRENTSECTION#>=[MeasureSunriseMoment1:])&&(#CURRENTSECTION#<[MeasureSunsetMoment1:]))
IfTrueAction=[!SetOption Mtsun ImageTint #SunDayColor#] 
IfFalseAction=[!SetOption Mtsun ImageTint #SunNightColor#] 
DynamicVariables=1

[MeasureSunriseMoment1]
Measure=Time
TimeStamp=[@CurrentSunriseTimeStamp]
TimeStampFormat=%Y-%m-%dT%H:%M:%S
DynamicVariables=1

[MeasureSunsetMoment1]
Measure=Time
TimeStamp=[@CurrentSunsetTimeStamp]
TimeStampFormat=%Y-%m-%dT%H:%M:%S
DynamicVariables=1

[MeasureSunRisePercent1]
Measure=Calc
Formula=MeasureSunriseMoment1%86400
DynamicVariables=1
MinValue=0
MaxValue=86400

[MeasureSunSetPercent1]
Measure=Calc
Formula=MeasureSunsetMoment1%86400
DynamicVariables=1
MinValue=0
MaxValue=86400

;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

;=======================Meters======================================

[Background]
Meter=Image
ImageName=#@##MyBackgroundImage#
X=46
Y=47
UpdateDivider=-1
W=258
H=258
Group=Shiny
DynamicVariables=1
Hidden=1

[BackgroundOne]
Meter=Image
ImageName=#@#NewFrameBase.png
ImageAlpha=255
ImageTint=120,120,120,255
X=38
Y=38
W=273
H=272
Group=Earthy
AntiAlias=1
PreserveAspectRatio=1
DynamicVariables=1
Hidden=1

[BackgroundTwo]
Meter=Image
ImageName=#@#NewFrame.png
ImageTint=#MyNewTint#
X=37
Y=38
W=275
H=276
Group=Earthy
AntiAlias=1
DynamicVariables=1
Hidden=1

[MeasureBlu]
Measure=Calc
Formula=100

[MeterDayPieChartInva]
Meter=Roundline
MeasureName=MeasureBlu
X=0
Y=0
W=350
H=350
LineLength=88
LineStart=92
LineColor=#NightColor#
Solid=1
AntiAlias=1
DynamicVariables=1

[MeterDayPieChartInvb]
Meter=Roundline
MeasureName=MeasureBlu
X=0
Y=0
W=350
H=350
LineLength=97
LineStart=101
LineColor=#NightColor#
Solid=1
AntiAlias=1
DynamicVariables=1

[MeterDayPieChart]
Meter=Roundline
MeasureName=MeasureDayLengthPercent
X=0
Y=0
W=350
H=350
StartAngle=((RAD(180+([MeasureSunRisePercent1]/86400))-0.15))
RotationAngle=6.39
LineLength=88
LineStart=101
LineColor=#DayColor#
Solid=1
AntiAlias=1
DynamicVariables=1

[MeterDivisions]
Meter=Image
ImageName=#@#24 Face.png
ImageTint=#DialColor#
X=92
Y=92
W=166
H=166
MouseScrollUpAction=[!ShowMeterGroup Text][!HideMeterGroup Digital12][!Redraw]
MouseScrollDownAction=[!HideMeterGroup Text][!ShowMeterGroup Digital12][!Redraw]

[MeterRotatorSunRise]
Meter=Rotator
ImageName=#@#rotator.png
ImageAlpha=255
MeasureName=MeasureDayLength
X=72
Y=72
W=208
H=208
StartAngle=((RAD(360+([MeasureSunriseMoment]/86400))-0.15))
RotationAngle=6.28
offsetx=104
offsety=104
AntiAlias=1

[MeterRotatorSunSet]
Meter=Rotator
ImageName=#@#rotator.png
ImageAlpha=255
MeasureName=MeasureSunsetMoment
X=72
Y=72
W=208
H=208
StartAngle=((RAD(360+([MeasureSunriseMoment]/86400))-0.124))
RotationAngle=6.04
offsetx=104
offsety=104
AntiAlias=1

[mtSun]
MeasureName=MeasureTime
Meter=Rotator
ImageTint=#SunDayColor#
X=0
Y=0
W=350
H=350
ImageName=#@#sun1.png
StartAngle=(RAD(225))
RotationAngle=6.263
ValueReminder=86400
OffsetX=90
OffsetY=90

;===== Text and Time ======;

[MeterDayLength]
Meter=String
MeasureName=DayLengthHours
FontColor=#SolarDetailsText#
FontFace=Tele-Marines
FontSize=11
AntiAlias=1
StringAlign=CenterCenter
X=173
Y=134
Text=Day:#CRLF#%1 H : #DayLengthMinutes#
InlineSetting=Size | 10
InlinePattern=.*#CRLF#(.*)
DynamicVariables=1

[MeterText]
Meter=String
FontColor=#SolarDetailsText#
FontFace=Tele-Marines
FontSize=11
AntiAlias=1
StringAlign=CenterCenter
Text=SUNRISE: [@CurrentSunriseTime]#CRLF# SUNSET: [@CurrentSunsetTime]
DynamicVariables=1
X=173
Y=42r
Group=Text
Hidden=0

[MeterDigitalClock12]
Meter=String
MeasureName=MeasureDigitalTime12
FontColor=#SolarDetailsText#
FontFace=Tele-Marines
FontSize=11
AntiAlias=1
StringAlign=CenterCenter
DynamicVariables=1
Text=%1
X=174
Y=1r
MouseScrollUpAction=[!ShowMeterGroup Text][!HideMeterGroup Digital12][!Redraw]
MouseScrollDownAction=[!ShowMeterGroup Digital12]][!Redraw]
Group=Digital12
Hidden=1

[TimetoMoonrise/Moonset]
Meter=String
FontColor=#SolarDetailsText#
FontFace=Tele-Marines
FontSize=11
AntiAlias=1
StringAlign=CenterCenter
X=173
Y=41r
Text=#MoonNext##CRLF##MoonUpDown#
InlineSetting=Size | 10
InlinePattern=.*#CRLF#(.*)
DynamicVariables=1

[MeasureDigitalTime12]
Measure=Time
Format=%r
Any.. help... is.. appreciated!
@Resources.rar
Resources.rar
You do not have the required permissions to view the files attached to this post.
Last edited by CodeCode on February 24th, 2021, 11:37 pm, edited 1 time in total.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
balala
Rainmeter Sage
Posts: 16172
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: BUG - ERROR - TYPO - Mystery ctrl+alt+click highlights huge area?

Post by balala »

CodeCode wrote: February 24th, 2021, 2:23 pm Somehow my skin registers an area exceeding 3840 width and I cannot see but it is more than 2160 height.
I poured over all of this code but simply cannot see what is causing this giant area to register during ctrl+alt+click to reposition the skin today.
I dont remember it being so giant before but now somehow it is giant?
The posted @Resources.rar and Resources.rar files are completely useless. I don't know what to do with their content and to be honest, doesn't really worth to look for. Please pack the whole config, with its structure and upload the package.
User avatar
deflore08
Posts: 209
Joined: July 12th, 2020, 7:47 am
Location: Ada, Garden City

Re: BUG - ERROR - TYPO - Mystery ctrl+alt+click highlights huge area?

Post by deflore08 »

Good night =)
I can say only that problem lies in the "SunMoon.inc" config. If you will "kill" all the styles there, you'll get a normal skin size. No clues why it happens, you know your code better, so just check it attentively. :) I guess it's about #size# multiplier. (could be wrong) :)
balala wrote: February 24th, 2021, 4:46 pm The posted @Resources.rar and Resources.rar files are completely useless. I don't know what to do with their content and to be honest, doesn't really worth to look for. Please pack the whole config, with its structure and upload the package.
Just make .ini config and put all the code above inside, then copy resources. I know, i know, it'll be more convinient to get full package, but.. :confused:
Image * Image * Image * Image
User avatar
deflore08
Posts: 209
Joined: July 12th, 2020, 7:47 am
Location: Ada, Garden City

Re: BUG - ERROR - TYPO - Mystery ctrl+alt+click highlights huge area?

Post by deflore08 »

Oh, yeah.. Really about multiplier. Dunno why, if size = 0.95, then #size#*300 should be = 285. But it's wrong, x=(#size#*144) fills 1920px width. So.. That's why little skin fills 4k area. :)
Image * Image * Image * Image
User avatar
deflore08
Posts: 209
Joined: July 12th, 2020, 7:47 am
Location: Ada, Garden City

Re: BUG - ERROR - TYPO - Mystery ctrl+alt+click highlights huge area?

Post by deflore08 »

Also...

ImageName: Unable to open: C:\Users\Mi\Documents\Rainmeter\Skins\codecode\@Resources\/Meter Images/Line.png (codecode\1.ini)

Correct the path and check existance of Line.png image. It seems as main problem, #size# makes no sense without this in my case, even if change it or comment.
Image * Image * Image * Image
User avatar
CodeCode
Posts: 1366
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: BUG - ERROR - TYPO - Mystery ctrl+alt+click highlights huge area?

Post by CodeCode »

balala wrote: February 24th, 2021, 4:46 pm The posted @Resources.rar and Resources.rar files are completely useless. I don't know what to do with their content and to be honest, doesn't really worth to look for. Please pack the whole config, with its structure and upload the package.
Sorry it was such a mess, I thought it would be obvious as much of the files are the common weather files ini that were developed by Jsmorley and Xxenium etal.
deflore08 wrote: February 24th, 2021, 9:11 pm Good night =)
I can say only that problem lies in the "SunMoon.inc" config. If you will "kill" all the styles there, you'll get a normal skin size. No clues why it happens, you know your code better, so just check it attentively. :) I guess it's about #size# multiplier. (could be wrong) :)
It seems so obvious now - I did not check that file but the #size# variable is totally not needed since I do not use a shape for my sun location.

Thanks deflore08. I deleted all of the code related to sun moon position using a shape and taadaa! no more problem. :oops:

Cheers. :thumbup:
deflore08 wrote: February 24th, 2021, 9:32 pm Also...

ImageName: Unable to open: C:\Users\Mi\Documents\Rainmeter\Skins\codecode\@Resources\/Meter Images/Line.png (codecode\1.ini)

Correct the path and check existance of Line.png image. It seems as main problem, #size# makes no sense without this in my case, even if change it or comment.
That Image is meant to describe the arc of the sun and moon within xxenium's weather extd suite. Which I also am not using. So the missing image is no longer throwing a error.
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.
User avatar
deflore08
Posts: 209
Joined: July 12th, 2020, 7:47 am
Location: Ada, Garden City

Re: BUG - ERROR - TYPO - Mystery ctrl+alt+click highlights huge area? [error found]

Post by deflore08 »

Congratulations ! :)
Image * Image * Image * Image
User avatar
CodeCode
Posts: 1366
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: BUG - ERROR - TYPO - Mystery ctrl+alt+click highlights huge area? [error found]

Post by CodeCode »

CODE: SELECT ALL

IfCondition = (#Burn_Existence# + #Genesis_Existence# + #AdrenalineRush_Existence#) > 0
ifTrueAction = [!CommandMeasure go.write.aurora.lazy.ass "Run"]
ifFalseAction = [!Log "Unable to force user work"]

Code: Select all

bool(classic.int()){
return infinity()
}
ƈǟռ'ȶ ʄɨӼ ɨȶ ɨʄ ɨȶ ǟɨռ'ȶ ɮʀօӄɛ - ʊռʟɛֆֆ ɨȶ ɨֆ ɨռ ƈօɖɛ.