Massive MM tools update

The role-playing games (I-X) that started it all and the various spin-offs (including Dark Messiah).
User avatar
GrayFace
Round Table Hero
Round Table Hero
Posts: 1660
Joined: 29 Nov 2005

Massive MM tools update

Unread postby GrayFace » 27 Apr 2015, 07:04

Here are new versions of my tools, now all with source code. Go to https://sites.google.com/site/sergroj/w ... chive-v1.1 for download links.

MMArchive v1.1
Fully-featured M&M and Heroes 3 archives editor. Supports all archive types except ".hwl".
What's new:
[+] Full files Drag&Drop and Copy&Paste support
[+] "Merge With..." menu item
[+] "Extract For DefTool..." menu item
[+] When importing 24 bit bitmaps into icons.lod an adequate palette is generated
[+] Drag&dropping an archive gets it opened. You can still add an archive as a file using "Add" menu item.
[+] *.pac files association
[+] Def frame shown under trackbar when seeking manually
[+] Text format for Favorites list ("Store Favorites As Text" menu item)
[+] Favorites can be sorted manually
[+] Shift+Delete removes the file without creating a backup
[+] Rename
[+] Custom lods support
[+] RLE bitmaps support (including those saved by PhotoShop)
[-] Palette numbers weren't displayed for bitmaps.lod files in MM
[-] Critical bug in adding files to VID archives
[-] Adding files to games.lod wasn't handled properly
[-] File backups were only created for LOD archives
[-] Files added to MM SND archives weren't being compressed
[-] Crash when quickly browsing through SND archives
[-] Big Favorites list was causing a delay on close
[-] Favorites list wasn't saved in some usage scenarios
[-] Drag&drop issues of Favorites list
[-] Sometimes MMArchive wasn't able to select the file chosen in Favorites
[*] Better handling of corrupt files in SND archives
[*] Proper delays for adventure map defs


LodCompare v1.3
Lets you compare two lod/vid/snd archives and see which files have changed. Lets you create a new archive containing only those files. Thus you can minimize size of a mod by distributing only this archive and merging it to user's archive using LodMerge.
What's new:
[+] Now similar files that were compressed differently are be considered the same (but not in MM lods)
[+] Shows number of different files.
[+] Allows adding files to an existing archive.
[-] Fixed progress bar behavior.
[-] Correct handling of .vid archives.


LodMerge v1.1
Lets you merge two lod/vid/snd archives together.
What's new:
[+] /bf modifier makes the program create backups for individual files.
[+] /r modifier makes the program rebuild the archive.
[-] Critical bug in adding files to VID archives
[-] Adding files to games.lod wasn't handled properly


Txt Edit v1.2
Txt tables editor for Heroes 3 and M&M.
What's new:
[+] Find&Replace dialogs
[+] Select Row, Select Column
[+] "Add to context menu for *.txt" option
[+] Immediate language switching
My patches: MM6 MM7 MM8. MMExtension. Tools. Also, I love Knytt Stories and Knytt Underground. I'm also known as sergroj.

User avatar
the beavers1
Assassin
Assassin
Posts: 299
Joined: 20 Feb 2011
Location: Lil town in Oregon

Unread postby the beavers1 » 27 Apr 2015, 10:14

yay! it is finally here.
"Rot in Hell You Penny Pinching Miser!"

User avatar
BTB
Peasant
Peasant
Posts: 93
Joined: 21 Aug 2011
Location: Houston, TX
Contact:

Unread postby BTB » 01 May 2015, 01:09

Is there anything for MMExtension planned/in the works? I recall you spoke of adding hooks before to edit the skill level perks in the .exe (in response to me asking about the possibility of editing them).

My apologies if I'm being a pest, since I rather feel like one at this point.
"You don't have to be a vampire to die like one... bitch." -Simon Belmont

