RockBand's TC Help Thread :P - RawkBandMan - 12-12-2011
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: 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); }
RE: Map crash help - Statyk - 12-12-2011
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
}
RE: Map crash help - nemesis567 - 12-12-2011
PHP Code: 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.
RE: Map crash help - RawkBandMan - 12-21-2011
@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: 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.
RE: Map crash help - Your Computer - 12-21-2011
UseKeyOnDoor > SetLevelDoorLocked: loose string.
BTW, the code you're writing is AngelScript code, so in a way you are using AngelScript.
RE: Map crash help - RawkBandMan - 12-22-2011
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.
RE: Map crash help - RawkBandMan - 12-23-2011
Still need welp here.
(60, 2) Unexpected end of file
PHP Code: 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); }
RE: Map crash help - Your Computer - 12-23-2011
(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.
RE: Map crash help - RawkBandMan - 12-26-2011
Apparently I fixed it because I got a new error message
RE: Map crash help - Your Computer - 12-26-2011
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/amnesia/script_functions
|