Omnimaga

Calculator Community => TI Calculators => TI-BASIC => Topic started by: Gale on March 16, 2010, 05:04:11 pm

Title: Copy/Paste Programs
Post by: Gale on March 16, 2010, 05:04:11 pm
how do you copy a string of commands (a program) from one program to another?

i tried using a string, but it didn't work. because i have several programs i would like to combine together for memory reasons and just for convenience.
Title: Re: Copy/Paste Programs
Post by: ztrumpet on March 16, 2010, 05:05:48 pm
Go into one program, and press:
2nd
Sto>
Prgm
< (That's the left arrow)
Find your program
Press Enter

That should Rcl the contents of one program into another.  If you need help, just ask. :)  Good luck!
Title: Re: Copy/Paste Programs
Post by: Gale on March 16, 2010, 05:20:48 pm
it worked :) thank you!
Title: Re: Copy/Paste Programs
Post by: ztrumpet on March 16, 2010, 05:22:27 pm
Yay, I'm glad it worked!  You can use Rcl for other things too.  I use it a lot to get strings into my programs. :)  I also debug with it, to find the value of a variable without leaving the program editor.  :D

I'm glad it worked for you. ;D
Title: Re: Copy/Paste Programs
Post by: SirCmpwn on March 16, 2010, 05:27:27 pm
I also debug with it, to find the value of a variable without leaving the program editor.

I do the exact same thing all the time.
Title: Re: Copy/Paste Programs
Post by: rthprog on March 16, 2010, 09:44:23 pm
Same.

I also use it to recall character maps (as in a string within a program with most of the "special" characters) and XTRAVAR variables
Title: Re: Copy/Paste Programs
Post by: Geekboy1011 on March 16, 2010, 10:47:23 pm
oh wow never thought of using RCL for that thats a great idea i just normally remeber where i am in the code and then remebre the vars when i go to debug X.x
Title: Re: Copy/Paste Programs
Post by: DJ Omnimaga on March 16, 2010, 11:08:05 pm
Yeah very useful indeed.

Another solution is to group your programs then when ungrouping, rename duplicates, but that takes longer.
Title: Re: Copy/Paste Programs
Post by: cooliojazz on March 16, 2010, 11:10:24 pm
That method could be useful for locked programs that your too lazy to go look up other ways to rename them. :P CoolioJazz goes off to use this new-found method...
Title: Re: Copy/Paste Programs
Post by: DJ Omnimaga on March 17, 2010, 01:00:04 am
Oh, for locked programs, you actually need to install MirageOs and run it, else you can't rename locked programs. Running MirageOs once seems to allow renaming them, for some reasons, or at least, it did in MirageOs 1.1. If it was actually a bug, maybe it was fixed in 1.2 x.x

