[PC] LGP inserter/extractor/repacker & library - ulgp (1.2)

  • Thread starter Thread starter luksy
  • Start date Start date
Status
Not open for further replies.
L

luksy

Guest
I rewrote aalis lgp tools to support repacking, useful for mods etc. so all files don't need to be dumped to disk just to overwrite a few.

The main archive contains the source, feel free to use the lgp interface in any projects.

ulgp v1.2
ulgp v1.2.1 (forces lowercase files internally)
ulgp v1.3.2 (no memory mapping, use if you get memory errors)

App tl;dr:

Extract magic.lgp to a folder named "magic"
ulgp -x magic.lgp

Create magic.lgp from a folder named "magic"
ulgp -c magic.lgp

Overwrite files in magic.lgp from those in a folder named "magic"
ulgp -r magic.lgp

GUI should be self-explanatory, the two versions are to match the xp and vista/7/8 visual styles

Run install.bat to associate .lgp files with ulgp, once installed simply double click on an .lgp file to extract to the default folder. Hold shift and right click on any folder to create / add to an .lgp file using the files inside.

Read the readme for advanced usage!, e.g. if you need to distribute mods etc.

Major thanks to Aali for the original lgp code.
 
Last edited:
First of all, did you get aali's permission to mess around with his stuff? Not sure if he cares but you should always ask.

Secondly, this may be pretty useful, cheers.

Thirdly, I scanned them for anyone who cares:

