cmdrmcdonald / EliteDangerousDataProvider

Apache License 2.0
134 stars 31 forks source link

EDDI's VA plugin can't send DEC values back to EDDI? #227

Closed Darkcyde13 closed 7 years ago

Darkcyde13 commented 7 years ago

Hi,

I have made a Mission storage & retrieval system for EDDI which works perfectly by itself, there is just no saving the database between sessions. So I have started to use VoiceAttack with the EDDI plugin so that I can save the database to disk and reload it for my next gaming session.

I have come across a problem where I am unable to send DEC number values to EDDI via the plugin. Is this by design? I can only find examples and tutorials that deal with TXT tokens only, and I am unable to get any DEC values to go from VA to EDDI.

I have been able to get around this problem by using the Cottle command 'cast()' to change the variable type once the plugin has sent it as TXT to EDDI, but I was just wondering if sending DEC values is something you are able to implement into the plugin?

Kind regards,

Darkcyde.

Darkcyde13 commented 7 years ago

Seems my lack of VA knowledge has bitten me in the ass over this one. I'd looked through lots of examples to find what I needed to do, and what I thought was correct VA scripting to load the variables from a file, turns out was NOT correct.

I'd loaded the value from the file into a TXT variable, then converted it to a DEC variable, and then passed this over to EDDI. However, VA was not sending the converted DEC over, it was instead sending the original TXT over. Thankfully I managed to fix this by setting the TXT variable to 'Not Set' after the conversion to DEC. Then VA would pass the DEC version over as originally intended.