The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 3 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Story - Setup Guide
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#1
Custom Story - Setup Guide

I can't wait any longer for the Level Editor!

So, I started by setting up my story Tongue

After doing some *cough*researching*cough* on the executable, I found out what was needed for custom stories to appear in the list.


Note, I'm using Windows, but I guess the structure is the same on Mac/Linux (At least after you find the custom_stories folder)

  1. Create a folder inside the custom_stories folder. This could be anything, and is not the name used in the list, etc. If your story is called "My Super Original Story", you could simply call the folder "MSOS".
  2. Then go inside the folder you just created, and create a new text file called custom_story_settings.cfg
  3. Inside this file, you put:
<Main
    Name = "My Super Original Story"
    Author = "MulleDK19"
    ImgFile = "story.png"
    Description = "I have yet to find the tag used for the description."
    MapsFolder = "maps/ch01/"
    StartMap = "00_study.map"
    StartPos = "PlayerStartArea_1"
/>

The Name is the actual name to show in the Custom Story list.
Author is whoever made it.
ImgFile is the filename of an image in your story folder. When someone selects your story, this image will be used as background.
Description... Well... Not working, and I have no idea what else it's called, or where to define it if not there.
MapsFolder is the location of the maps. I don't know if it's needed or not.
StartMap is the map to load when players select your story and clicks "Start".
StartPos is the area defined in the level file, that the player should start at. a.k.a. the starting spawn point.

My file layout.
\custom_stories\Morten1\custom_story_settings.cfg
\custom_stories\Morten1\maps\ch01\00_study.map
\custom_stories\Morten1\maps\ch01\00_study.hps

resources.cfg does not appear to be needed. It looks like the engine includes all subfolders in the story.


So, now I'm gonna rescript the Study level, until I get my hands on the Level Editor Tongue Chop chop! Big Grin



Enjoy Wink



Update: As your story is independent from the rest of the game, you will spawn with no lantern, etc., because this is the first level of the story.
So, open the .hps (script) file, and search for "ScriptDebugOn" (without the quotes), and then comment it out, so it looks like this:

    //---- DEBUG ----//
    //if(ScriptDebugOn())
    //{
        GiveItemFromFile("lantern", "lantern.ent");
        for(int i=0;i<10;i++) GiveItemFromFile("tinderbox_"+i, "tinderbox.ent");
    //}

[Image: 16455.png]
09-09-2010, 05:49 PM
Find


Messages In This Thread
Custom Story - Setup Guide - by MulleDK19 - 09-09-2010, 05:49 PM
RE: Custom Story - Setup Guide - by Sajber - 09-09-2010, 05:55 PM
RE: Custom Story - Setup Guide - by MulleDK19 - 09-09-2010, 09:02 PM
RE: Custom Story - Setup Guide - by DukeNume - 09-10-2010, 12:48 PM
RE: Custom Story - Setup Guide - by MulleDK19 - 09-10-2010, 03:13 PM
RE: Custom Story - Setup Guide - by MulleDK19 - 09-11-2010, 12:56 AM
RE: Custom Story - Setup Guide - by MulleDK19 - 09-11-2010, 01:08 AM
RE: Custom Story - Setup Guide - by MulleDK19 - 09-11-2010, 01:42 AM
RE: Custom Story - Setup Guide - by MulleDK19 - 09-11-2010, 01:46 AM
RE: Custom Story - Setup Guide - by MulleDK19 - 09-11-2010, 01:51 AM
RE: Custom Story - Setup Guide - by MulleDK19 - 09-11-2010, 01:55 AM
RE: Custom Story - Setup Guide - by MulleDK19 - 09-11-2010, 02:01 AM
RE: Custom Story - Setup Guide - by MulleDK19 - 09-11-2010, 02:19 AM
RE: Custom Story - Setup Guide - by MulleDK19 - 09-11-2010, 10:10 AM
RE: Custom Story - Setup Guide - by Xeronaile - 01-10-2012, 12:20 AM
RE: Custom Story - Setup Guide - by Xeronaile - 01-10-2012, 02:44 AM
RE: Custom Story - Setup Guide - by flamez3 - 01-10-2012, 05:19 AM
RE: Custom Story - Setup Guide - by Xeronaile - 01-10-2012, 08:29 PM
RE: Custom Story - Setup Guide - by Xeronaile - 01-10-2012, 11:24 PM



Users browsing this thread: 2 Guest(s)