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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Story Probleam
Hailfiretank Offline
Junior Member

Posts: 33
Threads: 12
Joined: Jun 2012
Reputation: 0
#1
Custom Story Probleam

I realise this is most likely an error on my part, and that this might not be the appropriate section to ask, but I have a problem.

Earlier I had a go at creating an amnesia custom story. Created a single room, and want to test it in-game however, it is not loading. Sad


Any ideas why? It's not even showing up in the custom stories section of the main menu?

And if you hadn't guessed, I'm a complete noob at all of this Undecided

extra_english.lang:



Testing testing!.


A key that looks like it might unlock the bedroom door


Test Note
There is a mystical being called Server One. It serves as a bases for something many call 'Team Fortress 2'. The server was ruled by 5 ancient guardians:
Iain Of Strength
Swampy Of Awesomeness
Wally Of Skill
Andman of Blackmail
Lukaroo of Champion

The server was also defended by several Guardians:
EpicBeard the Beardless
Ivan the Blamed
Fev! the Admin
Shi the Rich
NoGood the Spy
Seaking the Demoknight
Barmy the Bartender
and Presto the Guy With Over 40000 Kills on his Strange Rocket Launcher




custom_story_settings.cfg:

Name="CustomMap"
Author="Hailfiretank"
ImgFile="Terrifed_face.png"

StartMap="CustomMap.map"
StartPos="PlayerStartArea_1"
/>

CustomMap.hps:

////////////////////////////
// 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");
}
}


I cannot upload either the map or the Image to the forums unfortunately, however if it may help I can try and upload them to somewhere like Mediafire tomorrow

Any help appreciated, and thanks for looking!

Hailfiretank
06-03-2012, 11:32 PM
Find
Putmalk Offline
Senior Member

Posts: 290
Threads: 13
Joined: Apr 2012
Reputation: 15
#2
RE: Custom Story Probleam

If it's not showing up in the custom stories browser, that means it's not recognizing the location.

For starters, go into your custom_stories folder, and then make a new folder called...well, I don't know, whatever you want.

Inside that new folder place the custom_story_settings.cfg and extra_english.lang inside there.

