![]() |
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) |
My problems - naseem142 - 10-14-2012 From now on i will post all of my errors / helps / needs in here so i won't keep posting a thread every problem i get. And also i will post the solution , so other newbies like me ![]() Thank you. Problem 1 : ( Playing a song ) *SOLVED* Spoiler below!
Problem 2 : ( How to end the game when entering a level door ) *SOLVED* Spoiler below!
Problem 3 : ( Giving a custom item function ) *SOLVED* Spoiler below!
Problem 4 : ( Playing music not working ) *SOLVED* Spoiler below!
Problem 5 : ( How to add mementos ) *NOT SOLVED* Spoiler below!
Problem 6 : ( How to make entities disappear dramaticly ) *SOLVED* Spoiler below!
RE: My problems - Robby - 10-14-2012 PlayMusic("example.ogg", true, 1, 1, 0, false); That's how you play a song. Replace "example.ogg" with the music's name that you intend to use. Include the .ogg extension. RE: My problems - naseem142 - 10-14-2012 (10-14-2012, 08:34 AM)Nemet Robert Wrote: PlayMusic("example.ogg", true, 1, 1, 0, false);Thanks , also is the music file is placed in a separate folder called "Music"? RE: My problems - Robby - 10-14-2012 Well, that's what I do with custom music. But you can play normal music from the game itself, without having to place it in a custom "Music" folder. Just be sure the name is correct. RE: My problems - naseem142 - 10-14-2012 (10-14-2012, 08:43 AM)Nemet Robert Wrote: Well, that's what I do with custom music. But you can play normal music from the game itself, without having to place it in a custom "Music" folder. Just be sure the name is correct.I did what you told me , and i did it like this: void OnStart() { AddEntityCollideCallback("Player", "Play_Music_Script_Area", "PlayMusic1", true, 1); } void PlayMusic1(string &in asParent, string &in asChild, int alState) { PlayMusic("Ambience.ogg", true, 1, 1, 0, false); } But it didn't play when i touched the script area ![]() RE: My problems - Robby - 10-14-2012 Is the music name correct? Are the script names within the editor correct? Also, have you tried restarting Amnesia? If I add custom music to my CS, I have to restart Amnesia, because it wouldn't play. And the script's ok, as I see. RE: My problems - The chaser - 10-14-2012 Also, be sure the name is exactly the same. And maybe is ambience.ogg instead of Ambience.ogg? RE: My problems - Robby - 10-14-2012 I keep forgetting. Yes, the names are case-sensitive. RE: My problems - The chaser - 10-14-2012 If your music is custom, it should be ok, but Ambience doesn't exist. Put the name (ex: "ambience_cave") RE: My problems - naseem142 - 10-14-2012 When i clicked the "Music" Folder there was a new file called "Ambience_main.ogg.sfk" does that mean it worked? |