Author Topic: Text Data  (Read 9944 times)

0 Members and 1 Guest are viewing this topic.

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Text Data
« Reply #15 on: June 06, 2011, 11:00:20 am »
@Hayleia
Not quite, you can't read the pointers like that unless all the strings are the same length.  You have to scan the text each time since you don't know how far apart each text entry is from one another.  Text1 is at sub(NTH,0), Text2 is at sub(NTH,1), etc...
« Last Edit: June 06, 2011, 11:01:44 am by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Text Data
« Reply #16 on: June 06, 2011, 11:04:39 am »
AH I UNDERSTOOD !!!! Sorry for being French and for being a noob at non-Basic. In fact, you store a 0 between each words and you just have to count the zeros to find the text you want !!!
Thank you very very much Quigibo, and thanks to the others too.
Edit:
What ? and how do I do to write at X,Y the text located in sub(NTH,1) ?
« Last Edit: June 06, 2011, 11:09:15 am by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Text Data
« Reply #17 on: June 06, 2011, 11:10:13 am »
Text(X,Y,sub(NTH,1)) :)

By the way I edited the NTH routine to make a correction.
« Last Edit: June 06, 2011, 11:11:25 am by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Text Data
« Reply #18 on: June 06, 2011, 11:16:42 am »
I told you I was a noob at non-Basic.
I first thought the answer was Text(X,Y,sub(NTH,1)) but I soon thought "no, it is impossible you idiot (me the idiot not you)". That was forgetting how wonderful was Axe. You made a fantastic work man, it's amazing how it makes the transition between Basic and ASM. Thanks for your hard work, and for your answers. If I finish my game (also have to begin it before), I'll give you credits, and I'll give Omnimaga credits too.
« Last Edit: June 06, 2011, 12:51:28 pm by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Text Data
« Reply #19 on: June 06, 2011, 01:02:18 pm »
Quote from: Aichi
The TI OS doesn't support that much pointers, but Axe Parser does. You can use Gbd08A as a pointer for example.

The random color is generated through PHP. :)

You're still limited to (I think) around 150 pointers though. It's the max that Axe can keep track of.

And off-topic: Is each color in a separate image or does the script itself tell you what color to add?




Offline Aichi

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 290
  • Rating: +76/-3
    • View Profile
    • Devrays
Re: Text Data
« Reply #20 on: June 06, 2011, 01:18:52 pm »
And off-topic: Is each color in a separate image or does the script itself tell you what color to add?

There are about 12 pre-recolored pictures. PHP randomly picks one of them.
Recoloring directly through PHP would be quite awkward.