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
RockBand's TC Help Thread :P
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
#1
RockBand's TC Help Thread :P

EDIT: Made the script a PHP code for the thread.


I'm getting a crash with my new custom (I am thinking of abandoning the other one)

FATAL ERROR: Could not load "custom_stories/Overnight Horror/maps/ch01/House1.hps
main (58, 2) : ERR : Unexpected end of file


Welp


hps

PHP Code: (Select All)
void OnStart()
{
AddUseItemCallback("""key_tower_1""level_wood_1""UseKeyOnDoor"true);
wakeUp();
AddEntityCollideCallback("""Player""friends""completequest"true);
SetEntityPlayerInteractCallback("""Locked"true);
AddEntityCollideCallback("""Player""friends_1""micheal"true);
}


void wakeUp () {
StartPlayerLookAt("level_wood_1"11.0f11.0f"");
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
FadeIn(10); // Amount of seconds the fade in takes
FadeImageTrailTo(22);
FadeSepiaColorTo(1004);
SetPlayerActive(false); 
FadePlayerRollTo(50220220); // "Tilts" the players head
FadeRadialBlurTo(0.152);
SetPlayerCrouching(true); // Simulates being on the ground
AddTimer("trig1"16.0f"beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
}

void beginStory(string &in asTimer){
ChangePlayerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(03333); // Change all settings to defaults
FadeRadialBlurTo(0.01);
FadeSepiaColorTo(04);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
StopPlayerLookAt();
AddQuest("friendsquest""FriendsQuest");
}

void UseKeyOnDoor(string &in asItemstring &in asEntity)
{
SetLevelDoorLocked(level_wood_1", false);
PlaySoundAtEntity("", "
unlock_door", "level_wood_1", 0, false);
RemoveItem("
key_tower_1");
CompleteQuest("
lockedlvl");
}

void completequest(string &in asEntity)
{
CompleteQuest("
friendsquest");
SetMessage("
Messages", "A", 7.0f);
}

void Locked(string &in asEntity)
{
AddQuest("
lockedlvl", "LockedLvl");
}

void micheal(string &in asEntity)
{
SetMessage("
Messages", "B", 7.0f);


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: 01-15-2012, 02:52 AM by RawkBandMan.)
12-12-2011, 01:02 AM
Find Reply
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#2
RE: Map crash help

1) You didn't post the whole script if it goes down 58 tabs and you posted 52...
2) If that's not it, remove "wakeUp();" and instead, replace the respective info with:

void OnStart()
{
AddUseItemCallback("", "key_tower_1", "level_wood_1", "UseKeyOnDoor", true);
AddEntityCollideCallback("", "Player", "friends", "completequest", true);
SetEntityPlayerInteractCallback("", "Locked", true);
AddEntityCollideCallback("", "Player", "friends_1", "micheal", true);
AddTimer("", 5, "wakeUp");
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
}

void wakeUp(string &in asTimer)
{
StartPlayerLookAt("level_wood_1", 11.0f, 11.0f, "");
FadeIn(5); // Amount of seconds the fade in takes
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(100, 4);
SetPlayerActive(false);
FadePlayerRollTo(50, 220, 220); // "Tilts" the players head
FadeRadialBlurTo(0.15, 2);
SetPlayerCrouching(true); // Simulates being on the ground
AddTimer("trig1", 16.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
}

12-12-2011, 01:13 AM
Find Reply
nemesis567 Offline
Posting Freak

Posts: 874
Threads: 65
Joined: May 2011
Reputation: 10
#3
RE: Map crash help

PHP Code: (Select All)
void OnStart()
 {
     
AddUseItemCallback("""key_tower_1""level_wood_1""UseKeyOnDoor"true);
     
AddEntityCollideCallback("""Player""friends""completequest"true);
     
SetEntityPlayerInteractCallback("""Locked"true);
     
AddEntityCollideCallback("""Player""friends_1""micheal"true);
     
AddTimer(""5"wakeUp");
     
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
 
}
 
 
void wakeUp(string &in asTimer
 {
     
StartPlayerLookAt("level_wood_1"11.0f11.0f"");
     
FadeIn(5); // Amount of seconds the fade in takes
     
FadeImageTrailTo(22);
     
FadeSepiaColorTo(1004);
     
SetPlayerActive(false); 
     
FadePlayerRollTo(50220220); // "Tilts" the players head
     
FadeRadialBlurTo(0.152);
     
SetPlayerCrouching(true); // Simulates being on the ground
     
AddTimer("trig1"16.0f"beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
 


Please use PHP tags for AngelScript. I didn't check the code so it might be right or wrong. It's statyk's code.

Today I dreamt the life I could live forever. You only know that when you feel it for you know not what you like until you've experienced it.
12-12-2011, 01:54 PM
Find Reply
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
#4
RE: Map crash help

@nemesis567 I am not using AngelScript, I use Notepad++

@both I am still getting the problem.

Here's the script with what should be all 58 lines....


PHP Code: (Select All)
void OnStart()
{
AddUseItemCallback("""key_tower_1""level_wood_1""UseKeyOnDoor"true);
AddTimer(""5"wakeUp");
AddEntityCollideCallback("""Player""friends""completequest"true);
SetEntityPlayerInteractCallback("""Locked"true);
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
AddEntityCollideCallback("""Player""friends_1""micheal"true);
}


void wakeUp () {
StartPlayerLookAt("level_wood_1"11.0f11.0f"");
FadeIn(5); // Amount of seconds the fade in takes
FadeImageTrailTo(22);
FadeSepiaColorTo(1004);
SetPlayerActive(false); 
FadePlayerRollTo(50220220); // "Tilts" the players head
FadeRadialBlurTo(0.152);
SetPlayerCrouching(true); // Simulates being on the ground
AddTimer("trig1"16.0f"beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
}

void beginStory(string &in asTimer){
ChangePlayerStateToNormal();
SetPlayerActive(true);
FadePlayerRollTo(03333); // Change all settings to defaults
FadeRadialBlurTo(0.01);
FadeSepiaColorTo(04);
SetPlayerCrouching(false);
FadeImageTrailTo(0,1);
StopPlayerLookAt();
AddQuest("friendsquest""FriendsQuest");
}

void UseKeyOnDoor(string &in asItemstring &in asEntity)
{
SetLevelDoorLocked(level_wood_1", false);
PlaySoundAtEntity("", "
unlock_door", "level_wood_1", 0, false);
RemoveItem("
key_tower_1");
CompleteQuest("
lockedlvl");
}

void completequest(string &in asEntity)
{
CompleteQuest("
friendsquest");
SetMessage("
Messages", "A", 7.0f);
}

void Locked(string &in asEntity)
{
AddQuest("
lockedlvl", "LockedLvl");
}

void micheal(string &in asEntity)
{
SetMessage("
Messages", "B", 7.0f);


And I dont think its the wakeup function, as how I had it worked fine in a different custom story I made for testing stuff.

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: 12-22-2011, 11:30 PM by RawkBandMan.)
12-21-2011, 12:18 AM
Find Reply
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#5
RE: Map crash help

UseKeyOnDoor > SetLevelDoorLocked: loose string.

BTW, the code you're writing is AngelScript code, so in a way you are using AngelScript.

Tutorials: From Noob to Pro
12-21-2011, 01:09 AM
Website Find Reply
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
#6
RE: Map crash help

Ooh I see. I just changed it and I will report back.


ARGH! It's still crashing with the same error message! This is a TC with the Flashlight mod in it BTW.


EDIT: The flashlight is not the problem, as the map worked fine on a Custom Story.

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: 12-22-2011, 11:29 PM by RawkBandMan.)
12-22-2011, 11:04 PM
Find Reply
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
#7
RE: Map crash help

Still need welp here.

(60, 2) Unexpected end of file

PHP Code: (Select All)
void OnStart()
{
AddUseItemCallback("""key_tower_1""level_wood_1""UseKeyOnDoor"true);
wakeUp();
AddEntityCollideCallback("""Player""friends""completequest"true);
SetEntityPlayerInteractCallback("level_wood_1""Locked"true);
AddEntityCollideCallback("""Player""friends_1""micheal"true);
}


void wakeUp() 
{
    
StartPlayerLookAt("level_wood_1"11.0f11.0f"");
    
FadeOut(0);     // Instantly fades the screen out. (Good for starting the game)
    
FadeIn(5);      // Amount of seconds the fade in takes
    
FadeImageTrailTo(22);
    
FadeSepiaColorTo(1004);
    
SetPlayerActive(false);    
    
FadePlayerRollTo(50220220);                 // "Tilts" the players head
    
FadeRadialBlurTo(0.152);
    
SetPlayerCrouching(true);              // Simulates being on the ground
    
AddTimer("trig1"16.0f"beginStory");            // Change '11.0f' to however long you want the 'unconciousness' to last
}

void beginStory(string &in asTimer)
{
    
ChangePlayerStateToNormal();
    
SetPlayerActive(true);
    
FadePlayerRollTo(03333);        // Change all settings to defaults
    
FadeRadialBlurTo(0.01);
    
FadeSepiaColorTo(04);
    
SetPlayerCrouching(false);
    
FadeImageTrailTo(0,1);
    
StopPlayerLookAt();
    
AddQuest("friendsquest""FriendsQuest");
}

void UseKeyOnDoor(string &in asItemstring &in asEntity)
{
SetLevelDoorLocked(level_wood_1", false, true);
PlaySoundAtEntity("", "
unlock_door", "level_wood_1", 0, false);
RemoveItem("
key_tower_1");
CompleteQuest("
lockedlvl");
}

void completequest(string &in asEntity)
{
CompleteQuest("
friendsquest");
SetMessage("
Messages", "A", 7.0f);
}

void Locked(string &in asEntity)
{
AddQuest("
lockedlvl", "LockedLvl");
}

void micheal(string &in asEntity)
{
SetMessage("
Messages", "B", 7.0f);


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: 12-23-2011, 05:07 PM by RawkBandMan.)
12-23-2011, 05:06 PM
Find Reply
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#8
RE: Map crash help

(12-23-2011, 05:06 PM)XxRoCkBaNdMaNxX Wrote: Still need welp here.

(60, 2) Unexpected end of file

Same issue as i've mentioned in my previous post.

Tutorials: From Noob to Pro
12-23-2011, 10:30 PM
Website Find Reply
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
#9
RE: Map crash help

Apparently I fixed it because I got a new error message

[Image: errorue.png]

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: 12-26-2011, 07:53 PM by RawkBandMan.)
12-26-2011, 07:52 PM
Find Reply
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#10
RE: Map crash help

Those errors just mean those functions don't exist. Go over each function and make sure they follow the same signatures shown here: http://wiki.frictionalgames.com/hpl2/amn..._functions

Tutorials: From Noob to Pro
12-26-2011, 08:03 PM
Website Find Reply




Users browsing this thread: 1 Guest(s)