Release EDDI Scripts and EDDI enabled VA Commands Thread

Aha Thx Tkael.ihave not noticed that (< 4)upps.I know EDDI function.i made some changes for my localization so i know Occasionally function.(im using it as well quiet a lot)i was just a bit well clumsy and not read thru the scrip properly.
One question about blueprints.does it show in the API or net log what kind of Modification i do when im engineering?also when i testing blueprint report all ive got back is "no information avaiable" (sry for typos English not my mother tounge) is that ok? or how ive got report back what bluepront im able to do??
 
Tkael.i used your Atmosphere script but for some strange reason im not getting temp.and atmo data from gas gaints.Any idea what goes wrong?
 
Aha Thx Tkael.ihave not noticed that (< 4)upps.I know EDDI function.i made some changes for my localization so i know Occasionally function.(im using it as well quiet a lot)i was just a bit well clumsy and not read thru the scrip properly.
One question about blueprints.does it show in the API or net log what kind of Modification i do when im engineering?also when i testing blueprint report all ive got back is "no information avaiable" (sry for typos English not my mother tounge) is that ok? or how ive got report back what bluepront im able to do??
If you're using the latest beta, blueprints data isn't fully caught up with the changes we've made and won't parse correctly yet.
 
Yep just upgraded now but even worst happened.Mass and radius comparing is falling too...im not sure is it API side or some changes cuz it was working till updated.any clue?
 
Yep just upgraded now but even worst happened.Mass and radius comparing is falling too...im not sure is it API side or some changes cuz it was working till updated.any clue?
I just confirmed that both {event.earthmass} and {event.radius} still have values during `Body scanned` using the `Test script` button. It sounds like a problem with the script or with incomplete data? Do you observe the same problem when you use the `Test script` button with your script?
 
Voice Attack Integration Not Triggering

To use Darkcycle's idea in VA you can add this to the Docking Granted script (instead of Darkcycle's lines):
Code:
{SetState("power", StationDetails(event.station, system.name).allegiance)}

and in VA add this to the ((EDDI docking granted)) command:
Code:
Begin Text Compare : [EDDI state power] Equals 'Empire'
    Play sound, '\\DISKSTATION\music\Itunes\Music\Bob Dylan\Highway 61 Revisited\01 Like a Rolling Stone.mp3'
Else If Text Compare : [EDDI state power] Equals 'Federation'
    Play sound, '\\DISKSTATION\music\Itunes\Music\Bob Dylan\Highway 61 Revisited\05 Ballad of a Thin Man.mp3'
End Condition

Using your own music instead of Dylan of course :)

Hello,
I'm having a n00b moment and hoping someone with more experience can help me out on this. I've updated the "Docking granted" script in EDDI (checked the "enabled" box) to match exactly the EDDI script that @JRohrer used in Post #115 (from page 8 of https://forums.frontier.co.uk/showt...mands-Thread?p=5140734&viewfull=1#post5140734) so that EDDI reads out landing pad directions, and per the above post (#218, from page 15 of https://forums.frontier.co.uk/showt...mands-Thread?p=5570583&viewfull=1#post5570583 ) I also added the line:
Code:
{SetState("power", StationDetails(event.station, system.name).allegiance)}

EDDI reads that script fine.

