RawkBandMan
Posting Freak
Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation:
5
|
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
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.0f, 11.0f, ""); FadeOut(0); // Instantly fades the screen out. (Good for starting the game) FadeIn(10); // 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 }
void beginStory(string &in asTimer){ ChangePlayerStateToNormal(); SetPlayerActive(true); FadePlayerRollTo(0, 33, 33); // Change all settings to defaults FadeRadialBlurTo(0.0, 1); FadeSepiaColorTo(0, 4); SetPlayerCrouching(false); FadeImageTrailTo(0,1); StopPlayerLookAt(); AddQuest("friendsquest", "FriendsQuest"); }
void UseKeyOnDoor(string &in asItem, string &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 |
|
Statyk
Schrödinger's Mod
Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation:
241
|
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 |
|
nemesis567
Posting Freak
Posts: 874
Threads: 65
Joined: May 2011
Reputation:
10
|
RE: Map crash help
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 }
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 |
|
RawkBandMan
Posting Freak
Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation:
5
|
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....
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.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 }
void beginStory(string &in asTimer){ ChangePlayerStateToNormal(); SetPlayerActive(true); FadePlayerRollTo(0, 33, 33); // Change all settings to defaults FadeRadialBlurTo(0.0, 1); FadeSepiaColorTo(0, 4); SetPlayerCrouching(false); FadeImageTrailTo(0,1); StopPlayerLookAt(); AddQuest("friendsquest", "FriendsQuest"); }
void UseKeyOnDoor(string &in asItem, string &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 |
|
Your Computer
SCAN ME!
Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation:
235
|
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.
|
|
12-21-2011, 01:09 AM |
|
RawkBandMan
Posting Freak
Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation:
5
|
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 |
|
RawkBandMan
Posting Freak
Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation:
5
|
RE: Map crash help
Still need welp here.
(60, 2) Unexpected end of file
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.0f, 11.0f, ""); FadeOut(0); // Instantly fades the screen out. (Good for starting the game) 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 }
void beginStory(string &in asTimer) { ChangePlayerStateToNormal(); SetPlayerActive(true); FadePlayerRollTo(0, 33, 33); // Change all settings to defaults FadeRadialBlurTo(0.0, 1); FadeSepiaColorTo(0, 4); SetPlayerCrouching(false); FadeImageTrailTo(0,1); StopPlayerLookAt(); AddQuest("friendsquest", "FriendsQuest"); }
void UseKeyOnDoor(string &in asItem, string &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 |
|
Your Computer
SCAN ME!
Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation:
235
|
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.
|
|
12-23-2011, 10:30 PM |
|
RawkBandMan
Posting Freak
Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation:
5
|
RE: Map crash help
Apparently I fixed it because I got a new error message
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 |
|
Your Computer
SCAN ME!
Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation:
235
|
|
12-26-2011, 08:03 PM |
|
|