Dark Messiah: Single-Player Level Creation: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Updated the page's content, removed unecessary clutter that can be considered general knowledge not specific to dark messiah as a soirce game, moved the bugs and issues to its own page)
Line 1: Line 1:
[[Image:DMMaMHammerSplash.jpg|thumb|250px|right| Dark Messiah Single-Player Hammer Startup.]]
{{back | Dark Messiah Level Creation}}
{{note|This tutorial is an edited version of the translation found in the [[http://forums.steampowered.com/forums/showthread.php?p=21088346#post21088346 Steam Users' Forums]]. There is also a tutorial on how to setup the 2007/2009 versions of the SDK for developing Dark Messiah maps: [[Dark Messiah: Single-Player Level Creation/SourceSDK|Dark Messiah: Single-Player Level Creation (Source SDK 2007/2009)]]}}
{{DISPLAYTITLE: Dark Messiah - Singleplayer SDK Installation}}
{{toc-right}}


== Setting up the SDK for [[Dark Messiah of Might and Magic]] ==
This tutorial is an edited version of the translation found in the [http://web.archive.org/web/20140725042500/http://forums.steampowered.com/forums/showthread.php?p=21088346 Steam Users' Forums] (archived). There is also a tutorial on how to setup the 2007/2009 versions of the SDK for developing Dark Messiah maps: [[Dark Messiah: Single-Player Level Creation/SourceSDK|Dark Messiah: Single-Player Level Creation (Source SDK 2007/2009)]]


=== Requirements ===
{{clr}}


# Dark Messiah of Might and Magic Single-Player SDK ( Found at: http://www.moddb.com/games/dark-messiah-of-might-magic/downloads/dark-messiah-might-and-magic-sdk )
== Requirements ==
# [[GCFScape]]
Download the Dark Messiah of Might and Magic Single-Player SDK http://www.moddb.com/games/dark-messiah-of-might-magic/downloads/dark-messiah-might-and-magic-sdk, and extract its contents using [http://www.7-zip.org/ 7-Zip]. Now open the two GCF files (Game Cache Files) inside of it with [[GCFScape]] and in the window that appears, select all folders and extract them to ''Steam\steamapps\common\Dark Messiah Might and Magic Single Player''
# 7-Zip ( Found at: http://www.7-zip.org/ )


=== Installing the SDK ===
== Extracting the Dark Messiah VPKs ==
Now you need to extract the contents of the following Dark Messiah VPK (Valve Pak) files with GCFScape at ''Steam\steamapps\common\Dark Messiah Might and Magic Single Player\vpks'' into your Dark Messiah folder ''Steam\steamapps\common\Dark Messiah Might and Magic Single Player', because the editor cannot access the VPK files themselfes:
* depot_2103_dir.vpk (models)
* depot_2104_dir.vpk (materials)
* depot_2105_dir.vpk (materials for models)
* depot_2106_dir.vpk (materials for levels)
* depot_2107_dir.vpk (sounds)
* depot_2108_dir.vpk (sounds)


# Extract the contents of 'mm_sdk_sp.7z' using 7-Zip. It should contain two Game Cache Files.
== Configuring the Hammer Editor ==
# With GCFScape installed, double-click a Game Cache File to open it. In the window that appears, select all folders and extract them to: ''Steam\steamapps\common\Dark Messiah Might and Magic Single Player''
Once all the files have been extracted, you still need to tell the Hammer editor where to look for these files. To do this, open the GameConfig.txt file in ''Steam\steamapps\common\Dark Messiah Might and Magic Single Player\bin'' and replace its content with the code below. You may have to correct the whole path:


=== Extracting the Dark Messiah VPKs ===
<pre>
 
"Configs"
Now you need to extract the contents of the following Dark Messiah VPK (Valve Pak) files into your Dark Messiah Might and Magic Single Player folder, because the editor cannot access the VPK files itself. Use GCFScape again to extract the contents of:
 
:* depot_2103_dir.vpk (models)
:* depot_2104_dir.vpk (materials)
:* depot_2105_dir.vpk (materials for models)
:* depot_2106_dir.vpk (materials for levels)
:* depot_2107_dir.vpk (sounds)
:* depot_2108_dir.vpk (more sounds)
 
These VPK files can be found in the ''Steam\steamapps\common\Dark Messiah Might and Magic Single Player\vpks'' folder and need to be extracted to:
 
:''Steam\steamapps\common\Dark Messiah Might and Magic Single Player''
 
=== Configuring the Hammer Editor ===
 
Once all the files have been extracted, you still need to tell the Hammer editor where to look for these files. To do this, open the GameConfig.txt file located at:
:''Steam\steamapps\common\Dark Messiah Might and Magic Single Player\bin\GameConfig.txt''
Replace the contents of the GameConfig.txt with the code below. You may have to correct the whole path:
 
<pre>"Configs"
{
{
     "Games"
     "Games"
Line 65: Line 52:
     }
     }
     "SDKVersion" "1"
     "SDKVersion" "1"
}</pre>
}
 
</pre>
=== Using the editor for map creation ===
 
Open "hammer.exe" located in:
:''Steam\steamapps\common\Dark Messiah Might and Magic Single Player\bin''
 
{{note|If you have compiled a map, it might be wise to close hammer before starting the game, otherwise the editor may lock up.}}
 
== Playing Your Maps ==
 
To play a map you must enable the developer console:
 
# Open Steam
# Right click on Dark Messiah Might and Magic Single Player
# Click on 'Properties'
# Click on 'Set Launch Options...'
# Enter <pre>-console</pre>
# Start the game
# Access the console by pressing '~', and type: <pre>map <mapname></pre>Example:<pre>map sp_tutorialmap</pre>
 
 
== Known Bugs and Issues ==
 
=== Shading Issue ===
:'''Problem:''' In the 3D viewport ‘3D Textured Shaded' looks the same as ‘3D Textured'.
:'''Solution:''' There is no current solution to this. As a workaround, you could create the brushes of your map in a different Hammer editor. Any Source Engine game that ships with the Hammer editor will work for this. You can then later add models and entities in the Dark Messiah editor.
 
=== White Textures ===
:'''Problem:''' Some textures appear white in the editor.
:'''Solution:''' Open the affected textures' .vmt files and remove or comment out the "$envmap" and "$normalmapalphaenvmapmask" parameters.
 
=== NPC Model Issue ===
:'''Problem:''' Some NPCs look like a different NPC type: E.g. a Goblin has the appearance of a dragon.
:'''Solution:''' This happens when you copy and paste an NPC entity or when you duplicate a NPC entity and change the entity type. Make sure that you correct the model after duplicating an existing NPC.


== Links and Citations ==
== Sources ==
* [http://www.hammer-tutorial.com/forum/hammer-editor-tutorials/dark-messiah-singleplayer-sdk-einrichten/ Original Tutorial (In German)]
* [http://www.hammer-tutorial.com/forum/hammer-editor-tutorials/dark-messiah-singleplayer-sdk-einrichten/ Original Tutorial (In German)] (dead link)
* [http://forums.steampowered.com/forums/showthread.php?p=21088346#post21088346 Translated Tutorial (Steam Forums)]
* [http://www.hammer-tutorial.com/data/files/tools/mm_sdk_sp.7z Dark Messiah Single-Player SDK] (dead link)
* [http://www.hammer-tutorial.com/data/files/tools/mm_sdk_sp.7z Dark Messiah Single-Player SDK]
* [http://www.filefactory.com/file/cadd5a6/n/mm_sdk_sp.7z Alternate SDK Download Mirror (FileFactory)]
* [http://www.gamefront.com/files/20121754/mm_sdk_sp.7z Alternate SDK Download Mirror (Gamefront)]
* [http://nemesis.thewavelength.net/index.php?p=26 GCFScape Site]
* [http://www.7-zip.org/ 7-Zip Homepage]


[[Category:Dark Messiah]]
[[Category:Dark Messiah]]

Revision as of 07:49, 14 July 2019

Dark Messiah Level Creation

This tutorial is an edited version of the translation found in the Steam Users' Forums (archived). There is also a tutorial on how to setup the 2007/2009 versions of the SDK for developing Dark Messiah maps: Dark Messiah: Single-Player Level Creation (Source SDK 2007/2009)

Requirements

Download the Dark Messiah of Might and Magic Single-Player SDK http://www.moddb.com/games/dark-messiah-of-might-magic/downloads/dark-messiah-might-and-magic-sdk, and extract its contents using 7-Zip. Now open the two GCF files (Game Cache Files) inside of it with GCFScape and in the window that appears, select all folders and extract them to Steam\steamapps\common\Dark Messiah Might and Magic Single Player

Extracting the Dark Messiah VPKs

Now you need to extract the contents of the following Dark Messiah VPK (Valve Pak) files with GCFScape at Steam\steamapps\common\Dark Messiah Might and Magic Single Player\vpks into your Dark Messiah folder Steam\steamapps\common\Dark Messiah Might and Magic Single Player', because the editor cannot access the VPK files themselfes:

  • depot_2103_dir.vpk (models)
  • depot_2104_dir.vpk (materials)
  • depot_2105_dir.vpk (materials for models)
  • depot_2106_dir.vpk (materials for levels)
  • depot_2107_dir.vpk (sounds)
  • depot_2108_dir.vpk (sounds)

Configuring the Hammer Editor

Once all the files have been extracted, you still need to tell the Hammer editor where to look for these files. To do this, open the GameConfig.txt file in Steam\steamapps\common\Dark Messiah Might and Magic Single Player\bin and replace its content with the code below. You may have to correct the whole path:

"Configs"
{
    "Games"
    {
        "Dark Messiah"
        {
            "GameDir" "C:\Program Files\Steam\steamapps\common\Dark Messiah Might and Magic Single Player\mm"
            "hammer"
            {
                "GameData0" "C:\Program Files\Steam\steamapps\common\Dark Messiah Might and Magic Single Player\bin\halflife2.fgd"
                "TextureFormat" "5"
                "MapFormat" "4"
                "DefaultTextureScale" "0.250000"
                "DefaultLightmapScale" "16"
                "GameExe" "C:\Program Files\Steam\steamapps\common\Dark Messiah Might and Magic Single Player\mm.exe"
                "DefaultSolidEntity" "func_detail"
                "DefaultPointEntity" "info_player_start"
                "BSP" "C:\Program Files\Steam\steamapps\common\Dark Messiah Might and Magic Single Player\bin\vbsp.exe"
                "Vis" "C:\Program Files\Steam\steamapps\common\Dark Messiah Might and Magic Single Player\bin\vvis.exe"
                "Light" "C:\Program Files\Steam\steamapps\common\Dark Messiah Might and Magic Single Player\bin\vrad.exe"
                "GameExeDir" "C:\Program Files\Steam\steamapps\common\Dark Messiah Might and Magic Single Player"
                "MapDir" "C:\Program Files\Steam\steamapps\common\Dark Messiah Might and Magic Single Player\mm_content\mapsrc"
                "BSPDir" "C:\Program Files\Steam\steamapps\common\Dark Messiah Might and Magic Single Player\mm\maps"
                "CordonTexture" "tools\toolsskybox"
                "MaterialExcludeCount" "0"
            }
        }
    }
    "SDKVersion" "1"
}

Sources