It is currently September 14th, 2024, 10:03 pm

Help with displaying days

Get help with creating, editing & fixing problems with skins
mudkipslol
Posts: 4
Joined: September 21st, 2010, 3:39 pm

Help with displaying days

Post by mudkipslol »

Hi there, I've stumbled upon this awesome portal skin on DeviantArt.
Here's the problem: The "Portal date sign" displays the day always as 00.

Here's the code

Code: Select all

[Rainmeter]
BackgroundMode=1
Author=Wistful Writer (author@wistfulwriter.com)
AppVersion=13000
Update=60000

[Variables]
Font=Helvetica Neue Lt
FontSize=30
ImageSet=digits_AA.png
;Choose from digits_AA.png digits.png digits_wide.png

usermode=1 
;0 - used for debug purposes
;1 - normal mode (doesn't display plaintext digits)

[MeasureDate]
Measure=Time
Format=%#d

[MeasureMonth]
Measure=Time
Format=%B
Substitute="January":"JANUARY","February":"FEBRUARY","March":"MARCH","April":"APRIL","May":"MAY","June":"JUNE","July":"JULY","August":"AUGUST","September":"SEPTEMBER","October":"OCTOBER","November":"NOVEMBER","December":"DECEMBER"

[MeasureDay]
Measure=Time
Format=%A
Substitute="Monday":"MONDAY","Tuesday":"TUESDAY","Wednesday":"WEDNESDAY","Thursday":"THURSDAY","Friday":"FRIDAY","Saturday":"SATURDAY","Sunday":"SUNDAY"

[MeasureDaynum1]
Measure=Calc
DynamicVariables=1
Formula=[MeasureDate]
;[MeasureDate] > 9 ? [MeasureDate]-[MeasureDate] : [MeasureDate]%10

[MeasureDaynum2]
Measure=Calc
DynamicVariables=1
Formula=[MeasureSeconds]
;[MeasureDate] < 9 ? [MeasureDate]-[MeasureDate] : [MeasureDate]%10

[MeasureSeconds]
Measure=Time
Format=%S

;=====================
;Set MeterDate1.X to 20 if using the MeterDate2
[MeterDate1]
MeasureName=MeasureDaynum1
Meter=BITMAP
X=25r
Y=55r
BitmapImage=#ImageSet#
BitmapFrames=10
BitmapExtend=1
BitmapAlign=LEFT
BitmapSeparation=-20
BitmapDigits=2
AntiAlias=1
Hidden=0


[MeterDate2]
MeasureName=MeasureDaynum2
Meter=BITMAP
X=120r
Y=55r
BitmapImage=#ImageSet#
BitmapFrames=10
BitmapExtend=1
BitmapAlign=LEFT
BitmapSeparation=0
BitmapDigits=1
AntiAlias=1
Hidden=1

[MeterMonth]
MeasureName=MeasureMonth
Meter=STRING
X=140
Y=0
FontColor=0,0,0,200
FontSize=#FontSize#
FontFace=#Font#
StringAlign=CENTER
StringStyle=Bold
AntiAlias=1
Uppercase=1

[MeterDay]
MeasureName=MeasureDay
Meter=STRING
X=140
Y=275
FontColor=0,0,0,200
FontSize=#FontSize#
FontFace=#Font#
StringAlign=CENTER
StringStyle=Bold
AntiAlias=1

;================================================
;FOR DIAGNOSTIC PURPOSES SET VARIABLE HIDDEN TO 0
[MeterDateText]
MeasureName=MeasureDayNum1
Meter=STRING
X=300	
y=200
Hidden=#usermode#

[MeterDateText2]
MeasureName=MeasureDaynum2
Meter=STRING
X=330	
y=220
Hidden=#usermode#


[MeterDate]
MeasureName=MeasureDate
Meter=STRING
X=-85
Y=0
FontColor=0,0,0,200
FontSize=200
FontFace=HalfLife2
StringAlign=LEFT
AntiAlias=1
Hidden=#usermode#
I've tried a lot of things, but I can't get it to work (I don't know much about coding).

Thanks for your time :)
User avatar
maminscris
Posts: 509
Joined: April 24th, 2009, 3:17 pm
Location: Bucharest, Romania Lat 44,43° Lon 26,1°

Re: Help with displaying days

Post by maminscris »

time http://msdn.microsoft.com/en-us/library/fe06s4ak%28vs.71%29.aspx scroll a little down

and here
[MeasureDate]
Measure=Time
Format=%#d

remove the "#"
Zero at programing, zero at writing codes, so far 2 at making images
But I'm good at copy/paste, and I not always like this
Image
mudkipslol
Posts: 4
Joined: September 21st, 2010, 3:39 pm

Re: Help with displaying days

Post by mudkipslol »

Thanks for replying!
I removed the "#", but it didn't do anything.
mudkipslol
Posts: 4
Joined: September 21st, 2010, 3:39 pm

Re: Help with displaying days

Post by mudkipslol »

Bump?
dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: Help with displaying days

Post by dragonmage »

The ini you posted looks identical to the one I just downloaded except that mine has MetaData. I can't really say why your date is not showing up. Are you sure you have the digits_AA.png in the same folder with Portal Date.ini?
mudkipslol
Posts: 4
Joined: September 21st, 2010, 3:39 pm

Re: Help with displaying days

Post by mudkipslol »

digits_AA.png is in the same folder and it does show two zeros.

Edit:

I think i fixed :D
I changed "MeasureName=MeasureDaynum1" to "MeasureName=MeasureDate"