Omnimaga

Calculator Community => TI Calculators => TI-BASIC => Topic started by: Eeems on January 21, 2010, 04:27:42 pm

Title: Background tasks
Post by: Eeems on January 21, 2010, 04:27:42 pm
I have been working on a subroutine that you call and all it does is run registered subroutines kind of like interrupts and its relatively snappy. It stores all the names of the running "tasks" to a program ( ':' delimited) and then runs them (using my smart run method (stores prgm<program name> to a temp program and runs it)). This would be good for key-press interrupts and background tasks like key loggers and such. it would be good for something like a windows shell or something. I'm thinking of rebooting the CCI SHELL with it :P
Title: Re: Background tasks
Post by: DJ Omnimaga on January 21, 2010, 06:06:49 pm
that might be a good idea actually. Could such background task routine also be used for example in a RPG to fill ATB gauges while attacks are occuring to help RPG battles become more real time than turn-based?
Title: Re: Background tasks
Post by: Eeems on January 21, 2010, 06:08:42 pm
yeah it could, it could also help with quitting out of a game back into a shell if you set it up right. I plan to do something like what rthprog has done with darkfire (cemetech) with this.
Title: Re: Background tasks
Post by: DJ Omnimaga on January 21, 2010, 06:30:13 pm
Aaaah ok. I didn't check teh Darkfire thing much yet
Title: Re: Background tasks
Post by: Geekboy1011 on January 21, 2010, 06:38:03 pm
hmm maby i could use it to simplify the ai in my game XD 

this way i dont need to code a ridiculous routine set for it to make it run semi fast XD
Title: Re: Background tasks
Post by: Eeems on January 21, 2010, 07:10:30 pm
lol, although this would be a bit slower then hard coding it geekboy...but it's good if you don't have the same programs running all the time and you want to only run what has been put in...

@DJ: well he hasn't posted much, but it looks epic. He has posted more on twitter but that's all...
Title: Re: Background tasks
Post by: TIfanx1999 on January 21, 2010, 07:18:56 pm
So, what are using to write this?
Title: Re: Background tasks
Post by: Eeems on January 21, 2010, 07:24:11 pm
Celtic III app
and my school calc
Title: Re: Background tasks
Post by: Geekboy1011 on January 21, 2010, 07:26:45 pm
hmm well idk exactly how the ai is gonna be handled but i will need to be very prioritized/only run what it needs to so depending on your handeling routine iit might work very nice or it may not work at all X.x
Title: Re: Background tasks
Post by: TIfanx1999 on January 21, 2010, 07:30:13 pm
I figured it had to be celtic III. This sounds pretty interesting. I'd like to hear more details about it. =)
Title: Re: Background tasks
Post by: Eeems on January 21, 2010, 07:32:27 pm
ok, well when I finish it I'll send it to you as soon as I can.
Title: Re: Background tasks
Post by: ztrumpet on January 21, 2010, 09:11:01 pm
Sounds nice!  I'm glad you're coding a project again, even if it's for only 10 minutes a day.

Do you get your calc back this week?
Title: Re: Background tasks
Post by: Eeems on January 21, 2010, 10:16:55 pm
Well I have been working on the GUI for the SAD on calc campaign designer for a while. Hopefully I will.