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

From Valve Developer Community
Jump to navigation Jump to search
(This page needs a possible cleanup at some point (might do later))
(wip)
Line 2: Line 2:
{{DISPLAYTITLE: Dark Messiah - Singleplayer SDK Installation (Source SDK 2007/2009)}}
{{DISPLAYTITLE: Dark Messiah - Singleplayer SDK Installation (Source SDK 2007/2009)}}
{{toc-right}}
{{toc-right}}
{{cleanup}}
{{wip | soer4769}}


This tutorial will show you how to setup the Source SDK (Source Engine 2007/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\common\Might and Magic Dark Messiah SDK'''.
This tutorial will show you how to setup the Source SDK (Source Engine 2007/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\common\Might and Magic Dark Messiah SDK'''.
{{note|This tutorial is based on : [[Dark Messiah: Single-Player Level Creation]]}}


{{clr}}
{{clr}}
== Requirements ==
# Dark Messiah of Might and Magic Single-Player SDK ( Found at: http://www.hammer-tutorial.com/data/files/tools/mm_sdk_sp.7z )
# [[GCFScape]]
# 7-Zip ( Found at: http://www.7-zip.org/ )


== Installing the SDK ==
== Installing the SDK ==


# Install http://www.hammer-tutorial.com/data/files/tools/mm_sdk_sp.7z
# Extract the two GCF files from '''mm_sdk_sp.7z'''
# Extract the two GCF files from '''mm_sdk_sp.7z'''
# Create a folder in '''%STEAM%\SteamApps\common\''' called '''Might and Magic Dark Messiah SDK'''. This is where we will be placing our files
# Create a folder in '''%STEAM%\SteamApps\common\''' called '''Might and Magic Dark Messiah SDK'''. This is where we will be placing our files
Line 56: Line 49:


# Copy the files in the '''%STEAM%\SteamApps\%USERNAME%\dark messiah might and magic single player\bin\''' to '''%DMSDK%\bin\'''
# Copy the files in the '''%STEAM%\SteamApps\%USERNAME%\dark messiah might and magic single player\bin\''' to '''%DMSDK%\bin\'''
== Dark Messiah Optimised FGD's ==
The default Dark Messiah FGD's contain entities which can not be used by the game as well as some mistakes.
# Open '''%DMSDK%\bin\base.fgd''' and replace with the contents from [[Dark_Messiah:_Single-Player_Level_Creation/base.fgd|this base.fgd]]
# Open '''%DMSDK%\bin\halflife2.fgd''' and replace with the contents from [[Dark_Messiah:_Single-Player_Level_Creation/halflife2.fgd|this halflife2.fgd]]


== GameInfo.txt ==
== GameInfo.txt ==
Line 132: Line 119:
* [http://www.filefactory.com/file/cadd5a6/n/mm_sdk_sp.7z Alternate SDK Download Mirror (FileFactory)]
* [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://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 15:54, 2 August 2021

Dark Messiah Level Creation
Under construction.png
This page is actively undergoing a major edit.
As a courtesy, please do not edit this while this message is displayed.
If this page has not been edited for at least several hours to a few days, please remove this template. This message is intended to help reduce edit conflicts; please remove it between editing sessions to allow others to edit the page.

The user who added this notice, should you wish to contact them, is: soer4769 tr = idir.

This tutorial will show you how to setup the Source SDK (Source Engine 2007/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\common\Might and Magic Dark Messiah SDK.

Installing the SDK

  1. Install http://www.hammer-tutorial.com/data/files/tools/mm_sdk_sp.7z
  2. Extract the two GCF files from mm_sdk_sp.7z
  3. Create a folder in %STEAM%\SteamApps\common\ called Might and Magic Dark Messiah SDK. This is where we will be placing our files
  4. Open dark messiah single player sdkcontent.gcf and extract its contents to %DMSDK%
  5. Open dark messiah single player sdkbase.gcf and extract both the bin and mm folders 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 %DMSDK%\mm\scripts\ folder:

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

Extracting SDK Shaders + Resources

Dark Messiah's Shaders are not compatible with the latest versions of Hammer and Hammers model browser will not work without files found in the Source SDK's resource folder.

  1. Open %STEAM%\SteamApps\source 2007 binaries.gcf
  2. Extract the contents of hl2\shaders into %DMSDK%\mm\shaders\
  3. Extract the contents of platform\Resource into %DMSDK%\mm\Resource\

Extracting SDK Materials

Dark Messiah is missing a material that hammer needs.

  1. Open %STEAM%\SteamApps\source 2007 shared materials.gcf
  2. Extract hl2\materials\Editor\flatnocull.vmt into %DMSDK%\mm\materials\Editor\

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
		}
	}
}

Configuring the Source SDK

  1. Run the Source SDK from Steam
  2. Select Source Engine 2007 as the Engine Version. This will create a GameConfig.txt if it doesn't already exist
  3. Select Source Engine 2009 as the Engine Version. This will create a GameConfig.txt if it doesn't already exist
  4. Close the Source SDK
  5. Open %STEAM%\SteamApps\%USERNAME%\sourcesdk\bin\source2007\bin\GameConfig.txt
  6. Open %STEAM%\SteamApps\%USERNAME%\sourcesdk\bin\source2009\bin\GameConfig.txt
  7. Add the following text to both GameConfig.txt files you opened, under their "Games" section
"Dark Messiah"
		{
			"GameDir"		"%STEAM%\SteamApps\common\Might and Magic Dark Messiah SDK\mm"
			"hammer"
			{
				"GameData0"		"%STEAM%\SteamApps\common\Might and Magic Dark Messiah SDK\bin\base.fgd"
				"GameData1"		"%STEAM%\SteamApps\common\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\common\Might and Magic Dark Messiah SDK\bin\vbsp.exe"
				"Vis"		"%STEAM%\SteamApps\common\Might and Magic Dark Messiah SDK\bin\vvis.exe"
				"Light"		"%STEAM%\SteamApps\common\Might and Magic Dark Messiah SDK\bin\vrad.exe"
				"GameExeDir"		"%STEAM%\SteamApps\%USERNAME%\dark messiah might and magic single player"
				"MapDir"		"%STEAM%\SteamApps\common\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"
			}
		}		
  1. To use the editor for map creation, run the Source SDK from Steam
  2. Select either Source Engine 2007 or Source Engine 2009 as the Engine Version and Dark Messiah as the Current Game
  3. Double Click on Hammer Editor
Note.pngNote:It is recommended that you use Source Engine 2007 as it is less likley to have random crashes.

Sources