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


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Story Help (FIXED!)
Author Message
gosseyn Offline
Member

Posts: 63
Joined: Sep 2010
Reputation: 1
Post: #11
RE: Custom Story Help

a cfg file is a txt file, without the txt extension but cfg extension instead. Maybe he was talking about "custom_story_settings.cfg.txt".
09-19-2010 07:55 AM
Find all posts by this user Quote this message in a reply
Soon Offline
Member

Posts: 50
Joined: Sep 2010
Reputation: 0
Post: #12
RE: Custom Story Help

I just don't understand why it's not working! I'm getting super frustrated with this!
09-19-2010 07:59 AM
Find all posts by this user Quote this message in a reply
Luis Offline
Frictional Games

Posts: 276
Joined: Jun 2006
Reputation: 9
Post: #13
RE: Custom Story Help (FIXED!)

Glad you got it finally working Smile

EOF
09-19-2010 09:03 AM
Find all posts by this user Quote this message in a reply
Alexander Offline
Junior Member

Posts: 22
Joined: Sep 2010
Reputation: 0
Post: #14
RE: Custom Story Help

(09-19-2010 07:59 AM)Soon Wrote:  I just don't understand why it's not working! I'm getting super frustrated with this!

Well I downloaded Jordo76's The Darkness. Installed it to see if it would show up in the "custom story" list - and it did. So I decided to edit the files and presto.

Here's my setup

custom_stories>TS -
-maps(folder)
-custom_story_settings
-extra_english

custom_stories>TS>maps-
-ch00(folder)

custom_stories>TS>maps>ch00-
-test(map)
-test(hps)
-test.map_cache

The custom_story_settings contains this

<Main
    Name = "Dreamality"
    Author = "Alexander"
    ImgFile = "screen.png"
    MapsFolder = "maps/ch00"
    StartMap = "test.map"
    StartPos = "PlayerStartArea_1"
/>

The english_lang contains this (from the wiki)
<CATEGORY Name="CustomStoryMain">
    <Entry Name="Description">Just a brief description!</Entry>
</CATEGORY>

The test(hps) contains this (I think I got this one from a post made by Jens)
////////////////////////////
// Run first time starting map
void OnStart()
{
    //Add the Lantern and 10 Tinderboxes when in Debug mode, always good to have light!
    if(ScriptDebugOn())
    {
        GiveItemFromFile("lantern", "lantern.ent");

        for(int i=0;i<10;i++) GiveItemFromFile("tinderbox_"+i, "tinderbox.ent");
    }
    
}


////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

Hope I didn't forget anything.
Ah man... you got it working? I wasn't paying attention I suppose xD
(This post was last modified: 09-19-2010 09:20 AM by Alexander.)
09-19-2010 09:19 AM
Find all posts by this user Quote this message in a reply
Soon Offline
Member

Posts: 50
Joined: Sep 2010
Reputation: 0
Post: #15
RE: Custom Story Help (FIXED!)

All that grief because of a few quotation marks lol.
09-19-2010 04:40 PM
Find all posts by this user Quote this message in a reply
MulleDK19 Offline
Senior Member

Posts: 545
Joined: Jun 2009
Reputation: 10
Post: #16
RE: Custom Story Help

(09-19-2010 07:36 AM)Soon Wrote:  I think you just confused me more. Everywhere I look onine everyone is saying that a cfg file is just a text document with .cfg on the end...?

custom_story_settings.cfg

instead of

custom_story_settings.txt

[Image: 16455.png]
09-19-2010 05:12 PM
Find all posts by this user Quote this message in a reply
Alexander Offline
Junior Member

Posts: 22
Joined: Sep 2010
Reputation: 0
Post: #17
RE: Custom Story Help

(09-19-2010 05:12 PM)MulleDK19 Wrote:  
(09-19-2010 07:36 AM)Soon Wrote:  I think you just confused me more. Everywhere I look onine everyone is saying that a cfg file is just a text document with .cfg on the end...?

custom_story_settings.cfg

instead of

custom_story_settings.txt

Well... The actual name of my files are "custom_story_settings" "test" "test", there are no .cfg .map .hps etc.. And if the file type doesn't show as "CFG File", but instead "Text Document" - it will not work. That's what was causing my problems. Apparently it's not as easy as making a text file and adding '.cfg' at the end -- well at least in my case. I had to copy a CFG File, then edit it.

O___o Either that or I was missing something in the code.
09-19-2010 09:11 PM
Find all posts by this user Quote this message in a reply
MulleDK19 Offline
Senior Member

Posts: 545
Joined: Jun 2009
Reputation: 10
Post: #18
RE: Custom Story Help

(09-19-2010 09:11 PM)Alexander Wrote:  
(09-19-2010 05:12 PM)MulleDK19 Wrote:  
(09-19-2010 07:36 AM)Soon Wrote:  I think you just confused me more. Everywhere I look onine everyone is saying that a cfg file is just a text document with .cfg on the end...?

custom_story_settings.cfg

instead of

custom_story_settings.txt

Well... The actual name of my files are "custom_story_settings" "test" "test", there are no .cfg .map .hps etc.. And if the file type doesn't show as "CFG File", but instead "Text Document" - it will not work. That's what was causing my problems. Apparently it's not as easy as making a text file and adding '.cfg' at the end -- well at least in my case. I had to copy a CFG File, then edit it.

O___o Either that or I was missing something in the code.

1. Go to the menu Tools > Folder options...
2. Go to the "View" tab.
3. Untick "Hide extensions for known file types".

[Image: 16455.png]
09-19-2010 10:34 PM
Find all posts by this user Quote this message in a reply
Alexander Offline
Junior Member

Posts: 22
Joined: Sep 2010
Reputation: 0
Post: #19
RE: Custom Story Help

Ah! Thanks Big Grin
09-19-2010 11:34 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)