Frictional Games Forum (read-only)
[SCRIPT] Another 1 New error and I just don't know where it is! - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [SCRIPT] Another 1 New error and I just don't know where it is! (/thread-24296.html)

Pages: 1 2


Another 1 New error and I just don't know where it is! - Radical Batz - 01-05-2014

I keep getting this error whenever I load my custom story!

FATAL ERROR: Could not load script file 'custom_stories/Lifeless_The Abandon/maps/Lifeless_The Abandon.hps'!
main (17, 21) : ERR : Expected '('

my hps file

wakeUp();
}
void wakeUp() {
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.5, 2);
SetPlayerCrouching(true); // Simulates being on the ground
PlayMusic("18_amb.ogg", true, 1, 4, 1, true);
AddEntityCollideCallback("Player", "AreaCollide", "EventCollide", "true", 1);
EventCollide(string &in asParent, string &in asChild, int alState)
SetEntityActive("CellGuardGrunt", true);
AddEnemyPatrolNode("CellGuardGrunt", "Node_1", 0.001f, "");
AddEnemyPatrolNode("CellGuardGrunt", "Node_5", 0.001f, "");
AddEnemyPatrolNode("CellGuardGrunt", "Node_13",0.001f, "");
AddEnemyPatrolNode("CellGuardGrunt", "Node_18",0.001f, "");
AddEnemyPatrolNode("CellGuardGrunt", "Node_19",0.001f, "");
AddEnemyPatrolNode("CellGuardGrunt", "Node_20",0.001f, "");
AddEnemyPatrolNode("CellGuardGrunt", "Node_21",0.001f, "");
AddTimer("trig1", 4.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);
SetPlayerLampOil(35);
AddUseItemCallback("", "HollowNeedle", "CellDoor", "UseHollowNeedleOnDoor", true);
}
void UseHollowNeedleOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("CellDoor", false, true);
PlaySoundAtEntity("", "unlock_door.ogg", asEntity, 0, false);
RemoveItem(asItem);
}


RE: Help with coding! - ClayPigeon - 01-05-2014

http://www.frictionalgames.com/forum/thread-4626.html


RE: Custom story script error! pls help! - Slanderous - 01-05-2014

Code:
void OnStart()
{
wakeUp();
}
void wakeUp() {
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", 10.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);
SetPlayerLampOil(10);
}

Try this


RE: Custom story script error! pls help! - Radical Batz - 01-05-2014

(01-05-2014, 07:52 PM)Lazzer Wrote:
Code:
void OnStart()
{
wakeUp();
}
void wakeUp() {
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", 10.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);
SetPlayerLampOil(10);
}

Try this

yes it worked, thank you so much! Big Grin


RE: Custom story script error! pls help! - Slanderous - 01-05-2014

(01-05-2014, 07:56 PM)Badcat5550 Wrote:
(01-05-2014, 07:52 PM)Lazzer Wrote:
Code:
void OnStart()
{
wakeUp();
}
void wakeUp() {
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", 10.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);
SetPlayerLampOil(10);
}

Try this

yes it worked, thank you so much! Big Grin

I'm glad I could help ^^


RE: 1 error and I can't find it! help! - Radical Batz - 01-05-2014

(01-05-2014, 08:19 PM)Lazzer Wrote:
(01-05-2014, 07:56 PM)Badcat5550 Wrote:
(01-05-2014, 07:52 PM)Lazzer Wrote:
Code:
void OnStart()
{
wakeUp();
}
void wakeUp() {
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", 10.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);
SetPlayerLampOil(10);
}

Try this

yes it worked, thank you so much! Big Grin

I'm glad I could help ^^
um can you help me with my new problem if you want!


RE: 1 error and I can't find it! help! - Slanderous - 01-05-2014

