Author Topic: Need Help Extracting Programs  (Read 9219 times)

0 Members and 1 Guest are viewing this topic.

Offline ACagliano

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 919
  • Rating: +32/-2
    • View Profile
    • ClrHome Productions
Need Help Extracting Programs
« on: June 09, 2010, 02:28:55 pm »
Hi guys. I'm back again and about to start a new project, I'm trying to design a Chemistry Suite, composed of a bunch of programs to solve different problems in molecular chemistry. Each topic will be a different program and they will all be compiled into a group. I then want to have one main program with a list of all included functions. You select a function, and the main program extracts the sub-routine that corresponds to it from the group and runs it (my initial thought was to use Celtic 3 for this), then deletes it once the sub-routine is exited. This would significantly save memory space while using the Suite.

The dilemma: What if Celtic3 gets deleted? How could I code an error message? How could I even check whether Celtic3 exists without some sort of asm routine or outside asm library?

The solutions I'm considering:
1. Using Axe (but Axe can't extract files from groups (yet)?)
2. Using assembly (I don't know enough of assembly to write the entire main program)

Any ideas? My only specification is that I really only want ONE main program that will extract the sub-routines from the group, no extra assembly routines, as they will also cause errors if they get deleted. I want to eliminate as much potential error as possible.

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: Need Help Extracting Programs
« Reply #1 on: June 09, 2010, 02:33:59 pm »
Heya, nice to see you back. I was kinda worried you ditched calculator stuff completly. Sadly I can't help much, though, because I did not get very far into chemistry and I don't know Axe/ASM enough yet (plus Axe won't support extracting from groups yet), but I wish you good luck for that project

Offline cooliojazz

  • Support Staff
  • LV7 Elite (Next: 700)
  • *******
  • Posts: 619
  • Rating: +66/-9
  • I omnoms on your soul
    • View Profile
    • Unreal Phantasies
Re: Need Help Extracting Programs
« Reply #2 on: June 09, 2010, 02:36:11 pm »
This help?
Quote from: Celtic III ReadMe
You will not be given any visual confirmation that the install took place,
but you will be able to tell by using the following code in a BASIC routine:

 :If det([[1]])
 :Then
 :Disp "CIII NOT INSTALLED"
 :Stop
 :End

 If Celtic III is not installed, the code between Then:End is run. If it is,
then the code is not executed. The reason this works is because Celtic III
catches a 1x1 matrix input into the det( instruction and returns 0. If
Celtic III is not installed, it returns whatever the determinant of a 1x1
matrix is (which is just the number itself).
Spoiler For Random signess:
You can not beat my skills.
Trust me.
So don't even try.
And remember never to trust someone who says, "Trust me."

TI File Editor Progress: Remade in java like a boss. 50% we'll call it? IDK =P
Java Libraries: JIRC - 90% JTIF - 5%
TI Projects: Unreal Notator - -5000%
Nomcraft, a Bukkit mod
Some of the music I write can be found here | The Rest Should Be Here (Bandcamp)

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Need Help Extracting Programs
« Reply #3 on: June 09, 2010, 02:40:15 pm »
If you want, you could even force install CIII using the AINSTALL program that comes with Celtic III. :D
Good luck, and I'm looking forward to it (although I just finished Chem two days ago...) ;D
« Last Edit: June 09, 2010, 02:40:48 pm by ztrumpet »

Offline ACagliano

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 919
  • Rating: +32/-2
    • View Profile
    • ClrHome Productions
Re: Need Help Extracting Programs
« Reply #4 on: June 09, 2010, 02:43:26 pm »
Thank you coolojazz. I never saw that.

And, thanks DJ. I would never abandon calculator programming completely. I'm just slowing down cuz of school and my job.

PS: This is meant to be an extension of my Empirical Formulas Calculator, which, upon you inputting the element name or symbol and a mass of compound present, it returns the Empirical Formula (the molecular formula in simplest whole-num ratio). If anyone would like a download of Empirical Formulas Version 1.0, it can be found below, and at my website, www.c2prgm.webs.com.

Offline ACagliano

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 919
  • Rating: +32/-2
    • View Profile
    • ClrHome Productions
Re: Need Help Extracting Programs
« Reply #5 on: June 10, 2010, 07:07:36 pm »
Sorry to bother you on this topic again. Will using det([[1]]) check if Celtic3 EXISTS ON CALC or just if it is INSTALLED? And, will this work on both the program and app versions of Celtic3?


Edit: Anyone reading this who is familiar with Chemistry and can think of something they would like to see included in this Suite, please post it in this topic.
« Last Edit: June 10, 2010, 07:30:57 pm by ACagliano »

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Need Help Extracting Programs
« Reply #6 on: June 10, 2010, 08:01:46 pm »
It checks to see if it's installed.  Since the program version is no longer being worked on, I'm not sure if it works for it, but I'm sure it works on  the App version. ;D

Offline ACagliano

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 919
  • Rating: +32/-2
    • View Profile
    • ClrHome Productions
Re: Need Help Extracting Programs
« Reply #7 on: June 13, 2010, 04:08:51 pm »
To DJ: I'm ready to have the section on optimization for my game design tutorial done, if you still want to write it. Also, do you know anything about collision-detect and various ways to do 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: Need Help Extracting Programs
« Reply #8 on: June 13, 2010, 11:05:40 pm »
Mhmm I am not sure about this. I did not officially plan to write any tutorial, since I am not really good at it. I doubt I would have the time and motivation to take on such project, to be honest :/ not to mention I plan to start working on an Axe game soon while still managing the site

Offline ACagliano

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 919
  • Rating: +32/-2
    • View Profile
    • ClrHome Productions
Re: Need Help Extracting Programs
« Reply #9 on: June 16, 2010, 10:46:05 am »
Ok. Understandable. But, can someone who has done collision detect please post here, outlining the basic concept and ways of going about it in TI-Basic.

PS: Does anyone know how I can contact the maker of XSnake4 by XPro, to obtain permission to use their source code in my tutorial?

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: Need Help Extracting Programs
« Reply #10 on: June 16, 2010, 01:19:33 pm »
I think Builderboy had a collision detection tutorial somewhere, but I'm not sure anymore. It might have been SirCmpwn or Meishe91. That said there was another one on TI-Freakware at http://tifreakware.net/tutorials/83p/b/tifw/les8.htm If if doesn't help and you cannot find the other tutorials, you should create a new topic asking for one maybe, in case somebody got a tutorial elsewhere or his computer.

As for XSnake4 is his e-mail address available? If no valid contact info is available anymore or he doesn't reply, I'm afraid you're out of luck :S

Offline ACagliano

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 919
  • Rating: +32/-2
    • View Profile
    • ClrHome Productions
Re: Need Help Extracting Programs
« Reply #11 on: June 17, 2010, 01:11:10 pm »
Thanks. As for XSnake, the readme says feel free to use the program however you deem fit, as long as you give credit, so I guess this applies.

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: Need Help Extracting Programs
« Reply #12 on: June 17, 2010, 09:09:06 pm »
Ok so feel free to use it as you wish, in their conditions. Normally that's what we all do when the author states this anyway. It's good when that happens since authors may switch e-mail addresses after a few years

Offline Iambian

  • Coder Of Tomorrow
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 739
  • Rating: +216/-3
  • Cherry Flavoured Nommer of Fishies
    • View Profile
Re: Need Help Extracting Programs
« Reply #13 on: June 17, 2010, 10:42:04 pm »
Sorry to bother you on this topic again. Will using det([[1]]) check if Celtic3 EXISTS ON CALC or just if it is INSTALLED? And, will this work on both the program and app versions of Celtic3?[...]
Sorry for the late response to this. It *is* a little busy on Omnimaga. Which is a good thing. Just hard to keep up with the latest readings.

Using the code supplied in the ReadME, it is only possible to check for the install status of Celtic III's APP version. The ASM (RAM) version of Celtic III cannot be checked for in this manner, as that program does not install hooks of any kind.

I know of no way to check for the existence of a RAM program or APP without some sort of (deletable) ASM utility. The utility, AINSTALL, that is packaged with most releases of Celtic III (found in the "MOREINFO\AINSTALL" subfolder) can only help with the installation of Celtic III APP. Conbined with the code in the ReadME to check for its installation, it is the best way to check whether or not Celtic III is installed on the calculator. It is not bulletproof, since some apps might try to reclaim its own hooks, but it should work well enough for your purposes.

---------------
To answer your main question, the thing might have to be coded in Axe, and only when its creator finds a way to incorporate file opening and reading. After that, it would be in your best interest to research what a group file is composed of. A good tool for some hands-on activity would be Calcsys. Then, you can look into a preexisting group file for yourself and find out exactly how it's composed. Hint: All VAT entries are written "forwards" instead of backwards like in the VAT.
« Last Edit: June 17, 2010, 10:47:55 pm by Iambian »
A Cherry-Flavored Iambian draws near... what do you do? ...

Offline ACagliano

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 919
  • Rating: +32/-2
    • View Profile
    • ClrHome Productions
Re: Need Help Extracting Programs
« Reply #14 on: June 18, 2010, 05:14:43 pm »
Thanks for that Iambian. Since you are the author of Celtic3, I'm gonna ask you before I actually do it. Do you mind if I provide Celtic3 in .8xp/.8xk format with my program (for convenience)(credit given in the readme and in the program's credits section), or would you rather I just provide a link to your upload?