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:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem loading Custom Story!
Athom Offline
Junior Member

Posts: 32
Threads: 6
Joined: Jul 2012
Reputation: 1
#1
Problem loading Custom Story!

Hey everybody this is my first post.
I played through the game and loved it, so i tried to make my own custom map.
I had it working fine until it gave me an error when loading it up after making some edits in the hps file. The error said FATAL ERROR: Could not load script file 'custom_stories/StoryTest/custom_stories/StoryTest/maps/AmnesiaMap.hps'! main (22, 13) : ERR : Unexpected end of file Please respond to this if you know the exact problem with my coding. Thanks!

HPS FILE IS AS FOLLOWS


////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "key_1", "door_1", "KeyOnDoor", true);
AddEntityCollideCallback("Player", "AreaHelp", "CollideAreaHelp", false, 1);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door_1", false, true);
PlaySoundAtEntity("", "unlock_door", "door_1", 0, false);
RemoveItem("key_1");
////////////////////////////
// Run when entering map
void OnEnter ()
{

}

////////////////////////////
// Run when leaving map
void OnLeave

Current Projects: The Cure 15%
4Shared Download: http://ow.ly/cqjk4
Youtube Video: http://ow.ly/cq2LR
(This post was last modified: 07-15-2012, 11:03 AM by Athom.)
07-15-2012, 09:31 AM
Find


Messages In This Thread
Problem loading Custom Story! - by Athom - 07-15-2012, 09:31 AM
RE: Problem loading Custom Story! - by Apjjm - 07-15-2012, 09:16 PM
RE: Problem loading Custom Story! - by Athom - 07-16-2012, 12:38 AM



Users browsing this thread: 1 Guest(s)