Page 1 of 1

LBX import?

Posted: Tue Mar 04, 2003 10:31 am
by Guest
Hello,
Is it possible to enable import of files into LBX archive?
I'm a great fan of Master of Magic by Microprose...

Thanx for doing a good job for all of us :wink:

PS: That Yuri Gagarin's face on your avatar is cool :D

Posted: Tue Mar 04, 2003 2:37 pm
by Mr.Mouse
Well, you can utilize this script in Mex3Scriptor (start from within the program). Then save it as lbx.bms and Use Custom BMS On...

Select the created lbx.bms and then select an archive of your choice.
This will probably let you import into it, but it is not flawless.
The last file of each archive will be corrupted. So it isn't much use eh.
Anyway, here's the script. And perhaps I will look into it some other time.

ImpType SFileOff ;
Get FC Int 0 ;
Get D Int 0 ;
Get D Long 0 ;
SavePos TO 0 ;
For T = 1 to FC ;
GoTo TO 0 ;
SavePos FOO 0 ;
Get FO Long 0 ;
SavePos TO 0 ;
Get FS Long 0 ;
Math FS -= FO ;
Log "" FO FS FOO 0 ;
Next T ;