Author Topic: [FF7] command line tools for LGP archives - LGP/UnLGP (v.5)  (Read 93344 times)

Fleet Command

  • *
  • Posts: 135
    • View Profile
lgp/unlgp - command line tools for LGP archives
« Reply #50 on: 2009-08-09 06:14:17 »
Thanks a bunch for notification, Aali. It's highly appreciated. (I just uninstalled TortosiseHg, having assumed the repository is never updated again; so it was a life-saving notification)

Now refactoring and rebuilding...
« Last Edit: 2009-08-10 08:19:39 by FleetCommand »

obesebear

  • *
  • Posts: 1389
    • View Profile
lgp/unlgp - command line tools for LGP archives
« Reply #51 on: 2009-08-10 05:40:09 »
Hmmm... I'm having some trouble with creating a magic.lgp
I've extracted all it's files and folders and combined them into a folder entitled NEW.  I then put NEW in my C: and ran C:\new\lgp C:\new C:\new\magic.lgp

I keep getting an error saying
Could not stat input file: data
Number of files to add: 2806
Successfully created archive with 2806 file(s) out of 2807 file(s) total.


What gives?  It recognizes the "ff7" folder, but has a problem once it reaches the "ff7" subfolder "data".   Is this a problem with the compile, or user error?


Aali

  • *
  • Posts: 1196
    • View Profile
lgp/unlgp - command line tools for LGP archives
« Reply #52 on: 2009-08-10 06:08:43 »
Bah, I broke it :-P

Now it doesn't take subfolders instead. Shame on me for not testing that.

:EDIT:

Let's try this again, another important update is in the repo :-P
« Last Edit: 2009-08-10 06:13:12 by Aali »

Kranmer

  • *
  • Posts: 766
    • View Profile
lgp/unlgp - command line tools for LGP archives
« Reply #53 on: 2009-08-10 06:20:07 »
Great work. Thanks for the update again Aali. Just tested and seems to work fine with subfolders now.
And here is the latest binary compiled by me
http://www.mediafire.com/?oyvmiely1wg

obesebear

  • *
  • Posts: 1389
    • View Profile
lgp/unlgp - command line tools for LGP archives
« Reply #54 on: 2009-08-10 06:42:10 »
Seems to be fixed.  One thing I did notice though that wasn't happening with .3.   When I run UnLGP.exe  (using a drag and drop)  the ff7 folder of magic.lgp now gets put in the C: instead of with the rest of the files.

I'm going to go test the in-game now

Aali

  • *
  • Posts: 1196
    • View Profile
lgp/unlgp - command line tools for LGP archives
« Reply #55 on: 2009-08-10 07:08:42 »
unlgp didn't change with 0.4b

You should of course discard any broken archives created with 0.3b

:EDIT:

Nevermind, I broke it again :/
FF7 may or may not accept the archive, but both lgp and unlgp are doing things they shouldn't be doing.
« Last Edit: 2009-08-10 07:14:42 by Aali »

obesebear

  • *
  • Posts: 1389
    • View Profile
lgp/unlgp - command line tools for LGP archives
« Reply #56 on: 2009-08-10 07:23:44 »
I found the problem.  I used .4 unlgp to extract all the files of the original magic.lgp, and everything seems to have worked beautifully.
I then used lgp to create a new magic.lgp, and again, everything seems to work

It's once I use unlgp on the newly created magic.lgp that the ff7 folder defaults to being put in the C:.  Also, if I'm not mistaken, some of the files are being placed in different locations within the magic.lgp

I've been working on editing odin, and originally all his files are in the main section of the .lgp.  So I replace those files with my new ones (that work using LGPTools A <> B replace) and create the new magic.lgp.  Upon using UnLGP on this new one, however, those files are either missing, or have been relocated somewhere else. 

It's getting late so I will see if I can find them sometime tomorrow.

Aali

  • *
  • Posts: 1196
    • View Profile
lgp/unlgp - command line tools for LGP archives
« Reply #57 on: 2009-08-10 07:25:58 »
Third time's a charm; pushed another update. This one should not create those semi-broken lgps and unlgp should no longer barf on the same semi-broken files.

Fleet Command

  • *
  • Posts: 135
    • View Profile
lgp/unlgp - command line tools for LGP archives
« Reply #58 on: 2009-08-10 08:24:15 »
Is it safe to say "Nice work, thank you, Aali"? ;) Just kidding. Thanks for your attention. May the God forgive me for uninstalling TortoiseHg...

Now refactoring and recompiling. For historic reason, I'm going to keep the whole repository.

Kranmer

  • *
  • Posts: 766
    • View Profile
lgp/unlgp - command line tools for LGP archives
« Reply #59 on: 2009-08-10 08:28:07 »
Wow so many updates in 1 day, great work Aali.
0.5b compiled binary compiled by me
http://www.mediafire.com/?zz2adyze5km

Aali

  • *
  • Posts: 1196
    • View Profile
lgp/unlgp - command line tools for LGP archives
« Reply #60 on: 2009-08-10 08:30:48 »
Wow so many updates in 1 day, great work Aali.
0.5b compiled binary compiled by me
http://www.mediafire.com/?zz2adyze5km

Yeah.. except the only reason there were so many updates today is that I couldn't get it right the first time and didn't test it properly :-P

Fleet Command

  • *
  • Posts: 135
    • View Profile
lgp/unlgp - command line tools for LGP archives
« Reply #61 on: 2009-08-10 08:36:19 »
^ Don't worry about not getting it right, Celebrated One. They say "Failure is not the antonym of success; it is a component of great achivements."

