I've taken a look at this but can't reproduce it on my side.
What this might be, is that Voice Attack state variables (along with all other Voice Attack variables) are only refreshed when an event occurs. Because the responders are run asynchronously it is possible that sometimes the speech responder updates state before the Voice Attack responder starts, so that the state updates pretty much immediately. Other times it might be that the speech responder hasn't finished before the Voice Attack responder starts, so that the state doesn't update until the next event.
To confirm if this is the case, could you run your Speech Responder script, make an event occur, then check the Voice Attack state variables? They should be populated after the event occurs.
As to the issue itself, I'm afraid that there is no simple solution. There are a few things that I could do to help the state information show up in VoiceAttack regardless of events, but nothing simple or immediate I'm afraid.
Here is a little tool that let you share scripts, I hope it will be useful. Let me know if something is missing or can be improved (it's an early version so it will get a proper layout, maybe)
http://snafets.de/elite/eddi_scripts/eddi_scripts.php
And please don't break it![]()
I've taken a look at this but can't reproduce it on my side.
What this might be, is that Voice Attack state variables (along with all other Voice Attack variables) are only refreshed when an event occurs. Because the responders are run asynchronously it is possible that sometimes the speech responder updates state before the Voice Attack responder starts, so that the state updates pretty much immediately. Other times it might be that the speech responder hasn't finished before the Voice Attack responder starts, so that the state doesn't update until the next event.
To confirm if this is the case, could you run your Speech Responder script, make an event occur, then check the Voice Attack state variables? They should be populated after the event occurs.
As to the issue itself, I'm afraid that there is no simple solution. There are a few things that I could do to help the state information show up in VoiceAttack regardless of events, but nothing simple or immediate I'm afraid.
Cool. I don't see how to browse what's already been submitted?
Here is a little tool that let you share scripts, I hope it will be useful. Let me know if something is missing or can be improved (it's an early version so it will get a proper layout, maybe)
http://snafets.de/elite/eddi_scripts/eddi_scripts.php
And please don't break it![]()
Ok, I whipped this up real quick and did some rudimentary testing.
I threw this into the speech responder 'Jumped' script for testing, but it could also go into the 'Jumping' (or any other) script...
Code:{if state.destination: {set dest to SystemDetails(state.destination)} {set diff_x to sub(dest.x, system.x)} {set diff_y to sub(dest.y, system.y)} {set diff_z to sub(dest.z, system.z)} {set pow_x to pow(diff_x, 2)} {set pow_y to pow(diff_y, 2)} {set pow_z to pow(diff_z, 2)} {set distance to add(pow_x, pow_y)} {set distance to add(distance, pow_z)} {set distance to pow(distance, 0.5)} {set distance to round(distance, 1)} Distance to {state.destination} is {distance} light years. }
It's written for readability over efficiency, so feel free to obfuscate to your heart's content!
Is there anyway for this to read off the results of a prospector limpet?
Jgm,
Not getting the jump information anymore. Testing the script works fine, but it seems it is not getting the information when I jump...Any ideas?
jgm, thanks for looking into this.
I can reproduce the behavior consistently, but now that you've reminded me that the Speech and Voice Attack responders operate asynchronously it makes all kinds of sense that the EDDI state variables aren't updated for VA until the Voice Attack responder is triggered. For example, I executed my 'state test' scripts before and after an 'Undocked' event... before, 'Not set'... after, set to proper values.
I think this is an important detail for EDDI/VA coders to be mindful of... VA EDDI state variables will not be valid until the Voice Attack repsonder has been trigger by an event.
That said, what about creating an EDDI plugin call for VA that forces a trigger of the Voice Attack responder?
It is in the top part and you can be the first help to fill it.
{cargo.commodity.name} can be sold here for a profit of {marketcommodity.sellprice - cargo.price} credits per tonne.
}
}
One thing I wanted is to not have it speaking after every jump. I tried just removing the last line but then the varialbes are not set, even tried just removing the "Distance to....is... light years" and only leaving the {state.destination} {distance} but then it didn't work for me. Anyway to silence the say part in the script? I cant for the life of me see it :/
Other than that it works a treat >![]()
Glad to hear it's working for you.
Eddi doesn't find the Logs folder.
I'm 100% sure this is the correct path C:\Program Files (x86)\Steam\steamapps\common\Elite Dangerous\Products\elite-dangerous-64\Logs
besides it's the only Logs directory that has multiple .log entries (Just in case I tried the other folders too under FORC-DEV-1010 and the ones in the appdata Frontier_Developments, no luck at all)
Eddi just says "Unable to detect the product folder" or something among those lines. Am I doing something wrong?