Author Topic: [PC] LGP inserter/extractor/repacker & library - ulgp (1.2)  (Read 107757 times)

omega res novae

  • *
  • Posts: 541
  • previously known as squall8cloud7
    • View Profile
    • omegas mods google docs
Re: [0.7] ulgp / ulpgGUI - lgp inserter / extractor / repacker
« Reply #50 on: 2012-08-14 22:50:32 »
@pitbrat battle.lgp is the only one ive messed with so far. But its nice to know im not crazy

@luksy thats great! does this do something similar to 7zip and if it does, is it possible to integrate this with 7zip because its open source?

luksy

  • *
  • Posts: 375
    • View Profile
Re: [0.7] ulgp / ulpgGUI - lgp inserter / extractor / repacker
« Reply #51 on: 2012-08-15 04:46:08 »
Here's one for testing

http://dl.dropbox.com/u/3227870/ulgp.7z

It works with both command line and GUI, I'd be grateful if people test it as I don't have the time at the moment.

@squall8cloud7
This is far more simple than 7zip, it only supports lgp files.

I suppose it'd be possible to fork 7zip and add the lgp code, but I don't have the time and patience. 7zip doesn't have any extensibility features that I know of, which is a shame because I looked into it some time ago.

omega res novae

  • *
  • Posts: 541
  • previously known as squall8cloud7
    • View Profile
    • omegas mods google docs
Re: [0.7] ulgp / ulpgGUI - lgp inserter / extractor / repacker
« Reply #52 on: 2012-08-15 04:54:10 »
updated battle lgp on first try. hopefully this cotinues to work this well. great job luksy

Antonia

  • *
  • Posts: 49
    • View Profile
Re: [0.7] ulgp / ulpgGUI - lgp inserter / extractor / repacker
« Reply #53 on: 2012-08-15 04:55:49 »
Here's one for testing

Thanks Luksy. 

I'm gonna be sleeping soon, but have plans to be using this a lot over the next few days, and I know PitBrat said he was needing this for his Bootleg 040 release, so that should definitely get it some good testing too.  :)

ETA: I was doing some tinkering and testing, and dropped this version over the one bundled with Bootleg 0039 (prior to it being used by the program).

It seemed to dump everything ok, but it hard crashes when trying to encode char.lgp

I know there are like 3 files in there that gave the last version some errors about being externally modified and no longer valid or something, but beyond that, it's hard for me to offer much, since none of these are my projects or work, so I can't really be sure what's happening.

Doubt it's much use, but the "more info" box from windows when I tried to manually use the GUI version on the same encode operation:

Code: [Select]
Problem signature:
  Problem Event Name: APPCRASH
  Application Name: ulgp.exe
  Application Version: 0.0.0.8
  Application Timestamp: 502b272d
  Fault Module Name: ulgp.exe
  Fault Module Version: 0.0.0.8
  Fault Module Timestamp: 502b272d
  Exception Code: c0000005
  Exception Offset: 00005540
  OS Version: 6.0.6002.2.2.0.768.3
  Locale ID: 1033
  Additional Information 1: fd00
  Additional Information 2: ea6f5fe8924aaa756324d57f87834160
  Additional Information 3: fd00
  Additional Information 4: ea6f5fe8924aaa756324d57f87834160

Read our privacy statement:
  http://go.microsoft.com/fwlink/?linkid=50163&clcid=0x0409
 

The most specific I can be is that I think it's trying to encode to:
C:\Temp\Bootleg\Bootleg_Setup\Data_Working\field\char.lgp
Taking (all?) files from:
C:\Temp\Bootleg\Bootleg_Setup\char_lgp.patch

Would need PitBrat's input to be more specific and/or accurate.  I'll update if I discover anything else that may be helpful.
« Last Edit: 2012-08-15 18:33:07 by Antonia »

xenokain

  • *
  • Posts: 62
    • View Profile
Re: [0.7] ulgp / ulpgGUI - lgp inserter / extractor / repacker
« Reply #54 on: 2012-08-18 03:54:04 »
I used this tool and it works great on  battle.lgp but i have the same error when it comes to repacking char.lgp.It just locks up.I'm on win7 ultimate 64 bit if that helps.