By the way, the version numbering is a bit suggestive, as they are sub-zero. Tell us Aali, are you planning a major release? A major v1.0 or something?

Kranmer

  • *
  • Posts: 766
    • View Profile
lgp/unlgp - command line tools for LGP archives
« Reply #62 on: 2009-08-10 08:39:58 »
lol. Well its still good to see active updates even if its just fixing things.
Also FleetCommand so you really need TortoiseHG for this project ? since its only 4 src files its just as fast to just download the RAW files in your internet explorer (or whatever you use for browsing the internet) then save them to the same folder and you wont have to install any extra programs.

Fleet Command

  • *
  • Posts: 135
    • View Profile
lgp/unlgp - command line tools for LGP archives
« Reply #63 on: 2009-08-10 08:57:08 »
^ Oh, I know that, Kranmer. It was implicit speech.

By the way, thank you too, Kranmer. Thank you for providing the forum with up-to-date executable LGP/UNLGP. I believe you too deserve being thanked.

Kranmer

  • *
  • Posts: 766
    • View Profile
lgp/unlgp - command line tools for LGP archives
« Reply #64 on: 2009-08-10 09:02:29 »
well i would have liked to have created a GUI for this but there is just 1 very small problem. I dont know how.

Fleet Command

  • *
  • Posts: 135
    • View Profile
lgp/unlgp - command line tools for LGP archives
« Reply #65 on: 2009-08-10 09:11:40 »
If that is all your problem, ... Maybe I can tell you how... I don't develop a GUI version myself for the reason mentioned above but it is against no law to tell others how to do that.

But first and foremost, do you know any visual/RAD programming languages? Such as Delphi or C#?
« Last Edit: 2009-08-10 09:21:52 by FleetCommand »

Kranmer

  • *
  • Posts: 766
    • View Profile
lgp/unlgp - command line tools for LGP archives
« Reply #66 on: 2009-08-10 09:50:50 »
not really, i have learned a little of most but i cant actually fully code in any language (i am more of an editor of existing code and compiler then a creator). i doubt i would be able to make one so i think i will just forget about it and just use the normal command line system for now but thanks for the offer anyway.
I just wish there was a way of making a generic GUI that could run any DOS cmd using somthing simple like a script or somthing along those lines so that it could be used with any DOS program.

obesebear

  • *
  • Posts: 1389
    • View Profile
lgp/unlgp - command line tools for LGP archives
« Reply #67 on: 2009-08-10 15:34:37 »
Third time's a charm; pushed another update. This one should not create those semi-broken lgps and unlgp should no longer barf on the same semi-broken files.

Lol, I'll go ahead and test this one (in-game too) and post back with my results.  Thanks to both of you, Aali and Kranmer, for being so quick to update the command line  :-)

EDIT
Hurrah! Everything in magic.lgp is working flawlessly with the .5 release :D

Also, I thought this little document would be handy for some of the less computer savvy http://www.mediafire.com/download.php?kwlvlyzjz2y
« Last Edit: 2009-08-10 16:45:26 by obesebear »

LeeHiOoO

  • *
  • Posts: 128
    • View Profile
lgp/unlgp - command line tools for LGP archives
« Reply #68 on: 2009-08-10 17:47:50 »
I would do a GUI if I know how to [2]

I can only code in vb tho...  :-(

Cyber Light

  • Guest
lgp/unlgp - command line tools for LGP archives
« Reply #69 on: 2009-08-11 08:20:25 »
I create new in C put magic.lgp and unlgp.exe in this folder, drag and drop magic.lgp into unlgp.exe and i see this, not have anything continue.  :oops:

Kranmer

  • *
  • Posts: 766
    • View Profile
lgp/unlgp - command line tools for LGP archives
« Reply #70 on: 2009-08-11 10:45:07 »
Ultimate Dragon after a long time that screen should disappear and you should be left with the files. If they are not in the same folder there is a high chance it will have extracted to a either your root (for example the root of your C drive) or it will extract to C:\Documents and Settings\user (user will be whatever your username is) i aint 100% sure why this is but can be gotten around if you use a command after you extract if you dont drag and drop.

Cyber Light

  • Guest
lgp/unlgp - command line tools for LGP archives
« Reply #71 on: 2009-08-11 15:24:38 »
Thank you kranmer. I create .bat file like this and it work  :-)
unlgp.bat
Code: [Select]
unlgp magic.lgplgp.bat
Code: [Select]
lgp magiclgp magic.lgp

Fleet Command

  • *
  • Posts: 135
    • View Profile
lgp/unlgp - command line tools for LGP archives
« Reply #72 on: 2009-08-13 05:04:03 »
I would do a GUI if I know how to [2]

I can only code in vb tho...  :-(
Got your message too. Do you know anything about C, C++, or C#? At least, can your read and understand LGP Tools code?

obesebear

  • *
  • Posts: 1389
    • View Profile
lgp/unlgp - command line tools for LGP archives
« Reply #73 on: 2009-08-13 05:12:00 »
FleetCommand, are you still creating a GUI for these?

LeeHiOoO

  • *
  • Posts: 128
    • View Profile
lgp/unlgp - command line tools for LGP archives
« Reply #74 on: 2009-08-14 18:48:21 »
Got your message too. Do you know anything about C, C++, or C#? At least, can your read and understand LGP Tools code?

I don't know C neither C++.
Some C# i may understand as it's quite like vb.net.
If i can understand lgp tools code? well, some parts yes... some dont. I'll try to figure now..
If u r willing to help me add @ msn.  :-)