Author Topic: A few PAR codes submitted by chakrafire  (Read 7102 times)

justin3009

  • Fan Project Leader
  • God of War (+3000)
  • *
  • Posts: 3296
    • View Profile
Re: A few PAR codes submitted by chakrafire
« Reply #45 on: January 12, 2008, 08:14:34 pm »
Targeting healing blind etc...Someone posted this ages ago.

Edit: do you by chance have a hotmail or AIM that we could continue this convo over.  I think we should get as much stuff settled then post it all at once for people to mess with.

FaustWolf

  • Guru of Time Emeritus
  • Arbiter (+8000)
  • *
  • Posts: 8972
  • Fan Power Advocate
    • View Profile
Re: A few PAR codes submitted by chakrafire
« Reply #46 on: January 12, 2008, 09:16:09 pm »
Hey Justin, in my unheadered ROM the tech MP cost begins at xC253C. Were you exploring in a headered ROM when you took down that notation by any chance?

If that's the case, DON'T worry about redoing all your notation. It will be best to develop a simple mathematical equation that, coupled with a list of techs, will allow folks to calculate where in the ROM the desired info begins.
« Last Edit: January 12, 2008, 09:17:54 pm by FaustWolf »

justin3009

  • Fan Project Leader
  • God of War (+3000)
  • *
  • Posts: 3296
    • View Profile
Re: A few PAR codes submitted by chakrafire
« Reply #47 on: January 12, 2008, 09:17:40 pm »
I never took it down, someone posted it on the forums.  They might have but...I'm not sure.

Edit: yea that's headered, just remove 200 bytes from it starting at C253C

FaustWolf

  • Guru of Time Emeritus
  • Arbiter (+8000)
  • *
  • Posts: 8972
  • Fan Power Advocate
    • View Profile
Re: A few PAR codes submitted by chakrafire
« Reply #48 on: January 12, 2008, 09:20:29 pm »
Alrighty, very good. Yes, they were definitely taking that down with a headered ROM methinks. That's where any discrepancies between your notes and mine are originating; it will be best to convert everything to unheadered notation, since anyone working with tech hacking will probably be interested in modifying other aspects of the ROM, for which headers will have to be erased anyway. I can quickly detect the discrepancy and adjust if need be, so don't worry about that aspect if it crops up in your notes.

FaustWolf

  • Guru of Time Emeritus
  • Arbiter (+8000)
  • *
  • Posts: 8972
  • Fan Power Advocate
    • View Profile
Re: A few PAR codes submitted by chakrafire
« Reply #49 on: January 12, 2008, 09:37:45 pm »
I'm stuffing lots of notes from the NA offset guide here that will serve as the basis for the upcoming wiki. There's some MP cost and tech notes already; we'll work on filling in the gaps in these notes (but including MP cost, etc):


