Making a Black Mesa Mod: Difference between revisions
MrBlackMesa1 (talk | contribs) (→Setting up the files: Update section to include new file, and make it look nicer) |
(fixed the first person and second person nouns) |
||
Line 9: | Line 9: | ||
==Creating a mod== | ==Creating a mod== | ||
Head to | Head to the local variation of C:\Program Files (x86)\Steam\steamapps\common\Black Mesa then create a folder with the mod's name, and name it anything you want. Examples like: "MyMod" | ||
===Setting up the files=== | ===Setting up the files=== | ||
Line 38: | Line 38: | ||
==Setting up the chapters== | ==Setting up the chapters== | ||
Create a scripts/chapter_manifest.txt inside | Create a scripts/chapter_manifest.txt inside the newly created scripts folder | ||
It should be something like this: Edit it to replace with | It should be something like this: Edit it to replace with the map names / the number of chapters that exist | ||
{{codeBlock|<nowiki> | {{codeBlock|<nowiki> | ||
"chapter_manifest.txt" | "chapter_manifest.txt" | ||
Line 50: | Line 50: | ||
</nowiki>}} | </nowiki>}} | ||
Next up create a blackmesa.json file inside myfirstmod/campaigns/, | Next up create a blackmesa.json file inside myfirstmod/campaigns/, it can be modified to perfection. | ||
{{codeBlock|<nowiki> | {{codeBlock|<nowiki> | ||
{ | { | ||
Line 82: | Line 82: | ||
} | } | ||
</nowiki>}} | </nowiki>}} | ||
{{Note|The imageSource path is relative to the ui/images folder of | {{Note|The imageSource path is relative to the ui/images folder of the mod and example would be "image://game/ui/campaign/images/chapter1.png"}} | ||
Make sure to replace each #key in the file with the corresponding one in | Make sure to replace each #key in the file with the corresponding one in the corresponding localization file (See the next step) | ||
==Setting up the text for chapters== | ==Setting up the text for chapters== | ||
Create a myfirstmod_english.txt in myfirstmod/resource/ | Create a myfirstmod_english.txt in myfirstmod/resource/ | ||
It should look something like this, modify it to | It should look something like this, modify it to perfection | ||
{{codeBlock|<nowiki> | {{codeBlock|<nowiki> | ||
"lang" | "lang" | ||
Line 109: | Line 109: | ||
==Creating the gameinfo.txt file== | ==Creating the gameinfo.txt file== | ||
Now | Now modders will need to create the gameinfo file inside the main folder. | ||
Use the following one as a template and modify it to | Use the following one as a template and modify it to perfection: | ||
{{codeBlock|<nowiki> | {{codeBlock|<nowiki> | ||
"GameInfo" | "GameInfo" | ||
Line 237: | Line 237: | ||
==Final polish== | ==Final polish== | ||
This should be just enough to get | This should be just enough to get the mod working, the modders will need to add things like sound manifests, models etc aswell. | ||
modders could customize the UI further, for example by changing the colors or the actual layout by editing the .qml inside ui/ of bms_misc_dir.vpk[[Category:Modding]] | |||
[[Category:Glossary]] | [[Category:Glossary]] | ||
[[Category:Tutorials]] | [[Category:Tutorials]] |
Revision as of 14:46, 23 August 2024



Separate the manual into Linux and Windows parts, or indicate which steps may be the same/different
Can be worded better... (rewrite sections)

Skill Level
This tutorial expects you to have this amount of knowledge within the topic to follow along smoothly. | |||||
---|---|---|---|---|---|
Novice | Familiar | Competent | Proficient | Expert |
This article will discuss the creation of a Black mesa mod
Creating a mod
Head to the local variation of C:\Program Files (x86)\Steam\steamapps\common\Black Mesa then create a folder with the mod's name, and name it anything you want. Examples like: "MyMod"
Setting up the files
Navigate into the directory and create the following folders and subfolders:
- resource
- scripts
- mapsrc
- mapsrc/instances
- campaigns
- ui


Now open bms_misk_dir.vpk located in Black Mesa/bms/
Take the following files:
Add these files in the same directories as the mod, for example: MyMod/resource/...
Also take dynlightscript.txt located in Black Mesa/bms/cfg/

Setting up the chapters
Create a scripts/chapter_manifest.txt inside the newly created scripts folder It should be something like this: Edit it to replace with the map names / the number of chapters that exist
Next up create a blackmesa.json file inside myfirstmod/campaigns/, it can be modified to perfection.

Make sure to replace each #key in the file with the corresponding one in the corresponding localization file (See the next step)
Setting up the text for chapters
Create a myfirstmod_english.txt in myfirstmod/resource/ It should look something like this, modify it to perfection


Save As...
, this is equivalent to choosing unicode
for the Encoding
option at the bottom of the dialog.Creating the gameinfo.txt file
Now modders will need to create the gameinfo file inside the main folder. Use the following one as a template and modify it to perfection:
Creating the BAT file
Create a file, call it something like myfirstmod.bat
This is so Windows users can launch the mod.
Also create one for the people who want to launch with oldgameui:
Creating the SH file
Create a file, call it something like myfirstmod.sh
This is so Linux users can launch the mod.
Also create one for the people who want to launch with oldgameui:
Final polish
This should be just enough to get the mod working, the modders will need to add things like sound manifests, models etc aswell.
modders could customize the UI further, for example by changing the colors or the actual layout by editing the .qml inside ui/ of bms_misc_dir.vpk