Yay for duplicating each other's post
lol, I figured you could get the gist of it, but I also have been using it, so I thought I would just post an answer...
Ok, I understand the commands now!
But how do I actually use it? lol.
Lets say in the beggining of my game, I want to unarchive all other game files: ZGA, ZEN1, ZEN2, ZEN3, ZEN4, ZTOWN1, etc.
How would I do that?
But how do I actually use it? lol.
Lets say in the beggining of my game, I want to unarchive all other game files: ZGA, ZEN1, ZEN2, ZEN3, ZEN4, ZTOWN1, etc.
How would I do that?
It copies the program from Flash ROM and stores it into a TEMP# program. The actual program stays in ROM, to make sure it is safe in case of a RAM clear...
"0ZGA
Asm(prgmRESOURCE
"0ZEN1
Asm(prgmRESOURCE
"0ZEN2
Asm(prgmRESOURCE
"0ZEN3
Asm(prgmRESOURCE
"0ZEN4
Asm(prgmRESOURCE
"0ZEN5
Asm(prgmRESOURCE
"0ZTOWN1
Asm(prgmRESOURCE
ZGA will be prgmTEMP1.
ZEN1 will be prgmTEMP2.
ZEN2 will be prgmTEMP3. etc.
Asm(prgmRESOURCE
"0ZEN1
Asm(prgmRESOURCE
"0ZEN2
Asm(prgmRESOURCE
"0ZEN3
Asm(prgmRESOURCE
"0ZEN4
Asm(prgmRESOURCE
"0ZEN5
Asm(prgmRESOURCE
"0ZTOWN1
Asm(prgmRESOURCE
ZGA will be prgmTEMP1.
ZEN1 will be prgmTEMP2.
ZEN2 will be prgmTEMP3. etc.
Ooooooooh.
So, every time I want to call prgmZGA, I call prgmTEMP1 instead?
As I understood, the number before the [NAME] is the TEMP#. In Kerm's example, he put 0 in front of them all. Is that not the TEMP#? Just the order decides the TEMP#?
So, every time I want to call prgmZGA, I call prgmTEMP1 instead?
As I understood, the number before the [NAME] is the TEMP#. In Kerm's example, he put 0 in front of them all. Is that not the TEMP#? Just the order decides the TEMP#?
:" "
:Asm(prgmRESOURCE
It is giving me a syntax error when it reads that.
EDIT: When I put a close parenthesy around RESOURCE, it gives me a Version error.
Never heard of it...
:Asm(prgmRESOURCE
It is giving me a syntax error when it reads that.
EDIT: When I put a close parenthesy around RESOURCE, it gives me a Version error.
Never heard of it...
No no, it's like this:
:"
:Asm(prgmRESOURCE
Don't put anything after the quote. The second quote was just to show that there was nothing in between.
:"
:Asm(prgmRESOURCE
Don't put anything after the quote. The second quote was just to show that there was nothing in between.
Exactly. The reason you got a resource error was the TI-BASIC parser was misfinding the start/end of the string.
Actually, I put the closing quote there for the same reason, rofl.
The reason it was not working, is because I put the code in one of the Temp files!
Once I took that identical code and placed it in another file, not a Temp, it worked!
Knowing this, I have a question;
Can I define new temps in a temp?
If I do, will it overight TEMP9, or what?
The reason it was not working, is because I put the code in one of the Temp files!
Once I took that identical code and placed it in another file, not a Temp, it worked!
Knowing this, I have a question;
Can I define new temps in a temp?
If I do, will it overight TEMP9, or what?
It will overwrite if you have that many, that is why I recommend that if you do not need it further in the code, then delete that temp program, and try to keep the RAM cleaned up a bit.
See, my map program falls on TEMP9.
If in TEMP1:
"0ZTOWN2
Asm(prgmRESOURCE
Will it make ZTOWN2 TEMP9?
If in TEMP1:
"0ZTOWN2
Asm(prgmRESOURCE
Will it make ZTOWN2 TEMP9?
Because in a way, you are defeating the purpose of RESOURCE, as you might as well have it all unarchived. Regardless as what people say, I have noticed that it lags a little bit when there is less RAM, and more so if there are a lot of files to be cutting through (Though I know that I use a lot of files in my games)
I really recommend that you keep the amount of temp programs that are up at one time down to a minimum...
I really recommend that you keep the amount of temp programs that are up at one time down to a minimum...
Alright!
I have already changed my program with TEMP calls instead of my programs.
As soon as I see it lag, I'll change it back!
I have already changed my program with TEMP calls instead of my programs.
As soon as I see it lag, I'll change it back!
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
» Go to Registration page
» Go to Registration page
Page 8 of 10
» All times are UTC - 5 Hours
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Advertisement