User avatar
GreatEmerald
CH Staff
CH Staff
Posts: 3330
Joined: 24 Jul 2009
Location: Netherlands

Unread postby GreatEmerald » 01 May 2015, 14:00

Hmm, Delphi... One thing that would be really nice is to have an MMArchive library, so that I could have DArcomage use it to read MM7/standalone Arcomage resources directly, for copyright reasons. But it would have to be using the C calling convention for interfacing to work. Hmm.

User avatar
GrayFace
Round Table Hero
Round Table Hero
Posts: 1660
Joined: 29 Nov 2005

Unread postby GrayFace » 04 May 2015, 12:51

BTB wrote:Is there anything for MMExtension planned/in the works? I recall you spoke of adding hooks before to edit the skill level perks in the .exe (in response to me asking about the possibility of editing them).
Yes, MMExt version is coming soon, but it won't have that.
GreatEmerald wrote:Hmm, Delphi... One thing that would be really nice is to have an MMArchive library, so that I could have DArcomage use it to read MM7/standalone Arcomage resources directly, for copyright reasons. But it would have to be using the C calling convention for interfacing to work.
Surely Delphi supports C calling conversion. A library to extract files would be easy to do. How should it return the bitmap? Like, return HBITMAP or write it to buffer or to disk?
My patches: MM6 MM7 MM8. MMExtension. Tools. Also, I love Knytt Stories and Knytt Underground. I'm also known as sergroj.

User avatar
GreatEmerald
CH Staff
CH Staff
Posts: 3330
Joined: 24 Jul 2009
Location: Netherlands

Unread postby GreatEmerald » 04 May 2015, 13:52

GrayFace wrote:Surely Delphi supports C calling conversion. A library to extract files would be easy to do. How should it return the bitmap? Like, return HBITMAP or write it to buffer or to disk?
A buffer compatible with SDL or OpenGL, preferably.

User avatar
GrayFace
Round Table Hero
Round Table Hero
Posts: 1660
Joined: 29 Nov 2005

Unread postby GrayFace » 04 May 2015, 16:06

GreatEmerald wrote:A buffer compatible with SDL or OpenGL, preferably.
Just a buffer. Pointer + Size.
My patches: MM6 MM7 MM8. MMExtension. Tools. Also, I love Knytt Stories and Knytt Underground. I'm also known as sergroj.

User avatar
GreatEmerald
CH Staff
CH Staff
Posts: 3330
Joined: 24 Jul 2009
Location: Netherlands

Unread postby GreatEmerald » 04 May 2015, 18:15

GrayFace wrote:Just a buffer. Pointer + Size.
Yea, that's what it boils down to. I assume the pixel format is constant between all files.

And what about audio? Looks similar, buffer and length; though specs (sample rate, etc.) are also needed, is it constant between all files as well?

User avatar
BTB
Peasant
Peasant
Posts: 93
Joined: 21 Aug 2011
Location: Houston, TX
Contact:

Unread postby BTB » 05 May 2015, 13:08

GrayFace wrote:
BTB wrote:Is there anything for MMExtension planned/in the works? I recall you spoke of adding hooks before to edit the skill level perks in the .exe (in response to me asking about the possibility of editing them).
Yes, MMExt version is coming soon, but it won't have that.
Well, damn.

I guess I'll have to wait and see where I'm at when I have finished doing all I can possibly do without your help, then. I'm ultimately going to end up with a mostly-finished mod/overhaul with a small list of changes I can't do without editing the .exe, and I'm going to try and get that list as small as possible before I start bugging you about it again.
"You don't have to be a vampire to die like one... bitch." -Simon Belmont

User avatar
GrayFace
Round Table Hero
Round Table Hero
Posts: 1660
Joined: 29 Nov 2005

Unread postby GrayFace » 06 May 2015, 11:45

