Half-Life: MMod

Half-Life: MMod

55 个评价
Making mods MMod compatible
由 Harmiess 制作
A guide to making Half-Life mods compatible with Half-Life MMod.
   
奖励
收藏
已收藏
取消收藏
Automated tools:
I created a tool to patch mods. It's still in development but is currently functional on Windows 10 and 11. See the Releases page on the right to download.
MMod Compatibility Patcher[gitlab.com]
Releases[gitlab.com]
Important notes
  • This guide is for the Windows version, not the Linux version. The process should be nearly identical but I can't confirm anything. Until Nvidia patches their Linux drivers, it's not worth the effort for me to try. Feel free to make your own guide tho.

  • Mods containing "dll" files will be missing MMod features. They may also be unstable or might not work at all.

  • If any of the files or folders mentioned in this guide are missing, you can create a new file or folder with the same name and continue the guide.
Fixing crash on launch
These are the only mandatory tasks to run nearly all mods. Without any changes, the game will crash with a library error (trying to load non-existent "dll" file):

  1. Go to
    <MMod folder>\<mod folder>

  2. Open "liblist.gam" in a text editor.

  3. Find and replace all instances of
    ..\valve
    with
    ..\HL1MMod

  4. Check for a line containing
    fallback_dir
    If you find a match, replace the entire line with
    fallback_dir "HL1MMod"
    If the line doesn't exist, just add the replacement text on a new line at the end of the file.

  5. Save the file and try running the mod. The mod should launch like normal. If it doesn't, ensure that you followed the previous steps.

At this point, it's possible to play the mod like normal assuming you ignore the chapter buttons (they will still start their respective Half-Life level).
Restoring the main menu
By default, the main menu used by the mod will be identical to the MMod menu (unless the mod creator used a custom menu). Restoring the original menus will remove the chapter buttons and the MMod options tab.
  1. To restore the original menus, go to
    <MMod folder>\valve\resource

  2. Copy the file "GameMenu.res" and paste the file in
    <MMod folder>\<mod folder>\resource

  • Optional: to restore the entire menu, including the background, copy
    <MMod folder>\valve\resource
    and paste the folder in
    <MMod folder>\<mod folder>
    Do not overwrite any existing files.

  • Optional: to change/disable the main menu music, place your sound file (must be named "Gamestartup.mp3") in
    <MMod folder>\<mod folder>\media
    Creating a blank text file and renaming it will prevent music from playing on the main menu.

If you want to implement your own chapter buttons, then you'll have to modify these files which work together.
chapters.txt GameMenu.res gameui_english.txt
15 条留言
◆SILLY Axolotl◆ 8 月 25 日 下午 8:02 
LINUX MENTIONED
Harmiess  [作者] 6 月 10 日 下午 1:55 
I just downloaded the mod. The lack of MMod features is because ETC 2 supplies its own code, overriding MMod's code. You would need to modify ETC 2's source code to add MMod support. As for the scripting issues, could you please provide the specific maps where these issues occurred (you can use the "status" command in game to show this)?
Gerwazy_Barbarzyńca 2024 年 11 月 14 日 上午 5:12 
Hey guys, and especially you Harmless, can you kindly look into the ETC 2 mod? It's not only a great thing, but more importantly in this context, its first part is compatible with MMOD. I was trying to do something by myself, but I achieved only mod running in MMOD, but there were only some of MMOD features and some important scripts of the ETC 2 were non-existent.

Maybe information on this site will help https://twhl.info/wiki/page/liblist.gam
Pootis Bird (Caber Gang) 2024 年 10 月 25 日 下午 10:11 
just put the Brutal Half-Life folder in sourcemods and restart steam
Cold Cash Money Kid 2024 年 9 月 3 日 下午 8:15 
MAKE A GUIDE ON HOW TO INSTALL BRUTAL HALF LIFE
FailN 2024 年 8 月 26 日 下午 10:33 
is there a way to get this to work with bxt
Vokuar 2024 年 8 月 21 日 上午 4:32 
this helped me get half life unified and half life decay into mmod thank you
Stalin666 2024 年 8 月 1 日 上午 1:57 
Mmod settings don't work in main menu
chiriscarrot 2024 年 7 月 9 日 下午 11:26 
hey i wnat to play anti climax mod but the commands like the cheats dont work