Results 1 to 6 of 6

Thread: PattView Tech Info

Hybrid View

  1. #1
    Chris (Administrator) Vash's Avatar
    Join Date
    Sep 2007
    Location
    Teh Interwebz
    Posts
    1,992
    Blog Entries
    27

    Default

    As I said earlier, however, the bytes are split to accommodate for 2 cells. This would cause problems with our formula as we still wouldn't know which "half" of the byte goes for the cell. Simple solution to fix this is to write a small function to decide whether your column number is odd or even. If it's even, you would take the first "half" of the byte. If it's odd, the second "half". This, of course, depends on your grid and if the column and row values are 0 based or not. You'll have to mess with the odd and even bit to get the correct value for each cell. This can be quite fun to see some of the results when you mess up your algorithm. You get some strange looking images.

    Now that you have the offsets, the palette information, and a drawing function, you might be asking yourself what's next? Well, we need to name these bad boys. The pattern name information starts at 822h with the town name. The player name starts at 838h, and lastly, the pattern name starts at 84Ch.

    So we have the offset, the palette, the drawing, the name, and now we'll have the pro vs. simple design. This one byte is at 870h in the pattern data. 00 is simple and 01 is pro. A very simple concept.

    Here's a little nugget of information courtesy of DsPet. This feature isn't in the current public version of PattView (and I don't intend to add it). It's the stored patterns at the pattern shop. The algorithm used to get to these patterns is as follows:

    Code:
    $74060 + $22020 * iPlayer (iPlayer = 0, 1, 2, 3)
    The patterns are in the standard format (880h bytes), and follow all of the same rules as the above patterns. So thank you, DsPet. Nice little bit of information there.

    PattView Delphi source code, fully commmented, available in the Game-Hackers VIP section!

    Also available exclusively in Game-Hackers VIP:



    PattViewX
    -Completely rewritten PattView release
    -User-friendly, compact style
    -Now supports 316 patterns, with Able's storage patterns (as opposed to 60 in PattView v2.1)
    -New, more accurate pattern rendering
    Animal Crossing: City Folk
    ACToolkit - NPC_Tool - PattView

  2. The Following User Says Thank You to Vash For This Useful Post:


  3. #2

    Default

    Not to interupt the flow of technical explanation...

    but I just wondering whether you also know where the pattern storage offset/address/location for each resident/character (that you could get by asking Mabel in Able shop to show you the storage). This would be helpful if we could access them so we could easily store the patterns directly.

    Thanks.

  4. #3
    Chris (Administrator) Vash's Avatar
    Join Date
    Sep 2007
    Location
    Teh Interwebz
    Posts
    1,992
    Blog Entries
    27

    Default

    Added the stored patterns (thanks to DsPet). Stickied. Full Delphi source code, commented, coming soon!
    Animal Crossing: City Folk
    ACToolkit - NPC_Tool - PattView

  5. #4

    Default

    Thanks again to you and DSPet for posting the pattern storage addresses and providing the algorithm to find them.

    Cheers.

  6. #5
    Chris (Administrator) Vash's Avatar
    Join Date
    Sep 2007
    Location
    Teh Interwebz
    Posts
    1,992
    Blog Entries
    27

    Default

    Added the PattView Source, fully commented, to the VIP section. Enjoy VIP members!
    Animal Crossing: City Folk
    ACToolkit - NPC_Tool - PattView

  7. The Following 2 Users Say Thank You to Vash For This Useful Post:


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •