Author Topic: About Dialog Script Problem..  (Read 3207 times)

blackeyed_cn

  • *
  • Posts: 33
    • View Profile
About Dialog Script Problem..
« on: 2004-09-19 12:12:54 »
In the file 'mds7st32'
There are three dialogs in this file and
I found three dialog scripts in it :
 
Code: [Select]
5001 0800 4B00 3201 2900 400100
5001 2700 4B00 EC00 3900 400101
5001 0800 4B00 3201 3900 400102


They look like normal codes about dialog,but it's wrong
These three dialogs don't display in any box,but display directly on the screen!
And I could not change the value of width and heigth(such as 'EC00 3900'),If I did,the game will crash.

I am translating FF7 to Chinese,so I have to make my program change the size of dialog box automatically to fit Chinese text...
When my program handle mds7st32,it will change that code,because my program think it should to be changed to fit Chinese text,but it's wrong!

I found that it is very hard to make program to know which code(about width and heigth) should to be changed automatically and which not.
That is what my problem is!

And I found some window code start with '2F' instead of '50'
I have checked script commands
but I don't understand what the 'WSIZW' mean.

Anyone have suggest about this problem,plz tell me.

lasyan3

  • *
  • Posts: 76
    • View Profile
About Dialog Script Problem..
« Reply #1 on: 2004-09-24 18:39:16 »
Personnally, I don't see any difference between opcodes 0x2F and 0x50, it seems to be the same command.

Qhimm

  • Founder
  • *
  • Posts: 1996
    • View Profile
    • Qhimm.com
About Dialog Script Problem..
« Reply #2 on: 2004-09-25 05:01:58 »
Opcode 0x2F (WSIZW) is a superset of opcode 0x50 (WINDOW). Whereas WINDOW merely sets the window size of a given window, WSIZW takes into consideration window ownership and various status flags. For windows that are not owned by any specific entity, WSIZW does exactly the same as WINDOW.

lasyan3

  • *
  • Posts: 76
    • View Profile
About Dialog Script Problem..
« Reply #3 on: 2004-09-25 06:53:55 »
Thanks!
By the way, Qhimm, have you read the message I sent to you ?

Qhimm

  • Founder
  • *
  • Posts: 1996
    • View Profile
    • Qhimm.com
About Dialog Script Problem..
« Reply #4 on: 2004-09-25 13:24:35 »
Ah yes I read it, unfortunately I didn't have time to write a reply and forgot about it. Sorry.

Anyway, I'm still coding my script viewer, currently deep inside the window system of FF7... once I figure out the data structures and stuff you can expect a lot of new information being released. Right now though, the viewer has pretty limited usage. I'll keep you updated on progress.