Author Topic: [PC] Text editor - touphScript (v1.4.0)  (Read 267191 times)

luksy

  • *
  • Posts: 375
    • View Profile
[PC] Text editor - touphScript (v1.4.0)
« on: 2011-06-07 13:40:05 »


touphScript allows you to edit FFVII text using simple text files, hopefully this allows for faster editing and should be great for versioning / distribution if you like that kind of thing (and who doesn't).

Assuming nothing is missing it now supports every single line of text in the game:

  • ff7.exe (Various menu text and Characters' Lv4 Limit dialogue)
  • data\field\flevel.lgp (Field and tutorial dialogue)
  • data\kernel\KERNEL.BIN (Sephiroth, Ex-SOLDIER text and scene lookup table)
  • data\kernel\kernel2.bin (Most of game items and their descriptions)
  • data\battle\scene.bin (Battle dialogue, enemy names, enemy attack names)
  • data\wm\world_us.lgp (World map dialogue)

Features:
  • Dumps and reencodes FFVII text using simple UTF-8 text files.
  • All text in the game is fully supported (see files supported).
  • Automatically resizes field and world map windows to fit text.
  • Optionally inserts missing windows in field script.
  • Unused text & scripts optionally removed.
  • Options for controlling resizing, such as character name width.
  • Window values, numeric displays and question paramters can be specified manually if necessary.
  • Tutorial script can be edited.
  • Entries can be ignored in order to selectively overwrite different parts of the text.
  • Supports DLPB's Menu Overhaul.
  • Patches field scripts for bugfixes + other functionality.

Field and world windows are autosized as follows:

Window width is determined by the longest line (character names have a fixed width so some boxes are overpadded, name width can be forced with ini), window height is determined by the largest line count in between individual {NEW} tags, i.e.:
   
   {BARRETT}
   “Good luck {CLOUD}!
      If you make it, we'll follow you!”{NEW}
   “Whoa, I'll hold the PHS for you.
      It'll break if it gets wet.”
   
has 3 lines until the {NEW} tag, and then another 2, so the box height will be 3 lines.

Complete instructions in the readme!

For those of you who don't RTFM here's a quickstart:

extract files
BACKUP flevel.lgp, world_us.lgp, scene.bin, kernel.bin, kernel2.bin and ff7.exe
double click exe and press d [enter] to dump
edit text files
double click exe and press e [enter] to encode

1.4.0
...Fixes and new features, can't even remember what now as development was incredibly fragmented, hopefully DLPB has a better memory

Known Issues:
  • 3 field names are set to dialogue, actually this is a FFVII bug and really doesn't matter, it's in the readme anyway

touphScript v1.4.0
« Last Edit: 2020-02-25 05:30:09 by luksy »

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
 8)  The Eagle has landed.

luksy

  • *
  • Posts: 375
    • View Profile
Looks like I messed up on the comma spacing, will be fixed in the next version!

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
This is seriously impressive now :)  Will be even more impressive when autosize boxes is sorted out.

So far the new version I just tested is 1 exe that does all the work for you, and can remove all dupes too shrinking flevel by a meg or 2.  Editing with notepad and it reflecting only the files you have changed is great.

So simple.  I will use loveless only for tweaking now.

luksy

  • *
  • Posts: 375
    • View Profile
v0.2 is up!

Next version: autosize (I promise!)

luksy

  • *
  • Posts: 375
    • View Profile
Bump for v0.3, now includes autosize!

Next version should have tutorial repacking, and anything else I can think of.
« Last Edit: 2011-06-12 09:13:59 by luksy »

Armorvil

  • *
  • Posts: 621
  • Working on : FFVII Total Grudge
    • View Profile
This is excellent. The perfect complement to Makou Reactor, since it doesn't edit dialog. Thank you ! ^^

luksy

  • *
  • Posts: 375
    • View Profile
v0.4 is out, full charmap support (for translating into other languages).

v0.5 will have a fix for the offending autosized windows, a config file, and maybe a couple of other things.

luksy

  • *
  • Posts: 375
    • View Profile
v0.5 is out!

Extra fixes included, check ini file; world text and tutorials are editable now. Also includes a simple notepad++ syntax highlighter.