Code: [Select]
Code:
Malwarebytes' Anti-Malware 1.46www.malwarebytes.orgDatabase version: 4406Windows 6.1.7600Internet Explorer 8.0.7600.1638517/02/2012 21:19:11mbam-log-2012-02-17 (21-19-11).txtScan type: Quick scanObjects scanned: 1Time elapsed: 31 second(s)Memory Processes Infected: 0Memory Modules Infected: 0Registry Keys Infected: 0Registry Values Infected: 0Registry Data Items Infected: 0Folders Infected: 0Files Infected: 0Memory Processes Infected:(No malicious items detected)Memory Modules Infected:(No malicious items detected)Registry Keys Infected:(No malicious items detected)Registry Values Infected:(No malicious items detected)Registry Data Items Infected:(No malicious items detected)Folders Infected:(No malicious items detected)Files Infected:(No malicious items detected)
Code: [Select]
Code:
Avira AntiVir PersonalReport file date: 17 February 2012  21:21Scanning for 3466019 virus strains and unwanted programs.The program is running as an unrestricted full version.Online services are available:Licensee        : Avira AntiVir Personal - Free AntivirusSerial number   : 0000149996-ADJIE-0000001Platform        : Windows 7 x64Windows version : (plain)  [6.1.7600]Boot mode       : Normally bootedUsername        : RyanComputer name   : RYAN-VAIOVersion information:BUILD.DAT       : 10.2.0.707     36070 Bytes  25/01/2012 13:11:00AVSCAN.EXE      : 10.3.0.7      484008 Bytes  03/07/2011 11:53:33AVSCAN.DLL      : 10.0.5.0       47464 Bytes  03/07/2011 11:53:33LUKE.DLL        : 10.3.0.5       45416 Bytes  03/07/2011 11:53:34LUKERES.DLL     : 10.0.0.1       12648 Bytes  10/02/2010 23:40:49AVSCPLR.DLL     : 10.3.0.7      119656 Bytes  03/07/2011 11:53:34AVREG.DLL       : 10.3.0.9       88833 Bytes  13/07/2011 04:35:09VBASE000.VDF    : 7.10.0.0    19875328 Bytes  06/11/2009 09:05:36VBASE001.VDF    : 7.11.0.0    13342208 Bytes  14/12/2010 00:29:09VBASE002.VDF    : 7.11.19.170 14374912 Bytes  20/12/2011 06:03:08VBASE003.VDF    : 7.11.21.238  4472832 Bytes  01/02/2012 08:29:51VBASE004.VDF    : 7.11.21.239     2048 Bytes  01/02/2012 08:29:51VBASE005.VDF    : 7.11.21.240     2048 Bytes  01/02/2012 08:29:51VBASE006.VDF    : 7.11.21.241     2048 Bytes  01/02/2012 08:29:52VBASE007.VDF    : 7.11.21.242     2048 Bytes  01/02/2012 08:29:52VBASE008.VDF    : 7.11.21.243     2048 Bytes  01/02/2012 08:29:52VBASE009.VDF    : 7.11.21.244     2048 Bytes  01/02/2012 08:29:54VBASE010.VDF    : 7.11.21.245     2048 Bytes  01/02/2012 08:29:54VBASE011.VDF    : 7.11.21.246     2048 Bytes  01/02/2012 08:29:54VBASE012.VDF    : 7.11.21.247     2048 Bytes  01/02/2012 08:29:54VBASE013.VDF    : 7.11.22.33   1486848 Bytes  03/02/2012 08:17:25VBASE014.VDF    : 7.11.22.56    687616 Bytes  03/02/2012 08:18:38VBASE015.VDF    : 7.11.22.92    178176 Bytes  06/02/2012 08:13:56VBASE016.VDF    : 7.11.22.154   144896 Bytes  08/02/2012 08:18:23VBASE017.VDF    : 7.11.22.220   183296 Bytes  13/02/2012 08:18:55VBASE018.VDF    : 7.11.23.34    202752 Bytes  15/02/2012 08:13:51VBASE019.VDF    : 7.11.23.35      2048 Bytes  15/02/2012 08:13:51VBASE020.VDF    : 7.11.23.36      2048 Bytes  15/02/2012 08:13:51VBASE021.VDF    : 7.11.23.37      2048 Bytes  15/02/2012 08:13:51VBASE022.VDF    : 7.11.23.38      2048 Bytes  15/02/2012 08:13:51VBASE023.VDF    : 7.11.23.39      2048 Bytes  15/02/2012 08:13:51VBASE024.VDF    : 7.11.23.40      2048 Bytes  15/02/2012 08:13:51VBASE025.VDF    : 7.11.23.41      2048 Bytes  15/02/2012 08:13:51VBASE026.VDF    : 7.11.23.42      2048 Bytes  15/02/2012 08:13:51VBASE027.VDF    : 7.11.23.43      2048 Bytes  15/02/2012 08:13:52VBASE028.VDF    : 7.11.23.44      2048 Bytes  15/02/2012 08:13:52VBASE029.VDF    : 7.11.23.45      2048 Bytes  15/02/2012 08:13:52VBASE030.VDF    : 7.11.23.46      2048 Bytes  15/02/2012 08:13:52VBASE031.VDF    : 7.11.23.64     27136 Bytes  16/02/2012 08:13:52Engineversion   : 8.2.10.2  AEVDF.DLL       : 8.1.2.2       106868 Bytes  25/10/2011 14:10:59AESCRIPT.DLL    : 8.1.4.5       442745 Bytes  13/02/2012 08:19:51AESCN.DLL       : 8.1.8.2       131444 Bytes  27/01/2012 08:20:22AESBX.DLL       : 8.2.4.5       434549 Bytes  01/12/2011 18:53:58AERDL.DLL       : 8.1.9.15      639348 Bytes  11/09/2011 00:44:22AEPACK.DLL      : 8.2.16.3      799094 Bytes  13/02/2012 08:19:45AEOFFICE.DLL    : 8.1.2.25      201084 Bytes  01/01/2012 15:08:14AEHEUR.DLL      : 8.1.3.27     4391285 Bytes  13/02/2012 08:19:33AEHELP.DLL      : 8.1.19.0      254327 Bytes  20/01/2012 08:33:34AEGEN.DLL       : 8.1.5.21      409971 Bytes  03/02/2012 08:30:54AEEXP.DLL       : 8.1.0.20       70004 Bytes  14/02/2012 08:20:48AEEMU.DLL       : 8.1.3.0       393589 Bytes  23/11/2010 00:26:52AECORE.DLL      : 8.1.25.4      201079 Bytes  14/02/2012 08:20:42AEBB.DLL        : 8.1.1.0        53618 Bytes  08/08/2010 11:18:01AVWINLL.DLL     : 10.0.0.0       19304 Bytes  14/01/2010 12:03:38AVPREF.DLL      : 10.0.3.2       44904 Bytes  03/07/2011 11:53:33AVREP.DLL       : 10.0.0.10     174120 Bytes  17/05/2011 21:03:36AVARKT.DLL      : 10.0.26.1     255336 Bytes  03/07/2011 11:53:33AVEVTLOG.DLL    : 10.0.0.9      203112 Bytes  03/07/2011 11:53:33SQLITE3.DLL     : 3.6.19.0      355688 Bytes  28/01/2010 12:57:58AVSMTP.DLL      : 10.0.0.17      63848 Bytes  16/03/2010 15:38:56NETNT.DLL       : 10.0.0.0       11624 Bytes  19/02/2010 14:41:00RCIMAGE.DLL     : 10.0.0.35    2589544 Bytes  03/07/2011 11:53:32RCTEXT.DLL      : 10.0.64.0      97640 Bytes  03/07/2011 11:53:32Configuration settings for the scan:Jobname.............................: ShlExtConfiguration file..................: C:\Users\Ryan\AppData\Local\Temp\1832cb41.avpLogging.............................: DefaultPrimary action......................: interactiveSecondary action....................: ignoreScan master boot sector.............: onScan boot sector....................: onBoot sectors........................: C:, Process scan........................: offScan registry.......................: offSearch for rootkits.................: offIntegrity checking of system files..: offScan all files......................: Intelligent file selectionScan archives.......................: onRecursion depth.....................: 20Smart extensions....................: onMacro heuristic.....................: onFile heuristic......................: AdvancedStart of the scan: 17 February 2012  21:21Starting the file scan:Begin scan in 'C:\Users\Ryan\Tools\ulgp_v0.1\ulgp.exe'End of the scan: 17 February 2012  21:21Used time: 00:00 Minute(s)The scan has been done completely.      0 Scanned directories      1 Files were scanned      0 Viruses and/or unwanted programs were found      0 Files were classified as suspicious      0 files were deleted      0 Viruses and unwanted programs were repaired      0 Files were moved to quarantine      0 Files were renamed      0 Files cannot be scanned      1 Files not concerned      0 Archives were scanned      0 Warnings      0 Notes
 