0C0000   0C022F   DATA   N   Character stats   2003.05.20
0C0230   0C0236   DATA   N   "Tech to learn next (1 byte ea., copied to 7E2830-7E2836)"   2007.06.12
0C023E   0C024C   DATA   N   "Double Techs learned (1 byte ea., copied to 7E283E-7E284C)"   2007.06.12
0C024D   0C0256   DATA   N   "Triple Techs learned (1 byte ea., copied to 7E284D-7E2856)"   2007.06.12
0C0257   0C025B   DATA   N   "Triple Techs w/rocks (1 byte ea., copied to 7E2857-7E285B)"   2007.06.12
0C025C   0C0261   DATA   N   "All $FF, 6 bytes total, unused? (copied to 7E285C-7E2861)"   2007.06.12
0C0262   0C0423   DATA   N   Weapon Stats (5 bytes each)   2003.05.20
0C0424   0C047D   ---   N   UNUSED SPACE (90 bytes)   2003.05.13
0C047E   0C052B   DATA   N   Armor Stats (3 bytes each)   2003.05.20
0C052C   0C05CB   DATA   N   Accessory Stats (4 bytes each)   2003.05.20
0C05CC         N      2003.05.20
0C066C   0C06A3   ---   N   UNUSED SPACE (56 bytes)   2003.05.20
0C06A4   0C0A1B   DATA   N   Item secondary stats (6 bytes each)   2003.05.21
0C0A1C   0C0ABB   DATA   N   Accessory secondary stats (4 bytes each)   2003.05.21
0C0ABC   0C0B5D   DATA   N   Consumable and Key item data (3 bytes each)   2003.05.21
0C0B5E   0C15CE   TXT   N   Item names (11 bytes each)   2004.04.28
0C15CF   0C1ACA   TXT   N   Tech names (11 bytes each)   2004.04.28
0C1ACB   0C1DB3   DATA   N   Tech targetting (2 bytes each)   2005.01.03
0C1DB4         N      2005.01.03
0C235C   0C235C   DATA   N   Charm chance   2007.02.09
0C253B   0C2573   DATA   N   Tech MP cost   2005.01.03
0C2574         N      2005.01.03
0C28DB   0C2934   DATA   N   Double Tech requirements (2 bytes each)   2005.01.03
0C2935   0C2961   DATA   N   Triple Tech requirements (3 bytes each)   2005.01.03
0C2962         N      2005.01.03
0C2A33   0C2A33   DATA   N   Chance to get rare charm (aka normal drop)?   2007.02.09
0C2C6D   0C2C9C   PTR   N   "Pointers to shop data (local, first at 0C2C9D)"   2004.06.21
0C2C9D   0C2D67   DATA   N   Shop data   2003.06.16
0C2D68         N      2003.06.16
0C2EB1   0C3094   PTR   N   Pointers to item descriptions (local)   2004.06.21
0C3095   0C36F3   TXT   N   Item descriptions (Huffman compressed)   2003.05.13
0C36F4   0C37FF   ---   N   UNUSED SPACE (268 bytes)   2003.05.13
0C3800   0C38F1   JUNK   N   Overwritten [JP] Pointers to Tech Descriptions   2006.12.20
0C38F2   0C3903   ---   N   UNUSED SPACE (18 bytes)   2003.06.16
0C3904   0C3A08   JUNK   N   Overwritten [JP] Tech Descriptions   2006.12.20
0C3A09   0C3AFA   PTR   N   "Pointers to tech descriptions (local, first at 0C3B0D)"   2004.06.21
0C3AFB         N      2003.05.22
0C3B0D   0C43AE   TXT   N   Tech descriptions (Huffman compressed)   2003.05.22
0C43AF   0C46FF   ---   N   UNUSED SPACE (849 bytes)   2003.05.22
0C4700   0C5DFF   DATA   N   "Enemy stats (23 bytes each), 115 wasted bytes"   2003.04.24
0C5E00   0C64FF   DATA   N   "Enemy rewards (7 bytes each), 36 wasted bytes"   2003.04.24
0C6500   0C6FC8   TXT   N   "Enemy names (11 bytes each), 251 strings"   2003.04.24
0C6FC9         N      2003.04.24
0C7AC9   0C86C8   DATA   N   "Enemy attack data (12 bytes each, 256 items)"   2003.07.14
0C86C9         N      2003.07.14
0C8B08   0C8D07   PTR   N   Pointers to Enemy AI (local)   2004.06.21
0C8D08   0CCBC8   AI   N   Enemy AI   2003.07.14
0CCBC9   0CCD8E   PTR   N   "Pointers to battle messages (local, first at 0CCD90)"   2004.06.21
0CCD8F   0CDDC5   TXT   N   Battle messages (Huffman compressed)   2004.04.28
0CDDC6         N      2003.05.23
0CE000   0CF382   CODE   N   Unknown routines   2003.05.06
0CF383         N      2003.05.06
0D0000   0D008E   CODE   N   Unknown routines   2005.03.02
0D008F   0D008F   DATA   N   Graphic effect used by dying boss   2005.03.02
0D0090   0D009B   CODE   N   Unknown routines   2005.03.02
0D009C   0D009C   DATA   N   Sound effect used by dying enemy   2005.03.02
0D009D   0D0D27   CODE   N   Unknown routines   2005.03.02
0D0D28         N      2003.05.06
0D1314   0D1653   CODE   N   Unknown routines   2003.05.06
0D1654         N      2003.05.06
0D3B5F   0D3F9D   CODE   N   Unknown routines   2003.05.06
0D3F9E         N      2003.05.06
0EDC1B   0EDFFF   ---   N   UNUSED SPACE (997 bytes)   2003.05.23


