TodayPlus Boards v2

Programming and MOD Forums => Developer's Corner Discussion => Topic started by: ya1950 on October 29, 2004, 01:55:38 AM

Title: TodayPlus and var34 - The Real Story
Post by: ya1950 on October 29, 2004, 01:55:38 AM
I know this has been asked before but I've never seen an answer. After many days of trying to figure out why a section of my skin was not working I can now definitively let you know that TodayPlus supports up to 33 variables. Var34 does not exist  :D

Hope this helps someone else.
Title: TodayPlus and var34 - The Real Story
Post by: uk_skinner on October 29, 2004, 06:56:17 AM
I found similiar thing.  One way to get around is to "double" use the variables between regions.  For instance, in Hammerskin, the weather and RSS regions will not show up at the same time.  Then, there is possibility to use the same variables (especially for the "index" such as scroll bars, because most likely the index will be reset to 1 when you jump out the region).  I did test this in other skins and it worked out.  Just a thought..
Title: TodayPlus and var34 - The Real Story
Post by: jhollin1138 on October 29, 2004, 08:39:06 AM
I have been there too.

I have been working on adding an RSS region to LightMan's HandyPlus Basic skin when I have some free time, which hasn't been much lately.  I was going nuts trying to get the basic region to load.  I have to admit my TodayPlus skills are rusty.  Then I remembered the whole variable 33 thing.  I searched the skin and found some lower numbered variables that were available.  Sure enough, everything worked.  I still need to finish up the RSS region one of these days.
Title: TodayPlus and var34 - The Real Story
Post by: ya1950 on October 29, 2004, 09:54:31 AM
@uk_skinner Wonderful idea. I'll keep it in mind for the next time.

@Jim Love to see the skin when you get it finished!
Title: TodayPlus and var34 - The Real Story
Post by: Geezer on October 29, 2004, 02:33:41 PM
That's funny, I've been asking around that very question.  I'm not understanding this VAR too much.  I was hoping that I could use a different one in my skin (the highest if goes is 21)  So I know now that I can go higher.  Cool!
Title: TodayPlus and var34 - The Real Story
Post by: Wichtel on October 29, 2004, 02:51:09 PM
The hammerskin is using all 33 at the moment (1.05). :cry: SRS I need more variable  :pray:
Title: TodayPlus and var34 - The Real Story
Post by: uk_skinner on October 29, 2004, 02:56:23 PM
Quote from: "Wichtel"The hammerskin is using all 33 at the moment (1.05). :cry: SRS I need more variable  :pray:

Hay, I need to go back and check some of the old skin I did.  I thought you still can use variables pass 33 as long as you don't do calculation codes, such addvar...  I will check and let you know...

Edit:  A quick trial.  In Hammerskin,  replace var10 with var51, work!!  But don't use var41, bad!!! You got one var10 back..  I will keep you updated!!

      One more, use var52 to replace var24, worked!!!
Title: TodayPlus and var34 - The Real Story
Post by: uk_skinner on October 29, 2004, 03:40:17 PM
var51, var52, var53, var54 and var61 tested.

You can do addvar to them (although I did not test 51,52).  I tested addvar up to 1050.

I think there are more.....
Title: TodayPlus and var34 - The Real Story
Post by: ZapMe1 on October 29, 2004, 04:13:13 PM
Great work (once again  :wink: ) uk-skinner

This is good news to know that var's above 33 can be used !!  0-33 vars can be used up quickly when writing a skin..  I've used the "double" method that you mentioned above, and it works !!   But you need to be careful when doing this with certain vars's depending on what they are originally used for, and where they are in the skin !!   Sometimes, using a certain var twice for different things, can cause "strange" operation !!!  :!:
Title: TodayPlus and var34 - The Real Story
Post by: uk_skinner on October 29, 2004, 04:15:58 PM
Quote from: "ZapMe1"Great work (once again  :wink: ) uk-skinner

