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
Scripting doesnt work. Help!
Electrofuze Offline
Junior Member

Posts: 13
Threads: 3
Joined: Sep 2011
Reputation: 0
#1
Scripting doesnt work. Help!

For some reason my custom story i am testing wont apear on the custom story list and these are my configs for it
Custom_Story_Settings.cfg
< Main

Name = "LivingNightmare"
Author = "Electrofuze"
Imgfile = "Amnesia-Shambles"
Mapsfolder = "Maps/Ch01/"
Startmap = "00_TheHowling.map
Startpos = "PlayerStartArea_2"
/>

00_Thehowling.hps
////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "SmallStorageRoomkey", "SmallStorageRoom", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Smallstorageroom", false, true);
PlaySoundAtEntity("", "unlock_door", "SmallStorageRoom", 0, false);
RemoveItem("SmallStorageRoomkey");
}

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

}

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

}
extra_english.lang
< LANGUAGE>
< CATEGORY Name="Livingnightmare">
< Entry Name="Description">Just a description.</Entry>
< /CATEGORY>
< CATEGORY Name="Journal">
< Entry Name="Explaining_Name">Explaining</Entry>
< Entry Name="Explaining_Text">This is a test note.</Entry>
< /CATEGORY>
< /LANGUAGE>
thats what i have and for the locations
My customstory settings are in my Livingnightmare Directory same goes for extra english lang
and then Maps/ch01 i have my map and my hps folder
I hope thats correct. If it isnt can you guys help me if i need to change anything
(This post was last modified: 10-01-2011, 06:56 PM by Electrofuze.)
10-01-2011, 04:25 PM
Find
Obliviator27 Offline
Posting Freak

Posts: 792
Threads: 10
Joined: Jul 2011
Reputation: 66
#2
RE: Scripting doesnt work. Help!

< Main

Name = "LivingNightmare"
Author = "Electrofuze"
Imgfile = "Amnesia-Shambles"
Mapsfolder = "Maps/Ch01/"
Startmap = "00_TheHowling.map
Startpos = "PlayerStartArea_2"
/>
I dun goof'd and didn't do this right when I rearranged it.
It should be
< Main

Name = "LivingNightmare"
Author = "Electrofuze"
ImgFile = "Amnesia-Shambles"
MapsFolder = "Maps/Ch01/"
StartMap = "00_TheHowling.map"
StartPos = "PlayerStartArea_2"
/>
Difference being the second word is capitalized and there is an end quotation mark after 00_TheHowling.map


10-01-2011, 07:03 PM
Find
Electrofuze Offline
Junior Member

Posts: 13
Threads: 3
Joined: Sep 2011
Reputation: 0
#3
RE: Scripting doesnt work. Help!

(10-01-2011, 07:03 PM)Obliviator27 Wrote: < Main

Name = "LivingNightmare"
Author = "Electrofuze"
Imgfile = "Amnesia-Shambles"
Mapsfolder = "Maps/Ch01/"
Startmap = "00_TheHowling.map
Startpos = "PlayerStartArea_2"
/>
I dun goof'd and didn't do this right when I rearranged it.
It should be
< Main

Name = "LivingNightmare"
Author = "Electrofuze"
ImgFile = "Amnesia-Shambles"
MapsFolder = "Maps/Ch01/"
StartMap = "00_TheHowling.map"
StartPos = "PlayerStartArea_2"
/>
Difference being the second word is capitalized and there is an end quotation mark after 00_TheHowling.map

K i fixed it but still same problem is the problem within my scripting or maybe my gamefile itself doesnt want any customstorys?
10-01-2011, 07:40 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#4
RE: Scripting doesnt work. Help!

(10-01-2011, 04:25 PM)Electrofuze Wrote: For some reason my custom story i am testing wont apear on the custom story list and these are my configs for it
Custom_Story_Settings.cfg
< Main

Name = "LivingNightmare"
Author = "Electrofuze"
Imgfile = "Amnesia-Shambles"
Mapsfolder = "Maps/Ch01/"
Startmap = "00_Thehowling.map
Startpos = "PlayerStartArea_2"
/>
Make sure the map name matches exactly again.. I'm not sure how you arranged it.

It sounds like you need to fix up your "custom_story_settings.cfg' (make sure it is typed JUST LIKE THAT. and that it is NOT in your map folder. It should be in the main folder you probably listed as the campaign folder. The image file and "extra_english.lang" should ALSO be in the MAIN FOLDER.

If that doesn't fix it, try copy and pasting this (exactly) into your custom_story_settings.cfg (also, check your capitalizations and if the image is a jpg, png, etc. everything has to be exact):

<Main
ImgFile = "Amnesia-Shambles.jpg"
Name = "Living Nightmare"
Author = "Electrofuze"

MapsFolder = "Maps/Ch01/"
StartMap = "00_TheHowling.map"
StartPos = "PlayerStartArea_2"
/>



__________________
Note, also make sure your StartPos is correct. I noticed it has a "2" at the end. What happened to the first one? lol... (This is my .cfg layout and it works so it SHOULD work for you.)

***Hope this helps

(This post was last modified: 10-02-2011, 05:24 AM by Statyk.)
10-02-2011, 05:17 AM
Find




Users browsing this thread: 1 Guest(s)