Another thing i noticed.Im trying to use squeeble 's tutorial on model conversion.I'm supposed to extract certain files which belong to the adamantoise model from gqaa-gqda.With LGP tools after extracting battle.lgp from gqaa-gqda it lists 22 files but with ulgp it lists 29 files.Which is the correct one and why is there a difference in how much was extracted?I thought ulgp was just gui on top of lgptools.squeeble's topic is long dead so i cant post there.

PitBrat

  • *
  • Posts: 1376
  • Change to feed the machine.
    • View Profile
Re: [0.7] ulgp / ulpgGUI - lgp inserter / extractor / repacker
« Reply #55 on: 2012-08-18 22:24:55 »
I noticed a couple other things.
The R switch no longer works from the command line.
It just pulls up the GUI interface.
Also, when using D to extract files, if a file doesn't exist in the .LGP archive, ULGP halts with the message 'File not found. Press any key to continue . . .'

Sebuzzie

  • *
  • Posts: 23
    • View Profile
Re: [0.7] ulgp / ulpgGUI - lgp inserter / extractor / repacker
« Reply #56 on: 2012-08-19 00:15:15 »
The download links aren't working for me. Is anyone else experiencing this?
« Last Edit: 2012-08-19 21:21:41 by Sebuzzie »

luksy

  • *
  • Posts: 375
    • View Profile
Re: [0.7] ulgp / ulpgGUI - lgp inserter / extractor / repacker
« Reply #57 on: 2012-08-19 08:27:16 »
I've probably complicated things too much by trying to integrate the GUI and console apps, I'll hack away at it again this evening into something hopefully bug-free, sorry for the mess!

To answer a couple of things: I removed r because I didn't think anyone used it, is it necessary pitbrat? Also this isn't just an lgptools wrapper, think of it as lgptools with more functionality, well if it were bugless of course...

PitBrat

  • *
  • Posts: 1376
  • Change to feed the machine.
    • View Profile
Re: [0.7] ulgp / ulpgGUI - lgp inserter / extractor / repacker
« Reply #58 on: 2012-08-19 16:02:33 »
No, the R switch really isn't necessary.
I only used it to fix magic.lgp because the Avalanche installer damages magic.lgp.
Avalanche buggers up the sky_b.tex file.
I already implemented a redundant, manual fix.

Your ulgp tool is immensely useful.
Thanks for your continued support.

Mendelevium

  • *
  • Posts: 222
    • View Profile
Re: [0.7] ulgp / ulpgGUI - lgp inserter / extractor / repacker
« Reply #59 on: 2012-08-19 18:44:31 »
Your GUI simplified matters some; not that I am inept at using a command line, but hey I am a lazy modder ;).
This tool works nicely for me, so thank you for making it! :3.

xenokain

  • *
  • Posts: 62
    • View Profile
Re: [0.7] ulgp / ulpgGUI - lgp inserter / extractor / repacker
« Reply #60 on: 2012-08-19 22:06:06 »
Nevermind i tried xp and ulgp extracts 29 files and so does lgptools so the correct number is 29.using win7 lgptools only extracted 22 files while ulgp extracted 29 so it was lgptools that gave less files on win7.ulgp is working fine.
« Last Edit: 2012-08-21 01:59:50 by xenokain »

LeonhartGR

  • *
  • Posts: 2577
  • ~Whatever...~ Enjoy life!
    • View Profile
    • LeonhartGR Productions
Re: [0.7] ulgp / ulpgGUI - lgp inserter / extractor / repacker
« Reply #61 on: 2012-09-08 02:20:12 »
Just to help...when using 0.5 gui to recompile world_us.lgp an error occurred:
The volume for a file has been externally altered so that the opened file is no longer valid.

I'm not sure if I've done something wrong but I succeeded in recompiling with Aali's using the command line.

PitBrat

  • *
  • Posts: 1376
  • Change to feed the machine.
    • View Profile
Re: [0.7] ulgp / ulpgGUI - lgp inserter / extractor / repacker
« Reply #62 on: 2012-09-09 20:32:47 »
I still receive errors when trying to UPDATE archives even with the 0.8 version of ULGP.
ULGP won't update certain files and crashes with others.

I have better luck by creating an entirely new .lgp archive.
  Extract all of the files from the .lgp archive into a temporary folder.
  Copy the new files over the old files in the temporary folder.
  Use ULGP to compile the files from the temporary folder into a new .lgp archive.

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: [0.7] ulgp / ulpgGUI - lgp inserter / extractor / repacker
« Reply #63 on: 2012-09-09 20:48:57 »
Last I heard Luksy was going back to doing things the way he used to  8-)