This is good news to know that var's above 33 can be used !!  0-33 vars can be used up quickly when writing a skin..  I've used the "double" method that you mentioned above, and it works !!   But you need to be careful when doing this with certain vars's depending on what they are originally used for, and where they are in the skin !!   Sometimes, using a certain var twice for different things, can cause "strange" operation !!!  :!:

I suspected there are a block of vars that you can not used or touched.  When I tried to use 41, it can not even start the TP :shock:  :knownot: .  I think there should be more.... :wink:
Title: TodayPlus and var34 - The Real Story
Post by: ZapMe1 on October 29, 2004, 04:37:08 PM
QuoteI suspected there are a block of vars that you can not used or touched. When I tried to use 41, it can not even start the TP   . I think there should be more....

I agree..  I've already experienced this !!  I tried using a higher numbered var at one time (can't remember which one it was), but when the button for this var was tapped, it caused a "soft reset" each time !!!!  Very strange !  :think:
Title: TodayPlus and var34 - The Real Story
Post by: uk_skinner on October 29, 2004, 05:52:27 PM
Quote from: "ZapMe1"
QuoteI suspected there are a block of vars that you can not used or touched. When I tried to use 41, it can not even start the TP   . I think there should be more....

I agree..  I've already experienced this !!  I tried using a higher numbered var at one time (can't remember which one it was), but when the button for this var was tapped, it caused a "soft reset" each time !!!!  Very strange !  :think:

With further investigation, it is better careful with any var over 33.  I am also thinking maybe also there is a limited numbers of variables you can use.  Just my 10 cents... ZapMe1, I don't know about you, I would like to reflect some inflation rate here.  The price of gas is so high!!!! :roll:
Title: TodayPlus and var34 - The Real Story
Post by: joelw135 on October 29, 2004, 06:07:30 PM
Well I was adding to the skin and used Var 51,52,53, 54,61 and the icons all disappeared and then TP wouldn't load. I had to install my backup skin after a soft-reset. Uk_Skinner is going to look at the TP bomb I was working on. I call it a bomb because it blew TP away!!!! :oops:
Title: TodayPlus and var34 - The Real Story
Post by: ZapMe1 on October 29, 2004, 06:17:35 PM
Quote from: "Uk_Skinner"With further investigation, it is better careful with any var over 33. I am also thinking maybe also there is a limited numbers of variables you can use. Just my 10 cents... ZapMe1, I don't know about you, I would like to reflect some inflation rate here. The price of gas is so high!!!!

I agree !! ....
Maybe between us all, we can put our experience together, and post a list calling it "Var's.. Good and Bad" !!   It could contain our combined experience of all the var's that work, and the ones we should stay away from !!
What do you think ??   :?:  :think:
Title: TodayPlus and var34 - The Real Story
Post by: Geezer on October 29, 2004, 06:34:41 PM
This is exactly what I think would help the rest of us newbies..  Expecially since I need more VARS too.   :wink:
Title: TodayPlus and var34 - The Real Story
Post by: uk_skinner on October 29, 2004, 06:40:24 PM
Report...My 4th round of testing.

I use Hammerskin1.04a (no addtional features, joelw135, you do have some extra features in that skin, right).

Total number of variable used before in Hammerskin1.04a : 19

Change 10 --> 51 and 24 --> 52

Add var53 - var100(48 new var) and tested with addvar code

It looked fine, the number is up 750 and going.....

Total number of variables: 67 --> it is over 34....

Wichtel:  While you are sleeping, 48 new variables possible for you to use.. :wink:  :lol:

Edit:  One wired thing, in my device, the var86 start at "8" even I put "initvar,var86,0".... :wall:

Edit:  Ok, looks like var86 - var95 were bad when the number went up.  See 2nd screenshot.   I am not sure they are safe to be used.
Title: TodayPlus and var34 - The Real Story
Post by: uk_skinner on October 30, 2004, 07:53:11 AM
I think I started a new post is much clearer.

In Hammerskin.

var 88 seemed to be connected to region switched.  When I switched from main to any of other sections.  var88 was changed.

var88 - var95 were changed when I went to eithe Agenda or Task section.  Just likr the screenshot, some of them disappeared...


