Join us on Discord!
You can help CodeWalrus stay online by donating here.

[TI-84+CE]GraphSet CE [TI-BASIC]

Started by Dudeman313, March 08, 2016, 01:50:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dudeman313

I taught myself some TI-BASIC programming concepts overnight, and programmed this:



What do you think? I could probably use some optimizations, so I'm posting it here.
It currently carries out the same functions as Nitro_Hawk's Graph Fix program, toggles Plots(on/off), toggles Diagnostics, and "Enters Workmode."

Work mode is just my custom preferred graph settings. I left this unlocked so users can customize their own WorkMode, but I don't know how
to comment in TI-BASIC, if it's possible. I also named the program GraphSet CE just in case I decide to make a monochrome version, because my program
uses functions (like GridLine) that monochromes lack.

Maybe someone could also test it on the CSE? I don't know if the CSE can have a Line grid.

EDIT
The current program is attached. When it's been evaluated and considered complete, I'll upload it elsewhere.

ClrHome
Lbl 1
Menu("       GRAPHSET CE            ","Wo[r]kmo[|d][|e]",A1,"R[|e][s][|e][t] G[r][|a][p]h",A2,"Di[|a]g[n]o[s][t]i[|c][s]",A3,"Plo[t][s](O[n]/Off)",A4,"EXIT",A5
Lbl A5
Pause "C[r][|e][|a][t][|e][|d] By: Joh[n] Kol[|a][|d][|e]",0.8
ClrHome
Stop
Lbl A2
Output(1,1,"S[|e][t][t]i[n]g G[r][|a][p]h D[|e]f[|a]|ul[t][s]..."
Output(2,1,"D[|e]f[|a]|ul[t][s] [s][|e][t]."
Pause
ClrHome
RectGC
CoordOn
GridOff
AxesOn
LabelOff
BorderColor 1
BackgroundOff
DetectAsymOn
DelVar {Y1}DelVar {Y2}DelVar {Y3}DelVar {Y4}DelVar {Y5}DelVar {Y6}DelVar {Y7}DelVar {Y8}DelVar {Y9}DelVar {Y0}
~10->Xmin:10->Xmax
~10->Ymin:10->Ymax
1->Xscl:1->Yscl
DiagnosticOff
PlotsOff
ClrHome
Goto 1
Lbl A1
Output(1,1,"E[n][t][|e][r]i[n]g Wo[r]kmo[|d][|e]...
Output(2,1,"Do[n][|e]! G[|e][t] [t]o i[t]!
Pause
ClrHome
BackgroundOff
GridLine MedGray
LabelOn
CoordOn
RectGC
AxesOn
BorderColor 1
DetectAsymOn
Goto 1
Lbl A3
Menu("Di[|a]g[n]o[s][t]i[|c][s]","O[n]",B1,"Off",B2,"Return",1
Lbl B1
Output(1,1,"Di[|a]g[n]o[s][t]i[|c][s] ENABLED.
Pause
DiagnosticOn
ClrHome
Goto A3
Lbl B2
Output(1,1,"Di[|a]g[n]o[s][t]i[|c][s] DISABLED."
Pause
DiagnosticOff
ClrHome
Goto A3
Lbl A4
Menu("Plo[t][s](O[n]/Off)","O[n]",C1,"Off",C2,"Return",1
Lbl C1
Output(1,1,"Plo[t][s] ON."
Pause
PlotsOn
ClrHome
Goto A4
Lbl C2
Output(1,1,"Plo[t][s] OFF."
Pause
PlotsOff
ClrHome
Goto A4
  • Calculators owned: TI-84 PCE
  • Consoles, mobile devices and vintage computers owned: Android O Phone
Does this qualify as a signature? 
The answer is "Sure."


Dream of Omnimaga

#1
Something I want to point out is that most of the features in this program can already be achieved from the TI-OS, such as via the F1 to F5 keys and VARS/Y-VARS, but it's definitively a good way to get started with TI-BASIC, especially that you'll most likely use the Menu() command for your early games and probably need a few of the graphing commands at some point or another for various programs.

EDIT: Some stuff works on monochrome models but of course text is off the screen and you get ERR:VERSION when trying Work Mode and Graph reset options since monochrome models lacks the BackgroundOff/On command and some stuff.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Dudeman313

I know; I just wanted to expand on Nitro_Hawk from Cemetech's Reset Graph program. This does the same things as his program, but with a little extra.
I BASICally just put this all together in a program to actually get something done and release it. I also wanted a way to just hit a button and set all of my favorite settings at once.

Well, unless there's a command that deletes all your Y-vars at once, turns off plots and diagnostics, sets the bounds to default,  turns labels off, and all the other graph defaults without setting all the other defaults back to the original and doesn't clear my RAM, then I think this program is not completely useless.
  • Calculators owned: TI-84 PCE
  • Consoles, mobile devices and vintage computers owned: Android O Phone
Does this qualify as a signature? 
The answer is "Sure."


Dream of Omnimaga

Actually I edited my post because I realized you also mess with the BackgroundOff and stuff, which aren't supported on the monochrome models. And yeah I don't think there is a command that deletes all Y vars at once. We can turn On/Off stat plots and disable Y vars from single commands, though.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Dudeman313

BackgroundOff, BorderColor, Axe On (color) and such are the things I added to my reset section that were
not originally in Nitro_Hawk's creation. But if there was a single command that could be customized that was not a program,
that would be awesome.
  • Calculators owned: TI-84 PCE
  • Consoles, mobile devices and vintage computers owned: Android O Phone
Does this qualify as a signature? 
The answer is "Sure."


Dream of Omnimaga

Actually, AxesOn exist on the 83+, just not with extra color argument support.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Dudeman313

I know that-my old calc was an 84+.
I just put that I included the color argument to make a point.
  • Calculators owned: TI-84 PCE
  • Consoles, mobile devices and vintage computers owned: Android O Phone
Does this qualify as a signature? 
The answer is "Sure."


Dream of Omnimaga

Oh I see what you mean now.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Dudeman313

Well, since no one's offered any optimizations or feedback code-wise, I'm going to start uploading it in other places.
You can put it in the archives if you want.
  • Calculators owned: TI-84 PCE
  • Consoles, mobile devices and vintage computers owned: Android O Phone
Does this qualify as a signature? 
The answer is "Sure."


Dream of Omnimaga

I'll check with the other staff if we can include non-game programs in the archives. We might need to split it in two sections, since we only have games right now. (I would prefer that the Emulators page appears in both, tho)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Dudeman313

I think it should be fine, as the category says "Games & Programs," not just games, but splitting would be ideal.
And placing the Emulators page in both would be good, because you can use emulators for games & other programs.
  • Calculators owned: TI-84 PCE
  • Consoles, mobile devices and vintage computers owned: Android O Phone
Does this qualify as a signature? 
The answer is "Sure."


Dream of Omnimaga

Yeah it looks like the consensus is that we will split the category in the future. So I'll add this program when I have time (I'll also edit the title to make the tags in the same format as the rest of the files)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Dudeman313

  • Calculators owned: TI-84 PCE
  • Consoles, mobile devices and vintage computers owned: Android O Phone
Does this qualify as a signature? 
The answer is "Sure."


Powered by EzPortal