Grondoval

  • *
  • Posts: 25
    • View Profile
Re: [0.7] ulgp / ulpgGUI - lgp inserter / extractor / repacker
« Reply #64 on: 2012-12-24 20:17:14 »
I have a problem with encoding:

i dumped battle.lgp, i inserted last bombing mission projects battle models there and when i try to encode i get a error that says:

"El volumen para un archivo ha sido alterado externamente, por lo que el archivo abierto ya no es valido."

I´m using ulgpGUI_v0.7

aladore384

  • *
  • Posts: 23
    • View Profile
Re: ulgp - lgp inserter / extractor / repacker
« Reply #65 on: 2012-12-25 03:36:21 »
Well I didn't mean to sound like a tosser, but I see your point. As soon as I posted that I went and found some other tools and stuff that lurky had done, alas I had no idea.

I don't mean to insist, but it's not about luksy being famous. IMO what you did is a very anti-open source behaviour. If Aali didn't want his project and his code to be used freely (as in used by the commoners like me, but also modified and/or improved) he wouldn't give all the technical information (the source code). This has been later proved by Aali himself stating "This is exactly the kind of re-use I intended for my code.".

Your reaction would have been legimitate if luksy took all the credits for himself, but he didn't. Far from that, his very first words explicitly give (some/major, your call) credits to Aali. Indeed, the first two words of the original post are : "I rewrote" as in it's based on someone else's work and the third ("aalis") gives you the original author's name.

I didn't have a chance to get to know Aali or luksy, but they seem both highly respectable gentlemen to my eyes : the former for creating an awesome tool plus giving the code, the latter for improving the code plus giving the credit where it is due and both of them for doing all of this for free on their free time (am I overusing the word "free" ?). This is exactly what the open source philosophy is to me.

As for the virus scan, it just isn't your job. Generally speaking, on boards it isn't the duty of the users to do so but of the administrators/moderators. But I won't blame you for being cautious and trying to be helpful.

It seems like you were well-intended and you just overdid things. I hope my post doesn't sound like pure lecturing, I just wanted to give my opinion on that (which can be a valid definition of lecturing, but you know what I mean).
« Last Edit: 2012-12-25 03:55:42 by aladore384 »

dkma841

  • *
  • Posts: 1225
  • delete
    • View Profile
Re: [0.7] ulgp / ulpgGUI - lgp inserter / extractor / repacker
« Reply #66 on: 2012-12-25 12:37:35 »
I have a problem with encoding:

i dumped battle.lgp, i inserted last bombing mission projects battle models there and when i try to encode i get a error that says:

"El volumen para un archivo ha sido alterado externamente, por lo que el archivo abierto ya no es valido."

I´m using ulgpGUI_v0.7
Try downloading the GUI version instead and if you still get problems just simply get Aalis LGP/ULGP tool and if you want GUI for that if your not used to command line you can download a GuI for that called Lgp Frontend make a folder place your battle.lgp and all the stuff listed in one place then do it's job

luksy

  • *
  • Posts: 375
    • View Profile
Re: [0.7] ulgp / ulpgGUI - lgp inserter / extractor / repacker
« Reply #67 on: 2013-02-20 22:03:52 »
This should be close to final (famous last words) please test

https://dl.dropbox.com/u/3227870/ulgp.7z
https://dl.dropbox.com/u/3227870/libs.7z
https://dl.dropbox.com/u/3227870/source.7z

I'm all ears for questions / suggestions, just make sure you RTFM!
« Last Edit: 2013-02-20 22:05:43 by luksy »

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: [0.7] ulgp / ulpgGUI - lgp inserter / extractor / repacker
« Reply #68 on: 2013-02-21 16:16:13 »

