[FF7] LGP-Editor - Highwind (1.21) (Discontinued, use LGP/UNLGP)

  • Thread starter Thread starter Chrisu
  • Start date Start date
Status
Not open for further replies.
C

Chrisu

Guest
THIS PROGRAM IS OUTDATED. USE AALI'S LGP/UNLGP INSTEAD
Download the program
---
Hy guys,
i have been working on a little program to view and edit the lgp-files (like LGP-Tools from ficedula) in .net. I have done the open-part (thanks to the wiki), but when saving the file there is a problem. I have used help of the wiki and made a method to save the lgp-file i opened/edited to the file but when i f.i. open & immediately save the menu-lgp and then run ff7, there are errors that ff7 cant read the files in the archives, even if my created file looks the same as the original file. The errors in App.log look like this:
Code: [Select]
Code:
OFFSET ERROR: usfont_a_l.TEX ERROR: COULD NOT OPEN FILE usfont_a_l.TEXERROR: COULD NOT LOAD TEXTURE DATA FILE usfont_a_l.TEXERROR: COULD NOT LOAD TEXTURE DATA FILE usfont_a_l.timOFFSET ERROR: usfont_b_l.TEX ERROR: COULD NOT OPEN FILE usfont_b_l.TEXERROR: COULD NOT LOAD TEXTURE DATA FILE usfont_b_l.TEXERROR: COULD NOT LOAD TEXTURE DATA FILE usfont_b_l.timOFFSET ERROR: btl_win_a_l.TEX ERROR: COULD NOT OPEN FILE btl_win_a_l.TEXERROR: COULD NOT LOAD TEXTURE DATA FILE btl_win_a_l.TEXERROR: COULD NOT LOAD TEXTURE DATA FILE btl_win_a_l.timOFFSET ERROR: btl_win_a_l.TEX ......
But when i open the archives with my program or ficedulas lgp-tools, i see that the files are in the archives, the archives have even the same file size.
Could someone maybe tell me what problem i have if they know?

Thanks for all help,
Chris
 
Last edited:
Hey Christian,

nice to see all these programs popping up :D

You should compare with an hex editor the file created by your program and the original one to see if there are differences. Just by looking at the error log is hard to define the exact problem but looks like it's coming from the offset table at the start of the file.
 
OK, ive found the problem: In the 3-byte-long check code at the TOC i wrote the string "14 20 20" when it should've been "14 00 00".
Thanks for the help, ill be able to release the program soon.

One more question: How can i generate the crc-code between TOC and the data when creating a new file? the wiki didnt help very much...
 
Last edited:
I can tell you.
It's not a CRC.
It's a hashtable lookup.
I haven't bothered to write it up on the wiki, I hate writing documentation.
 
And btw, you don't even need it, just stick with the data contained in the original files and you'll be good to go
 
Hey, i've finished the first version of my program. It can create and open LGPs and extract, replace, remove and add files. Be sure to save changes in the archive, it's not like LGP-tools that writes all changes instantly to LGPs. I hope i've done the crc/index-part correctly, ive tested creating menu_us.lgp and it worked with the game.
The problem is it's very slow when reading big archives, because it reads the whole file, not just the TOC.

Download

Please tell me if you find bugs or errors in the program!
 
Last edited:
nice work!!!!!!!!

take off the slow to load the big files like the flevel.lgp, is very good program
 
Hi, there's a new release, i have shorted down the loading times by not displaying all files at once in the archives.

Download
 
Really nice program Christian,

i think the solution you used to cut down loading times is not the best one. Instead you should read only the index and verify the end of the file and size without reading the whole thing and use a buffer on file operations
 
OK, but how do I get an account at the wiki? Cant find any register-form there.
 
OK, but how do I get an account at the wiki? Cant find any register-form there.
You must ask someone, Qhimm or halkun I believe can help you there. PM them (do not post to the forum like some have :D ).
Cyb
 
Hey Christian,

i noticed something, now the program is way faster than the older version but it doesn't say the length of each file. Maybe you should jump to each offset and read only the length so you can have it on the list as well. It's gonna slow the program down a little bit but the difference should be minimal.
 
First of all, Thanks for the answers.

_Ombra_: The new 1.05 version does read the lengths too and is nearly as fast as the old one. I changed the Style of the program a bit.

Download the new version here.
 
Hey Christian,

i'm glad to help. The program is coming along nicely. I hope i'll have time to check it deeply in the near future.

Btw, a little graphical glitch. If you resize the window, the Add Foder button and the Extract Selected Files button resizes themselves too. Maybe you should fix a minimun size for the window and when you maximize it the buttons remain in place but the part with the file names, lenght, etc. adapts to the new size. (But is not really important since the program works great)
 
Im impressed, not only does it load files very fast it look easy to use too!
I assume that the empty pane on the right it going to be a viewer/previewer?
 
This panel can only display text files like hrc or src files. A viewer for other types (textures, backgrounds,...) will be implemented soon.
 
Status
Not open for further replies.
Back
Top