Author Topic: Program Copy Routine  (Read 7493 times)

0 Members and 3 Guests are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Program Copy Routine
« Reply #15 on: April 07, 2009, 12:48:29 pm »
Yeah. I always wanted to make one more pure basic game and I did a lot back then, but while you can still do cool stuff with no ASM memory always become an issue, because TI decided that it would be better to disable Archive/Unarchive for programs inside programs. I never understood why they didn't at least let it enabled except when you try archiving a program from itself. If it wasn't for this, The Reign Of Legends 1 would be in pure BASIC

Offline Galandros

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1140
  • Rating: +42/-10
    • View Profile
Re: Program Copy Routine
« Reply #16 on: April 07, 2009, 02:04:22 pm »
Yeah. I always wanted to make one more pure basic game and I did a lot back then, but while you can still do cool stuff with no ASM memory always become an issue, because TI decided that it would be better to disable Archive/Unarchive for programs inside programs. I never understood why they didn't at least let it enabled except when you try archiving a program from itself. If it wasn't for this, The Reign Of Legends 1 would be in pure BASIC
You can execute Archive to archive programs in the home screen...

If you see in TI-BD asm hex there is a hack in flag, iirr, that allow to use Archive command to actually archive programs. That can be considered the most pure massive BASIC games xD
The only issue is that you ought to disable it after using the archive command...
Hobbing in calculator projects.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Program Copy Routine
« Reply #17 on: April 08, 2009, 01:34:37 am »
Galandros, I was talking about inside BASIC programs. Plus, using hex immediately makes the game not pure BASIC. By pure BASIC people really means that there's 0 bytes of ASM code included with the entire game when you release it.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Program Copy Routine
« Reply #18 on: April 08, 2009, 10:13:51 am »
First bug report:

It appears the program has trouble copying programs that contains tokens that are only useable by TI-BASIC programmers on later OSes, such as %, $, #, |, _, the black arrows. When trying to copy such program, either part of the beginning code will be truncated or it will be replaced with random stuff such as RegEx. I use these characters a lot in strings, so it could be a serious issue. I am uncertain if this bug is related directly to these characters but I didn't got able to reproduce it on other files yet. Basically the copied program is corrupted. Since it's locked I had to use CODEX to unlock it to view the content, and could see the difference compared to the original file. All readme instructions followed.

EDIT: Confirmed that it only occurs with programs containing such characters early in it. I'M unsure why this happens, but this only happened with two specific files (two programs containing just strings loaded based on ifs E=a number)

EDIT 2(at least the prgm doesn,t seems signifiantly much slower than RESOURCE, even if I need to run it twice (once for deleting the prgm then another time to copy another)

EDIT 3: Attached to this post is a screenshot of the program code in TI-BASIC editor. Since I couldn't get the files with such characters to send on wabbitemu (until I reinstalled TI-Connect) I used my digital cam for now
Ok iambian, the corrupted copied program bug is happening again now, but this time with the menu program of my RPG. From the beginning until half of a string being stored into Ans, it's fine, but the rest of the program is corrupted afterward (I would say about 3000 bytes of corrupted code). This didn't happen until I decided to have the string be stored before the menu appears instead of displaying it directly in a Output( (which caused a lag during the menu)

Offline Iambian

  • Coder Of Tomorrow
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 739
  • Rating: +216/-3
  • Cherry Flavoured Nommer of Fishies
    • View Profile
Re: Program Copy Routine
« Reply #19 on: April 08, 2009, 07:15:34 pm »
That sounds symptomatic of an incorrect FlashROM page boundary handler.

Yeah, yeah, yeah. Fancy talk. The update in this post *should* fix it. No other changes were needed, and the file size remains the same. Enjoy.

( on another note, why the hell do I need to keep retrying the SAME THING over and over again? What's wrong with me!? I mean, this is up to version 1.06! Bah, betaware. )
A Cherry-Flavored Iambian draws near... what do you do? ...

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Program Copy Routine
« Reply #20 on: April 08, 2009, 07:35:45 pm »
wow alerady an update. I'll try this one. I guess it was prbly another incorrect flash rom page boundary handler, since the first 500 bytes or so of code stayed intact. Gonna install now (and do another backup of the game on  computer in the meantime, instead of just on my nspire)

EDIT: Ok it works now ^^
« Last Edit: April 08, 2009, 09:24:05 pm by DJ Omnimaga »