• External Vars Tutorial 5 1
Currently:  

Author Topic: External Vars Tutorial  (Read 11297 times)

0 Members and 1 Guest are viewing this topic.

Offline Elsewhere

  • LV2 Member (Next: 40)
  • **
  • Posts: 26
  • Rating: +5/-1
    • View Profile
Re: External Vars Tutorial
« Reply #30 on: February 21, 2011, 04:42:56 pm »
Ah, thanks!

I initially did, but then I put it on pastebin and that messed it up (gave me "appv" in small letters). So, there's a problem solved!

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55847
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: External Vars Tutorial
« Reply #31 on: June 14, 2011, 03:36:14 pm »
Update: Got rid of spoilers so this shows up properly in the tutorials section.
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



Official Website |T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: External Vars Tutorial
« Reply #32 on: July 17, 2011, 08:25:40 am »
If you simply want to read data from an archived appvar, then you could copy it to a file.

GetCalc("appvAPPVAR",File)

Where File is the token for a Y-Var (Y0-Y9).

Once the appvar is copied to a file, you can read from it like a pointer.

GetCalc("appvAPPVAR",Y0)
{Y0}→A


This would store the first byte of your appvar to the pointer A.

Only two three questions for me ;D
Does the copying work if the appvar is huge (like 10325 bytes) ?
Is the file automatically removed at the end of the program ?
How many RAM of files do we dispose of (if I want a lot of huge files) ?
« Last Edit: July 17, 2011, 09:57:21 am by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline FinaleTI

  • Believe in the pony that believes in you!
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1830
  • Rating: +121/-2
  • Believe in the pony that believes in you!
    • View Profile
    • dmuckerman.tumblr.com
Re: External Vars Tutorial
« Reply #33 on: July 17, 2011, 11:34:45 am »
Copying will work for virtually any size, you just need to make sure that you have enough RAM for the destination you're copying to.

Files, if I'm not mistaken, are pointers to variables in flash, so you have no need to worry about removing them.

Files shouldn't affect your RAM unless you need to copy something from them to RAM. I believe the size limit for a file is somewhere around 39000 bytes, but I could be wrong.


Spoiler For Projects:

My projects haven't been worked on in a while, so they're all on hiatus for the time being. I do hope to eventually return to them in some form or another...

Spoiler For Pokemon TI:
Axe port of Pokemon Red/Blue to the 83+/84+ family. On hold.

Spoiler For Nostalgia:
My big personal project, an original RPG about dimensional travel and a few heroes tasked with saving the world.
Coding-wise, on hold, but I am re-working the story.

Spoiler For Finale's Super Insane Tunnel Pack of Doom:
I will be combining Blur and Collision Course into a single gamepack. On hold.

Spoiler For Nostalgia Origins: Sky's Story:
Prequel to Nostalgia. On hold, especially while the story is re-worked.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: External Vars Tutorial
« Reply #34 on: July 17, 2011, 01:42:52 pm »
Ok, thank you :)
By the way, this is a great tutorial :thumbsup:
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline FinaleTI

  • Believe in the pony that believes in you!
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1830
  • Rating: +121/-2
  • Believe in the pony that believes in you!
    • View Profile
    • dmuckerman.tumblr.com
Re: External Vars Tutorial
« Reply #35 on: July 17, 2011, 02:17:35 pm »
Thanks.

I just added a bit more. The tutorial now also touches on accessing strings, and I began a section on utilizing hacked variables.


Spoiler For Projects:

My projects haven't been worked on in a while, so they're all on hiatus for the time being. I do hope to eventually return to them in some form or another...

Spoiler For Pokemon TI:
Axe port of Pokemon Red/Blue to the 83+/84+ family. On hold.

Spoiler For Nostalgia:
My big personal project, an original RPG about dimensional travel and a few heroes tasked with saving the world.
Coding-wise, on hold, but I am re-working the story.

Spoiler For Finale's Super Insane Tunnel Pack of Doom:
I will be combining Blur and Collision Course into a single gamepack. On hold.

Spoiler For Nostalgia Origins: Sky's Story:
Prequel to Nostalgia. On hold, especially while the story is re-worked.

Offline Ft.lou

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 6
  • Rating: +0/-0
    • View Profile
Re: External Vars Tutorial
« Reply #36 on: June 20, 2013, 08:44:11 am »
nice!
It's clear now :-)