But I also wanted to implement the part directly above (from post #218) RE: playing specific sound files in the background based on the type of station being docked at, but I wanted that part to be handled by Voice Attack (since it allows for setting the volume level of the audio file that plays and would (theoretically) let the sound play in the background while EDDI's Docking granted script reads out the pad info).

However, I'm stuck on the Voice Attack part. I have the Voice Attack command (in a custom VA profile) labeled as "((EDDI docking granted))" configured exactly as quoted above (literally, that's all that's in the command):
Code:
Begin Text Compare : [EDDI state power] Equals 'Empire'
    Play sound, '\\DISKSTATION\music\Itunes\Music\Bob Dylan\Highway 61 Revisited\01 Like a Rolling Stone.mp3'
Else If Text Compare : [EDDI state power] Equals 'Federation'
    Play sound, '\\DISKSTATION\music\Itunes\Music\Bob Dylan\Highway 61 Revisited\05 Ballad of a Thin Man.mp3'
End Condition
but the music files never play in-game. It's like Voice Attack isn't recognizing the docking granted event. I've verified the sound files are the right format (.wav) and they preview fine, but they never play after I've requested docking. What am I doing wrong? Are there other commands I'm supposed to include in Voice Attack in order for the EDDI integration to work?

I also have HCS Voice Packs / ASTRA with EDDI 3.0.0 running as a VA plugin. When I say "Request Docking", HCS / ASTRA makes the request, docking is granted, after a short pause EDDI starts reading the landing pad directions. But the sound files never play. Can someone please help?

(I'd post screenshots, but I'm writing this on my other computer at the moment.)
 
...I have the Voice Attack command (in a custom VA profile) labeled as "((EDDI docking granted))" ...

...I also have HCS Voice Packs / ASTRA with EDDI 3.0.0 running as a VA plugin. When I say "Request Docking", HCS / ASTRA makes the request, docking is granted, after a short pause EDDI starts reading the landing pad directions. But the sound files never play...

Hi,

Is the Astra profile the active profile ? If so have you tried adding the ((EDDI docking granted)) command in the Astra profile ?
 
but the music files never play in-game. It's like Voice Attack isn't recognizing the docking granted event. I've verified the sound files are the right format (.wav) and they preview fine, but they never play after I've requested docking. What am I doing wrong?


While I've never used audio files, you say that they are in the right format of .WAV, but the code is looking for .MP3. Could it be that simple? Or am I missing something here?
 
While I've never used audio files, you say that they are in the right format of .WAV, but the code is looking for .MP3. Could it be that simple? Or am I missing something here?

The .mp3 files were only in the example of the command I gave some time ago. I think Cmdr Galyock picked his own .wav files when he made the command in VA.
 
Hi,

Is the Astra profile the active profile ? If so have you tried adding the ((EDDI docking granted)) command in the Astra profile ?
If you use the beta version of VoiceAttack, EDDI commands can be in a child profile. If you are not using the beta version of VoiceAttack, EDDI commands must be in your primary profile.
 
Thank you for responding & helping, @J. Calvert (Joshua), @Darkcyde, and @ Tkael -- much appreciated!
Hi,
Is the Astra profile the active profile ? If so have you tried adding the ((EDDI docking granted)) command in the Astra profile ?

HCS' "Elite: Singularity" is the active profile (it's one profile that drives all their voices), and per HCS VoicePacks' forums (http://forum.hcsvoicepacks.com/foru...-to/15481-custom-commands-and-how-to-add-them) I have EDDI and my custom commands included / linked via the Profile Options screen (and other commands seem to execute just fine with this setup):
Code:
14) On the "Profile Options tab", you will see the line "Include commands from another profile".
15) Click the triple dots at the end and this window pops up:
16) Click the plus symbol, and add the voice pack profile that you want to include commands from.
Then just click "OK" all the way back to the base Voice Attack window.
17) Now, to use the profile, you just need to set the Custom profile as the active profile, and you will find that all of your existing commands will still work, whilst also retaining your new commands/triggers.
While I've never used audio files, you say that they are in the right format of .WAV, but the code is looking for .MP3. Could it be that simple? Or am I missing something here?
The .mp3 files were only in the example of the command I gave some time ago. I think Cmdr Galyock picked his own .wav files when he made the command in VA.
When I was reviewing the EDDI Wiki page (or a forum about setting it up), I came across a reference that said audio files used for EDDI must be in .WAV format and I guess I just assumed Voice Attack could handle .WAV too. I have .MP3 versions so I guess maybe I should try those in Voice Attack?
If you use the beta version of VoiceAttack, EDDI commands can be in a child profile. If you are not using the beta version of VoiceAttack, EDDI commands must be in your primary profile.
I use the version of Voice Attack that's sold via Steam, version 1.7. I don't think I can install a beta version of VA that way but I'll look into it. Are you sure about this requirement though? Other EDDI commands and scripts seem to trigger while being in a "child" profile, including custom ones I created (for additional ways to tell EDDI to shut up for a bit). E.g., when I load the game it starts reading any new Galnet articles. When I dock at a station, it automatically reports on the best commodities in that market. If I get interdicted by a pirate, it says the warning about it. Etc.

But now that I type that, I remember that the "((EDDI Undocked))" Voice Attack command (to automatically retract landing gear) doesn't seem to trigger either. Basically everything seems to work as expected except for the bits where I want Voice Attack to drive some of the EDDI code -- anything that needs to be configured using: ((EDDI command))

Does the Voice Attack command I posted above at least look correct? Do I need to include lines for "Call an external plugin function" (or whatever that exact term is) and pass a script or variable in first? A screenshot of a properly configured Voice Attack-triggering-EDDI command would be a great help / reference. (I've looked for examples but all the ones I've seen haven't really answered that question.)

If you think the VA command looks correct as-is, I guess my next steps would be to test:
  • .MP3 audio format for Voice Attack audio files instead of .WAV
  • Moving custom EDDI commands from child profile to main profile
  • Looking into VA beta version via Steam

Any other suggestions I should consider / look into (so I can try a night of testing various options and then report back)?
 
If you think the VA command looks correct as-is, I guess my next steps would be to test:
  • .MP3 audio format for Voice Attack audio files instead of .WAV
  • Moving custom EDDI commands from child profile to main profile
  • Looking into VA beta version via Steam

Any other suggestions I should consider / look into (so I can try a night of testing various options and then report back)?

IIRC the "play" command in an EDDI script only can play .wav files but you want to play soundfiles from VA so that can be .mp3 files also. You said they previewed fine so that shouldn't be the problem.

I'm also using HCS' "Elite: Singularity". When that first came out a couple of months ago I tried using EDDI as a child profile too but that didn't work for me. I had the same problem with the events not triggering the commands in my (child) EDDI profile. So I now have all my EDDI commands in my main Singularity profile. But this was before VA 1.7. I might try again with the latest VA-beta (which I'm already using but I didn't know that the problem might have been solved so I didn't try the child Eddi solution again yet)

