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 Crash [HAVING THE PROBLEM ONCE AGAIN]
TheReaper2011 Offline
Junior Member

Posts: 3
Threads: 0
Joined: Aug 2011
Reputation: 0
#21
RE: Custom Story Crash [SOLVED]

OK....i changed it around a bit (looked around at someone else's "hps" and i changed mine like this:

My hps:

void OnStart()
{
AddQuest("hauntedhallquest", "HauntedHallQuest");
AddEntityCollideCallback("Player", "Walk_Quest_Area", "GetWalkQuest", true, 1);
CreateEntityAtArea("servant_grunt_6", "servant_grunt.ent", "RoomAreaThree", false);
AddEntityCollideCallback("Player", "Walk_Complete_Area", "FinishWalkQuest", true, 1);
AddEntityCollideCallback("Player", "RoomTwoArea", "CollideRoomTwo", true, 1);
AddEntityCollideCallback("Player", "RoomOneArea", "CollideRoomOne", true, 1);
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
}

void OnEnter()
{
AddUseItemCallback("", "hallkey_1", "hall", "KeyOnDoor", true);
SetSwingDoorLocked("hall", false, true);
SetSwingDoorLocked("outsidedoor" , false, true);
PlaySoundAtEntity("", "unlock_door" , "outsidedoor" , 0, false);
RemoveItem("outsidekey_1");
PlaySoundAtEntity("unlocksound", "unlock_door.snt", "hall", 0.0f, false);
RemoveItem("hallkey_1");
SetEntityPlayerLookAtCallback("fire_place_3", "looking", true);
}

void GetWalkQuest(string &in asParent, string &in asChild, int alState)
{

}

void FinishWalkQuest(string &in asParent, string &in asChild, int alState)
{
CompleteQuest("hauntedhallquest", "HauntedHallQuest");
}
PlaySoundAtEntity("unlocksound", "unlock_door.snt", "hall", 0.0f, false);
RemoveItem("hallkey_1");
}

void CollideRoomOne(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("mansion_1", true, true);
SetSwingDoorClosed("hall", false, true);
SetEnemyIsHallucination("servant_grunt_6", true);
FadeEnemyToSmoke("servant_grunt_6", true);
ShowEnemyPlayerPosition("Player");
}


Now that type of hps (in this order) i saw that from the user "Bennick"...

BUT....again and again the annoyance continues repetedly: Confused

- FATAL ERROR: Could not load script file 'custom_stories/RoaringCorridors/custom_stories/RoaringCorridors/maps/00_roaringcorridors.hps'!
main (33, 18) : ERR : Expected identifier
main (34, 11) : ERR : Expected identifier
main (35, 1) : ERR : Unexpected token '}'

Why..i dunno...the error/s are less but in each one that occured (and i kept changing lines insanely) it keeps mentioning "Unexpected token"...and of course "Expected Identifier" Huh

What am i doing wrong? Sorry to bother, for the well, 3rd time, but this error is pulling my nerves. Im creating my nice little map with creepy corridors and jump moments/scares...and i can't even load it Sad


08-22-2011, 12:57 PM
Find
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
#22
RE: Custom Story Crash [SOLVED]

I'm having more troubles. The exact same problem as in the OP, and I can't figure out why this time tho....


extra_english.lang
Spoiler below!

<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">You are a man named Robert Lightwood. You are having personal problems, such as depression, for an unknown reason. Your wife, Maryse Lightwood, goes on a trip to somewhere in the desert, and she dies along the way. She gives you most the things she owns in her will, including a strange artifact she found in the desert. You keep it, and strange things start happening. Such as voices telling you to "Throw it away," or "Give it to me." You ignore them, and keep living, or trying to. You are then taking a nice stroll down an abandoned road when you hear something in the bushes. You get weak from fear and fall to the floor. The world goes dark and something slaps you on the head. You wake in a cell and the story begins.</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_CellKey">Cell #801</Entry>
<Entry Name="ItemDesc_CellKey">On the side there are words scratched in. They say "Cell #801".</Entry>
<Entry Name="ItemName_CellsDoor">Specialty Threat Cells Corridor</Entry>
<Entry Name="ItemDesc_CellsDoor">A key for a locked door in the cells area where they kept me.</Entry>
<Entry Name="ItemName_SouthCells">Southern Cells</Entry>
<Entry Name="ItemName_SouthCells">The key for the Southern Cells.</Entry>
<Entry Name="ItemName_AwesomeKey">Back Hall Corridor</Entry>
<Entry Name="ItemDesc_AwesomeKey">This must be for a door in the Hallway of the Back Hall.</Entry>
</CATEGORY>
<CATEGORY Name="Ending">
<Entry Name="StartCredits">
Escape Hell Beta[br]
Made By: XxRoCkBaNdMaNxX[br]
Thanks to [br]XxWestKillzXx and [FuG]wolfofdestruction for beta testing and motivation![br][br]
Following People from Frictional Games Forums: [br]Roenlond, Mofo, Kyle, Greven, Phoroneus,
Frictional Games for this awesome piece of work
Everyone in the community for playing.[br] Stay tuned for the full custom!..... [br][br][br][br]and for Chapter 2
</Entry>
</CATEGORY>
<CATEGORY Name="Levels">
<Entry Name="level_dungeon_1">Water Works</Entry>
<Entry Name="level_dungeon_2">Outer Cells</Entry>
<Entry Name="SpecialCells">Specialty Threats Cells</Entry>
<Entry Name="SouthernCells">Southern Cells</Entry>
<Entry Name="NorthernCells">Northern Cells</Entry>
</CATEGORY>
<CATEGORY Name="Journal">
<Entry Name="note_generic_1_Name">Regarding the Closure of the Dark Storage</Entry>
<Entry Name="note_generic_1_Text">Due to the mistake that recently happened inside the Dark Storage, it has been closed, and the key as been placed in the attic, which, conviently, got blocked off by a lot of wooden boards that broke off the roof. I do not plan to open up the Dark Storage ever again, so do not try. The Dark Storage has been filled by rocks and the walls have caved in. Please do not try to get in. -Jace</Entry>
</CATEGORY>
</LANGUAGE>