That's because I want to release the level editor sooner.
GreatEmerald wrote:I assume the pixel format is constant between all files.
8 bit with different palettes, but that shouldn't really matter.
GreatEmerald wrote:And what about audio?
Yes, why not.
GreatEmerald wrote:And what about audio? Looks similar, buffer and length; though specs (sample rate, etc.) are also needed, is it constant between all files as well?
It's "the desired output format", so you choose what your program needs. Just use the example from https://wiki.libsdl.org/SDL_AudioSpec
My patches: MM6 MM7 MM8. MMExtension. Tools. Also, I love Knytt Stories and Knytt Underground. I'm also known as sergroj.

User avatar
GreatEmerald
CH Staff
CH Staff
Posts: 3330
Joined: 24 Jul 2009
Location: Netherlands

Unread postby GreatEmerald » 06 May 2015, 12:19

Oh, right, output, not input, I misread that.

User avatar
BTB
Peasant
Peasant
Posts: 93
Joined: 21 Aug 2011
Location: Houston, TX
Contact:

Unread postby BTB » 08 May 2015, 10:47

Upon further review of what I'm working with, it's looking like the single most important thing I would need help doing is altering the base recovery times for weapons, as doing so will be crucial to maintaining game balance.

Second most important would be adding skill level perks (I took note of you saying that adding them is easier than removing them) for weapons and misc skills to go along with the above change.

Most everything else is more of a "wish list" change that I would like done, but not until those first two are addressed. I'm actually able to accomplish quite a bit through the level editor and some creative scripting... I just can't do much with shit that's hard-coded into the .exe is all.
"You don't have to be a vampire to die like one... bitch." -Simon Belmont

User avatar
GrayFace
Round Table Hero
Round Table Hero
Posts: 1660
Joined: 29 Nov 2005

Unread postby GrayFace » 08 May 2015, 15:55

BTB wrote:Upon further review of what I'm working with, it's looking like the single most important thing I would need help doing is altering the base recovery times for weapons, as doing so will be crucial to maintaining game balance.
Easily.
BTB wrote:I'm actually able to accomplish quite a bit through the level editor and some creative scripting...
Cool. I'd be interested to see what you've done when you're ready to show.
My patches: MM6 MM7 MM8. MMExtension. Tools. Also, I love Knytt Stories and Knytt Underground. I'm also known as sergroj.

User avatar
GrayFace
Round Table Hero
Round Table Hero
Posts: 1660
Joined: 29 Nov 2005

Unread postby GrayFace » 08 May 2015, 15:58

Follow-up update

MMArchive v1.1.1
[-] Crash on some computers

Txt Edit v1.2.1
[+] Drag&drop files onto TxtEdit
[-] Crash on some computers
[-] Find/Replace didn't select text in multiline cells properly
My patches: MM6 MM7 MM8. MMExtension. Tools. Also, I love Knytt Stories and Knytt Underground. I'm also known as sergroj.

User avatar
BTB
Peasant
Peasant
Posts: 93
Joined: 21 Aug 2011
Location: Houston, TX
Contact:

Unread postby BTB » 08 May 2015, 23:19

GrayFace wrote:Easily.
Excellent!
GrayFace wrote:Cool. I'd be interested to see what you've done when you're ready to show.
I just updated the initial post of my thread with some more information about what all I've been doing lately: viewtopic.php?t=14782

Ctrl+F "Grayface" for all mentions of things I want to do, but can't on my own.
"You don't have to be a vampire to die like one... bitch." -Simon Belmont

User avatar
GrayFace
Round Table Hero
Round Table Hero
Posts: 1660
Joined: 29 Nov 2005

Unread postby GrayFace » 13 May 2015, 20:20

Turns out I uploaded TxtEdit with a wrong name. Please redownload it.
My patches: MM6 MM7 MM8. MMExtension. Tools. Also, I love Knytt Stories and Knytt Underground. I'm also known as sergroj.


Return to “Might and Magic”

Who is online

Users browsing this forum: No registered users and 29 guests