* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: How to recover TI-Nspire Lua's timer after turning off screen  (Read 402 times)

0 Members and 1 Guest are viewing this topic.

Offline lazydogP

  • New User
  • Join Date: Oct 2016
  • Location:
  • Posts: 16
  • Post Rating Ratio: +0/-0
    • View Profile
How to recover TI-Nspire Lua's timer after turning off screen
« on: October 10, 2016, 03:24:44 pm »
I want to write a tiny game which needs players wait for a while. But when turing off screen, the timer will be freezed if the timer has been set fast. How to avoid this issue? Or how to recover the timer?


  • Calculators owned: TI-Nspire CX CAS(used most often), Casio fx-9860GII SD, TI-Nspire CAS with Touchpad, Casio fx-991CN X, Casio fx-82MS, HP 39GS(rarely used)
Need to buy more calculators.
Busy with study but trying to come here every day.

Online p2

  • CodeWalrus Staff
  • Super User
  • Moderator
  • CodeWalrus Supporter
  • *
  • Join Date: Aug 2016
  • Location: Germany
  • Posts: 2230
  • Post Rating Ratio: +8/-0
  • *Wubba lubba dub dub*
    • KaliPhobos
    • View Profile
  • Gender: Male
I assume running programs are paused during standby and stuff (black screen).
Maybe you could try to compare it to the calc's time settings (what time was it before turnng it off, what time is it now)
But that'd make it easy to manipulate your game.
  • Calculators owned: ti-83+, ti-84+, ti-84+, ti-84+se, ti-84+se(te), ti-nsphire, ti-nsphire CX-CAS, ti-voyage, ti-voyage, Who reads this list anyways...?
Anyway war sucks. Just bring us your food instead of missiles  :P ~ DJ Omnimaga (11.10.2016 20:21:48)
if you cant get a jframe set up, draw stuff to it, and receive input, i can only imagine how horrible your game code is _._   ~ c4ooo (14.11.2016 22:44:07)
If they pull a Harambe on me tell my family I love them ~ u/Pwntear37d (AssangeWatch /r/)
make Walrii great again ~ DJ Omnimaga (28.11.2016 23:01:31)
God invented the pc, satan the smartphone I guess ~ p4nix (16.02.2017 22:51:49)

Offline lazydogP

  • New User
  • Join Date: Oct 2016
  • Location:
  • Posts: 16
  • Post Rating Ratio: +0/-0
    • View Profile
Maybe you could try to compare it to the calc's time settings (what time was it before turnng it off, what time is it now)
But that'd make it easy to manipulate your game.
Yeah. It's better to use this if time is so long. However, some animations need timer and timer is freezed, so the game seems stopped but if you refresh the screen manually (eg. switch to home page and come back, switch to another tab(TI calls it 'problem') or just press 'Doc' key), the new content can be shown.
  • Calculators owned: TI-Nspire CX CAS(used most often), Casio fx-9860GII SD, TI-Nspire CAS with Touchpad, Casio fx-991CN X, Casio fx-82MS, HP 39GS(rarely used)
Need to buy more calculators.
Busy with study but trying to come here every day.

Offline DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18271
  • Post Rating Ratio: +91/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Hm, maybe @Adriweb  might know
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Offline Adriweb

  • Full User
  • CodeWalrus Supporter
  • *
  • Join Date: Jan 2015
  • Location: France & Canada
  • Posts: 400
  • Post Rating Ratio: +7/-0
    • Adriweb
    • @Adriweb
    • Adriweb
    • @UC-UIrbk5SuaUCvnV6SQvt-Q
    • /u/Adriweb
    • Adriweb
    • View Profile
    • TI-Planet.org
  • Gender: Male
Not really, the timer can be an odd thing sometimes.

(Also, a tab is called a 'Page', or more interally 'Activity' IIRC. A 'Problem' is one or more pages together, and defines the scope of a symbol table... (and maybe timers? I don't know about that.))
  • Calculators owned: TI-Nspire CX CAS, TI-Nspire CX, TI-Nspire CAS (x3), TI-Nspire (x2), TI-Nspire CM-C CAS, TI-Nspire CAS+, TI-80, TI-82 Stats.fr, TI-82 Plus, TI-83 Plus, TI-83 Plus.fr USB, TI-84+, TI-84+ Pocket SE, TI-84+ C Silver Edition, TI-84 Plus CE, TI-89 Titanium, TI-86, TI-Voyage 200, TI-Collège Plus, TI-Collège Plus Solaire, 3 HP, some Casios
Co-founder & co-administrator of TI-Planet and Inspired-Lua

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games