Final Fantasy Hacktics

Modding => Help! => Topic started by: Jennifer Darknight on November 20, 2011, 02:50:46 am

Title: [FFT Decompiler] Why don't my messages come out right?
Post by: Jennifer Darknight on November 20, 2011, 02:50:46 am
I've been having trouble with the Decompiler; I'm not sure why, but whenever I decompile, my PSX Events.txt file looks like this:

// __________________________________________________________________
//| Event Script x002 | Event Offset: x004000 | Text offset: x0048F9 |
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Offset(x00004000)
//Remove the previous line if you wish not to override the offset in CONFIG.INI.
Text(x000008F9)
//Remove the previous line if you wish text to compile directly after instructions.

{7C}()
{58}()
{01}()
{00}()
{00}()
{E5}()
{34}()
{00}()
{59}()
{01}()
{6D}()
{00}()
{00}()
{5F}()
{02}()
{00}()
{01}()
{03}()
{00}()
{03}()
{5F}()
{17}()
{00}()
{01}()
{04}()
{00}()
{03}()
{5F}()
{83}()
{00}()
{01}()
{05}()
{00}()
{03}()
{5F}()
{84}()
{00}()
{01}()
{04}()
{00}()
{03}()
{32}()
{13}()
{00}()
{04}()
{FF}()
{FF}()
{FF}()
{00}()
{F1}()
{02}()
{00}()
{19}()
{F8}()
{07}()
{C4}()
{FD}()
{E8}()
{01}()
{EE}()
{02}()
{02}()
{0C}()
{00}()
{00}()
{00}()
{20}()
{01}()
{00}()
{E5}()
{04}()
{00}()
{11}()
{34}()
{00}()
{02}()
{00}()
{00}()
{11}()
{13}()
{00}()
{02}()
{00}()
{00}()
{2E}()
{00}()
{00}()
{00}()
{00}()
{00}()
{00}()
{00}()
{00}()
{11}()
{0C}()
{00}()
{58}()
{02}()
{01}()
{4D}()
{80}()
{33}()
{04}()
{FC}()
{FC}()
{FC}()
{00}()
{32}()
{00}()
{00}()
{04}()
{F8}()
{F8}()
{FA}()
{00}()
{63}()
{A8}()
{1D}()
{19}()
{F8}()
{05}()
{94}()
{FE}()
{E8}()

...

//INSTRUCTION SECTION END -  TEXT START
//Message x01
{{E3}08}{1D}{2B}{2C}{28}{29}{{F8}}
{{E3}00}{20}{2B}{24}{37}{D9C1}{36}{FA}{37}{2B}{2C}{36}{D9C9}{FA}{13}{38}{36}{37}{FA}{24}{FA}{25}{38}{31}{26}{2B}{{F8}}
{32}{29}{FA}{2E}{2C}{27}{36}{D11A}{FA}{20}{2B}{24}{37}{FA}{2F}{38}{26}{2E}{D11A}{{F8}}
{18}{14}{DA74}{FA}{24}{2F}{2F}{FA}{3A}{28}{FA}{2B}{24}{39}{28}{FA}{37}{32}{FA}{27}{32}{{F8}}
{2C}{36}{FA}{2E}{2C}{2F}{2F}{FA}{37}{2B}{28}{36}{28}{FA}{2E}{2C}{27}{36}{D11A}{{F8}}
{1D}{2B}{28}{31}{DA74}{FA}{3A}{28}{FA}{26}{24}{31}{FA}{28}{36}{26}{24}{33}{28}{D11A}{{F8}}
{0D}{32}{31}{D9C1}{37}{FA}{3C}{32}{38}{FA}{3A}{32}{35}{35}{3C}{D11A}{{F8}}
{20}{28}{D9C1}{2F}{2F}{FA}{2E}{2C}{2F}{2F}{FA}{28}{39}{28}{35}{3C}{FA}{32}{31}{28}{FA}{32}{29}{FA}{3C}{32}{38}{D11A}{{FE}}

//Message x02
{{E3}08}{0D}{28}{2F}{2C}{37}{24}{{F8}}
{{E3}00}{{E0}}{DA74}{FA}{3A}{24}{37}{26}{2B}{FA}{32}{38}{37}{D11A}{{F8}}
{0D}{32}{31}{D9C1}{37}{FA}{35}{38}{36}{2B}{FA}{37}{2B}{28}{30}{D11A}{{FE}}

