Author Topic: Background tasks  (Read 3665 times)

0 Members and 1 Guest are viewing this topic.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Background tasks
« 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
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Background tasks
« Reply #1 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?

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Background tasks
« Reply #2 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.
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Background tasks
« Reply #3 on: January 21, 2010, 06:30:13 pm »
Aaaah ok. I didn't check teh Darkfire thing much yet

Offline Geekboy1011

  • The Oneironaut
  • Donator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2031
  • Rating: +119/-2
  • Dream that Awakening dream
    • View Profile
Re: Background tasks
« Reply #4 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

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Background tasks
« Reply #5 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...
/e

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Background tasks
« Reply #6 on: January 21, 2010, 07:18:56 pm »
So, what are using to write this?

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Background tasks
« Reply #7 on: January 21, 2010, 07:24:11 pm »
Celtic III app
and my school calc
/e

Offline Geekboy1011

  • The Oneironaut
  • Donator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2031
  • Rating: +119/-2
  • Dream that Awakening dream
    • View Profile
Re: Background tasks
« Reply #8 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

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: Background tasks
« Reply #9 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. =)

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Background tasks
« Reply #10 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.
/e

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: Background tasks
« Reply #11 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?

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Background tasks
« Reply #12 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.
/e