Jump to content
The simFlight Network Forums

javiercuellar

Members
  • Posts

    40
  • Joined

  • Last visited

Everything posted by javiercuellar

  1. Hi, Is there a way that the airplane is in a runway? I want to run a process when that condition is true. FsPassangers is able to do it because they launch an audio file, so it should be possible, but how? Thanks Javier
  2. Hi Paul. I have a performance question. My situation: I have quite a lot of variables to read, but not all of them are needed always. Posibility a: Read always all variables. Posibility b: Group variables based on when they are needed. Ex. Group1: keypress vars, speed, alt. hdg. etc. Group2. Flaps. Group 3. Throttles. Group 4. Lights, etc Read every 200ms Group1. Depending on conditions of those variables Read 1 or 2 groups. I ask this becasue in another topic you said that reading different groups, one after another, is not a good idea, but the logic says that because normally groups 2,3,4, etc would not be needed, the posibility b is better. Maybe you refer to reading all groups always. Thanks
  3. Upsss, type mismatch. I had it the correct way. :? Yes, I tried that, but I can't manage to use it that way, because if declare as byte array, then I need to write each byte individually (that is each letter). Using a conversion function string to bytes (GetBytes) will also give me more problems, because the array initially declare as 30 byte, will change to the size of the string. Same type mismatch (copy paste from the other one). After applying the theory it didn't work, so I start with trial and error and finally made it work, so I guess I'm lucky. Yes, but the difference is that lua writes directly to FS, and in vb.net I have to write locally and then send to FS. I know that it sounds ilogic, but, belive me, that make a lot of difference. In any case, now it works, after 2 days fighting with 20 lines of code. Soon I'll try to look at it again and let you know, if that is ok for you? Thanks.
  4. Hi Pete, Just to let you know that finally it is working perfectly!!! :D It took me a long time, because in vb.net I have to write a value in local variable and then send it to FS calling FSUIPCConnection.Process(). It looks simple, but it is very important the exact moment when the values should be sent. For anyone facing problems , like me, the algorithm is: Write to free slot value &HFFFF (ex. &H3210) send to FS Write byte 1 of &H2FE0 with slot number (ex. 0 if using &H3210) send to FS ' For menus Write Menu title to byte 1 - 31 of &H2FE0 send to FS 'For submenus Repeat Write response number to byte 1 of &H2FE0 send to fs ----> here I had the headache Write to byte 1 of &H2FE0 &H80 + slot number write submenu title to byte 2 - 30 of &H2FE0 send to fs until no more submenus In a Timer control each 10 sec write &HFF to byte 3 slot (with previous ex. it will be &H3213
  5. I have no words for this. Only thanks you very much :wink: I'll implement it this night!! :D
  6. Rgr. I'll be waiting for this. Thanks
  7. :shock: You are amazing !!!! That will be great!!!! :wink: Only one thing. Actually Byte 0 is slot number Byte 1 to 31 is menu name. Wouldn't the new design produce a conflict with already created applications?
  8. Thanks Pete. I'll keep the application as external. Maybe you could put this in the "It would be nice to.." list. Thanks for your excellent support.
  9. Me again :oops: Now that I'm able to create a menu in add-ons, is it posible to create submenus inside this one? Thanks
  10. Ok, I'm back. My error was writing the "1" as a char an not as a number, an beside that, it should be a 0 (zero). What I did was write to byte 2FE0 that 0, and from byte 2FE1 (up to byte 31) the menu name. :D
  11. Thanks Pete for the super-fast answer :D . Yes, I got the idea, and I'm using 4 bytes (4 * 8 ) that give me the 32bits. I treat each byte separately. Maybe it's not good idea, but for testing and learning gives me better view of the situation. Probably my mistake is using the "1" as character, besides that it should be 0 (I did also test it with 0) Tonight I'll recheck it let you know the results. Thanks
  12. Hi. I've created an application that works fine. I'll like to show it in the "add-ons" menu, but can't get it to work. I program in vb.net and this is the code for showing the menu. What is my mistake? Global declarations Dim MenuFS As Offset(Of Byte()) = New FSUIPC.Offset(Of Byte())(&H3210, 4) Dim MenuNameFS As Offset(Of String) = New FSUIPC.Offset(Of String)(&H2FE0, 32) In main form event MenuFS.Value(0) = 255 MenuFS.Value(1) = 255 MenuFS.Value(2) = 0 MenuFS.Value(3) = 0 MenuNameFS.Value = "1Test menu" Timmer of 10 secs MenuFS.Value(0) = 255 MenuFS.Value(1) = 255 Edit: Also tried writing to bytes (2) and (3) insted of (0) and (1) but at least as is originally, I can see byte (1) counting down for timeout. Debuggig I can see that
  13. Hi, Is there a chance to have an example (any language will be fine, better if vb.net) of how to assign a hot key and then read if if has been pressed using the SDK. It is offset 3210. I'll apreciate it.
  14. Upppsssssss :oops: I had a really fast look and dont know why didn't see it. Very sorry. Thanks. Javier C.
  15. Hi Pete, What about a discount for people who just bought both FSUIPC and WideFS?? My resgistration is only 2 weeks old. I read before that may there will be a especial price for those of us that has bought it less then 6 months ago (you said you will thinks about that) Thanks for your great job.
×
×
  • 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.