Frictional Games Forum (read-only)
Scripting Error: Unexpected End In Script Please Help! - 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: Scripting Error: Unexpected End In Script Please Help! (/thread-20426.html)

Pages: 1 2


RE: Scripting Error: Unexpected End In Script Please Help! - JohnandSerena - 02-21-2013

it was the brace! thanks for pointing that out but how can i get rid of the shake?


RE: Scripting Error: Unexpected End In Script Please Help! - Adrianis - 02-21-2013

What shake?


RE: Scripting Error: Unexpected End In Script Please Help! - JohnandSerena - 02-21-2013

(02-21-2013, 09:32 PM)Adrianis Wrote: What shake?

As the player wakes the screen shakes terribly.


RE: Scripting Error: Unexpected End In Script Please Help! - NaxEla - 02-22-2013

(02-21-2013, 09:42 PM)JohnandSerena Wrote:
(02-21-2013, 09:32 PM)Adrianis Wrote: What shake?

As the player wakes the screen shakes terribly.

The script that you posted in the OP doesn't have any StartScreenShake function, so the screen shouldn't be shaking at all. Is it your whole script? If it isn't, please post everything that's in your .hps file.


RE: Scripting Error: Unexpected End In Script Please Help! - JohnandSerena - 02-22-2013

(02-22-2013, 12:13 AM)NaxEla Wrote:
(02-21-2013, 09:42 PM)JohnandSerena Wrote:
(02-21-2013, 09:32 PM)Adrianis Wrote: What shake?

As the player wakes the screen shakes terribly.

The script that you posted in the OP doesn't have any StartScreenShake function, so the screen shouldn't be shaking at all. Is it your whole script? If it isn't, please post everything that's in your .hps file.

Thats odd? That is my whole script.


RE: Scripting Error: Unexpected End In Script Please Help! - PutraenusAlivius - 02-22-2013

To get rid of the shake, do one of these things; Remember, do it one at a time. NEVER do it at once.

Make the Player Area higher
Make sure in the wake up zone, NOTHING is colliding with the player.

I also got the shaking thing. I removed it when i realized that a plane was colliding with the player.


RE: Scripting Error: Unexpected End In Script Please Help! - NaxEla - 02-22-2013

What JustAnotherPlayer said is plausible, but if that doesn't fix the problem, try changing your values in FadePlayerRollTo(50, 220, 220) to lower values. I know that when using the function MovePlayerHeadPos, if you set the speed too high, the screen will shake when the camera gets to it's final point. I'm assuming that it works the same way for FadePlayerRollTo. Maybe try setting the values to 5 or 10, and don't worry if you think it will be too slow, because you have a 20 second fade in so it won't be that noticable.