Need Help with credits. - 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: Need Help with credits. (/thread-10821.html) |
Need Help with credits. - A Tricky Carnie - 10-17-2011 Ok, so I set my credits to its own map and have it so the player will spawn on an area and it will start the credits, anyway here is my script for it: Spoiler below!
also, the error message I'm receiving when the game crashes is this: Spoiler below!
If you need anymore information, just tell me, and thanks for any help in advance. RE: Need Help with credits. - schmupper - 10-17-2011 Code: void StartCredits(string& asMusic, bool abLoopMusic, string& asTextCat, string& asTextEntry, int alEndNum) should be: Code: void StartCredits(string &in asParent, string &in asChild, int alState) RE: Need Help with credits. - A Tricky Carnie - 10-18-2011 (10-17-2011, 09:46 PM)schmupper Wrote:That seemed to work for the first error, but I'm still getting the second error in (9,2). RE: Need Help with credits. - Your Computer - 10-18-2011 (10-18-2011, 08:46 PM)A Tricky Carnie Wrote: That seemed to work for the first error, but I'm still getting the second error in (9,2). For the HPL2 StartCredits function, you're supposed to provide an integer for the last parameter, not a string. RE: Need Help with credits. - A Tricky Carnie - 10-18-2011 (10-18-2011, 09:04 PM)Your Computer Wrote:so I should change the last @&string to a @&int?(10-18-2011, 08:46 PM)A Tricky Carnie Wrote: That seemed to work for the first error, but I'm still getting the second error in (9,2). RE: Need Help with credits. - Your Computer - 10-18-2011 (10-18-2011, 09:08 PM)A Tricky Carnie Wrote: so I should change the last @&string to a @&int? Simply remove the quotation marks around the number 1 from: Code: StartCredits("05_paper_transformation.ogg", true, "Ending", "MainCredits", "1"); RE: Need Help with credits. - A Tricky Carnie - 10-18-2011 (10-18-2011, 09:16 PM)Your Computer Wrote:Oh, thanks, didn't realize those didnt belong there.(10-18-2011, 09:08 PM)A Tricky Carnie Wrote: so I should change the last @&string to a @&int? RE: Need Help with credits. - i3670 - 10-19-2011 Hi I'm trying this script atm. but it gives me an error message: main(198,1) : ERR : Unexpected token '{' void OnStart() { AddEntityCollideCallback("Player", "Ending_Area_1", "StartCredits", true, 1); } "197" void StartCredits(string &in asParent, string &in asChild, int alState); "198" { "199" StartCredits("05_paper_transformation.ogg", true, "Ending", "MainCredits", 1); "200" } Help plox so close to wrapping my custom story up. |