It's one of these not-so-known MirageOs tricks
Title: Re: Copy/Paste Programs
Post by: cooliojazz on March 17, 2010, 09:31:54 am
But, like I wanted to re-name the asmLOL program form axe, which does not show up in mirage (Yes I know you can make it, but i'm not) :P
Title: Re: Copy/Paste Programs
Post by: DJ Omnimaga on March 17, 2010, 02:04:28 pm
I think you can still rename it if grouping it then rename it. You don't rename it in Mirage, but from the ungroup menu.

EDIT: Nvm this only works in MirageOs 1.1 or lower.
Title: Re: Copy/Paste Programs
Post by: Deep Toaster on May 28, 2010, 03:45:21 pm
Yeah very useful indeed.

Another solution is to group your programs then when ungrouping, rename duplicates, but that takes longer.

I've done that before, and for longer programs, it takes a lot less time (especially if you want to copy a 10K program). Doesn't it hurt the flash chip, though?
Title: Re: Copy/Paste Programs
Post by: DJ Omnimaga on May 28, 2010, 11:30:29 pm
I think after 100000 or 200000 flash chip writes it wears off, but so far we only heard about one person who had this happen since the first flash calcs came out in 1998 and it was Drummist (the pure BASIC contest winner). I guess it shouldn't be too bad if you don't need to duplicate programs way too often.

That said, garbage collecting every few minutes can drain battery power a lot, though. To play through ROL2 you had to go through 2 sets of AAAs to beat the game (I still wish I knew about Flash Gordon or that XCOPY was out when I made that game...)
Title: Re: Copy/Paste Programs
Post by: Deep Toaster on May 29, 2010, 12:02:39 am
Before I learned what archiving does to the flash chip, I thought the Garbage collecting... message was fun to get, so I purposely archived and unarchived my 20KB program repeatedly just to see it. I ended up having dozens of full garbage collects every few days.

Ah, stupidity.

I think after 100000 or 200000 flash chip writes it wears off, but so far we only heard about one person who had this happen since the first flash calcs came out in 1998 and it was Drummist (the pure BASIC contest winner). I guess it shouldn't be too bad if you don't need to duplicate programs way too often.

That said, garbage collecting every few minutes can drain battery power a lot, though. To play through ROL2 you had to go through 2 sets of AAAs to beat the game (I still wish I knew about Flash Gordon or that XCOPY was out when I made that game...)

What's ROL2? And what happened to Drummist's calculator? Does it simply not work anymore?
Title: Re: Copy/Paste Programs
Post by: meishe91 on May 29, 2010, 12:15:24 am
ROL2 is DJ's Reign of Legends 2 (http://www.omnimaga.org/index.php?action=downloads;sa=view;down=207) game. Can't answer the other two questions, sorry.
Title: Re: Copy/Paste Programs
Post by: DJ Omnimaga on May 29, 2010, 12:31:09 am
Oh wow don't remind me about my first Garbage Collect message XD

The first time ever, I got scared. The word Garbage seemed like it was to delete the entire calc content. I went to check the manual immediately to make sure. :P

As for drummist calculator, I don't remember if it works anymore. If you can find the old contest poll topic, I think he mentionned about it, but it was several months ago.

ROL2 is The Reign Of Legends 2, one of my old calculator RPG
. The 3rd game was featured on ticalc.org (http://www.ticalc.org/archives/news/articles/11/119/119577.html), because it had better graphics, but it's much shorter and less complete than ROL2. Here are ROL2 problems, though:

-It was coded during Summer 2003. Back in 2003, when you did not close quotes and parhentesises, you were considered as a TI-BASIC god. Using special chars not accessible normally in BASIC made you look cool, Text(-1 was nearly a secret and nobody knew that Lbl/Gotos caused memory leaks when exiting a block/loop with them. In other words, back in 2003, such game was considered as coding mastepiece, but since TI|BD opened, it's scary to look at the code. This also means: prepare for some ERR:MEMORYs.
-Back in 2003, Kevtiva shutted down and never uploaded Flash Gordon on ticalc.org. No one knew FFTOM2 (Final Fantasy 2: Tales Of Magic) included a copy. Back then, FG was the only utility that allowed BASIC programmers to copy archived programs to temporary RAM files.
-United-TI had 5000 posts and still had a calc-related horror stories sub-forum.

One of these days, that game will need a rewrite and a new translation. I don't know about changing graphics, though.
Title: Re: Copy/Paste Programs
Post by: Deep Toaster on May 29, 2010, 02:18:10 am
Oh wow don't remind me about my first Garbage Collect message XD

The first time ever, I got scared. The word Garbage seemed like it was to delete the entire calc content. I went to check the manual immediately to make sure. :P

As for drummist calculator, I don't remember if it works anymore. If you can find the old contest poll topic, I think he mentionned about it, but it was several months ago.

ROL2 is The Reign Of Legends 2, one of my old calculator RPG
. The 3rd game was featured on ticalc.org (http://www.ticalc.org/archives/news/articles/11/119/119577.html), because it had better graphics, but it's much shorter and less complete than ROL2. Here are ROL2 problems, though:

-It was coded during Summer 2003. Back in 2003, when you did not close quotes and parhentesises, you were considered as a TI-BASIC god. Using special chars not accessible normally in BASIC made you look cool, Text(-1 was nearly a secret and nobody knew that Lbl/Gotos caused memory leaks when exiting a block/loop with them. In other words, back in 2003, such game was considered as coding mastepiece, but since TI|BD opened, it's scary to look at the code. This also means: prepare for some ERR:MEMORYs.
-Back in 2003, Kevtiva shutted down and never uploaded Flash Gordon on ticalc.org. No one knew FFTOM2 (Final Fantasy 2: Tales Of Magic) included a copy. Back then, FG was the only utility that allowed BASIC programmers to copy archived programs to temporary RAM files.
-United-TI had 5000 posts and still had a calc-related horror stories sub-forum.

One of these days, that game will need a rewrite and a new translation. I don't know about changing graphics, though.

Ah, found it: http://ourl.ca/36525 (http://ourl.ca/36525).
Title: Re: Copy/Paste Programs
Post by: DJ Omnimaga on May 29, 2010, 02:27:19 am
Yeah that one

I admit, I was very shocked when I saw his post.

Trust me, in almost 9 years into calc stuff (I started calc stuff on July 4th 2001), Drummist post was the first time I ever read or hear about someone who managed to wear out his Flash ROM. And given that my 83+ got through extreme usage around 2001-05, I am surprised my calc flash ROMs still work fine.

Most people said that it should take something like 20-30 years to wear it out.
Title: Re: Copy/Paste Programs
Post by: ztrumpet on May 31, 2010, 03:14:53 pm
Oh wow don't remind me about my first Garbage Collect message XD
The first time I saw it I ended up deleting the programs I had unarchived so I didn't have to Garbage Collect.  It sounded like such a bad thing...  I think after I realized that my calc would never work the same again I tried it.  Then my calc worked! ;D