It is currently April 19th, 2024, 1:56 pm

Calc Freezes

Get help with creating, editing & fixing problems with skins
User avatar
Dank420
Posts: 145
Joined: April 3rd, 2013, 1:04 am
Location: O-High-O

Calc Freezes

Post by Dank420 »

so my trouble is in..

Code: Select all

[idlestopcounter]
measure=calc
Formula=(idlestopcounter+1)
IfEqualValue=#Frames#+1
IfEqualAction=[!pausemeasure measurelength][!setvariable imagename #stand#][!setvariable frames #standframes#][!showmeter metercommands][!update][!setvariable position 1][!enablemeasure idlecounter][!disablemeasure idlestopcounter]
Dynamicvariables=1
disabled=1

[leftupcalc]
measure=calc
formula=#position#
ifbelowvalue=1
ifbelowaction=[!disablemeasure idlewalkstopcounter][!disablemeasure idlestopcounter][!setvariable imagename #leftleftup#][!setvariable frames #leftleftupframes#][!update][!enableMeasure FCounter][!EnableMeasure idlestopcounter][!disablemeasure leftupcalc]
ifequalvalue=1
ifequalaction=[!disablemeasure idlewalkstopcounter][!disablemeasure idlestopcounter][!setvariable imagename #flipper#][!setvariable frames #flipperframes#][!update][!enableMeasure FCounter][!EnableMeasure idlestopcounter][!disablemeasure leftupcalc]
ifabovevalue=1
ifaboveaction=[!disablemeasure idlewalkstopcounter][!disablemeasure idlestopcounter][!setvariable imagename #rightleftup#][!setvariable frames #rightleftupframes#][!update][!enableMeasure FCounter][!EnableMeasure idlestopcounter][!disablemeasure leftupcalc]
Dynamicvariables=1
updatedivider=1
disabled=1

[metercommands]
meter=image
soildcolor=0,0,0,1
h=240
w=320
leftmouseupaction=[!disablemeasure leftupcalc][!pausemeasure measurelength][!disablemeasure idlecounter][!update][!DisableMeasure FCounter][!Enablemeasure leftupcalc][!hidemeter metercommands]
mousescrollleftaction=[!setvariable position 0][!UpdateMeasure "leftupcalc"][!disablemeasure idlecounter][!setvariable imagename #walkleft#][!Setvariable frames #walkleftframes#][!setvariable movedistance #Leftdistance#][!setoption measurelength formula #"CURRENTCONFIGX"#-#movedistance#][!update][!unpausemeasure measurelength]
mousescrollrightaction=[!setvariable position 2][!UpdateMeasure "leftupcalc"][!disablemeasure idlecounter][!setvariable imagename #walkright#][!setvariable frames #walkrightframes#][!setvariable movedistance #rightdistance#][!setoption measurelength formula #"CURRENTCONFIGX"#+#movedistance#][!update][!unpausemeasure measurelength]
DynamicVariables=1
trouble being freeze on 2nd call when position set to 2
useing mouse to change variable to 1 or 0 always fires , back to back or randomly mixed,
but set to 2, fires once now set to 2 again and fire.. freeze
ive tryed !setoption to change formula instead of a !setvariable but same results freeze on 2, update measure,redraw... all ive tryed still freeze???

watching leftupcalc in skinstab you see it change 0 flips to 1 fires, 0 to 0 fires , 0 to 2 fires (once ) then 0 to 2 freeze, holds 2 and dose nothing

smallest full download: http://fav.me/d6ttr6a (incase ive not been clear or provided enough)
it boggles me cause 0 and 1 always work , but 2 dosent, and its the same code?