//Message x03
{{E3}08}{{E0}}{{F8}}
{{E3}00}{0D}{32}{31}{D9C1}{37}{FA}{33}{24}{37}{35}{32}{31}{2C}{3D}{28}{FA}{30}{28}{DA74}{FA}{0D}{28}{2F}{2C}{37}{24}{D11A}{{F8}}
{12}{D9C1}{30}{FA}{24}{2F}{36}{32}{FA}{24}{FA}{0B}{28}{32}{38}{2F}{39}{28}{D11A}{D11A}{{FE}}

//Message x04
{{E3}08}{1D}{2B}{2C}{28}{29}{{F8}}
{{E3}00}{0B}{28}{32}{38}{2F}{39}{28}{D11A}{D9C9}{FA}{1D}{11}{0E}{FA}{0B}{28}{32}{38}{2F}{39}{28}{FA}{29}{24}{30}{2C}{2F}{3C}{D11A}{D9C9}{{F8}}
{{F8}}
{1C}{32}{DA74}{FA}{3C}{32}{38}{FA}{30}{38}{36}{37}{FA}{25}{28}{FA}{26}{24}{27}{28}{37}{36}{{F8}}
{29}{35}{32}{30}{FA}{37}{2B}{28}{FA}{30}{2C}{2F}{2C}{37}{24}{35}{3C}{FA}{24}{26}{24}{27}{28}{30}{3C}{D11A}{{F8}}
{1C}{31}{32}{37}{D11D}{31}{32}{36}{28}{27}{FA}{2F}{2C}{37}{37}{2F}{28}{FA}{31}{32}{25}{2F}{28}{36}{D11A}{D11A}{{FE}}

//Message x05
{{E3}08}{{E0}}{{F8}}
{{E3}00}{1C}{2C}{2F}{28}{31}{26}{28}{D11A}{FA}{1C}{38}{35}{35}{28}{31}{27}{28}{35}{FA}{32}{35}{FA}{27}{2C}{28}{{F8}}
{2C}{31}{FA}{32}{25}{36}{26}{38}{35}{2C}{37}{3C}{D11A}{D11A}{{FE}}

...


And so on and so forth. Something tells me that it's not supposed to look like that...Can anyone give me a reason why?
Title: Re: [FFT Decompiler] Why don't my messages come out right?
Post by: 3lric on November 20, 2011, 03:08:23 am
You need to make sure the CONFIG.INI is in the same file as the compiler/decompiler,

also make sure you decompile the test.evt first to generate the PSX Events.txt
Title: Re: [FFT Decompiler] Why don't my messages come out right?
Post by: Jennifer Darknight on November 20, 2011, 03:13:14 am
...hey, whaddaya know...

Goes to show what happens when I don't pay attention. Thanks so much!

^^; Sorry about that--I'm pretty new to this whole hacking thing, so I'm still trying to figure things out.
Title: Re: [FFT Decompiler] Why don't my messages come out right?
Post by: 3lric on November 20, 2011, 05:31:26 am
Quote from: Jennifer Darknight on November 20, 2011, 03:13:14 am
...hey, whaddaya know...

Goes to show what happens when I don't pay attention. Thanks so much!

^^; Sorry about that--I'm pretty new to this whole hacking thing, so I'm still trying to figure things out.


No problem, If you ever need anything else don't hesitate to ask here, go on chat, or you can PM me if you like

And Welcome to FFH, where all you dreams come true
(Tho some people say this may not be the case, but mine certainly have)
Title: Re: [FFT Decompiler] Why don't my messages come out right?
Post by: Jennifer Darknight on November 20, 2011, 01:00:08 pm
That makes me feel a lot better; the only real programming and scripting experience I have is a basic understanding of C++ language, so I'm probably going to be asking a lot of questions in the long run (That's what I get for being a writer trying her hand at programming, I guess).

Thanks a bunch! You'll probably be seeing a lot more of me once a playable version of my mod ends up taking flight (here's to hoping, right?), and I have more time on my hands to work on it.
Title: Re: [FFT Decompiler] Why don't my messages come out right?
Post by: RavenOfRazgriz on November 20, 2011, 01:04:24 pm
If you're messing about with the Event Compiler/Decompiler, you should really be using this instead:

http://ffhacktics.com/smf/index.php?topic=7706.0