Just for my own thought gathering right now. You've already discovered data in some of the unknown ranges Justin.
« Last Edit: January 12, 2008, 09:41:24 pm by FaustWolf »

justin3009

  • Fan Project Leader
  • God of War (+3000)
  • *
  • Posts: 3296
    • View Profile
Re: A few PAR codes submitted by chakrafire
« Reply #50 on: January 12, 2008, 09:43:31 pm »
Gettin closer ^^

justin3009

  • Fan Project Leader
  • God of War (+3000)
  • *
  • Posts: 3296
    • View Profile
Re: A few PAR codes submitted by chakrafire
« Reply #51 on: January 12, 2008, 09:55:33 pm »
I threw in the notes and stuff into the wiki...they came out horrible unorganized.  Guess i'll work on that later ._.

http://www.chronocompendium.com/Term/Attacks_/_Tech_Scripts.html

FaustWolf

  • Guru of Time Emeritus
  • Arbiter (+8000)
  • *
  • Posts: 8972
  • Fan Power Advocate
    • View Profile
Re: A few PAR codes submitted by chakrafire
« Reply #52 on: January 13, 2008, 12:16:14 am »
Let's get a separate wiki page for this here:

http://www.chronocompendium.com/Term/Tech_Data_Notes.html

We'll use a structure like so, to keep everything orderly:

*Offsets
**Notes on offsets

You can use the <pre></pre> tags to create lists of the type you were going for, I think. It might be prudent to stuff your extensive notes on specific tech values into their own sub-pages, which I can show you how to do over PM. That way the viewer can read about an offset range, then click on the subpage for specific values that can be swapped to produce certain effects, sort of like how they do on cmgsccc.com (GameShark/now Codebreaker site).
« Last Edit: January 13, 2008, 12:45:48 am by FaustWolf »

FaustWolf

  • Guru of Time Emeritus
  • Arbiter (+8000)
  • *
  • Posts: 8972
  • Fan Power Advocate
    • View Profile
Re: A few PAR codes submitted by chakrafire
« Reply #53 on: January 13, 2008, 01:01:41 am »
Goodness, how about this post from AdNova in 2005?

Before JLukas pointed out Temporal Flux and Chrono Tweaker, I had planned to write a ROM editor myself. But it was obvious that those two programs were much, much better than what I could've done.

Anyway, the only other pieces of information I found that I haven't seen anywhere else are the offsets for what techs each character has.

For a ROM with header:
2BF40: In menu techs
3DAA9D: In battle techs

Values at both offsets are layed out as:
01 09 11 19 21 29 31 39 ...etc.

I didn't test much, but it seemed as though each value had 2 meanings: as the start index of one characters tech list, and one greater than the end index of the prevous characters tech list. If you've programmed with C++, they seem to work like C++ STL iterators begin() and end(), ie. first index, then one past the end.

e.g. 01 09 -> 01 is Crono's first tech (cyclone), 08 (Luminaire) is his last, and 09 is Marle's first (Aura). I haven't done any CT hacking for a while, but that's what I wrote in the binder full of CT info.

Keep up the great work, I look forward to some Chrono Trigger hacks.



We've gotta take a look at that. In an unheadered ROM, the pertinent offsets would be 0x2BD40 and 0x3DA89D

FaustWolf

  • Guru of Time Emeritus
  • Arbiter (+8000)
  • *
  • Posts: 8972
  • Fan Power Advocate
    • View Profile
Re: A few PAR codes submitted by chakrafire
« Reply #54 on: January 13, 2008, 01:17:01 am »


FaustWolf

  • Guru of Time Emeritus
  • Arbiter (+8000)
  • *
  • Posts: 8972
  • Fan Power Advocate
    • View Profile
Re: A few PAR codes submitted by chakrafire
« Reply #55 on: January 13, 2008, 01:24:22 am »
Aw, shoot. Gally spoke too soon; she has a habit of doing that. It appears that the changes are superficial -- with AdNova's info I can get Magus' spells to appear on Crono's menu list and in-battle list, but when I click on any of Magus' spells, Crono sits there and his ATB bar refills, waiting for me to click on one of Magus' spells again like a dweeb who doesn't know what the hell's going on. :roll:

