Author Topic: Standard RPG Game  (Read 16200 times)

0 Members and 1 Guest are viewing this topic.

Offline coops

  • LV3 Member (Next: 100)
  • ***
  • Posts: 58
  • Rating: +3/-0
    • View Profile
Re: Standard RPG Game
« Reply #30 on: September 29, 2016, 03:39:51 pm »
Quote
You should be able to read the archived appvar into somewhere in memory and just use it that way.

Ya, I've just never written/read from an app variable before, so I'm not sure what to expect. Is there any good tutorials on how to do it, or an example so I know what it would look like?

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Standard RPG Game
« Reply #31 on: October 03, 2016, 01:13:26 pm »
Quote
You should be able to read the archived appvar into somewhere in memory and just use it that way.

Ya, I've just never written/read from an app variable before, so I'm not sure what to expect. Is there any good tutorials on how to do it, or an example so I know what it would look like?
Well you'd want to use the VAT to find out where it's stored, and then read from there: http://ourl.ca/9291/176449 http://t.eeems.ca/ASMin28Days/lesson/day21.html
As for tutorials/examples for working specifically with appvars, I don't have any offhand sorry :(
/e

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Standard RPG Game
« Reply #32 on: October 03, 2016, 01:25:10 pm »
Actually you don't have to parse the VAT yourself, there are bcalls for that. The one you are looking for is ChkFindSym.
For creating an appvar you need CreateAppVar
And for archiving / unarchiving you need Arc_Unarc

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Standard RPG Game
« Reply #33 on: October 03, 2016, 01:32:07 pm »
Actually you don't have to parse the VAT yourself, there are bcalls for that. The one you are looking for is ChkFindSym.
For creating an appvar you need CreateAppVar
And for archiving / unarchiving you need Arc_Unarc
He's asking about reading an appvar from the archive without unarchiving it. So, for when you are just using it for static data.
/e

Offline coops

  • LV3 Member (Next: 100)
  • ***
  • Posts: 58
  • Rating: +3/-0
    • View Profile
Re: Standard RPG Game
« Reply #34 on: October 03, 2016, 08:09:55 pm »
Quote
He's asking about reading an appvar from the archive without unarchiving it. So, for when you are just using it for static data.

That's exactly right. I just figured since the sprite data isn't being manipulated, just referenced, that there would be an easy way to put that data into another spot, like an app variable, and just read from it. It seemed to me that you can read archived app variables.
If this is the case, I could add a lot more sprites and map tiles.

I'll try to follow the tutorial Eeems sent me, but I thought there was a more simpler way...I thought there was a command in axe, GetCalc(PTR,FILE), that could create appvariables. I was thinking of making a separate axe program that would write all the sprite data into an appvar, then read from that separate appvar in my main zelda program...but I dont know too much about this...