Qhimm.com Forums

Final Fantasy Forums => Tools => FF7 Tools => Topic started by: Luctus on 2006-05-21 12:58:17

Title: [FF7] LGP-file fixer (Missing Download)
Post by: Luctus on 2006-05-21 12:58:17
I found out when trying to apply the reunion patch that Ficedula's LGP Tools didn't always create correct LGP files, resulting in the infamous "Can't find file..." messages. So, I wrote a quick hack in python to rebuild the corrupt part.

Things to take note of:
1) You'll need the python interpreter to run this, get it at http://www.python.org/download/ (http://www.python.org/download/)
2) This was a quick hack written by a programmer for a programmer, don't expect it to be easy to use or even working :roll:
3) I will probably be here every once in a while to answer questions, but don't expect anything
4) This comes with absolutely NO warrany whatsoever. I will not be held responsible for lost data, loss of braincells or your dog badmouthing you.

Usage: python lgpfix.py filetofix.lgp
Get it at: Updated, look below (http://forums.qhimm.com/index.php?topic=5619.msg72915#msg72915)

A better usage guide will probably come when I'm not so effin tired, unless some python-savvy person does so before me.

For the curios and technically inclined; the corrupt part was what ficedula calls the "CRC" chunk, the quick index into the datasoup For some reason LGP Tools only created a small part of this index [on my system]. My script simply goes through the list of filenames and recreates the missing part.
Title: Re: FF7 LGP-file fixer
Post by: Carbone on 2006-05-27 10:44:26
I got the following error when I tried to use the fix:

Code: [Select]
File "lgpfix.py", line 98, in ?
      main()
File "lgpfix.py", line 32, in main
      (fname, flenght) = struct.unpack(  "20s l", file.read( 24 )  )
struct.error: unpack str size does not match format

I tried the "fixed" lgp anyways, but it wasn't really helpful. Any ideas?

Mod Edit: Please use the "Modify" button instead of double-posting.
Title: Re: FF7 LGP-file fixer
Post by: Luctus on 2006-05-28 18:30:25
Fixed now. I also compiled it into an executable for convenience.

Executable: http://rapidshare.de/files/21630234/lgpfix.zip.html 1,2Mb, standalone
Usage: lgpfix.exe filetofix.lgp

Updated script: http://rapidshare.de/files/21630187/lgpfix.py.html 2kb, requires python installed
Usage: python lgpfix.py filetofix.lgp
Title: Re: FF7 LGP-file fixer
Post by: Carbone on 2006-05-28 18:42:20
Duh, this is becoming a really nasty problem. I used that new lgpfix.exe, and this time I get an error about missing ACFE.aki file when starting a new game.. It's really cool that someone is trying to create a solution tho.

I'll see if a fresh install helps when I'm not too tired trying to fix this bulls*it.
Title: Re: FF7 LGP-file fixer
Post by: Luctus on 2006-05-28 19:27:04
Hooray for doublechecking stuff before uploading them!

In short; I'm an idiot and it should work now.
Title: Re: FF7 LGP-file fixer
Post by: Carbone on 2006-05-28 19:59:43
Finally! That updated lgpfix.py did the trick for me, but .exe didn't help. Make sure this fix gets its place in a stickied thread. Thanks alot!
Title: Re: FF7 LGP-file fixer
Post by: Luctus on 2006-05-28 20:53:57
Funny, I just tried applying the fix using the .exe on a fresh installation with reunion patch which worked perfectly, sure you grabbed the latest one?
Title: Re: FF7 LGP-file fixer
Post by: Carbone on 2006-05-28 21:07:04
I just used a fresh char.lgp from the CD with it, so my testing wasn't 100% certain. But now some other patch messed up my game, damnit. Probably the high-res patch used with NPC patch. Anyways, nothing wrong with your fix, just gotta install all of them in the right order. Oh the joys...
Title: Re: FF7 LGP-file fixer
Post by: NikO on 2006-08-03 17:48:12
Could either of you just give me a breif tutorial on how to use this?
Title: Re: FF7 LGP-file fixer
Post by: Luctus on 2006-08-04 21:46:16
1) Construct a new char.lgp file with your modified content using ficedula's tool like described here (http://forums.qhimm.com/index.php?topic=4451.msg59699#msg59699")
2) Download the lgp-fix (http://rapidshare.de/files/21630234/lgpfix.zip.html") and unzip it into your Final Fantasy VII/data/field/ directory
3) Open a command prompt (run->start->cmd.exe) and navigate to where you have your lgpfix.exe and char.lgp (cd \program files\Final Fantasy VII\data\field\ probably)
4) Type lgpfix.exe char.lgp and press enter
5) Pray that it'll work
Title: Re: FF7 LGP-file fixer
Post by: rugbykid on 2007-06-27 16:27:38
No Of The Links Works  :-( Please I Need Them!
Title: Re: FF7 LGP-file fixer
Post by: Chrisu on 2007-06-28 20:00:26
Another solution would be trying to create the LGP-Archive with Highwind (http://christian59.ch.funpic.de/Programmiern/Highwind.rar). ;)
Title: Re: FF7 LGP-file fixer
Post by: rugbykid on 2007-07-08 09:29:28
Thanks A Lot! I'll Try It Out!  :-) :-D
Title: Re: FF7 LGP-file fixer
Post by: kruci on 2007-07-18 19:34:29
Hi.
can anyone reupolad this fixer?
Title: Re: FF7 LGP-file fixer
Post by: jcm45 on 2008-04-22 18:10:46
agreed anyone actually have this fixer?  it would be great if someone could upload it again.