• Welcome to Final Fantasy Hacktics. Please login or sign up.
 
March 28, 2024, 03:22:28 pm

News:

Use of ePSXe before 2.0 is highly discouraged. Mednafen, RetroArch, and Duckstation are recommended for playing/testing, pSX is recommended for debugging.


Event Decompiler & Event Compiler

Started by Xifanie, June 07, 2008, 08:45:42 pm

Xifanie

September 02, 2008, 05:05:04 pm #20 Last Edit: December 31, 1969, 07:00:00 pm by Xifanie
Don't forget to break lines with {br} often else the game will try to display a message box wider then the screen and freeze.

As for your other problem, you eitehr deleted a whole message (including {end})

the number of {end} is what determines the real message ID.

So if you deleted a message make sure you put and {end} at where the message was, even if it's gonna be alone. That will fix your problem.
  • Modding version: PSX
Love what you're seeing? https://supportus.ffhacktics.com/ 💜 it's really appreciated

Anything is possible as long as it is within the hardware's limits. (ie. disc space, RAM, Video RAM, processor, etc.)
<R999> My target market is not FFT mod players
<Raijinili> remember that? it was awful

Jake

September 02, 2008, 06:05:10 pm #21 Last Edit: December 31, 1969, 07:00:00 pm by Jake
Well, funnily enough, the missing Gafgarion line was missing an {end}, but even with it, it still wasn't appearing. The rest of the dialogue is fine and everyone is speaking their appropriate lines again.

Quote//Message x0A
{font:08}Gaffgarion{br}
{font:00}I rather think that I'm showing more than{br}
enough respect for some backwater guard-captain.{br}
Perhaps I should remind you that we are but{br}
mercenaries hired by the Knights.{br}
{br}
Believe it or not, my lady, our contract{br}
doesn't demand good manners in your presence.{end}

Fix:
The "enough respect" line was too long, and instead of freezing, it just skipped that entire dialogue... take that for what you will.

Lines of dialogue shouldn't go more than 45 characters without a line break. ({font} & {br} do not count towards that limit.)

I certainly hope all my n00bish mistakes keep others from making them. :oops:

methanol

September 24, 2008, 10:07:12 am #22 Last Edit: December 31, 1969, 07:00:00 pm by methanol
Quote from: "Zodiac"Well, actually everything my decompiler decompiles are good events.

There's nothing I can do about the dummy text.

What if you put in a routine that checks each event's program section for display message commands and the message numbers passed to them as arguments, and then blank out or simply decline to dump the remaining messages?

That way the decompiler could be configured to dump only messages that are actually called up in a given event.

Xifanie

September 24, 2008, 12:10:22 pm #23 Last Edit: December 31, 1969, 07:00:00 pm by Xifanie
Making a cleaning patch would probably be easier.

I like the idea but it's jsut too much trouble compared to a little patch.
  • Modding version: PSX
Love what you're seeing? https://supportus.ffhacktics.com/ 💜 it's really appreciated

Anything is possible as long as it is within the hardware's limits. (ie. disc space, RAM, Video RAM, processor, etc.)
<R999> My target market is not FFT mod players
<Raijinili> remember that? it was awful

Zozma

October 03, 2008, 12:34:22 am #24 Last Edit: December 31, 1969, 07:00:00 pm by Zozma
i dont quite know where to put this zodiac but...

sprite animations for the event decompile/recompile

01-Standing still
03-Walking
04-Walking (haste)
05-Walking (Slow)
15-wth? spinning??
16-injured,kneeling
17-defending

(dont shoot me if this is the wrong place for it) lol
  • Modding version: Other/Unknown
Wiegraf: Draw your sword Ramza!
Ramza: But im a monk!!

LastingDawn

October 03, 2008, 11:33:34 am #25 Last Edit: December 31, 1969, 07:00:00 pm by LastingDawn
Ah that's right... Zodiac never posted the Animation sheet he gave me...

