Jump to content
The simFlight Network Forums

FsWebIO

new Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by FsWebIO

  1. Hello, When I launch FSUIPC, I get a blank resizable window with proper title and menu bar I can select, but I get absolutely nothing inside the window which is blank with white background. FSUIPC works because I'm connecting with success via WideFs with a wideclient. Alt-F key to show up FSUIPC7 windows does work. Console log does work. Simply : no UI inside the window. I searched the forum but it seems nobody reported this bug... Or maybe I'm missing something about the UI display ? EDIT 1 : After viewing a tutorial video of FSUIPC7 beta it seems that I do not have the complete menu items in the app window. I do not have the Assignement menu, so can't open associated UI. EDIT 2 : Seems related to the KEY, as a registered user of v6 I was using my key, a blank launch from FSUIPC7 install without modifying key file works. Final edit : keeping the default informations for FSUIPC user licence and adding only my WIDEFS user licence informations solved everything.
  2. Brilliant ! You absolutely spotted on the problem just reading bad pasted code, you are effectly right, now that you say it I do create one instant of Offset for every Bit. That's explain why I have essentially this problem on BitArray offset ! Well frankly I still have a lot of difficulty understanding theses offset things. I may have other question, for the moment I'll try to see how to adapt my code to this fact. Thanks !
  3. Hello, I'm in the process of creating a cool interface with your DLL. So far so good but I come across bugs that confuse me and it seems I didn't really get the FSUIPC conversation. An example, let say I have an object holding Offsets as it : public class FsVar { public string Name { get; set; } public int Offset { get; set; } public int OffsetLength { get; set; } public string OffsetType { get; set; } public int BitIndex{ get; set; } public Offset<BitArray> OffsetBitArray { get; set; } public int ColdAndDarkDefault { get; set; } public string Value { get { if (OffsetType == "BIT") return (OffsetBitArray.Value[bitIndex]) ? "1" : "0"; return "" } set { if (OffsetType == "BIT") OffsetBitArray.Value[bitIndex] = (value == "1"); return; } } } My program : public class MainProgram { public List<FsVar> FsVarList { get; set; } MainProgram() { FSUIPCConnection.Open(); FsVarList = new List<FsVar>(); FsVarList = FsVarGetFromCsv(); //So now I have a list of FsVar, I instantiate the Offset<BitArray> of these foreach (var item in FsVarList) { switch (item.OffsetType) { case "BIT": item.OffsetBitArray = new Offset<BitArray>(item.Offset, item.OffsetLength); break; } } //Register the offsets ? FSUIPCConnection.Process(); //Now I set default values to the offset foreach (var item in FsVarList) { item.Value = item.ColdAndDarkDefault.ToString(); } //Each offset has now is default value, so I send this to FS ProcessAction(); } } My problem is at the end when I set the default values. To me FsVarList has all the objects correctly set and just calling ProcessAction(); will update corresponding Offset in FS. This is actually somewhat true, but by testing I figured out not all values where correctly sent to FS, what I had to do to insure proper setting of EACH value is that : foreach (var item in FsVarList) { item.Value = item.ColdAndDarkDefault.ToString(); ProcessAction(); } There is approx 250 values in the list (Project Magenta pmSystems Offsets), can you explain me the difference between these two functions behind the scene in your DLL and in FSUIPC : // Kind of work but some values are not sent to FS as it should public void ColdAndDarkStateSet() { foreach (var item in FsVarList) { item.Value = item.ColdAndDarkDefault.ToString(); } ProcessAction(); } // Seems to work on every hit public void ColdAndDarkStateSet() { foreach (var item in FsVarList) { item.Value = item.ColdAndDarkDefault.ToString(); ProcessAction(); } } Of course the one thate work seems slower to run and has i read in your documentation ProcessAction(); should only be used only when necessary. The logic of the first function seemed right to me. Is it possible that in between the settings of each of the offset values in my FsVarList and the call to ProcessAction(); the other concurrently running application (Project Magenta pmSystems) has set different values to these offset ? In fact, each setting of every offset should be considered immediately followed by a ProcessAction(); ? Is that right ? Thank you
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.