![]() |
My problems - 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: My problems (/thread-18769.html) |
RE: My problems - The chaser - 10-14-2012 "Ambience_main.ogg.sfk"? NEVER seen that one. Try erasing the .sfk and correcting the script: void OnStart() { AddEntityCollideCallback("Player", "Play_Music_Script_Area", "PlayMusic1", true, 1); } void PlayMusic1(string &in asParent, string &in asChild, int alState) { PlayMusic("Ambience_main.ogg", true, 1, 1, 0, false); } RE: My problems - naseem142 - 10-14-2012 (10-14-2012, 09:57 AM)The chaser Wrote: "Ambience_main.ogg.sfk"? NEVER seen that one. Try erasing the .sfk and correcting the script:Still doesn't work v_v , What if the .ogg files is not readable in the first place? I turned it into .ogg file by renaming the file from .mp3 to .ogg ( i have show extensions option turned on ). RE: My problems - Your Computer - 10-14-2012 Changing the file name or extension does not make changes to the content of the file. Giving an MP3 file an OGG extension will only confuse the game and fail silently in the background. RE: My problems - naseem142 - 10-14-2012 (10-14-2012, 10:22 AM)Your Computer Wrote: Changing the file name or extension does not make changes to the content of the file. Giving an MP3 file an OGG extension will only confuse the game and fail silently in the background.So you mean that was my problem? If yes , how do i "transform" the file into .ogg without screwing up everyting? EDIT: I used an online MP3-to-ogg converter and it worked! RE: My problems - The chaser - 10-14-2012 You can use Audacity to make your own tracks. By that I mean making songs .ogg. RE: My problems - naseem142 - 10-14-2012 (10-14-2012, 01:13 PM)The chaser Wrote: You can use Audacity to make your own tracks. By that I mean making songs .ogg.I have audacity , i wanted to make a voice to speak with the messages poping-up , but my microphone is crappier than my voice ._. I'v got a new problem :S RE: My problems - Robby - 10-15-2012 Looking at problem #2, that's intentional. Game design. RE: My problems - naseem142 - 10-18-2012 How do i end the game when entering a level door? where the credits come and then back to main menu RE: My problems - The chaser - 10-18-2012 It's actually pretty easy, put this in void OnLeave(): StartCredits(string& asMusic, bool abLoopMusic, string& asTextCat, string& asTextEntry, int alEndNum); Starts the end credits screen. asMusic - the music to play (including .ogg) abLoopMusic - determines whether the music should loop asTextCat - the category to be used in the .lang file (must be “Ending”) asTextEntry - the entry in the .lang file (must be “MainCredits”) alEndNum - Amnesia has 3 different endings and displays a code at the bottom. Determines which code is displayed. 0-2 will display codes, any other integer will not. So, you can do that or this: void SetEntityPlayerInteractCallback(string& asName, string& asCallback, bool abRemoveOnInteraction); Calls a function when the player interacts with a certain entity. Callback syntax: void MyFunc(string &in asEntity) asName - internal name asCallback - function to call abRemoveOnInteraction - determines whether the callback should be removed when the player interacts with the entity So, it could be this: Code: ////Stuff Code: ///Stuff RE: My problems - naseem142 - 10-18-2012 I'm sure i need to put something in extra_english.lang for the credits text , but what is it? |