READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

Master of Magic

The Original Forum. Game archives, full of resources. How to open them? Get help here.
gandrus
ultra-n00b
Posts: 9
Joined: Thu Jan 19, 2006 4:37 pm
Location: Hungary, Europe
Contact:

Master of Magic

Post by gandrus » Thu Jan 19, 2006 4:46 pm

Hi!

I would like to translate Master of Magic to hungarian, and i considered that MultiEx Commander can edit Master of Magic's lbx files. But after that i can not edit with the program, i checked the game list of MultiEx, and i saw, that Master of Magic is in the supported games list, but not editable. Can you make MultiEx Commander to be capable to edit Master of Magic?

Best Regards,
gandrus

User avatar
Mr.Mouse
Site Admin
Posts: 4039
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 412 times
Been thanked: 559 times
Contact:

Post by Mr.Mouse » Thu Jan 19, 2006 6:37 pm

Hi, thanks for the tip. It's an old format and MexCom support is also old. I will see what I can do. ;)

User avatar
PXR
VIP member
VIP member
Posts: 61
Joined: Wed Mar 23, 2005 7:55 pm
Location: ::1
Been thanked: 1 time

Post by PXR » Thu Jan 19, 2006 6:51 pm

Code: Select all

ImpType SFileOff ;
Get FILENUM Int 0 ;
Math FILENUM -= 1 ;
Get FOO Long 0 ;
Get FOO Int 0 ;
Get FNX Long 0 ;
For F = 1 To FILENUM ;
SavePos FOFFSETX 0 ;
Get FOFFSET Long 0 ;
SavePos NEXTFILE 0 ;
Get FSIZE Long 0 ;
Math FSIZE -= FOFFSET ;
GoTo FNX 0 ;
GetDString FNAME 20 0 ;
SavePos FNX 0 ;
Log FNAME FOFFSET FSIZE FOFFSETX 0 ;
GoTo NEXTFILE 0 ;
Next F ;
Try this BMS-script, it may work better. :)
I haven't tested it though, since I don't have any archive from the game. I've also attached the compiled script in a ZIP-file. ;)
You do not have the required permissions to view the files attached to this post.

gandrus
ultra-n00b
Posts: 9
Joined: Thu Jan 19, 2006 4:37 pm
Location: Hungary, Europe
Contact:

Post by gandrus » Thu Jan 19, 2006 7:27 pm

Thank you Mr.Mouse! I shall try. I must register, when i want to use the script code, you given, right? I have no paypal account, but i shall check it when i finished the night shift.

User avatar
Mr.Mouse
Site Admin
Posts: 4039
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 412 times
Been thanked: 559 times
Contact:

Post by Mr.Mouse » Thu Jan 19, 2006 8:25 pm

And thanks PXR! I wil test it , I should have a MoM archive somewhere. ;)

gandrus
ultra-n00b
Posts: 9
Joined: Thu Jan 19, 2006 4:37 pm
Location: Hungary, Europe
Contact:

Post by gandrus » Thu Jan 19, 2006 8:34 pm

Mater of Magic is abandonware now, you can download it from: http://www.abandonia.com/games/en/189/MasterofMagic.htm
if you think you need it. :)

User avatar
Mr.Mouse
Site Admin
Posts: 4039
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 412 times
Been thanked: 559 times
Contact:

Post by Mr.Mouse » Thu Jan 19, 2006 8:39 pm

Thanks yeah, but I was already downloading it from The Underdogs, one of my favourite sites :D

User avatar
Mr.Mouse
Site Admin
Posts: 4039
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 412 times
Been thanked: 559 times
Contact:

Post by Mr.Mouse » Thu Jan 19, 2006 11:13 pm

Okay, sorry PXR, your script doesn't work. :P

Here's one that does.

Code: Select all

ImpType SFileOff
Get FN Int 0
Set FNJ Long 512
Set US String _
Get U1 Int 0
Get U2 Long 0
SavePos D 0 
Get STOP Long 0
GoTo D 0
For T = 1 To FN
SavePos FOO 0
Get FO Long 0
SavePos Jump 0
Get FS Long 0
Math FS -= FO
GoTo FNJ 0
If FNJ = STOP 
String FN3 += US
String FN3 += T
Log FN3 FO FS FOO 0
String FN3 -= T
String FN3 -= US
GoTo Jump 0 ;
Else
GetDString FN1 9 0
GetDString FN2 23 0
String FN1 += US
String FN1 += FN2
String FN1 += US
String FN1 += T
Log FN1 FO FS FOO 0
SavePos FNJ 0
GoTo Jump 0
EndIf
Next T
GoTo Jump 0
SavePos FOO 0
Math FO += FS
Set FS Long 0
Log "" FO FS FOO 0
I had to play some tricks with the MexCom script to make it possible for you to edit them. Note that the soundfx.lbx file can't hold all filenames(only some fixed space reserved), so I had to fix that.

