User Tools

Site Tools



Wrapping up your Custom Story

This list assumes that you already went through all the level design, special entity creation, level building and scripting, and that you want to fix your custom story so it shows in the Custom Story launcher.

  1. Create a subfolder (story root from now on) for the story under redist/custom_stories. Name it anything you please.
  2. Copy your maps, scripts, and anything you created for the custom story into the story root. You may want to organize all stuff in subfolders. Maps with corresponding scripts, by default, should be located in a subfolder called 'maps'.
  3. Create a text file named 'custom_story_settings.cfg' in the story root. The contents of this file should look like this:
    	Name="A cannon story"
    	Author="Luis Rodero"
    • Name: Name of the custom story. 'Unnamed Story' will be shown if empty.
    • Author: Name of the author. 'Anonymous' will be shown if empty.
    • ImgFile: Image file that will be used as background in the Custom Story Launcher. This is optional.
    • StartMap: File name of the map that will be started when the custom story is launched. This value cannot be empty.
    • StartPos: Name for the position in the start map where the player will be spawned. If empty, the first one defined will be used.
  4. All custom messages, diaries and notes that your custom story needs in a 'extra_english.lang' file in the story root. If translations want to be made, these are to be created as 'extra_' + name_of_the_supported_language + '.lang' files, with name_of_the_supported_language being one of the ones that you can choose in the game options menu. Optionally, this can contain an entry “Description” in the “CustomStoryMain” category, and any brief description on the custom story can be written here. It will be displayed in the Custom Story Launcher. Just to display an example:
    <CATEGORY Name="CustomStoryMain">
        <Entry Name="Description">Just a brief description!</Entry>
  5. You must use the EXACT tags as shown for CATEGORY. Also, the CATEGORY tag must be inside the required LANGUAGE tag in the 'extra_english.lang' file. So, if you have nothing else other than the description, it should look like the following (take special note of upper-case vs. lower-case - it must be EXACTLY like this):
       <CATEGORY Name="CustomStoryMain">
          <Entry Name="Description">
             Just a brief description!
  6. If you do not capitalize EXACTLY as shown, it WILL NOT work. If you don't have the enclosing LANGUAGE tag, it WILL NOT work. Only one LANGUAGE tag should be in the 'extra_english.lang' file. All 'CATEGORY' tags should be inside that.

Once all this is done, you should be ready to go! The example used should look like this:

On the Custom Story List window


After selecting a Custom Story


To ease installation for others, you may now archive the full story root directory, stored from the custom_stories folder. The archive directory tree from the example should look like this (assuming the story root is called TheCannonMap):

|- maps/
|  |- luis_script_test.hps
|  |-
|- cannonbg.jpg
|- custom_story_settings.cfg
|- extra_english.lang
hpl2/amnesia/custom_story.txt · Last modified: 2011/01/01 23:15 by gbutler69