Release EDDI 3.3 - Bring your cockpit to life

4.1.4 is the latest, so that's OK.

I've looked over the script, and I think I may have found the cause. If I'm right, it's one I accidentally 'fixed' for my self without realising it.

The FSD engaged script calls the System report script, and it's this report that is the problem (I believe). A while ago, EDDI made a change to how State() variables are handled and how variables are passed to child scripts. I believe that this is the problem for the System report script. You see, FSD engaged sets a State() variable to the target system name (all good so far), and the child script (System report) uses that State() variable. However, because it's a child script, and how EDDI now handles them, it's not retrieving the new value for the State() variable, it's using the old value, your last system.

So, to fix this (assuming I am right, of course), you need to make this change to the top of the System report script. The first few lines need to be replaced with this code:
Code:
{_ Fetch from Context, if a context is set, and reportSystem is not already set _}
{if !reportSystem:
    {if GetState('eddi_context_system_name'):
        {set reportSystem to SystemDetails(GetState('eddi_context_system_name'))}
    |else:
        {set reportSystem to SystemDetails(system.systemAddress)}
    }
}
(This is pulled directly out of my version of the script, so looks slightly different, but the functionality will be the same)

Remove the first six lines (as long as it's the default), and paste the above in their place. This updated code uses GetState() instead of state.. This ensures the most recent value is used. It also checks to see if reportSystem has been set, which it is in my versions. The default scripts use reportsystem instead (lowercase s, instead of capital S), but this shouldn't impact your scripts.

If you've not made any changes the the EDDI personality before, you'll probably need to make a copy of the default personality first, as you can't edit the default. At the bottom of the Speech Responder tab, click the 'Copy Personality' button and give it a new name. Then you can edit the System report script as above.

Let me know if this works for you, or if you have any trouble making the changes, I'll try to help you out.

o7 Cmdr.

DC.

Thank you ever so much Darkcyde, that has fixed it.

Really appreciate you taking the time and for the help.

:)
 
Back
Top Bottom