Dark Messiah: Single-Player Level Creation/SourceSDK

From Valve Developer Community
< Dark Messiah: Single-Player Level Creation
Revision as of 07:42, 3 June 2012 by Stucuk (talk | contribs) (Created page with "{{note|This tutorial is based on : Dark Messiah: Single-Player Level Creation}} == Setting up the SDK for Dark Messiah of Might and Magic == === Requirements === # Dar...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Note.pngNote:This tutorial is based on : Dark Messiah: Single-Player Level Creation

Setting up the SDK for Dark Messiah of Might and Magic

Requirements

  1. Dark Messiah of Might and Magic Single-Player SDK ( Found at: http://www.hammer-tutorial.com/data/files/tools/mm_sdk_sp.7z )
  2. GCFScape
  3. 7-Zip ( Found at: http://www.7-zip.org/ )

Introduction

This tutorial will show you how to setup the Source SDK (Source Engine 2009 version) so that you can create/edit Dark Messiah Singleplayer maps.

Throughout this tutorial %USERNAME% should be replaced with your username, %STEAM% should be replaced by the directory Steam is installed to (I.E C:\Program Files\Steam\), and %DMSDK% should be replaced with %STEAM%\SteamApps\%USERNAME%\Might and Magic Dark Messiah SDK.

Installing the SDK

  1. Extract the two GCF files from mm_sdk_sp.7z.
  2. Create a folder in %STEAM%\SteamApps\%USERNAME%\ called Might and Magic Dark Messiah SDK. This is where we will be placing our files.
  3. Open dark messiah single player sdkcontent.gcf and extract its contents to %DMSDK%.
  4. Open dark messiah single player sdkbase.gcf and extract both the bin and mm folders as well as lights.rad and detail.vbsp to %DMSDK%.

Extracting the Dark Messiah GCF's

Now you need to extract the contents of the following Dark Messiah GCF's (Game Cache Files) into %DMSDK% because the compiler tools cannot access the .GCF files:

  • %STEAM%\SteamApps\mm_materials_a_pub.gcf
  • %STEAM%\SteamApps\mm_materials_b_pub.gcf
  • %STEAM%\SteamApps\mm_materials_c_pub.gcf
  • %STEAM%\SteamApps\mm_models_pub.gcf


Next open %STEAM%\SteamApps\mm_engine_pub.gcf and extract the following files to your %DMSDK% folder (Keeping there folder structure intact):

  • mm\scripts\surfaceproperties.txt
  • mm\scripts\surfaceproperties_arkane.txt
  • mm\scripts\surfaceproperties_manifest.txt

Extracting SDK Shaders

The shaders found in Dark Messiah do not work with the latest versions of Hammer, as such they need to be replaced.

  1. Open %STEAM%\SteamApps\source 2007 binaries.gcf and extract the hl2\shaders\ folder to %DMSDK%\mm\.

Dark Messiah Single Player Bin Folder

  1. Copy the files in the %STEAM%\SteamApps\%USERNAME%\dark messiah might and magic single player\bin\ to %DMSDK%\bin\

GameInfo.txt

Next create a txt file called gameinfo.txt in your %DMSDK%\mm\ folder with the following contents:

"GameInfo"
{
	game "Might and Magic Dark Messiah SDK"
	title "Dark Messiah SDK"
	type singleplayer_only

	FileSystem
	{
		ToolsAppId				211		// Tools will load this (ie: source SDK caches) to get things like materials\debug, materials\editor, etc.
		SteamAppId				2100		// This will mount all the GCFs we need (240=CS:S, 220=HL2).
		SearchPaths
		{
			Game	|gameinfo_path|.
			Game 	mm
			Game	hl2
		}
	}
}

Configuring the Source SDK

  1. Run the Source SDK from Steam and select Source Engine 2009 as the Engine Version. This will create a GameConfig.txt if it doesn't already exist.
  2. Close the Source SDK
  3. Open %STEAM%\SteamApps\%USERNAME%\sourcesdk\bin\source2009\bin\GameConfig.txt and add the following into the Games section:
"Dark Messiah"
		{
			"GameDir"		"%STEAM%\SteamApps\%USERNAME%\Might and Magic Dark Messiah SDK\mm"
			"hammer"
			{
				"GameData0"		"%STEAM%\SteamApps\%USERNAME%\Might and Magic Dark Messiah SDK\bin\halflife2.fgd"
				"TextureFormat"		"5"
				"MapFormat"		"4"
				"DefaultTextureScale"		"0.250000"
				"DefaultLightmapScale"		"16"
				"GameExe"		"%STEAM%\SteamApps\%USERNAME%\dark messiah might and magic single player\mm.exe"
				"DefaultSolidEntity"		"func_detail"
				"DefaultPointEntity"		"info_player_start"
				"BSP"		"%STEAM%\SteamApps\%USERNAME%\Might and Magic Dark Messiah SDK\bin\vbsp.exe"
				"Vis"		"%STEAM%\SteamApps\%USERNAME%\Might and Magic Dark Messiah SDK\bin\vvis.exe"
				"Light"		"%STEAM%\SteamApps\%USERNAME%\Might and Magic Dark Messiah SDK\bin\vrad.exe"
				"GameExeDir"		"%STEAM%\SteamApps\%USERNAME%\dark messiah might and magic single player"
				"MapDir"		"%STEAM%\SteamApps\%USERNAME%\Might and Magic Dark Messiah SDK\mm_content\mapsrc"
				"BSPDir"		"%STEAM%\SteamApps\%USERNAME%\dark messiah might and magic single player\mm\maps"
				"CordonTexture"		"tools\toolsskybox"
				"MaterialExcludeCount"		"0"
			}
		}		

Using the editor for map creation

  1. Run the Source SDK from Steam
  2. Select Source Engine 2009 as the Engine Version and Dark Messiah as the Current Game
  3. Double Click on Hammer Editor

Playing Your Maps

To play a map you must enable the developer console:

  1. Open Steam
  2. Right click on Dark Messiah Might and Magic Singleplayer
  3. Click on 'Properties'
  4. Click on 'Set Launch Options...'
  5. Enter
    -console
  6. Start the game
  7. Access the console by pressing '~', and type:
    map <mapname>
    Example:
    map sp_tutorialmap


Known Bugs and Issues

Unknown

Links