TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    Adding music to games

    Scheduled Pinned Locked Moved Feature Requests & Ideas
    24 Posts 6 Posters 5.3k Views 6 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      JoeyP @LaFayette
      last edited by

      @LaFayette That makes sense, plus I'm sure keeping files as small as possible is a priority as well. I appreciate the thought and maybe someday it would be implemented. I'll poke around in the mean time and see if i can come up with a plausible solution. Thanks again and stay healthy!

      1 Reply Last reply Reply Quote 0
      • FrostionF Offline
        Frostion Admin
        last edited by

        I have also always missed music in TripleA. In my maps I often make use of the "required your turn series" sound and use this to make the engine play player/nation specific or just generic map themed music. Good example is Iron War map. Star Trek has small short generic music played by every player turn.

        It does works but comes with a few issues, like the potential of music being played on top of each other if the player has turns many times/many nations in a row fairly quickly.

        For this reason I have the sound files be short, like 10-60 seconds sometimes.

        Also this approach requires me to make "fake steps" in the XML so that a player controlling several nations with a turn sequence that has the nations set up in a row, still get a "required your turn series" sound played when the new nation has its turn, so that music is played for every nation, not just the first in the row.

        If TripleA is to expand on the music side, I would love to se a "music player" feature. Many strategy games/games with slow pace has this. Like a small player that can be quickly opened via the on screen controls / UI, and that just looks to find a certain dir on the PC to read and play mp3 from, with scroll, repeat, sound level etc. options.

        Maybe if TripleA was to have this, it would allow for for sellecting an alternative custom dir, maybe have a standard "music" dir in the sub-dir of the TripleA install dir and maybe allow maps to have a "music" dir that was automatically chosen if files where present?

        (If an in-game player was to be implemented, then I would think that it was obvious to reawake the "minimap shortcut icons" feature idea, and have a small music icon that opened up a music player. ☺ )

        Map maker of: Star Wars: Galactic War + Star Wars: Tatooine War + Caribbean Trade War + Dragon War + Age of Tribes + Star Trek: Dilithium War + Iron War + Iron War: Europe + Warcraft: War Heroes

        C J 2 Replies Last reply Reply Quote 1
        • C Offline
          Cernel Moderators @Frostion
          last edited by Cernel

          @Frostion said in Adding music to games:

          Also this approach requires me to make "fake steps" in the XML so that a player controlling several nations with a turn sequence that has the nations set up in a row, still get a "required your turn series" sound played when the new nation has its turn, so that music is played for every nation, not just the first in the row.

          Yeah, that's really sad. Off topic, but I would fix that so that the "required your turn series" plays each time a new game power starts a phase (except if you are loading the game, of course), instead of only when it is also played by a different player than the previous one. The counter argument, however, that the current behaviour is based upon, is that you need to have that sound only when you need to do your turn after having been inactive, therefore it doesn't play if you were already the active player (the original intent of that sound, as Veqryn said in the past, was as an automatically given "slap", to inform a previously inactive player that it is now its turn to play the game).

          1 Reply Last reply Reply Quote 1
          • J Offline
            JoeyP @Frostion
            last edited by

            @Frostion I just tried the Iron War map, and that's almost exactly what I was asking for (the only difference would be to play the music on a loop). Since I'm new to this, does the map/game making tutorial do a good job to explain how to implement sound and music as you did, or should I look for supplementary information? Is that something you can provide? The graphics are great btw, good job! I appreciate the dialogue.

            C FrostionF 2 Replies Last reply Reply Quote -1
            • C Offline
              Cernel Moderators @JoeyP
              last edited by

              @JoeyP Long story short, that is just a "start turn" sound that plays for a long time, thus gives the feeling of a background sound, but it would still not work in case your turn comes after another turn of yours (like if you are both Americans and Russians), since TripleA doesn't actually have "start turn" sounds, but just sounds that play when it is your turn, after someone else turn (you could assign a sound to the first phase, as long as it is never skipped alone, but that would require removing the start game sound, to avoid them playing over each other).

              The first question would be how long your sounds actually play, without looping, and how long you would want them actually playing (remember that, if you end the turn too fast, the sounds will mix in a cacophony). Once these are answered, I assume @Frostion could teach you how to obtain a final result similar to Iron War.

              J 1 Reply Last reply Reply Quote 0
              • J Offline
                JoeyP @Cernel
                last edited by JoeyP

                @Cernel Yea, I played through an entire round, some slower than others, and there is definitely music overlap when moving quickly. It works well when enough for the initial effect as @Frostion noted. It's a very nice touch/feature and certainly breathes life into the game giving it some nice immersive properties. Kind of turns the game from a virtual board game to an interactive experience. Now if Battle sound effects can loop during each battle turn/round that would increase immersion as well.

                1 Reply Last reply Reply Quote -1
                • FrostionF Offline
                  Frostion Admin @JoeyP
                  last edited by

                  @JoeyP I have no knowledge of any sound tutorial / documentation that can explain and guide the mapmaker to utilize all the (limited) possibilities the engine supports. I can only advise you to study other maps extensively and in detail. Study the XML when it comes to how to make use of notification sounds and study the notification and sound .properties files in regards to just what sounds can be played, how and what to name them.

                  One thing to learn is what code to write in the files to make use of sounds, but another thing is ofcours also to be able to construct/edit the actual sound files, so that they sound good and fit the theme/game. YouTube and Google is your friend. Also, get a usable sound file/mp3 editor.

                  Iron War is a good map to study and "reverse engineer", but I am sure that there are other maps that are worth studying also. You could download as many maps as you can, then go to map directory and sort the map zip files by size. As MP3 files tend to increase the map zips in size, most of the larger map zips could be maps that use custom sounds.

                  Map making is complex work with a lot of manual editing, trial and error and very few short cuts (besides the collection of map making tools you find in the engine). So I hope you are up for a looong endeavour ☺

                  Map maker of: Star Wars: Galactic War + Star Wars: Tatooine War + Caribbean Trade War + Dragon War + Age of Tribes + Star Trek: Dilithium War + Iron War + Iron War: Europe + Warcraft: War Heroes

                  J 1 Reply Last reply Reply Quote 1
                  • J Offline
                    JoeyP @Frostion
                    last edited by

                    @Frostion Thanks for the info and pep talk! Keep up the great work, it's really amazing what you all have accomplished on your own time, it's good to see passionate people doing what they love. Stay Healthy and Safe

                    Captain CrunchC 1 Reply Last reply Reply Quote 0
                    • Captain CrunchC Offline
                      Captain Crunch Banned @JoeyP
                      last edited by

                      @JoeyP so you are just adding sounds to a mod you play or are you making a mod that we can play and try some day?

                      C J 2 Replies Last reply Reply Quote 0
                      • C Offline
                        Cernel Moderators @Captain Crunch
                        last edited by Cernel

                        @Captain-Crunch Well, if he intends to use copyrighted sounds, it may only be for personal use (at most).

                        1 Reply Last reply Reply Quote -1
                        • J Offline
                          JoeyP @Captain Crunch
                          last edited by

                          @Captain-Crunch The endgame would be to achieve the latter; however, for the time being, it would be the former to play with friends and family.

                          Captain CrunchC 1 Reply Last reply Reply Quote -1
                          • Captain CrunchC Offline
                            Captain Crunch Banned @JoeyP
                            last edited by Captain Crunch

                            @JoeyP no wai. I'm so surprised (not) since half these threads are someone trying to think of random obscure questions and then the mod or idea they are wanting to do is never seen again ... read my sig 😉

                            Angry admin abuse me?

                            J ubernautU C 3 Replies Last reply Reply Quote 0
                            • J Offline
                              JoeyP @Captain Crunch
                              last edited by

                              @Captain-Crunch Cool dude!

                              1 Reply Last reply Reply Quote -1
                              • ubernautU Offline
                                ubernaut Moderators @Captain Crunch
                                last edited by

                                @Captain-Crunch i don't get it. Seems like you are steering every conversation into this rediculous conspiracy theory of yours lately. When challenged you never back it up. Put up or shut up lol.

                                "You should never have told me horses sleep standing up, it gave me a mental block." - Mister Ed

                                1 Reply Last reply Reply Quote 1
                                • C Offline
                                  Cernel Moderators @Captain Crunch
                                  last edited by Cernel

                                  @Captain-Crunch said in Adding music to games:

                                  @JoeyP no wai. I'm so surprised (not) since half these threads are someone trying to think of random obscure questions and then the mod or idea they are wanting to do is never seen again ... read my sig 😉

                                  It has always been this way. Only a small minority of TripleA projects come to a conclusion, let alone fruition (and most are not really finished or polished). In turn, only a small minority of those that do become any popular.

                                  1 Reply Last reply Reply Quote 1

                                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                  With your input, this post could be even better 💗

                                  Register Login
                                  • 1
                                  • 2
                                  • 2 / 2
                                  • First post
                                    Last post
                                  Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums