Author Topic: External level support?  (Read 13310 times)

0 Members and 2 Guests are viewing this topic.

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
External level support?
« on: June 14, 2010, 10:37:35 am »
Okay.

This has been alluded to before in another topic, but I need to understand.
How exactly would one get external data from another program?
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







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: External level support?
« Reply #1 on: June 14, 2010, 10:40:57 am »
I'm pretty sure you need to use the GetCalc( function. :)

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: External level support?
« Reply #2 on: June 14, 2010, 10:44:49 am »
Then, use the {PTR+OFFSET} to get the data?
How do you type that data out in the level file?
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







SirCmpwn

  • Guest
Re: External level support?
« Reply #3 on: June 14, 2010, 10:55:06 am »
Well, the way I do it is to make the level data that is stored in your source code stored in a separate AppVar, then load the pointer into your program and display that one instead of the level stored in the source code.

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: External level support?
« Reply #4 on: June 14, 2010, 11:20:25 am »
Wait. Wait. Wait.

Are you implying that Axe can use SMC? :D :D

Explain.
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







SirCmpwn

  • Guest
Re: External level support?
« Reply #5 on: June 14, 2010, 11:23:54 am »
A) Axe can use SMC
B) No, that is not what I'm talking about.
Normally for levels, you would have the data embedded in the source code, like a tilemap, right?  Well, just embed a tilemap in an appvar and open the appvar in your program.  Point your tilemapper to the appvar instead of the original tilemap.  For instance, if a tilemap is stored internally in GDB1, and you open an appvar containing a tilemap and point to it with {P}, then tell your tilemapper to draw {P} instead of {GDB1}.

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: External level support?
« Reply #6 on: June 14, 2010, 11:25:27 am »
WOW! I didn't know you can do that! Thanks!
« Last Edit: June 14, 2010, 11:25:40 am by Raylin »
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







SirCmpwn

  • Guest
Re: External level support?
« Reply #7 on: June 14, 2010, 11:26:22 am »
Sure.

Offline Raylin

  • Godslayer
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1392
  • Rating: +83/-25
  • I am a certifiable squirrel ninja.
    • View Profile
    • Ray M. Perry
Re: External level support?
« Reply #8 on: June 14, 2010, 11:30:31 am »
I still have one more question though...

How does the data in the appvar look? How is it accessed? Could I store things like text and such inside?
I ask because I was thinking of making a large RPG and I need to store chapters of the game on one calc. They all won't fit in RAM.
Bug me about my book.

Sarah: TI-83 Plus Silver Edition [OS 1.19]
Cassie: TI-86 [OS 1.XX]
Elizabeth: TI-81 [OS 1.XX]
Jehuty: TI-83 Plus Silver Edition [OS 1.19]
Tesla: CASIO Prizm







SirCmpwn

  • Guest
Re: External level support?
« Reply #9 on: June 14, 2010, 11:33:17 am »
Well, it is accessed with GetCalc(.  Read up some documentation about that.  You can write textual data using the program editor in TIOS, and convert it to an AppVar with CalcSys or one of many other utilities.  You can write hex data or maps using CalcSys or Axe.

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: External level support?
« Reply #10 on: June 14, 2010, 11:55:08 am »
An AppVar looks just like a program only it's meant for data storage rather than to be executed.  In Axe you're mainly looking at numbers, so it's easiest to put numbers in the AppVar.  (imho) :)
Good luck. :D

SirCmpwn

  • Guest
Re: External level support?
« Reply #11 on: June 14, 2010, 12:16:07 pm »
This is actually a pretty good topic for the guide, I should include this.

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: External level support?
« Reply #12 on: June 14, 2010, 01:20:38 pm »
I assume the appvar will most likely look like garbage if you convert it to program (for example with Cooliojazz shell or using Celtic III) then unlock it, so you won't be able to edit it like BASIC. You will need to make some sort of map editor (something I failed at, prbly due to all the scrolling and stuff) to update your levels.

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: External level support?
« Reply #13 on: June 14, 2010, 04:40:23 pm »
If the AppVar used data in the form of BASIC tokens, editing using the BASIC program editor could be possible...

But then, it'd be somewhat awkward editing maps using a program editor.




SirCmpwn

  • Guest
Re: External level support?
« Reply #14 on: June 14, 2010, 06:44:58 pm »
Quote from: DJ Omnimaga
I assume the appvar will most likely look like garbage if you convert it to program (for example with Cooliojazz shell or using Celtic III) then unlock it, so you won't be able to edit it like BASIC. You will need to make some sort of map editor (something I failed at, prbly due to all the scrolling and stuff) to update your levels.
Well, textual AppVars could be opened with the TIOS program editor just fine.  Maps, on the other hand, wouldn't open too well.