@Seizmik of course he did, and he has worked on projects here before, there's no need to go hysterical thinking a virus might lurk there...

and if he had created a virus, you do realise it would not show up on any virus scanner?
 
I haven't tried the program in question so I can't say anything about its quality but seeing as luksy is the author it should be pretty good :)

This is exactly the kind of re-use I intended for my code.
 
It has done exactly what I wanted it to do as well... cut down on decoding the whole files.  Less space needed now and faster :)  Plus both decode encode in 1 executable and use of folder inputs outputs.
 
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.

Also, just an idea, is it already possible to extract a particular file if you know it's name via come command?
 
Nice work! This will make automated installers much quicker. No need to extract the whole damn lgp and repack it.
 
0.2 is up, added support for extracting / inserting individual files, hopefully that should be just about it, bugs aside.
 
can someone please tell me how to use this imma noob lol i tried using the aalis lgp with the gui front end but it duznt unpack everything i notice...like my battle lgp is over a gigabyte but when i unpack it its less than 100 mb idk what im doing wrong lol
 
Sounds like whatever you used to edit battle.lgp in the past was simply appending files on the end and updating the toc, assuming the file still works in game you can dump the files and repack, the ~900 Mb of extra data will be old files you don't need.
 
When I double click the program it opens cmd and closes really quick. Is it because I'm using windows 7?
 
@Leonhart7413: You must start CMD.exe before you run it. (Hint: Windows-Key + R)
 
The bug was unrelated to whatever problem you are having, try this:

create a directory somwhere, copy in an lgp file and ulgp.exe.

Make sure neither is selected, hold shift, right click -> "open command window here".

Type:

ulgp d whatever.lgp somefolder

and press enter. If you still can't get it to run I have no idea what your issue is.
 
You need to understand how Command Line programs work leonhart.
Sorry I've done it before but I forgot... I thought this was more automated... I'll try again thanks :)
 
Status
Not open for further replies.
Back
Top