You might try just putting the ((EDDI docking granted)) command into the Singularity profile to see if that works.

I'm not using Steam so I don't know if the VA-betas are available through Steam.
 
Last edited:
My apologies if this has been asked before, but I can't find it here:

Does EDDI expose any variables that tell you which tab on a panel you are looking at? I see it can tell you which panel you are looking at, but I don't see anything to tell you if you are looking at Contacts for example.
I have a VA profile which I can ask to look at different panel tabs, but it easily gets out of sync (tracking the variables is a PITA).
If EDDI could do that for me, it would make like much easier.

TIA
 
Problem Solved!

Thank you to those who helped me troubleshoot. It's working now "as is"; credit to:
@Tkael:

If you use the beta version of VoiceAttack, EDDI commands can be in a child profile. If you are not using the beta version of VoiceAttack, EDDI commands must be in your primary profile.

and

@J. Calvert (Joshua):
{ snip } I'm also using HCS' "Elite: Singularity". When that first came out a couple of months ago I tried using EDDI as a child profile too but that didn't work for me. I had the same problem with the events not triggering the commands in my (child) EDDI profile. So I now have all my EDDI commands in my main Singularity profile. But this was before VA 1.7. I might try again with the latest VA-beta (which I'm already using but I didn't know that the problem might have been solved so I didn't try the child Eddi solution again yet)

You might try just putting the ((EDDI docking granted)) command into the Singularity profile to see if that works. {snip}

I moved the two commands in question to live directly in the "Elite: Singularity" profile (which has to be the primary for HCS' stuff to work), and everything is working now. VA even reports to the log "EDDI Plugin Command Executed" (or something like that) when in-game events trigger actions.

Until the Voice Attack 1.7.x beta is released as non-beta (or until I can figure out if you can get betas via Steam), and until it's confirmed it fixes the child profile issue discussed above, I'll just limit the EDDI triggers to those two -- fyi HCS also apparently is close to releasing a sizable update to their voice packs, plugin, and Singularity profile, so I don't want to have to re-customize everything twice in a short period of time.
 
I was having the same issue at times, so I recently refined my call in the 'Body report' script to read as follows:
Code: [View]
{_Atmosphere }
{if len(reportbody.atmosphere) > 0:
{F('Body atmosphere')}
}


I refined your solution as if u have Atmoshere report script it will skip the part when talking about gas giant so my code is
{If reportbody.landable:
{__DO NOTHING}
|else:
{F('Body atmosphere')}
}
 
Last edited:
Hi everyone!

I have a new version of Darkcyde's Defaults for you, at last! I could tinker with these forever, so I'm releasing them as they are at the moment, but they should be perfectly good to use. Hopefully there are no bugs (I do try to test as thoroughly as possible).

Please check out the Change Log. You can view this by clicking the link below, then clicking the Change Log.txt file.

Download them here or from my signature below. The download button in the top right of that page.

Hope you all enjoy them! :)


-=] Darkcyde [=-
 
Hi everyone!

I have a new version of Darkcyde's Defaults for you, at last! I could tinker with these forever, so I'm releasing them as they are at the moment, but they should be perfectly good to use. Hopefully there are no bugs (I do try to test as thoroughly as possible).

Please check out the Change Log. You can view this by clicking the link below, then clicking the Change Log.txt file.

Download them here or from my signature below. The download button in the top right of that page.

Hope you all enjoy them! :)


-=] Darkcyde [=-

Thanks CMDR Darkcyde, I'll test it as soon I have some time. Much appreciated.

Best regards.
 
status.(whatever) not always working

Hey all, I'll try and keep this short. I have a small test-script that I used to find out how VA, HCS and EDDI work together. This is the following script:
Code:
{if status.lights_on = "True":
    Our lights are on.
|elif status.lights_on = "False":
    Our lights are off.
|else:
    Something weird is going on.
}
This script appeared to be working fine when I set it up. Now I am implementing the same sort of code for another script:
Code:
{if status.firegroup = 1:
    {if environment = "Supercruise":
        Target scanners selected.
    }
    {if environment = "Normal space":
        {if status.hardpoints_deployed = "True":
            Target scanners equipped.
        {if status.hardpoints_deployed = "False":
            Target scanners selected.
    }
|else:
    Something weird is going on.
}
Both codes are deliberately overstated and both are pretty extensively tested in ED.
In the latter code, if I remove the hardpoints statements, the script works fine. But as it is: it does not work. Strangely, the previous script doesn't work anymore either. Stranger still: I have set up a VA-command that writes the {BOOL:.Status hardpoints deployed} (extra dot because :.S != :S) to my VA-log and there the value displays as set. Question 1: am I doing something wrong here?

I noticed the line in the Variables-document: "Information about your current status is available under the status object. Any values might be missing, depending on EDDI's configuration". Question 2: is that what is going on here, but why does my VA-log still show the value is set and what can I do about this?

Thanks in advance.
 
Back
Top Bottom