Author Topic: Appvar Detection Question  (Read 6131 times)

0 Members and 1 Guest are viewing this topic.

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Appvar Detection Question
« on: May 20, 2011, 11:19:26 pm »
If I had a level editor and it generated appvar levels of any name, how would I detect which ones are levels for my game and which ones aren't?

I was thinking putting some sort of code at the RAM location, but how would I check through all the appvars on my calculator?
« Last Edit: May 20, 2011, 11:19:44 pm by yunhua98 »

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline Michael_Lee

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1019
  • Rating: +124/-9
    • View Profile
Re: Appvar Detection Question
« Reply #1 on: May 20, 2011, 11:48:06 pm »
Try using Memkit?  (Give each level appvar the same constant value at the front to identify it?)

Create one master appvar (that has a constant name), and every time you create an appvar, put it's name in it, then recalling appvars, reference only the names you have stored away?
My website: Currently boring.

Projects:
Axe Interpreter
   > Core: Done
   > Memory: Need write code to add constants.
   > Graphics: Rewritten.  Needs to integrate sprites with constants.
   > IO: GetKey done.  Need to add mostly homescreen IO stuff.
Croquette:
   > Stomping bugs
   > Internet version: On hold until I can make my website less boring/broken.

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Appvar Detection Question
« Reply #2 on: May 20, 2011, 11:50:12 pm »
well, that's assuming I'm making them all.  This is for a level editor, and I want the people making the levels to have whatever name they want.  I could just make all the levels myself, but I don't want to have to update the program to support the new level pack each time, I want to just be able to release an appvar, and have it work with the game.

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: Appvar Detection Question
« Reply #3 on: May 21, 2011, 12:08:13 am »
I don't know how to do it in Axe, but what you want to do is exactly what Micheal_Lee said, make all your appvars start the same way.

So for example, make all of your appVars start with Yunhua98 or something. In memory it would look like this:

Y, u, n, h, u, a, 9, 8, <level data>.

Then, using some unknown Axe command, you would search through all the appVars and look for appVars that start in that way. Those would be your levels and you would display those names.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline Michael_Lee

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1019
  • Rating: +124/-9
    • View Profile
Re: Appvar Detection Question
« Reply #4 on: May 21, 2011, 12:36:28 am »
well, that's assuming I'm making them all.  This is for a level editor, and I want the people making the levels to have whatever name they want.  I could just make all the levels myself, but I don't want to have to update the program to support the new level pack each time, I want to just be able to release an appvar, and have it work with the game.

You wouldn't edit the master appvar -- the level editor would.  In theory, running either the level editor or the game would create a master appvar, if there isn't one already, and every time somebody uses the editor, the master appvar is automatically edited.

But that wouldn't support importing external levels, so I think using Memkit with thepenguin77's method is best, imo.
My website: Currently boring.

Projects:
Axe Interpreter
   > Core: Done
   > Memory: Need write code to add constants.
   > Graphics: Rewritten.  Needs to integrate sprites with constants.
   > IO: GetKey done.  Need to add mostly homescreen IO stuff.
Croquette:
   > Stomping bugs
   > Internet version: On hold until I can make my website less boring/broken.

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Appvar Detection Question
« Reply #5 on: May 22, 2011, 12:13:19 pm »
I did it without memkit for the Psyche's level system using penguin's method, except I just headed everything with $1337 lol. link to dl in sig.
« Last Edit: May 22, 2011, 12:13:31 pm by squidgetx »

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Appvar Detection Question
« Reply #6 on: May 22, 2011, 07:00:21 pm »
how is the Print Command used?  that is, how do you specify which name(s) to copy?

@squidgetx: how?
« Last Edit: May 22, 2011, 07:01:11 pm by yunhua98 »

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: Appvar Detection Question
« Reply #7 on: May 22, 2011, 08:15:20 pm »
I did it without memkit for the Psyche's level system using penguin's method, except I just headed everything with $1337 lol. link to dl in sig.

That seems a bit risky. I'm sure your not the first person to head files with $1337. ;) Oh well though, if someone happens to ever have a conflict, I'm sure the results will be amusing.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Appvar Detection Question
« Reply #8 on: May 23, 2011, 12:20:57 pm »
how would you search through the headers though?

i.e. where are the appvar names located in RAM?

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Appvar Detection Question
« Reply #9 on: May 23, 2011, 12:55:01 pm »
You would have to search through the VAT yourself, which isn't that hard, but you would have to ask someone more knowledgable than me, I don't remember the memory locations and all that jazz

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Appvar Detection Question
« Reply #10 on: May 23, 2011, 01:04:46 pm »
Memkit? Memkit!
I'm not a nerd but I pretend:

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: Appvar Detection Question
« Reply #11 on: May 23, 2011, 05:40:34 pm »
Here's some interesting and relavent information: http://eeezor.ec3club.tk/Files/Resources/Tutorials/ASMin28Days/lesson/day21.html
Note that pTemp is 982Eh and progPtr is 9830h. :)