Announcement

Collapse
No announcement yet.

Custom Command and multiple AI's

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Custom Command and multiple AI's

    Hello all,
    I have made a custom set of commands to control the playing of music while in VR and ED, at the moment I have responses from ASTRA by specifically selecting sound responses from her folders, now I am slowly building up the voice packs I have installed it would be nice for the responses to be spoken by the relevant AI I have set up, sometimes I just have ASTRA on all stations but sometimes I use others on their own and sometimes multi crew.

    I use VLC for playing the music or firing up a radio station, I have also deleted the 'Extra Content - Music' command from ASTRA's Singularity profile and moved it into my custom profile which is loaded up on VA start up, this way, if I have to reinstall any voice packs I just delete this command from the new installation and it uses the customised one from my own sub-profile.

    So how do I go about building my commands so the correct voice responds when I ask for something to be played ??

    Any help would be gratefully appreciated

    Paul
    Last edited by Scambo; 07-29-2018, 02:30 PM.

  • #2
    via the [~~Role] variable.

    number1, operations, helm, tactical, science, engineering are the variables that you can refer to.
    1) I reject your reality.... and substitute my own
    2) Not to be used when upset... will void warranty
    3) Stoke me a clipper i will be back for dinner
    4) Never tell Gangrel to do anything... he will probably get it wrong
    WARNING! Swedish wall-of-text hits you for bork-bork-bork damage!

    Comment


    • #3
      Ok Gangrel,

      Just looked in the default 'Extra Content - Music' command, it sets the '~~Role' variable to 'operations' which is fine, whoever responds will be whoever is assigned to Operations then.

      I also notice that when, for example, I say 'Raise Volume' it executes the command - ((RS - Raise Volume)). I assume that within this ((RS - Raise Volume)) command, the appropriate voice will be executed for whoever is assigned to operations.

      So I have a custom command where I say 'Shall we listen to some music ?', currently I have the following:

      Sound - 'As you wish' (multiple random sounds can play here)
      pause
      Sound - 'Connecting audio stream'
      pause
      Sound - (one of the sounds in the folder 'typing' plays here)
      pause
      Sound - 'Ready'

      All the above are hand picked MP3's from Astra's folders, obviously I need to create one of these ((RS - My Custom Command)) type commands which will be run instead of my sound files shown above. Inside, it will first need to identify which AI is assigned as operations, then based on that result execute a set of MP3's via conditional blocks based on who is set to operations ? ? ? ? ?

      Am I running up the right path here ?

      Cant seem to find any ((** - *******)) type commands to have a look into so how do I identify who is set to operations and then get it to execute specific 'sounds' from the AI's individual folders.

      Thanks so much for your help Gangrel

      Paul

      Comment


      • #4
        Yes, you are running the correct path.

        the RS-XXXX style of command is only used when each sound file is the same name in each voice pack. They also refer to the folder structure of the "profiles sound" directory, so you would have to ensure that each voicepack you have *has* the folder present. Even if empty, the folder would need to be there, otherwise VA goes "Nope, cannot even find it to find that nothing is able to be played"

        Otherwise you might as well do a more basic "If RoleText = X/Y/Z" then play "A/B/C"
        1) I reject your reality.... and substitute my own
        2) Not to be used when upset... will void warranty
        3) Stoke me a clipper i will be back for dinner
        4) Never tell Gangrel to do anything... he will probably get it wrong
        WARNING! Swedish wall-of-text hits you for bork-bork-bork damage!

        Comment


        • #5
          I am also trying to link custom commands to specific roles within singularity as above. Could you post a blank example of checking for various roles as it would be setup within a new command?

          Comment


          • #6
            Well it isn't really "checking for roles" its more "Which role to assign for the response"

            At which point the above "Set variable [~~Role] to <name of role>" is all that you need to do

            Valid responses are number1, operations, helm, tactical, science, engineering
            1) I reject your reality.... and substitute my own
            2) Not to be used when upset... will void warranty
            3) Stoke me a clipper i will be back for dinner
            4) Never tell Gangrel to do anything... he will probably get it wrong
            WARNING! Swedish wall-of-text hits you for bork-bork-bork damage!

            Comment


            • #7
              I understand what your saying but I think I am missing something for testing purposes I want to call the acknowledgements command with its attached sound files based on who is currently assigned to the operations role. I thought the way I had it set in the image provided would call the acknowledgement command from within singularity but no sound is playing I do see the green dot and referenced note which tells me the command is atleast activating correct however no sound plays.

              Comment


              • #8
                Its only a single [ ] and not [[ ]] as you have (so you need to remove the [ ] around the variable
                1) I reject your reality.... and substitute my own
                2) Not to be used when upset... will void warranty
                3) Stoke me a clipper i will be back for dinner
                4) Never tell Gangrel to do anything... he will probably get it wrong
                WARNING! Swedish wall-of-text hits you for bork-bork-bork damage!

                Comment


                • #9
                  Ok I have corrected the variable to only show the single brackets, I still hear no audible cue when running the command even though it does recognize it doesnt call any files from the [[RS-Acknowledgements]] sound folder. I even set astra as operations to be positive a sound file was present.

                  Comment


                  • #10
                    Its ((RS-Acknowledgements)) and not the {{curly brackets you have}}
                    1) I reject your reality.... and substitute my own
                    2) Not to be used when upset... will void warranty
                    3) Stoke me a clipper i will be back for dinner
                    4) Never tell Gangrel to do anything... he will probably get it wrong
                    WARNING! Swedish wall-of-text hits you for bork-bork-bork damage!

                    Comment


                    • #11
                      I changed everything and still nothing, am I referenceing the wrong command? The overall goal is to add a command such as open chrome using basic opening commoands for the .exe and have whoever is in operations answer with an acknowledgement or an affirmative remark. I added a picture of the command I referenced in the testing command and the testing command window.

                      Comment


                      • #12
                        You forgot the spaces around the - .

                        Now, admittedly that was my typing mistake...
                        1) I reject your reality.... and substitute my own
                        2) Not to be used when upset... will void warranty
                        3) Stoke me a clipper i will be back for dinner
                        4) Never tell Gangrel to do anything... he will probably get it wrong
                        WARNING! Swedish wall-of-text hits you for bork-bork-bork damage!

                        Comment


                        • #13
                          Lol history will remember mistakes were made XD, sadly though still no audio, does the voice disabled in the previous picture have anything to do with that or should the command within singularity still produce the same audio?

                          Edit: If possible could you recreate a new command to execute the acknowledgement sounds and I can look at that as an example of the correct setup
                          Last edited by Bigmurfthelegnd; 02-07-2019, 09:57 PM.

                          Comment


                          • #14
                            I am currently rebuilding/reinstalling eveyrthing on my desktop after my laptop decided to go and decide to never power on again, so it could be a while (as I have profiles that I have to rebuild myself as well)
                            1) I reject your reality.... and substitute my own
                            2) Not to be used when upset... will void warranty
                            3) Stoke me a clipper i will be back for dinner
                            4) Never tell Gangrel to do anything... he will probably get it wrong
                            WARNING! Swedish wall-of-text hits you for bork-bork-bork damage!

                            Comment


                            • #15
                              Certainly I understand the trouble of having to restart. You are being most helpful.

                              Comment

                              Working...
                              X