• Welcome to Final Fantasy Hacktics. Please login or sign up.
 
April 24, 2024, 12:15:34 pm

News:

Please use .png instead of .bmp when uploading unfinished sprites to the forum!


FFT Patcher Coding

Started by sondowultimate, March 25, 2009, 11:57:19 am

sondowultimate

March 25, 2009, 11:57:19 am Last Edit: December 31, 1969, 07:00:00 pm by sondowultimate
hello gentlemen and ladies i just starting to get use to using the final fantasy Tactics Game Patcher and i notice in certain areas their are mathematic coding... im not bad in math but i wonder if anyone can break it down a little further to me...

If their is a area can put the link here...

philsov

March 25, 2009, 01:18:24 pm #1 Last Edit: December 31, 1969, 07:00:00 pm by philsov
FFT (and a vast majority of console games, I don't know about the newest stuff) counts in hex (base 16).

Instead of going from 1-10 (base 10), it counts 1-16; A is 11, B is 12, C is 13, D is 14, E is 15, and F is 16.  This allows the values in a 2 byte address to expand from 100 to 256.*  

64 in hex is 100 in normal number system.

http://www.easycalculation.com/decimal-converter.php
http://www.easycalculation.com/hex-converter.php

can help too.  Eventually it'll become mental math.

*This function of binary is also why 255 is the max capacity for some consumables in other games, and also why 65535 is the max HP of some bosses in other games.
Just another rebel plotting rebellion.

Kaijyuu

March 25, 2009, 05:13:25 pm #2 Last Edit: December 31, 1969, 07:00:00 pm by Kaijyuu
Moderately offtopic: Every system that uses binary (so every computer, ever) uses base 16. When you can only count with 1s and 0s, your total available numbers will always be a power of 2. Every base 16 number (0-F) uses 4 bits, or 2^4.

A byte is 8 bits, so you can have any number up to 256 in decimal, or FF in hex. 2^8
Two bytes net you 65535 numbers, or FFFF. 2^16.

Ect.

http://www.ffhacktics.com/forum/viewtopic.php?t=700
This topic should answer any more questions about hex.
  • Modding version: PSX

sondowultimate

March 26, 2009, 12:48:04 pm #3 Last Edit: December 31, 1969, 07:00:00 pm by sondowultimate
okay some of it was confusing but i can give it a try after work....but i do have many more questions

the consol version im using is for the PSP can you point out which programs uses the PSP to hack FFT...
and also is it better if i use the PSX version of FFT to make a orginial story but uses its engine