Code: [Select]
C:\Documents and Settings\Administrator\Desktop\7Related\bin>lgp\lgp.exe c:\game
s\ff7\data\field\char.lgp -f charfiles
Adding "charfiles\ACGD.hrc"
Adding "charfiles\ACGE.rsd"
Adding "charfiles\ACGF.P"
Adding "charfiles\ACHA.rsd"
Adding "charfiles\ACHA1.rsd"
Adding "charfiles\ACHA2.rsd"
Adding "charfiles\ACHA3.rsd"
Adding "charfiles\ACHB.P"
Adding "charfiles\ACHB1.p"
Adding "charfiles\ACHB2.p"
Adding "charfiles\ACHB3.p"
Adding "charfiles\ACHC.rsd"
Adding "charfiles\ACHC1.rsd"
Adding "charfiles\ACHC1100.rsd"
Adding "charfiles\ACHD.P"
Adding "charfiles\ACHD1.p"
Adding "charfiles\ACHE.TEX"
Adding "charfiles\ACHF.TEX"
Adding "charfiles\ACIA.TEX"
Adding "charfiles\ACIB.rsd"
Adding "charfiles\ACIB0.rsd"
Adding "charfiles\ACIC.P"
Adding "charfiles\ACID.rsd"
Adding "charfiles\ACID1.rsd"
Adding "charfiles\ACIE.P"
Adding "charfiles\ACIE1.p"
Adding "charfiles\ACIF.rsd"
Adding "charfiles\ACIF1.rsd"
Adding "charfiles\ACIF2.rsd"
Adding "charfiles\ACJA.P"
Adding "charfiles\ACJA1.p"
Adding "charfiles\ACJA2.p"
Adding "charfiles\ACJB.rsd"
Adding "charfiles\ACJB0.rsd"
Adding "charfiles\ACJC.P"
Adding "charfiles\ACJD.rsd"
Adding "charfiles\ACJD1.rsd"
Adding "charfiles\ACJE.P"
Adding "charfiles\ACJE1.p"
Adding "charfiles\ACJF.rsd"
Adding "charfiles\ADAA.P"
Adding "charfiles\ADAB.rsd"
Adding "charfiles\ADAC.P"
Adding "charfiles\ADAD.rsd"
Adding "charfiles\ADAE.P"
Adding "charfiles\ADAF.rsd"
Adding "charfiles\ADAF1.rsd"
Adding "charfiles\ADBA.P"
Adding "charfiles\ADBA1.p"
Adding "charfiles\ADBB.rsd"
Adding "charfiles\ADBC.P"
Adding "charfiles\ADBD.rsd"
Adding "charfiles\ADBE.P"
Adding "charfiles\ADBF.rsd"
Adding "charfiles\ADBF1.rsd"
Adding "charfiles\ADCA.P"
Adding "charfiles\ADCA1.p"
Adding "charfiles\ADCB.A"
Adding "charfiles\ADCD.A"
Adding "charfiles\AQAD.A"
Adding "charfiles\FXCC.A"
Adding "charfiles\sbad.tex"
Adding "charfiles\sbae.tex"
AQAD.A: invalid path.

Why invalid path?

Does same thing with other instructions.  It is always 1 file. I am not sure if it adds it anyway.   Other than that things seem ok.




luksy

  • *
  • Posts: 375
    • View Profile
Re: [0.7] ulgp / ulpgGUI - lgp inserter / extractor / repacker
« Reply #69 on: 2013-02-21 21:10:20 »
lgp doesn't strictly support uppercase characters, I used to just convert everything to lowercase.

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: [0.7] ulgp / ulpgGUI - lgp inserter / extractor / repacker
« Reply #70 on: 2013-02-22 02:37:46 »
This is completely unacceptable. I demand you fix this.

luksy

  • *
  • Posts: 375
    • View Profile
Re: [0.7] ulgp / ulpgGUI - lgp inserter / extractor / repacker
« Reply #71 on: 2013-02-22 04:12:03 »
dir charfiles /l /b /s | lgp char.lgp

 8)

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: [0.7] ulgp / ulpgGUI - lgp inserter / extractor / repacker
« Reply #72 on: 2013-02-22 04:13:37 »
 :o

Seems everything is okay now :)

Kaldarasha

  • *
  • Posts: 2449
  • Prince of Model Editing
    • View Profile
Re: [0.7] ulgp / ulpgGUI - lgp inserter / extractor / repacker
« Reply #73 on: 2013-02-22 17:46:02 »
OK, what is the special trick to use this under Windows7 64bit. I tried different versions of ulgp and it's ever the same.
A cmd window is opening and then it closed immediately. I'm sure that I need some strange .dlls in my SysWOW64 folder, but I have no idea which.

luksy

  • *
  • Posts: 375
    • View Profile