It appears that other pointers must also be changed to restore functionality to Magus' techs once they are in Crono's possession, and the like. Damn, damn, damn...

EDIT: It appears that, using AdNova's info, you can change Crono's in-battle techs to, say, begin with Lightning and end with Aura. Lightning works fine even though it's in Cyclone's place, but if you select Aura, the game hangs. Hmm, dark tidings indeed. It appears that tech hacking will be way more difficult than I had first imagined.

EDIT: I was hoping that changing the indices in offset range 0x0D45AD ~ 0x0D4925 such that all of Magus' techs use Crono's personal animation (and apparently sound) data, but no cigar. I guess AdNova's info is what I was looking for as far as the menus are concerned, but some in-depth hacking will be needed for complete tech switching.

Justin, we've gotta comb all of Kajar Labs for old tech posts somehow. I think I read last night someone had found tech stats way back when, but I'm not sure if that was referring to the targeting you've already listed. I'm not sure how best to do the research; I just started with your and jsondag2's old thread and followed the Yellow Brick Road of links.
« Last Edit: January 13, 2008, 04:01:18 pm by FaustWolf »

justin3009

  • Fan Project Leader
  • God of War (+3000)
  • *
  • Posts: 3296
    • View Profile
Re: A few PAR codes submitted by chakrafire
« Reply #56 on: January 13, 2008, 11:21:12 am »
We could so a search on "Techs" in Kajar Laboratories.

FaustWolf

  • Guru of Time Emeritus
  • Arbiter (+8000)
  • *
  • Posts: 8972
  • Fan Power Advocate
    • View Profile
Re: A few PAR codes submitted by chakrafire
« Reply #57 on: January 13, 2008, 11:30:38 am »
That'll lead to a lotta returns, but I guess it's the only thing to do. I get 37 pages of posts (when the search term is "tech").

EDIT: Tell ya what, let's go through all these over the next few days and put up links to the most pertinent threads. This post and one of your next posts can be updated as we find more discussions.

First up is obviously -> Page 1 of search returns for "tech"
http://www.chronocompendium.com/Forums/index.php/topic,3004.0.html ("I think it's time to work on the techs")
http://www.chronocompendium.com/Forums/index.php/topic,4457.0.html ("Finding tech graphics?")
http://www.chronocompendium.com/Forums/index.php/topic,4612.0.html ("Tech names?")
http://www.chronocompendium.com/Forums/index.php/topic,4448.0.html ("Charm details")
http://www.chronocompendium.com/Forums/index.php/topic,626.0.html   ("AIM Discussion of techs, grids")
http://www.chronocompendium.com/Forums/index.php/topic,1620.0.html ("Any Tech Editors out there?")
http://www.chronocompendium.com/Forums/index.php/topic,2791.0.html ("Weird techs found while hex editing!")
http://www.chronocompendium.com/Forums/index.php/topic,2847.0.html ("Not exactly custom techs")

Page 2 of search returns for "tech"
http://www.chronocompendium.com/Forums/index.php/topic,4629.0.html ("Tech editing?")
http://www.chronocompendium.com/Forums/index.php/topic,2494.0.html ("Filling a few holes in the offsets...")


That's two pages down. Guess we could tag team and let each other know which page's results we're listing so we don't step on each other's toes. Others are welcome to join in this research, of course! Just keep your contributions to a single post and continually edit for ease of reading, or something.

« Last Edit: January 13, 2008, 11:47:27 am by FaustWolf »

justin3009

  • Fan Project Leader
  • God of War (+3000)
  • *
  • Posts: 3296
    • View Profile
Re: A few PAR codes submitted by chakrafire
« Reply #58 on: January 13, 2008, 11:55:23 am »
« Last Edit: January 13, 2008, 12:08:05 pm by justin3009 »

FaustWolf

  • Guru of Time Emeritus
  • Arbiter (+8000)
  • *
  • Posts: 8972
  • Fan Power Advocate
    • View Profile
Re: A few PAR codes submitted by chakrafire
« Reply #59 on: January 13, 2008, 12:19:26 pm »
Ah, search returns depend on what screen you're on when you search. Going to "Forums" and doing the search there yields 37 pages because the returns are presented differently than if you do a search when you're on this page. In any case, as long as we name the threads we link, we'll be fine.