lfnetwork.com mark read register faq members calendar

Thread: LAB file Creator/Dumper
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 08-16-2003, 09:38 PM   #1
bgbennyboy
Festively Plump
 
bgbennyboy's Avatar
 
Status: Super Moderator
Join Date: Feb 2002
Location: England
Posts: 1,984
LFN Staff Member 
LAB file Creator/Dumper

I made a .Lab file Creator and Dumper, get it here

In case you didnt know .lab files are the resource files used in Grim Fandango. With the tool you can dump specific files/all files from a .lab or create a .lab out of files you choose. It might be useful if you want to mess with the files inside Grim, you can dump all the files, edit the ones you want, then turn them all back into a .lab file and use them in Grim.

Usage should be self-explanatory, source code available if anyone wants it. If anyone does use it please let me know what you think/what the most glaring bug is.

bgbennyboy is offline   you may: quote & reply,
Old 08-18-2003, 11:59 PM   #2
bgbennyboy
Festively Plump
 
bgbennyboy's Avatar
 
Status: Super Moderator
Join Date: Feb 2002
Location: England
Posts: 1,984
LFN Staff Member 
I updated it to support the EMI .m4b lab files. Get it `ere.

EMI lab's seem to have the name directory placed randomly in the file. I chose to place it after the file entry records as with the older GF lab's.

EMI seems to like the files in it's lab's in a specific order, GF doesnt seem bothered about this. To make compiled files work in EMI therefore, I have added 'save filelist' and 'load filelist' buttons. These let you save the order of the files and load that same order back in, so that the file order will be the same when you compile the file. I added checking to load filelist, so if the files in the filelist and the folder you choose dont match up, you will be told so and not allowed to compile the file. Save/load filelist will work for the old Grim lab's too.

The filename's in the EMI lab's often contain backslashes, since you can't have backslashes in a filename in windows the backslashes are replaced with [] when file's are saved. When file's are loaded back in to be compiled into an EMI lab the [] are replaced with the original backslashes. I have not added this conversion when compiling a Grim lab, since they do not have backslashes in.

Finally, the file header in the .m4b spec was incomplete, this is it with the missing long filled in:

Code:
id	long	LucasArts Bundle ID ("LABN")
version	long	File revision number
files	long	number of files in bundle
dirsize	long	NameDir size
dirofs	long	Start offset of the name directory when decreased by 0x013D0F (81167)

bgbennyboy is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Mixnmojo.com > Community Discussion Forums > SCUMM > LAB file Creator/Dumper

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:41 AM.


LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.