Author Topic: Elite dangerous flags values total  (Read 5478 times)

Aniv_D

  • Newbie
  • *
  • Posts: 18
Re: Elite dangerous flags values total
« Reply #30 on: April 23, 2020, 06:25:34 AM »
Hello Pfeil. if you don't mind, you can show an example of how to implement this in Python. I understand that this does not apply to the VA, but I would very much like to. I've already broken my head on how to implement this...

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
Re: Elite dangerous flags values total
« Reply #31 on: April 23, 2020, 09:28:30 AM »
This example is to be used with VoiceAttack, not other software; As are all examples I provide.


If you want to implement a similar function, Python does appear to support enumeration.

Aniv_D

  • Newbie
  • *
  • Posts: 18
Re: Elite dangerous flags values total
« Reply #32 on: April 23, 2020, 10:03:39 AM »
If you want to implement a similar function, Python does appear to support enumeration.

Many thanks to Pfeil for the hint, I will try to understand this module.

Aniv_D

  • Newbie
  • *
  • Posts: 18
Re: Elite dangerous flags values total
« Reply #33 on: May 18, 2020, 03:30:48 AM »
Hello. I noticed that if "Flags":155320336, then {TXT:status Flags} returns '155320336', although it should have shown 'SuperCruise, FsdCharging, IsInDanger, InMainShip, HudInAnalysisMode'.
P.S. this happened when I jumped into another system. and it was also noticed with '156368912', '1229062160' and with other possible values.
« Last Edit: May 18, 2020, 06:32:09 AM by Aniv_D »

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
Re: Elite dangerous flags values total
« Reply #34 on: May 18, 2020, 08:21:28 AM »
That's because the values supplied in the table in the first post were incorrect...

Code: [Select]
17    31072      0002 0000    Fsd Charging
31072 is not the next number in the sequence, 131072 is (I.E. the decimal value represented by the 18th bit/bit 17).

Aniv_D

  • Newbie
  • *
  • Posts: 18
Re: Elite dangerous flags values total
« Reply #35 on: May 18, 2020, 10:20:46 AM »
 I should have checked better... thank you for noticing.