Also, there will allways be a placeholder "noname1" at the back of each archive. Do not replace this. It is needed to be able to replace the real last file of the archive (the one before "noname" ).

Add it to your MRF file (Add BMS to MRF option) and enjoy!
You do not have the required permissions to view the files attached to this post.

User avatar
PXR
VIP member
VIP member
Posts: 61
Joined: Wed Mar 23, 2005 7:55 pm
Location: ::1
Been thanked: 1 time

Post by PXR » Fri Jan 20, 2006 9:42 am

Mr.Mouse wrote:Okay, sorry PXR, your script doesn't work. :P

Here's one that does.

Code: Select all

ImpType SFileOff
Get FN Int 0
Set FNJ Long 512
Set US String _
Get U1 Int 0
Get U2 Long 0
SavePos D 0 
Get STOP Long 0
GoTo D 0
For T = 1 To FN
SavePos FOO 0
Get FO Long 0
SavePos Jump 0
Get FS Long 0
Math FS -= FO
GoTo FNJ 0
If FNJ = STOP 
String FN3 += US
String FN3 += T
Log FN3 FO FS FOO 0
String FN3 -= T
String FN3 -= US
GoTo Jump 0 ;
Else
GetDString FN1 9 0
GetDString FN2 23 0
String FN1 += US
String FN1 += FN2
String FN1 += US
String FN1 += T
Log FN1 FO FS FOO 0
SavePos FNJ 0
GoTo Jump 0
EndIf
Next T
GoTo Jump 0
SavePos FOO 0
Math FO += FS
Set FS Long 0
Log "" FO FS FOO 0
I had to play some tricks with the MexCom script to make it possible for you to edit them. Note that the soundfx.lbx file can't hold all filenames(only some fixed space reserved), so I had to fix that.

Also, there will allways be a placeholder "noname1" at the back of each archive. Do not replace this. It is needed to be able to replace the real last file of the archive (the one before "noname" ).

Add it to your MRF file (Add BMS to MRF option) and enjoy!
Oh, okey. I just looked at the specs in the wiki. :P
BTW, no terminators ( ; )? New MexBinder already? :o

User avatar
Mr.Mouse
Site Admin
Posts: 4039
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 412 times
Been thanked: 559 times
Contact:

Post by Mr.Mouse » Fri Jan 20, 2006 9:56 am

PXR wrote:BTW, no terminators ( ; )? New MexBinder already? :o
That's right. I guess I have first rights to work with it. ;)
It will be released with the new version of MexCom. I want to make sure the stuff actually works, noticed some strange goings on while I created the above script, and really want to make sure the Open command works properly as well. I'm thinking to also include an option to load something into a buffer that you can manipulate a bit (like XORing it with some value). But perhaps that will be for a future version. Ahhh, so much to do so little time. :erm:

gandrus
ultra-n00b
Posts: 9
Joined: Thu Jan 19, 2006 4:37 pm
Location: Hungary, Europe
Contact:

Post by gandrus » Fri Jan 20, 2006 4:22 pm

I have no Paypal in here, but my older Brother sended the money to you with his Paypal, when shall he get the unlock key?

User avatar
Mr.Mouse
Site Admin
Posts: 4039
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 412 times
Been thanked: 559 times
Contact:

Post by Mr.Mouse » Fri Jan 20, 2006 5:14 pm

gandrus wrote:I have no Paypal in here, but my older Brother sended the money to you with his Paypal, when shall he get the unlock key?
What's his name?

gandrus
ultra-n00b
Posts: 9
Joined: Thu Jan 19, 2006 4:37 pm
Location: Hungary, Europe
Contact:

Post by gandrus » Fri Jan 20, 2006 6:29 pm

His name is Zoltan Andrusecz and he sent the money via paypal with this name from his yahoo emailaddress.

User avatar
Mr.Mouse
Site Admin
Posts: 4039
Joined: Wed Jan 15, 2003 6:45 pm
Location: Dungeons of Doom
Has thanked: 412 times
Been thanked: 559 times
Contact:

Post by Mr.Mouse » Fri Jan 20, 2006 6:46 pm

Ok, you should have the code now. Thanks ! 8)

gandrus
ultra-n00b
Posts: 9
Joined: Thu Jan 19, 2006 4:37 pm
Location: Hungary, Europe
Contact:

Post by gandrus » Fri Jan 20, 2006 7:24 pm

Thank you for the code, i registered the MultiEx Commander.

Post Reply