(01-05-2014, 10:33 PM)Badcat5550 Wrote:
(01-05-2014, 08:19 PM)Lazzer Wrote:
(01-05-2014, 07:56 PM)Badcat5550 Wrote:
(01-05-2014, 07:52 PM)Lazzer Wrote:
Code:
void OnStart()
{
wakeUp();
}
void wakeUp() {
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", 10.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);
SetPlayerLampOil(10);
}

Try this

yes it worked, thank you so much! Big Grin

I'm glad I could help ^^
um can you help me with my new problem if you want!

of course, gimme some info about it


RE: 1 error and I can't find it! help! - Radical Batz - 01-05-2014

(01-05-2014, 10:49 PM)Lazzer Wrote:
(01-05-2014, 10:33 PM)Badcat5550 Wrote:
(01-05-2014, 08:19 PM)Lazzer Wrote:
(01-05-2014, 07:56 PM)Badcat5550 Wrote:
(01-05-2014, 07:52 PM)Lazzer Wrote:
Code:
void OnStart()
{
wakeUp();
}
void wakeUp() {
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", 10.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);
SetPlayerLampOil(10);
}

Try this

yes it worked, thank you so much! Big Grin

I'm glad I could help ^^
um can you help me with my new problem if you want!

of course, gimme some info about it

it's in this topic, I changed it! so I have my new error!


RE: 1 error and I can't find it! help! - Slanderous - 01-05-2014

(01-05-2014, 10:57 PM)Badcat5550 Wrote:
(01-05-2014, 10:49 PM)Lazzer Wrote:
(01-05-2014, 10:33 PM)Badcat5550 Wrote:
(01-05-2014, 08:19 PM)Lazzer Wrote:
(01-05-2014, 07:56 PM)Badcat5550 Wrote: yes it worked, thank you so much! Big Grin

I'm glad I could help ^^
um can you help me with my new problem if you want!

of course, gimme some info about it

it's in this topic, I changed it! so I have my new error!

PHP Code:
void OnStart()

{
wakeUp();
}
void wakeUp() {
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.52);
SetPlayerCrouching(true); // Simulates being on the ground
GiveSanityDamage(2false);
AddTimer("trig1"4.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);
SetPlayerLampOil(35);
AddUseItemCallback("""HollowNeedle""CellDoor""UseHollowNeedleOnDoor"true);
}
void UseHollowNeedleOnDoor(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked("CellDoor"false0);
PlaySoundAtEntity("""unlock_door.ogg"asEntity0false);
RemoveItem(asItem);

Try this instead.


RE: 1 error and I can't find it! help! - Radical Batz - 01-05-2014

(01-05-2014, 10:59 PM)Lazzer Wrote:
(01-05-2014, 10:57 PM)Badcat5550 Wrote:
(01-05-2014, 10:49 PM)Lazzer Wrote:
(01-05-2014, 10:33 PM)Badcat5550 Wrote:
(01-05-2014, 08:19 PM)Lazzer Wrote: I'm glad I could help ^^
um can you help me with my new problem if you want!

of course, gimme some info about it

it's in this topic, I changed it! so I have my new error!

PHP Code:
void OnStart()

{
wakeUp();
}
void wakeUp() {
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.52);
SetPlayerCrouching(true); // Simulates being on the ground
GiveSanityDamage(2false);
AddTimer("trig1"4.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);
SetPlayerLampOil(35);
AddUseItemCallback("""HollowNeedle""CellDoor""UseHollowNeedleOnDoor"true);
}
void UseHollowNeedleOnDoor(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked("CellDoor"false0);
PlaySoundAtEntity("""unlock_door.ogg"asEntity0false);
RemoveItem(asItem);

Try this instead.

nope did not work, but it got me this error instead!

FATAL ERROR: Could not load script file 'custom_stories/Lifeless_The Abandon/maps/Lifeless_The Abandon.hps'!
main (32, 1) : ERR : No matching signatures to 'SetSwingDoorLocked(string@&, const bool, const uint)'