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
Cant get my custom story to show! PLEASE help!!
Ravenxx Offline
Junior Member

Posts: 8
Threads: 2
Joined: Jul 2012
Reputation: 0
#1
Cant get my custom story to show! PLEASE help!!

Hey, i created a custom story and iv done everything correctly, my .map is in a maps folder, all the scripting is done right (so i think) But there's just one problem, when i want to test out my map i go into amnesia and open up custom story's, but its not there! Iv done all i can but i cant get it to show up, iv even looked in other custom story folders and mine seems to look the same. I really don't know what to do, iv tried everything. To be honest im not brilliant at scripting, in fact i think its really confusing as it is my first time doing this. If anyone could help id really appreciate it!

My lang file.

<LANGUAGE>
<RESOURCES />
<CATEGORY Name="Secrets">
<Entry Name="Description">Your brothers friend invited you over to his new house, you have to go into the storage to get a crowbar, but people say if you go in there strange things will happen to you...You then set out to find your brother as he has wonderd of. What will you encounter when you go looking for him?</Entry>
</CATEGORY>
</LANGUAGE>

<CATEGORY Name="Journal">
<Entry Name="Note_Test01_Name">Note</Entry>
<Entry Name="Note_Test01_Text">Hey, I know your busy and everything but please can you do me this favour?

If yes, can you go down to the storage and get me a crowbar, i need it to open this door, it is quite dark down
there, so be sure to get the lantern it
should be in one of the cabinets.

No one else i asked dare go down there, they say if you do strange things will happen to you,
no one knows why...
But as you dont believe in those things id appreciate it if you could.



Alex.</Entry>
</CATEGORY>


<CATEGORY Name="Inventory">
<Entry Name="ItemDesc_Storage1">Item description</Entry>
<Entry Name="ItemName_Storage1">Item name<Entry>
</CATEGORY>

I THINK thats right, i just followed a tutorial on it, thats all! so dont blame me for been stupid or anything please im really new at this.

Custom story settings file!

<Main
Name="Secrets"
Author="Raven"
ImgFile="story.png"

StartMap="Secrets_script_test.map"
StartPos=""
/>

My hps file.

////////////////////////////
// Run when the map starts
void OnStart()
{
AddUseItemCallback("", "Storage_1", "Storage", "Opens Storage", true);
}

void FUNCTION(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(door, false, true);
PlaySoundAtEntity("", "unlock_door", door, 0, false);
RemoveItem(item);
}


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

}

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

}


And the .hps file is in the same folder as my .maps is.

Basicly you open custom storys, you see mine in there "Secrets" you open it up, you see a folder called maps, in theres my .hps file and my .map file, and in the main folder is my .lang file and my cfg file and also my image.png


PLEASE HELP!

๖ۣۜRaven
07-07-2012, 08:45 PM
Find
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: Cant get my custom story to show! PLEASE help!!

You MUST have a start position in the custom_story_settings.cfg. Usually it is PlayerStartArea_1, but name it whatever you have in your map. Also, if that doesn't solve it, make sure everything is spelled the same. in your folders/custom_stories_settings.

hps and lang files are not necessary to run a custom story, just the settings.cfg and the map file.

Hope that helped!

I rate it 3 memes.
07-07-2012, 08:49 PM
Find
Ravenxx Offline
Junior Member

Posts: 8
Threads: 2
Joined: Jul 2012
Reputation: 0
#3
RE: Cant get my custom story to show! PLEASE help!!

If anyone could look at the script and possibly contact me through steam: 4257e_t is my username, my nick name is Jellytot_clumpz tho, add me on that if you want too so you can actually discuss the matter with me. As i can get easily confused and im really new at scripting. Id love the help.

(07-07-2012, 08:49 PM)andyrockin123 Wrote: You MUST have a start position in the custom_story_settings.cfg. Usually it is PlayerStartArea_1, but name it whatever you have in your map. Also, if that doesn't solve it, make sure everything is spelled the same. in your folders/custom_stories_settings.

hps and lang files are not necessary to run a custom story, just the settings.cfg and the map file.

Hope that helped!



Ill try that! hopefully this works! If not thank you so much for trying to help, i really appreciate it Big Grin If it works ill let you know

(07-07-2012, 08:49 PM)andyrockin123 Wrote: It hasnt worked Sad its still not showing up when i open amnesia. I really dont know

๖ۣۜRaven
(This post was last modified: 07-07-2012, 08:55 PM by Ravenxx.)
07-07-2012, 08:50 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Cant get my custom story to show! PLEASE help!!

The only thing the game needs to list a custom story in its custom story menu is a working custom_story_settings.cfg file with the map file it points to, somewhere in the custom_stories folder. If the map doesn't exist or if the file has the wrong name or extension, it won't get listed.

Tutorials: From Noob to Pro
07-07-2012, 09:14 PM
Website Find
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#5
RE: Cant get my custom story to show! PLEASE help!!

Doh, can't believe I missed that; I just looked at the custom story settings again and you don't have the "MapsFolder". Try adding this to your settings (assuming the map folder is named "maps"):

MapsFolder = "maps/"

So a full custom_story_settings.cfg should look like this:


