• Welcome to TodayPlus Boards v2.
 

Moon Phases

Started by Broesel, December 26, 2003, 05:41:28 AM

Previous topic - Next topic

Barbaros

Looks like you are not initializing the var9 before you use it. Add this line to your code:

initvar,var9,0
calcvar,var9,moonphase
if,var,var9,,=,0
image,85,44,moonphase\Moon0.bmp,t
else
...

I omited most the code to save sapce. That should do it since you definately need the initvar line for it to work.  :D

Broesel

Tryed your code in my skin and it worked fine ????
I didn't use the initvar-command too and it works for me.

Try to put thee moon.. bmps in your imcages/colors-3d-folder and use
the text i've changed (position of the moonpic). (see attachment)

looks a little strange on my PPC but it works:

!!! The txt-file is no complete skin, it is only a piece of region 0 from Joel,
that I copied in the skin I use ! So this does'nt work correctly as a complete
skin !!!

Timmy

Quote from: joelw135No luck there either, Here is my skin region 0 please look and see if I am missing anything.

I've put this skin on my pda, but I did get a blank screen. So, there must be something wrong in this skin, but I really don't know what...  
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

Timmy

Quote from: BarbarosLooks like you are not initializing the var9 before you use it. Add this line to your code:
initvar,var9,0
calcvar,var9,moonphase
...

I also tried this in my slider, but it did't work either.

Do you know what I think? Maybe, the moonfase command isn't well implemented in the TodayPlus.exe file. And that's: work for the mysterious mr. SRS, I assume.
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

Broesel

Quote from: Timmy

I've put this skin on my pda, but I did get a blank screen. So, there must be something wrong in this skin, but I really don't know what...  

Well Timmy, that was no complete skin but only a piece of the region 0,
so that can't work as a skin !

Greetings Broesel

joelw135

Thanks, that worked with a few changes to the X & Y .  At least I know it wasn't the skin.


I resized the images to 15 x 15 to match the sunrise and sunset.
Dell Axim X3i, Windows Mobile 2003
512mb Kingston SD card
256mb Lexar SD card
Today Plus
WisBar Advanced
PIEPlus
DotPocket

Broesel

Yes, looks nice now,

did you make the moonpics smaller ?

Greetings Broesel

joelw135

Yes I made them 15 X 15
Dell Axim X3i, Windows Mobile 2003
512mb Kingston SD card
256mb Lexar SD card
Today Plus
WisBar Advanced
PIEPlus
DotPocket

Timmy

Quote from: Broesel
Quote from: Timmy

I've put this skin on my pda, but I did get a blank screen. So, there must be something wrong in this skin, but I really don't know what...

Well Timmy, that was no complete skin but only a piece of the region 0,
so that can't work as a skin !

Greetings Broesel

You are wright, Broesel! But I put your piece in my own slider, but it didn't work. I'm pitty for that, for I do want my screen like the following picture. (Note, that the moonphase isn't working: it's only a picture!!!)
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

sdmaino

Quote from: BroeselTryed your code in my skin and it worked fine ????
I didn't use the initvar-command too and it works for me.

Try to put thee moon.. bmps in your imcages/colors-3d-folder and use
the text i've changed (position of the moonpic). (see attachment)

looks a little strange on my PPC but it works:

!!! The txt-file is no complete skin, it is only a piece of region 0 from Joel,
that I copied in the skin I use ! So this does'nt work correctly as a complete
skin !!!

I did it also and it works for me (just put this code in my slider).

But I initialised var9 (it is one of the few things I remember from my university course... always initialise variables !   :shock: )

I am sorry joelw135, I cannot understand how it is possible to let it work in your skin. Really seems to be a problem related to the refresh... I will try to study a bit your problem.
Dave

Broesel

Quote from: Timmy

You are wright, Broesel! But I put your piece in my own slider, but it didn't work. I'm pitty for that, for I do want my screen like the following picture. (Note, that the moonphase isn't working: it's only a picture!!!)

Sorry, but I don't know, where your problem is. I putted the code into
the original slider.txt and tried a little to fit it like you wanted. This is, what I
get:

(attached also the changed slider.txt)

Greetings Broesel

joelw135

I had posted on page one that it works fine. So I have no problem with the code, now that I have the new code from Broesel.
Dell Axim X3i, Windows Mobile 2003
512mb Kingston SD card
256mb Lexar SD card
Today Plus
WisBar Advanced
PIEPlus
DotPocket

Yogiman

I got it working with my skin too, it looks great thanks you guys.

I have it alternating with the sun up/down.

Eat well, Stay fit, Die anyway...

joelw135

What code did you use to alternate the moon and sun?
Dell Axim X3i, Windows Mobile 2003
512mb Kingston SD card
256mb Lexar SD card
Today Plus
WisBar Advanced
PIEPlus
DotPocket

LawofA

Quote from: YogimanI got it working with my skin too, it looks great thanks you guys.

I have it alternating with the sun up/down.

Hi Yogiman:
Can you post your skin?

LawofA