Author Topic: [FF7] LGP-file fixer (Missing Download)  (Read 12674 times)

Luctus

  • Guest
[FF7] LGP-file fixer (Missing Download)
« 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/
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

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.
« Last Edit: 2014-07-17 18:28:26 by Covarr »

Carbone

  • Fast newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
Re: FF7 LGP-file fixer
« Reply #1 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.
« Last Edit: 2006-05-28 17:23:09 by Alhexx »

Luctus

  • Guest
Re: FF7 LGP-file fixer
« Reply #2 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
« Last Edit: 2006-05-28 19:27:09 by Luctus »

Carbone

  • Fast newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
Re: FF7 LGP-file fixer
« Reply #3 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.

Luctus

  • Guest
Re: FF7 LGP-file fixer
« Reply #4 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.

Carbone

  • Fast newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
Re: FF7 LGP-file fixer
« Reply #5 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!

Luctus

  • Guest
Re: FF7 LGP-file fixer
« Reply #6 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?

Carbone

  • Fast newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
Re: FF7 LGP-file fixer
« Reply #7 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...

NikO

  • Guest
Re: FF7 LGP-file fixer
« Reply #8 on: 2006-08-03 17:48:12 »
Could either of you just give me a breif tutorial on how to use this?

Luctus

  • Guest
Re: FF7 LGP-file fixer
« Reply #9 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
2) Download the lgp-fix 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

rugbykid

  • Fast newbie
  • *
  • Posts: 30
  • Karma: 0
  • [URL=http://www.ff-fan.com][IMG]http://www.ff-fan.
    • View Profile
Re: FF7 LGP-file fixer
« Reply #10 on: 2007-06-27 16:27:38 »
No Of The Links Works  :-( Please I Need Them!

Chrisu

  • Insane poster
  • *
  • Posts: 375
  • Karma: 0
  • Simply there
    • View Profile
    • Christian's Programs
Re: FF7 LGP-file fixer
« Reply #11 on: 2007-06-28 20:00:26 »
Another solution would be trying to create the LGP-Archive with Highwind. ;)

rugbykid

  • Fast newbie
  • *
  • Posts: 30
  • Karma: 0
  • [URL=http://www.ff-fan.com][IMG]http://www.ff-fan.
    • View Profile
Re: FF7 LGP-file fixer
« Reply #12 on: 2007-07-08 09:29:28 »
Thanks A Lot! I'll Try It Out!  :-) :-D

kruci

  • Crazy poster
  • *
  • Posts: 105
  • Karma: 0
    • View Profile
Re: FF7 LGP-file fixer
« Reply #13 on: 2007-07-18 19:34:29 »
Hi.
can anyone reupolad this fixer?

jcm45

  • Guest
Re: FF7 LGP-file fixer
« Reply #14 on: 2008-04-22 18:10:46 »
agreed anyone actually have this fixer?  it would be great if someone could upload it again.