<Main
Name = "NAME"
Author = "AUTHOR"
ImgFile= ""
MapsFolder = "maps/"
StartMap = "nameofmap.map"
StartPos = "PlayerStartArea_1"
/>


You can change all of the things in quotations ("") to your specific file names.

I rate it 3 memes.
07-07-2012, 09:24 PM
Find
Ravenxx Offline
Junior Member

Posts: 8
Threads: 2
Joined: Jul 2012
Reputation: 0
#6
RE: Cant get my custom story to show! PLEASE help!!

Yeh, i know but i double checked that file and it all looks ok D:

So now it looks like this
<Main
Name = "Secrets"
Author = "Raven"
ImgFile= "Secrets.png"
MapsFolder = "maps/Secrets.map"
StartMap = "Secrets.map"
StartPos = "PlayerStartArea_1"
/>

Im not sure if thats right, the maps location thing, i open my custom stories, go to Secrets, then the maps folder, then the map is in there its called Secrets.map ... im not sure if iv done it right, but its not showing up
in amnesia still Sad

๖ۣۜRaven
(This post was last modified: 07-07-2012, 11:54 PM by Ravenxx.)
07-07-2012, 11:47 PM
Find
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#7
RE: Cant get my custom story to show! PLEASE help!!

For the <maps folder>, it is just the directory to the folder where the map is; not the map itself. Try this:

MapsFolder = "maps/"


That is all that's required for that part of the settings. Everything else in the .cfg looks fine.

I rate it 3 memes.
07-08-2012, 12:00 AM
Find
Ravenxx Offline
Junior Member

Posts: 8
Threads: 2
Joined: Jul 2012
Reputation: 0
#8
RE: Cant get my custom story to show! PLEASE help!!

Ok so it shows up in the custom stories, some reason it doesnt say the descroption of the map, and also when i press start it just goes to a black screen D:

FATAL ERROR: Could not load script file
"custom_stories/Secrets/maps/Secrets.hps'
Main (10, 24) : ERR : "door" is not declared
Main (11,5) : ERR No matching signatures
'PlayerSoundEntity(string@&, int, const uint,, const bool)'
main (12,16 : ERR : 'item' is not declared


^^^^^^^^ Thats the error i get when i try to open it. Sad

๖ۣۜRaven
(This post was last modified: 07-08-2012, 04:05 PM by Ravenxx.)
07-08-2012, 04:00 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#9
RE: Cant get my custom story to show! PLEASE help!!

Why it doesn't come up with a description is because your .lang file is wrong. You shouldn't have "</RESOURCES>" if there is no "<RESOURCES>", so I took it out. And you didn't close an entry at the bottom. You also had your </LANGUAGE> in the wrong spot. Lastly, you had the wrong category name for your description. (copy and paste this into your current .lang):

<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Your brothers friend invited you over to
his new house, you have to go into the storage to get a crowbar, but
people say if you go in there strange things will happen to you...You
then set out to find your brother as he has wonderd of. What will you
encounter when you go looking for him?</Entry>
</CATEGORY>

<CATEGORY Name="Journal">
<Entry Name="Note_Test01_Name">Note</Entry>
<Entry Name="Note_Test01_Text">Hey, I know your busy and everything but please can you do me this favour?
If yes, can you go down to the storage and get me a crowbar, i need it to open this door, it is quite dark down
there, so be sure to get the lantern it
should be in one of the cabinets.
No one else i asked dare go down there, they say if you do strange things will happen to you,
no one knows why...
But as you dont believe in those things id appreciate it if you could.
Alex.</Entry>
</CATEGORY>

<CATEGORY Name="Inventory">
<Entry Name="ItemDesc_Storage1">Item description</Entry>
<Entry Name="ItemName_Storage1">Item name</Entry>
</CATEGORY>

</LANGUAGE>

As for the script, I think you should study the scripting process a bit more and perhaps make names of objects a bit more unique. "door" is a strange way to go about scripting (at least in my opinion):

void OnStart()

{

AddUseItemCallback("", "Storage_1", "Storage", "Opens Storage", true);

}



void FUNCTION(string &in asItem, string &in asEntity)

{

SetSwingDoorLocked("door", false, true);

PlaySoundAtEntity("", "unlock_door", "door", 0, false);

RemoveItem("ITEMNAME");

}
(This post was last modified: 07-08-2012, 05:06 PM by Statyk.)
07-08-2012, 04:59 PM
Find
Ravenxx Offline
Junior Member

Posts: 8
Threads: 2
Joined: Jul 2012
Reputation: 0
#10
RE: Cant get my custom story to show! PLEASE help!!

Where do i copy and paste the script you gave me? i just followed a tutorial on this really, because i have a key, and wanted it to unlock this door, thats why in the .lang file theres "storage" things. I got a few more things in the script,

////////////////////////////
// Run when the map starts
void OnStart()
{
AddUseItemCallback("", "Storage_1", "Storage", "Opens Storage", true);
}

void FUNCTION(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(door, false, true);
PlaySoundAtEntity("", "unlock_door", door, 0, false);
RemoveItem(item);
}


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

}

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

}




Thats what i have so far, do i just delete that and replace it with what you typed ?
Btw thank you Big Grin

๖ۣۜRaven
07-08-2012, 05:10 PM
Find




Users browsing this thread: 2 Guest(s)