Quote[04:09] <Zodiac> x00   
[04:09] <Zodiac> x01   
[04:09] <Zodiac> x02   
[04:09] <Zodiac> x03   Walk
[04:09] <Zodiac> x04   Fast Walk
[04:09] <Zodiac> x05   Slow Walk
[04:09] <Zodiac> x06   Stand
[04:09] <Zodiac> x07   Stand
[04:09] <Zodiac> x08   Stand
[04:09] <Zodiac> x09   Null Float
[04:09] <Zodiac> x0A   Fast Float
[04:09] <Zodiac> x0B   Slow Float
[04:09] <Zodiac> x0C   Run
[04:09] <Zodiac> x0D   Fast Run
[04:09] <Zodiac> x0E   Slow Run
[04:09] <Zodiac> x0F   
[04:09] <Zodiac> x10   
[04:09] <Zodiac> x11   
[04:09] <Zodiac> x12   
[04:09] <Zodiac> x13   
[04:09] <Zodiac> x14   
[04:09] <Zodiac> x15   Anti-Clockwise spinning (loop)
[04:09] <Zodiac> x16   Critical
[04:09] <Zodiac> x17   Defend  
[04:09] <Zodiac> x18   Dodge
[04:09] <Zodiac> x19   In pain (loop)
[04:09] <Zodiac> x1A   Dead
[04:09] <Zodiac> x1B   Raise Hands
[04:09] <Zodiac> x1C   Level Up (loop
[04:09] <Zodiac> x1D   Job Level Up (loop)
[04:09] <Zodiac> x1E   Jump
[04:09] <Zodiac> x1F   Flying
[04:09] <Zodiac> x20   Pick on ground
[04:09] <Zodiac> x21   Charge
[04:09] <Zodiac> x22   Charge
[04:09] <Zodiac> x23   Frozen Walk
[04:09] <Zodiac> x24   Bow
[04:09] <Zodiac> x25   Dance (not the Dancer's)
[04:09] <Zodiac> x26   
[04:09] <Zodiac> x27   
[04:09] <Zodiac> x28   Sing
[04:09] <Zodiac> x29   Dance
[04:09] <Zodiac> x2A   Charge Spell
[04:09] <Zodiac> x2B   Chant Spell
[04:09] <Zodiac> x2C   Found Item
[04:09] <Zodiac> x2D   
[04:09] <Zodiac> x2E   
[04:09] <Zodiac> x2F   
[04:09] <Zodiac> x30   Frozen Walk
[04:09] <Zodiac> x31   Frozen Walk
[04:09] <Zodiac> x32   Vanish
[04:09] <Zodiac> x33   Found Item
[04:09] <Zodiac> x34   Horizontal Jump?
[04:09] <Zodiac> x35   Bow then Stand
[04:09] <Zodiac> x36   Bow
[04:09] <Zodiac> x37   Struck
[04:09] <Zodiac> x38   Struck
[04:09] <Zodiac> x39   Raise Hands
[04:09] <Zodiac> x3A   
[04:09] <Zodiac> x3B   Vanish
[04:09] <Zodiac> x3C   Teleport From & Teleport To
[04:09] <Zodiac> x3D   Upper Strike
[04:09] <Zodiac> x3E   Middle Strike
[04:09] <Zodiac> x3F   Lower Strike
[04:09] <Zodiac> x40   Upper Strike
[04:09] <Zodiac> x41   
[04:09] <Zodiac> x42   
[04:09] <Zodiac> x43   
[04:09] <Zodiac> x44   
[04:09] <Zodiac> x45   
[04:09] <Zodiac> x46   
[04:09] <Zodiac> x47   
[04:09] <Zodiac> x48   
[04:09] <Zodiac> x49   
[04:09] <Zodiac> x4A   Quick Attack Stand
[04:09] <Zodiac> x4B   
[04:09] <Zodiac> x4C   
[04:09] <Zodiac> x4D   
[04:09] <Zodiac> x4E   
[04:09] <Zodiac> x4F   
[04:09] <Zodiac> x50   
[04:09] <Zodiac> x51   
[04:09] <Zodiac> x52   Spear
[04:09] <Zodiac> x53   Bow?
[04:09] <Zodiac> x54   Bow
[04:09] <Zodiac> x55   Gun
[04:09] <Zodiac> x56   Book Strike
[04:09] <Zodiac> x57   Harp Strike
[04:09] <Zodiac> x58   Upper Weapon Guard
[04:09] <Zodiac> x59   Middle Weapon Guard
[04:09] <Zodiac> x5A   Lower Weapon Guard
[04:09] <Zodiac> x5B   weapon strike???
[04:09] <Zodiac> x5C   weapon strike???
[04:09] <Zodiac> x5D   weapon strike???
[04:09] <Zodiac> x5E   weapon strike???
[04:09] <Zodiac> x5F   weapon strike???
[04:09] <Zodiac> x60   weapon strike???
[04:09] <Zodiac> x61   weapon strike???
[04:09] <Zodiac> x62   weapon strike???
[04:09] <Zodiac> x63   weapon strike???
[04:09] <Zodiac> x64   Flip Switch on ground
[04:09] <Zodiac> x65   Raise Hands
[04:09] <Zodiac> x66   Raise Hand & Take a Breath
[04:09] <Zodiac> x67   Spin Fist
[04:09] <Zodiac> x68   Quadruple fist strike
[04:09] <Zodiac> x69   ???
[04:09] <Zodiac> x6A   pushing out hands for a second or two
[04:09] <Zodiac> x6B   ???
[04:09] <Zodiac> x6D   Stand Down
[04:09] <Zodiac> x6E   Attack
[04:09] <Zodiac> x6F   Dance Pause
[04:09] <Zodiac> x70   
[04:09] <Zodiac> x71   Steal
[04:09] <Zodiac> x72   Steal Heart
[04:09] <Zodiac> x73   Draw Out
[04:09] <Zodiac> x74   Raise Hands
[04:09] <Zodiac> x75   Jump
[04:09] <Zodiac> x76   Land (and Jump before?)
[04:09] <Zodiac> x77   ???
[04:09] <Zodiac> x78   ???
[04:09] <Zodiac> x79   ???
[04:09] <Zodiac> x7A   
[04:09] <Zodiac> x7B   
[04:09] <Zodiac> x7C   
[04:09] <Zodiac> x7D   Goblin Punch
[04:09] <Zodiac> x6C   ???
"Moment's anger can revert to joy,
sadness can be turned to delight.
A nation destroyed cannot be restored,
the dead brought back to life."

Art of War

Beta & Gretchen Forever!!!!

Cheetah

October 03, 2008, 12:39:11 pm #26 Last Edit: December 31, 1969, 07:00:00 pm by Cheetah
Any other information you might have hidden away? I spent like 4 hours working on this stuff, typically find out that it had already been done haha. We are really organizing this information in a horrible way right now.
Current Projects:

LastingDawn

October 03, 2008, 01:01:54 pm #27 Last Edit: December 31, 1969, 07:00:00 pm by LastingDawn
That we most certainly are... for reference it's probably best to always look a the "Event instructions" part of the site. But for everything I personally know, it's in AI Setups.txt, which hasn't been that incredible updated from the one available to everyone. ld.ffhacktics.com
"Moment's anger can revert to joy,
sadness can be turned to delight.
A nation destroyed cannot be restored,
the dead brought back to life."

Art of War

Beta & Gretchen Forever!!!!

Xifanie

October 03, 2008, 04:26:59 pm #28 Last Edit: December 31, 1969, 07:00:00 pm by Xifanie
This is what the wiki is for. I forgot about it after creating the wiki, that's why it currently had no page.

But the more we fill in the wiki the less this kind of thing will happen.
  • Modding version: PSX
Love what you're seeing? https://supportus.ffhacktics.com/ 💜 it's really appreciated

Anything is possible as long as it is within the hardware's limits. (ie. disc space, RAM, Video RAM, processor, etc.)
<R999> My target market is not FFT mod players
<Raijinili> remember that? it was awful

Cheetah

October 03, 2008, 04:41:03 pm #29 Last Edit: December 31, 1969, 07:00:00 pm by Cheetah
Is there even a proper way to navigate the wiki yet?
Current Projects:

Zozma

October 05, 2008, 03:38:57 am #30 Last Edit: December 31, 1969, 07:00:00 pm by Zozma
wth, im digging around near EVT_018_12 in that area

and i cant find the part where algus actually says "Reinforcements? Thank God!"

i have to change unit id from 07 to 33 and everything else works except the one for displaying message 0B.
  • Modding version: Other/Unknown
Wiegraf: Draw your sword Ramza!
Ramza: But im a monk!!

Xifanie

October 05, 2008, 09:40:55 am #31 Last Edit: December 31, 1969, 07:00:00 pm by Xifanie
Really? I don't understand because Event 12 is the only one that calls for message 0x0B. :/

That's the whole event:

DisplayMessage(x10,x70,x0B,x00,x01,x00,x00,+00000,+00000,+00000,x01)
WaitForInstruction(r0100)
Wait(00030)
{63}(rAA)
{1C}(r02)
FocusUnit(r0700070000)
Camera(+11815,+00001,+00010,+00302,+03584,+00000,+04096,+00064)
DarkScreen(x00,x01,x0C,064,x00,004)
WaitForInstruction(r3600)
DisplayConditions(x0A,060)
Wait(00040)
ColorUnit(x07,x00,x04,+012,+020,+031,000)
Wait(00002)
Wait(00001)
ColorUnit(x07,x00,x08,+000,+000,+000,004)
WaitForInstruction(r3800)
DisplayConditions(x00,060)
WaitForInstruction(r3800)
RemoveDarkScreen()
WaitForInstruction(r3600)
{1C}(r01)
March(x00,x00,004)
{BE}(r7D00)
Boolean(r7D000100)
EventEnd()

//Message x0B
{font:08}Algus{br}
{font:00}Reinforcements?{br}
Thank God!{end}

Really this doesn't make much sense to me...
  • Modding version: PSX
Love what you're seeing? https://supportus.ffhacktics.com/ 💜 it's really appreciated

Anything is possible as long as it is within the hardware's limits. (ie. disc space, RAM, Video RAM, processor, etc.)
<R999> My target market is not FFT mod players
<Raijinili> remember that? it was awful

Cheetah

October 09, 2008, 02:26:57 am #32 Last Edit: December 31, 1969, 07:00:00 pm by Cheetah
Big news. I have found out how to get effects working in events. I don't fully understand everything and it might create a few glitches, but I have a few working correctly now. Here is an example code.

{18}(r1E0282000000)
{8A}()
{1C}(r02)
{8B}()

{18} is the call for the effect and there is a great description of all the values already in Zodiacs Event Instructions Descriptions. {8A} and {8B} seem to be key to having the effect actually fire. They don't seem to be right after the effect instruction and there can be stuff contained within them, but they both need to be there for the effect to fire at all. I don't know what {1C} does and it doesn't seem necessary so far for the effect to fire.

So still lots of unknown information but this is at least a start so others can start experiment. It is such great fun.
Current Projects:

nuken

October 09, 2008, 09:24:38 am #33 Last Edit: December 31, 1969, 07:00:00 pm by nuken
I start try use this compiler/decompiler today... congratulations great job... easy to use.....

Now i can start my own editing......

Kokojo

October 09, 2008, 02:23:27 pm #34 Last Edit: December 31, 1969, 07:00:00 pm by Kokojo
Im sorry with the horrible noobnest this might emanate, but i need to :

Get out Test.evt
Start the decompiler
Make the changes in the file, save
Start the compiler

Then where do i put back Test.evt ?

(this might be usefull for other noobs, so il post it here)
I keep leaving, I keep coming back. Boomerang boy.

Vanya

October 09, 2008, 02:29:08 pm #35 Last Edit: December 31, 1969, 07:00:00 pm by Vanya
Right back where you got it from... after you make a back up of the original.
  • Modding version: Other/Unknown
¯\(°_0)/¯

Zozma

October 10, 2008, 08:18:57 am #36 Last Edit: December 31, 1969, 07:00:00 pm by Zozma
cheetah, with the ultima casting off screen... did you try setting a delay after the effect casting instruction, a delay long enough for the spell to finish?

when i was testing it out on the rescue algus scene the next action in the script was for me to push a button making the text move to the next message... if i hit it, the spell would be off screen, but if i left it alone and waited it displayed properly...
  • Modding version: Other/Unknown
Wiegraf: Draw your sword Ramza!
Ramza: But im a monk!!

Cheetah

October 10, 2008, 12:29:57 pm #37 Last Edit: December 31, 1969, 07:00:00 pm by Cheetah
Thanks for the tip I will look into it.
Current Projects:

Zozma

October 11, 2008, 07:10:49 am #38 Last Edit: December 31, 1969, 07:00:00 pm by Zozma
any list showing all the effect id's for event? if not, here are some

Stone Flashes-
210-Aries
211-Cancer
212-Leo
213-Virgo
214-Scorpio
215-Capricorn, Serpentarius
-----------------other
217-Crystal Sparkle (ground)
21D-Scorpio Revive
222-White Teleport (Arrive?)
223-Crystal Sparkle (Higher Altitude)

it would appear this way (aries for example): 1002----------
  • Modding version: Other/Unknown
Wiegraf: Draw your sword Ramza!
Ramza: But im a monk!!

LastingDawn

October 11, 2008, 11:52:25 am #39 Last Edit: December 31, 1969, 07:00:00 pm by LastingDawn
Ah yes... we have no record of things past 200, (since that ends our normal abilities) so this is very useful!
"Moment's anger can revert to joy,
sadness can be turned to delight.
A nation destroyed cannot be restored,
the dead brought back to life."

Art of War

Beta & Gretchen Forever!!!!