It is currently April 23rd, 2024, 10:05 am

Code Affecting Other Chunks of Code

Get help with creating, editing & fixing problems with skins
CM62
Posts: 15
Joined: June 2nd, 2018, 10:46 pm

Re: Code Affecting Other Chunks of Code

Post by CM62 »

I tried uploading the skin but it stopped at settings before saying it was invalid. I can put up the code and images for the fullscreen (with my changes), and the skin for the visualizer can be found here https://undefinist.deviantart.com/art/VisBubble-Round-Visualizer-for-Rainmeter-488601501, but I cannot get the combined skin up.

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1

[Metadata]
Name=FullScreen Alternator
Author=CM62
Information=Test to make a skin fullscreen and revert 
Version=1.0
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0

[Variables]
FullScreen=0

[MeasureFullScreen]
Measure=Calc
Formula=#FullScreen#
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!ShowMeter "meterTitle"][!ShowMeasure "sFactoryBandMeasures"][!ShowMeasure "sFactoryBars"][!ShowMeter "sRefresher"][!ShowMeasure "sColor"][!HideMeter "MeterBig"][!Redraw][!UpdateMeter *]
IfFalseAction=[!ShowMeter "MeterBig"][!HideMeter "meterTitle"][!HideMeter "sFactoryBandMeasures"][!HideMeter "sFactoryBars"][!HideMeter "sRefresher"][!HideMeter "sColor"][!Redraw][!UpdateMeter *]
DynamicVariables=1

[MeterBig]
Meter=Image
ImageName=#@#Images\Large.png
X=0
Y=0
H=700
W=700

[meterTitle]
Meter=Image
ImageName=#@#Images\Visualizer_Background.png
; Using MeterStyle=styleTitle will basically "copy" the
; contents of the [styleTitle] section here during runtime.
X=0
Y=0
W=250
H=175

[sFactoryBandMeasures]
Measure=Script
ScriptFile=#SCRIPT#Factory.lua
IncFile=#INC#BandMeasures.inc
Number=#NumOfItems#
SectionName=mBand%%
Option0=Measure
Value0=Plugin
Option1=Plugin
Value1=AudioLevel
Option2=Parent
Value2=mAudioOut
Option3=Type
Value3=Band
Option4=BandIdx
Value4={%%+1}
UpdateDivider=-1
@Include=#INC#BandMeasures.inc

[sFactoryBars]
Measure=Script
ScriptFile=#SCRIPT#Factory.lua
IncFile=#INC#Lines.inc
Number=#NumOfItems#
SectionName=%%
Option0=Meter
Value0=Roundline
Option1=MeterStyle
Value1=styleLine
Option2=StartAngle
Value2={#FORMULA_THETA#}
Option3=X
Value3={#Radius#*Cos(#FORMULA_THETA#%(PI*2))+#Radius#+#ExtrudeMax#}
Option4=Y
Value4={#RadiusY#*Sin(#FORMULA_THETA#%(PI*2))+#RadiusY#+#ExtrudeMax#}
Option5=LineLength
Value5=((#FORMULA_AVG#=0)?{#ExtrudeMin#=0?-1:#ExtrudeMin#}:((#FORMULA_AVG#-[mBand%%])*{#Smoothing#}+[mBand%%])*{#ExtrudeMax#-#ExtrudeMin#}+#ExtrudeMin#)
Option6=DynamicVariables
Value6=1
UpdateDivider=-1
@Include=#INC#Lines.inc

; Helper script to always refresh skin twice instead of once
; This is so that it loads the updated .inc files
[sRefresher]
Measure=Script
ScriptFile=#SCRIPT#Refresher.lua
UpdateDivider=-1
Refreshed=0

[sColor]
Measure=Script
ScriptFile=#SCRIPT#Color.lua
UpdateDivider=-1
NumOfItems=#NumOfItems#
Color=#ItemColor#
;C4FB7200:0|C4FB72cc:30|85ECF099:60|85ECF099:80|85ECF000

[MeterButton]
Meter=Image
ImageName=#@#Images\Button.png
X=0
Y=0
H=20
W=20
LeftMouseUpAction=[!SetVariable FullScreen "(1-#FullScreen#)"][!UpdateMeasure "MeasureFullScreen"][!UpdateMeter "#CURRENTSECTION#"]
DynamicVariables=1
As for the log, it looks like the four [s...] could not be found, resulting in an error.
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 16162
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Code Affecting Other Chunks of Code

Post by balala »

CM62 wrote:I tried uploading the skin but it stopped at settings before saying it was invalid.
Upload the package to a file host site (like FileFactory or whatever you like) and give us a link where we can download it.
User avatar
balala
Rainmeter Sage
Posts: 16162
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Code Affecting Other Chunks of Code

Post by balala »

Sorry, this link isn't valid. I can't download the file. Please open your file manager in FileFactory, click My Files. When you're hovering your mouse over the appropriate file name, an menu appears on its right side. Click it and click Copy link. Post back here the copied link, please.
CM62
Posts: 15
Joined: June 2nd, 2018, 10:46 pm

Re: Code Affecting Other Chunks of Code

Post by CM62 »

http://www.filefactory.com/folder/0f363149190b32a6
Just a heads-up, it is a whole folder of files. I still suggest going through undefinist's devart page if you are just interested in the VisBubble file types.
User avatar
balala
Rainmeter Sage
Posts: 16162
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Code Affecting Other Chunks of Code

Post by balala »

Could you please pack those files into a zip, rar or whatever file and upload that one? I won't start downloading all 28 files one by one.