Then, make a folder called maps (still inside your custom story's folder), and then enter that folder.

Place your map/hps files in there.

Now, go back to your custom_story_settings.cfg and open it up.

It should look like:

<Main
    Name="MyName"
    Author="Me"
    
    MapsFolder="maps/"
    StartMap="mymap.map"
    StartPos="PlayerStartArea_1"
/>

Make sure you have a PlayerStartArea in your map (place it via Areas), and you'll be good to go to playtest your map!

Your extra_english...is not right.

It should be structured like so:

<LANGUAGE>
<CATEGORY Name="CustomStoryMan">
<Entry Name="Description">Your custom story description</Entry>
</CATEGORY>
<CATEGORY Name="Journal">
<Entry Name="Note_YourNoteName_Name">Name of a note</Entry>
<Entry Name="Note_YourNoteName_Text">The note's text.</Entry>
</CATEGORY>
</LANGUAGE>

...etc etc. They have guides written to under how this works.

(This post was last modified: 06-04-2012, 12:37 AM by Putmalk.)
06-04-2012, 12:35 AM
Find
Hailfiretank Offline
Junior Member

Posts: 33
Threads: 12
Joined: Jun 2012
Reputation: 0
#3
RE: Custom Story Probleam

I have edited it, and I'm sure it's all in the correct place:
Program Files (x86) - Steam - steamapps - common - amnesia the dark descent - custom_stories NoTalentCastle
In this file, I have one folder (maps)

and 3 files:
extra_english.lang
<LANGUAGE><RESOURCES></RESOURCES><CATEGORY Name="NoTalentCastle"><Entry Name="Description">Testing Testing!</Entry></CATEGORY><CATEGORY Name="Journal"><Entry Name="Note_No_Talent_Legend_Name">The Legend Of 'Server One'</Entry><Entry Name="Note_No_Talent_Legend_Text">EpicBeard is Beardless</Entry></CATEGORY><CATEGORY Name ="Inventory"><Entry Name="ItemDesc_BedroomKey_1">"Key to Bedroom door"</Entry><Entry Name="ItemName_BedroomKey_1">"Bedroom door key"</Entry></LANGUAGE>

custom_story_setting.cfg:


and a png image file named 'Terrifiedface.png'

In the maps folder, there are 2 files:

NoTalentCastle.hps

//////////////////////////////Run first time starting mapvoid OnStart(){AddUseItemCallback("", "BedroomKey_1", "BedroomDoor", "UsedKeyOnDoor", true);
void MyFunc(string &in asItem, string &in asEntity){SetSwingDoorLocked("BedroomDoor", false, true);PlaySoundAtEntity("", "unlock_door", "BedroomDoor", 0, false);RemoveItem("BedroomKey_1);}

and then the map "NoTalentCastle.map"

It is only my custom story that is doing this. My friends and the custom story 'Darkroom' are both visible.

I'm really confused by everything Undecided

Then again, I'm a rookie Sad


Forums have made all coding appear really weird...
06-04-2012, 10:02 AM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#4
RE: Custom Story Probleam

I would suggest using the lang editor made by Apjjm for working with .lang files.

http://www.frictionalgames.com/forum/thread-12213.html

06-04-2012, 10:21 AM
Find
Hailfiretank Offline
Junior Member

Posts: 33
Threads: 12
Joined: Jun 2012
Reputation: 0
#5
RE: Custom Story Probleam

I'll give it a shot, thanks!

I tried to load the lang file using the lang editor, but it wouldn't show up. Just shows how bad my coding skills are!


extra_english.lang as it is:



<LANGUAGE>
<CATEGORY Name="NoTalentCastle">
<Entry Name="Description">Testing Testing!</Entry>
</CATEGORY>
<CATEGORY Name="Journal">
<Entry Name="Note_No_Talent_Legend_Name">The Legend Of 'Server One'</Entry>
<Entry Name="Note_No_Talent_Legend_Text">EpicBeard is Beardless</Entry>
</CATEGORY>
<CATEGORY Name ="Inventory">
<Entry Name="ItemDesc_BedroomKey_1">"Key to Bedroom door"</Entry>
<Entry Name="ItemName_BedroomKey_1">"Bedroom door key"</Entry>
</LANGUAGE>
(This post was last modified: 06-04-2012, 10:47 AM by Hailfiretank.)
06-04-2012, 10:35 AM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#6
RE: Custom Story Probleam

I see your problem

<CATEGORY Name ="Inventory">
<Entry Name="ItemDesc_BedroomKey_1">"Key to Bedroom door"</Entry>
<Entry Name="ItemName_BedroomKey_1">"Bedroom door key"</Entry>
</CATEGORY>

(This post was last modified: 06-04-2012, 10:49 AM by SilentStriker.)
06-04-2012, 10:49 AM
Find
Hailfiretank Offline
Junior Member

Posts: 33
Threads: 12
Joined: Jun 2012
Reputation: 0
#7
RE: Custom Story Probleam

*facepalm

Thanks, didn't notice that! However, It still isn't showing up in the in-game 'Custom story section'.

In the 'NoTalentCastle' folder

extra_english.lang now says:

<LANGUAGE>
<CATEGORY Name="NoTalentCastle">
<Entry Name="Description">Testing Testing!</Entry>
</CATEGORY>
<CATEGORY Name="Journal">
<Entry Name="Note_No_Talent_Legend_Name">The Legend Of 'Server One'</Entry>
<Entry Name="Note_No_Talent_Legend_Text">EpicBeard is Beardless</Entry>
</CATEGORY>
<CATEGORY Name ="Inventory">
<Entry Name="ItemDesc_BedroomKey_1">"Key to Bedroom door"</Entry>
<Entry Name="ItemName_BedroomKey_1">"Bedroom door key"</Entry>
</CATEGORY>
</LANGUAGE>

custom_story_settings.cfg says:

<main
Name="NoTalentCastle"
Author="Hailfiretank"
ImgFile="Terrifed_face.png"

MapsFolder="maps/"
StartMap="CustomMap.map"
StartPos="PlayerStartArea_1"
/>

Then there is a png image called 'Terrified_face'

In the maps folder:

NoTalentCastle.hps says:


////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "BedroomKey_1", "BedroomDoor", "UsedKeyOnDoor", true);
}

void MyFunc(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("BedroomDoor", false, true);
PlaySoundAtEntity("", "unlock_door", "BedroomDoor", 0, false);
RemoveItem("BedroomKey_1);
}

and then there is the map itself - NoTalentCastle.map

Am I missing any files I should have? Remember, it's just a single room, which I want to test ingame but cannot Undecided

Thanks for the help so far! Smile

Just realised another mistake. Changed 'StartMap="CustomMap.map"' to '
StartMap="NoTalentCastle.map"', however it STILL isn't working!
(This post was last modified: 06-04-2012, 11:06 AM by Hailfiretank.)
06-04-2012, 11:04 AM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#8
RE: Custom Story Probleam

<CATEGORY Name="NoTalentCastle">

should be
<CATEGORY Name="CustomStoryMain">

(This post was last modified: 06-04-2012, 11:12 AM by SilentStriker.)
06-04-2012, 11:06 AM
Find
Hailfiretank Offline
Junior Member

Posts: 33
Threads: 12
Joined: Jun 2012
Reputation: 0
#9
RE: Custom Story Probleam

Edited that, but it's still not showing up. CUSTOM STORY, Y U NO SHOW UP?
06-04-2012, 11:24 AM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#10
RE: Custom Story Probleam

Ok so I made a extra_english.lang for you. It should work so try it out

http://dl.dropbox.com/u/17718120/extra_e....lang?dl=1

06-04-2012, 11:40 AM
Find




Users browsing this thread: 1 Guest(s)