Next version will fix orphaned dialogues (I promise!).
« Last Edit: 2011-07-25 08:33:16 by luksy »

StickySock

  • *
  • Posts: 155
    • View Profile
This is awesome! I have been waiting for something like this for a long time.

Lazybones

  • *
  • Posts: 30
    • View Profile
First off, excellent tool.  Thank you for your time.

However, when I go to encode the text, it crashed as 9/705:  "FFVII text editor has stopped working."
(I noticed the dump is 702 files, while the encode is 705.)  I haven't renamed or deleted any of the text files.  I also haven't deleted any entries.
Is this simply due to a change in the number of letters in a given entry?

I'm using Windows 7 32 bit, if it matters.
« Last Edit: 2011-07-27 05:48:14 by Lazybones »

luksy

  • *
  • Posts: 375
    • View Profile
Try downloading it again, I've been fixing bugs since I released 0.5 (I know I should update version no. but I'm lazy  ;D ).

Make sure you're using a clean untouched flevel.lgp + world_us.lgp, copy them from the disc / iso into the field and wm folders, and redump the text.

If it still crashes pack the text files into an archive and post them here and I'll have a look.

Lazybones

  • *
  • Posts: 30
    • View Profile
Sorry for the delay, I've been out all day.  I re-downloaded touphScript and re-copied the files from the CDs, and everything worked perfectly.

This is awesome.  I can finally edit the things that have been bothering me ("It moved!" when you fall into the church) and give Barrett and Cid actual curse words instead of the $%#@!.

Thank you very much for your time and effort on this.

luksy

  • *
  • Posts: 375
    • View Profile
Ah ok, maybe the flevel had been modified by something else beforehand. If you come across anything else please post it, the more the merrier ;)

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Just a note, the tutorials will not encode correctly if you alter them.  I will contact Luksy later and explain why and get it fixed :P

edit.  Now fixed.
« Last Edit: 2011-07-30 16:37:22 by DLPB »

luksy

  • *
  • Posts: 375
    • View Profile
v0.6 released, nothing major on the surface, underneath it's all new-ish. Script patch next (last time I say this! ;D).

luksy

  • *
  • Posts: 375
    • View Profile
v0.7 - window parameters can be specified in the text with the {X x}{Y y}{W w}{H h} tags.

MJarcos

  • Guest
Hello luksy

Would be able to make your tool to extract and replace the texts of the EXE? I found the text of the menus there, and I would be doing a full translation.

The table I used is below

http://www.4shared.com/file/T9-dvvYj/testeff7_2.html

Thank you!

Sorry for my bad english = (

Vgr

  • Global moderator
  • *
  • Posts: 2163
  • If it quacks like a duck, it must be a duck
    • View Profile
The texts are view-able in an hex-editor. If you need help to edit this, you can ask me. You'd have to wait for another program.

And your English is not bad at all. Where you from?

MJarcos

  • Guest
I'm from Brazil...

Do you have any means of contact?

Thanks

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
This tool is not for the exe, it is for game dialogue.  I don't think he is supporting changing exe dialogue, but get a hex editor and do it yourself.  It is easy to edit the game manually.

Vgr

  • Global moderator
  • *
  • Posts: 2163
  • If it quacks like a duck, it must be a duck
    • View Profile
Do you have any means of contact?

Guess you already know, since you added me to msn :P

luksy

  • *
  • Posts: 375
    • View Profile
0.8 is out, it now automatically inserts missing windows so 99% of the text should be resizeable now.

This is quite close to being final I think, provided there are no bugs. I may add support for full tutorial editing, and possibly other ingame text too if I can be bothered  ::)

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
and as the best tester on earth I can testify that this has been testified to the best of testability.....

I hope.

There will probably be some form of bug we haven't found but the core of this is working and was an immense amount of work.  Well done Luksy!

luksy

  • *
  • Posts: 375
    • View Profile
v0.9 is up, a few improvements here and there, and tutorials are fully scriptable, which I know you've all been waiting for :P, and if you have FFVII installed you can run touphScript from anywhere assuming the paths are correct.
« Last Edit: 2011-09-26 01:47:05 by luksy »