Frictional Games Forum (read-only)
Custom error? music won't work - 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: Custom error? music won't work (/thread-24240.html)



Custom error? music won't work - Radical Batz - 12-28-2013

I'm trying to make a soundtrack in my custom story and whenever I load it, it gets me this error message "FATAL ERROR:Could not load script ile
'custom_stories/Name/maps/Name.hps'!
main(3,7):ERRBig Grinata type can't be 'void'
main (3,16):ERR:Only objects have constructors

and here is my hps file:



void OnStart()
{
void PlayMusic("06_amb.ogg", true, 0.3, 4, 1, false);
}

void OnEnter()
{

}

void OnLeave()
{

}

Do you see anything wrong because I don't


RE: Custom error? music won't work - DnALANGE - 12-28-2013

ONLY : PlayMusic("music_cellar_post_pigsmash1.ogg", true, 0.3, 3, 0, true);
You don't need a void there.


RE: Custom error? music won't work - Radical Batz - 12-28-2013

(12-28-2013, 05:45 PM)DnALANGE Wrote: ONLY : PlayMusic("music_cellar_post_pigsmash1.ogg", true, 0.3, 3, 0, true);
You don't need a void there.
thank you, now it works