hpl
Spoiler below!

Version 1.20
-------- THE HPL ENGINE LOG ------------
Engine build ID 20101021192547

Creating Engine Modules
--------------------------------------------------------
Creating graphics module
Creating system module
Creating resource module
Creating input module
Creating sound module
Creating physics module
Creating ai module
Creating gui module
Creating generate module
Creating haptic module
Creating scene module
--------------------------------------------------------

Initializing Resources Module
--------------------------------------------------------
Creating loader handlers
Creating resource managers
Adding loaders to handlers
--------------------------------------------------------

Initializing Graphics Module
--------------------------------------------------------
Init lowlevel graphics: 800x600 bpp:32 fs:1 ms:0 gpufmt:2 cap:'Amnesia - The Dark Descent - Loading...' posSad-1x-1)
Setting video mode: 800 x 600 - 32 bpp
Init Glew...OK
Setting up OpenGL
Vendor: ATI Technologies Inc.
Renderer: Radeon X300/X550/X1050 Series (Omega 3.8.442)
Version: 2.1.7169 Release
Max texture image units: 16
Max texture coord units: 8
Max user clip planes: 6
Two sided stencil: 1
Vertex Buffer Object: 1
Anisotropic filtering: 1
Max Anisotropic degree: 16
Multisampling: 1
Texture compression: 1
Texture compression S3TC: 1
Auto generate MipMaps: 1
Render to texture: 1
Max draw buffers: 4
Max color render targets: 4
Packed depth-stencil: 1
Texture float: 1
GLSL Version: 1.20
ShaderModel 2: 1
ShaderModel 3: 1
ShaderModel 4: 0
OGL ATIFragmentShader: 1
Setting up G-Bugger: type: 0 texturenum: 3
Adding engine materials
Initializing DevIL
Vendor String: Abysmal Software
Version String: Developer's Image Library (DevIL) 1.6.8pre Aug 12 2006
Version Number: 168
Adding engine post effects
--------------------------------------------------------

Initializing Sound Module
--------------------------------------------------------
Initializing OpenAL
Available OpenAL devices:
0. Generic Hardware on SB Audigy Audio [CCA0](OpenAL default)
1. Generic Software on SB Audigy Audio [CCA0]
2. SB Audigy Audio [CCA0]
Trying to open device 'Generic Software on SB Audigy Audio [CCA0]'... Success!
Number of mono sources: 32
Streaming setup: 4 Buffers x 262144 bytes each
--------------------------------------------------------

Initializing Game Module
--------------------------------------------------------
Adding engine updates
Initializing script functions
--------------------------------------------------------

User Initialization
--------------------------------------------------------
--------------------------------------------------------

Game Running
--------------------------------------------------------
-------- Loading map 'menu_bg.map' ---------
Cache Loading: 2442 ms
Entities: 444 ms
Compilation: 2 ms
Total: 2917 ms
Meshes created: 26
Bodies created: 5
-------- Loading complete ---------
Setting profile: 'XxRoCkBaNdMaNxX' Path: 'C:\Documents and Settings\Jesse\My Documents/Amnesia/Main/XxRoCkBaNdMaNxX/'
ERROR: Unable to open config file 'custom_stories/Amnesia - The Village/custom_story_settings.cfg'! Invalid filepointer returned!
Error creating custom story from path "custom_stories/Amnesia - The Village" : could not find custom_story_settings.cfg file or it was invalid.
WARNING: No resources element found in 'custom_stories/AStoryOfDeath/extra_english.lang'
ERROR: Unable to open config file 'custom_stories/Amnesia - The Village/custom_story_settings.cfg'! Invalid filepointer returned!
Error creating custom story from path "custom_stories/Amnesia - The Village" : could not find custom_story_settings.cfg file or it was invalid.
WARNING: No resources element found in 'custom_stories/Escape Hell (DEMO)/extra_english.lang'


I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
(This post was last modified: 08-25-2011, 03:09 AM by RawkBandMan.)
08-25-2011, 03:08 AM
Find




Users browsing this thread: 1 Guest(s)