Early conclusion is don't use them.
Title: TodayPlus and var34 - The Real Story
Post by: ya1950 on October 31, 2004, 05:06:50 AM
@uk_skinner. When you change the variable name you are still using an absolute number of variables that is less than 33. If you deliberately add more than 33 variables (absolute number) and not just change the names does it still work?

I seem to remember from somewhere that in early versions srs reserved some variables for system stuff. At some point he expanded the number of variables that could be used and freed up the variables under 33 to be used by the skinner. I think that the variables you are descovering are supposed to be reserved for other stuff and that's why you are running into problems. I'm pretty sure that srs stated at some point that there was a 33 variable limit on the program but he might have changed it without letting anyone know. I suspect that to answer this we'd have to disassemble the code and see what is there.
Title: TodayPlus and var34 - The Real Story
Post by: ya1950 on October 31, 2004, 05:43:27 AM
OK I did try to peek into the code but couldn't find anything that was readily apparent (to me in any case) I did find several references to #0x18+var_18 but I'm not sure how that relates to the question at hand. I would guess that there is a limit on the number of variables with some being available to the user and others being reserved for the program itself.

BTW - the program is pulling weather information off msnbc but everyone knew that, right?
Title: TodayPlus and var34 - The Real Story
Post by: uk_skinner on October 31, 2004, 07:02:14 AM
Quote from: "ya1950"@uk_skinner. When you change the variable name you are still using an absolute number of variables that is less than 33. If you deliberately add more than 33 variables (absolute number) and not just change the names does it still work?


I did use more than 34 variables.  Addtion to 19 ones used in Hammerskin, I deliberately add new 48 vaiables (var 53 - var 100) for testing, Each new one was used addvar to increase its value by 500 each time main page refresh.  Last testing, there were total 67 variables. :knownot:

The results seemed to support the fact that some of variables are used by system (at least memory position).
Title: TodayPlus and var34 - The Real Story
Post by: ZapMe1 on October 31, 2004, 09:13:52 AM
I am impressed with the results that everyone is finding !!   :approve:
From Radar, to Movie Reviews, to Additional Var's, you guys are the reason that TodayPlus+ is still alive and so strong !!! 8)

I just want to say THANKS, from myself (and I'm sure many others at this forum), for all the time and hard work you all put in for all of us !!  :clap:

(Sorry I'm off topic here, but I just thought it was deserved...   :wink: )
Title: TodayPlus and var34 - The Real Story
Post by: ZapMe1 on November 04, 2004, 05:44:29 PM
:arrow:   Any development on a list of "Good & Bad" Var's   :?:
Title: TodayPlus and var34 - The Real Story
Post by: Geezer on November 04, 2004, 06:17:09 PM
This is something that I'm quite interested in as well.   :wink:
Title: TodayPlus and var34 - The Real Story
Post by: uk_skinner on November 04, 2004, 07:06:14 PM
As I have tested, var 51 - var 84 seemed to work when I used them in addvar code.  var 86 was wired and stay away from var 88 - var 95...
Title: TodayPlus and var34 - The Real Story
Post by: ZapMe1 on November 04, 2004, 07:37:15 PM
QuoteAs I have tested, var 51 - var 84 seemed to work when I used them in addvar code. var 86 was wired and stay away from var 88 - var 95...

Great !!  :D
Thanks UK..

This gives us many more to use !!   Thanks for doing that research !!
Title: TodayPlus and var34 - The Real Story
Post by: Geezer on November 04, 2004, 09:08:53 PM
Cool!  I just gotta annotate that somewhere.  :knownot:
Title: TodayPlus and var34 - The Real Story
Post by: ZapMe1 on April 18, 2005, 04:33:30 PM
Just wanted to add to this thread based from my experience with my latest skin !!
I believe I've used all vars from 50-69, and they all seem to work well in v.11 & v.12...

Stay away from 34-40, and some in the upper 40's work, but not well in v.11 !
0-33 + 50-69 = 52 skin proven working vars !!!  :D    My next try will be to incorporate the 70's in the skin !!!  :idea: