It worked the first time, but then it just stopped. When looking at About Rainmeter, the only thing I can deduce is that the Lua script is just written poorly, and I barely know anything about Lua. To write it I just learned what I needed instead of learning all the ins and out of it, so I don't know where I went wrong. Any help would be appreciated.
I'm currently running Rainmeter 2.0.0 rev 745 (64-bit).
This is the skin:
Code: Select all
;Metadata added by RainBrowser
;http://rainmeter.net/cms/Rainmeter101-EditingSkins
[Metadata]
Name=Kongregate's "Badge of the Day"
Config=Kong Badge
Description=This skin presents the current badge of the day with information regarding it's difficulty and requirements.
Instructions=
Version=1.0
Tags=Kongregate
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Variant=
Preview=#SKINSPATH#Kong Badge\preview.png
;End of added Metadata
[Rainmeter]
Author=donutmtoazt@mail.fresnostate.edu
Update=1000
DynamicWindowSize=1
[Variables]
TextColor=255,255,255,255
Width=214
[BotDMeasure]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=300
Url=http://www.kongregate.com/badges
RegExp="(?siU)<h3 class="mbs">(.*)</h3>.*height="36" src="(.*)" title=.*<span alt="(.*)" class=.*<strong><a href="(.*)" class=.*((.*)).*<p class="prs">(.*)<a href.*">(.*)</a></p>.*<img alt=(.*) height="36""
StringIndex=1
Debug=1
FinishAction=!Execute [!RainmeterRedraw][!RainmeterEnableMeasure LuaScript]
[Image2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[BotDMeasure]
StringIndex=2
Download=1
[Name3]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[BotDMeasure]
StringIndex=3
[Link4]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[BotDMeasure]
StringIndex=4
[Diff5]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[BotDMeasure]
StringIndex=5
[Text6]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[BotDMeasure]
StringIndex=6
[Text7]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[BotDMeasure]
StringIndex=7
[New8]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[BotDMeasure]
StringIndex=8
[LuaScript]
Measure=Script
ScriptFile="#CURRENTPATH#lua.lua"
TableName=Kong
UpdateDivider=300
Disabled=1
[NewCalc]
Measure=Calc
Formula=[LuaScript]
DynamicVariables=1
IfEqualValue=1
IfEqualAction=!Execute [!RainmeterShowMeter New]
[Background]
Meter=IMAGE
W=214
H=70
SolidColor=255,255,255,1
UpdateDivider=.001
MouseOverAction=!Execute [!RainmeterShowMeter Mouse][!RainmeterShowMeter Description]
MouseLeaveAction=!Execute [!RainmeterHideMeter Mouse][!RainmeterHideMeter Description]
LeftMouseUpAction=!Execute [[Link4]]
[Title]
Meter=STRING
MeasureName=BotDMeasure
X=11
Y=0
FontFace=Tahoma
FontSize=11
StringStyle=BOLD
FontColor=#TextColor#
AntiAlias=1
[BadgeImage]
Meter=IMAGE
MeasureName=Image2
X=17
Y=27
W=36
H=36
LeftMouseUpAction=!Execute [[Link4]]
[BadgeBorder]
Meter=IMAGE
ImageName=badgeborder.png
X=-15r
Y=-4r
W=55
H=44
LeftMouseUpAction=!Execute [[Link4]]
[BadgeName]
Meter=STRING
Text=[Name3] Badge
X=112
Y=22
W=104
H=50
FontFace=Tahoma
FontSize=9
StringStyle=BOLD
StringAlign=CENTER
FontColor=#TextColor#
AntiAlias=1
ClipString=1
DynamicVariables=1
LeftMouseUpAction=!Execute [[Link4]]
[Difficulty]
Meter=IMAGE
ImageName=[Diff5] 2.png
X=170
Y=35
DynamicVariables=1
LeftMouseUpAction=!Execute [[Link4]]
[Mouse]
Meter=IMAGE
ImageName=pop.png
X=10
Y=76
Hidden=1
[Description]
Meter=STRING
Text=[Text6][Text7]
X=14
Y=80
W=186
H=44
FontFace=Tahoma
FontSize=8
FontColor=34,34,34,255
ClipString=1
AntiAlias=1
DynamicVariables=1
Hidden=1
[New]
Meter=IMAGE
ImageName=new.png
X=220
Y=10
H=50
FontFace=Tahoma
FontSize=8
FontColor=34,34,34,255
AntiAlias=1
Hidden=1
LeftMouseUpAction=!Execute [http://www.kongregate.com/badges][!RainmeterHideMeter New]
Code: Select all
PROPERTIES =
{
}
function Initialize()
new = SKIN:GetMeasure("New8")
file = "C:/Users/james cunn/Documents/Rainmeter/Skins/Kong Badge/Saves.txt"
a = 0
end -- function Initialize
function Update()
curtop = new:GetStringValue()
f = io.open(file, "r")
if f:read("*all") == curtop then a = 0 else a = 1 end
f:close()
f = io.open(file, "w")
f:write(curtop)
f:close()
end -- function Update
function GetStringValue()
return tostring(a)
end -- function GetStringValue
Update:
Switching to the 2.1 Beta seems to have resolved my problem!