Jump to content
The simFlight Network Forums

tomcontr

Members
  • Posts

    43
  • Joined

  • Last visited

Everything posted by tomcontr

  1. Thanks. I'll try doing that... By the way... Im also having some problems getting the G-Force with Offset: 11BA How can I calculate the G-force like FS shows it? Like 1.0 or 1.5 etc... ? Im getting numbers like 264.000 etc... Best Regards Tomás
  2. Hi Pete, Is there any way to calculate in FSUIPC 3 the actual fuel weight in pounds as it can be done in FSUIPC 4? Using offset 126C ? If not... what would be the normal way to do it? I mean Should I calculate every single tank separatly? Is there any offset that says how many tanks does the aircraft has ? Thanks Regards Tomás
  3. Thanks a lot Pete!! Tomás
  4. Is there any way to get the Aircraft.cfg path of the aircraft that is currently loaded with FSUIPC or any other method? Regards Tomás
  5. Yep I did said that. Sorry about it... its just I ´ve been very disconnected from FS world latetly. I will test the FSUIPC 4.332 today. Any idea when its going out as a Final versión? Best Regards Tomás
  6. Hi Pete, I´ve been disconnected a little while from the Flight Sim. Any news about these matter? Best regards Tomás
  7. Not a problem... I'll be checking the forum for test realease. Thanks again. Regards Tomas
  8. that would be greate... I just need to know if the user enables or disables the Crash Detection, so I can Puase the game. Because we dont allow Crash detection disabled on or Virtual Airlines. About the offset, it doesnt matter, as long as I can use it, I would be very thankful. Best Regards Tomas
  9. I was reading about some variables that simconnect has, and one of them allows to read the status of crash detection, can FSUIPC eventually read that value using Simconnect? I only need to read the value. Regards Tomás
  10. Is there any way to set the Crash action in FSX? Regards Tomas
  11. Hi, Has anyone been able to find any solution for this problem? Regards Tomas
  12. No, not without the usual DLL injection techniques used to invade any program. For those see books like "Programming Applications for Microsoft Windows" by Jeffrey Richter (Chapter 22 applies). Please see my previous reply. Regards Pete Ok, thanks a lot Pete, I will have a look at those dvds. Regards Tomas.
  13. But, I cant load my old FS2004 module, some how manually into FSX? Regards Tomas
  14. Hi Pete, I have a little question, not about FSUIPC, but about FS Modules. I developed a few years ago a little module that was able to run on FS2002 and FS2004. I tried to make it work on FSX, but I didn’t succeed. Do you know if FS2004 modules are compatible with FSX as FS2002 modules were compatible with FS2004? Best Regards Tomas
  15. Hi Pete, and every one :D I have a little question here for you. Is it posible, to setup a button on the Joystick, as PTT (push to talk) for Squawkbox. And if that is posible, how can I do that If my SB is running in another machine and is connected to my FS computer using Wide FS? Thanks in advance. Best regards Thomas.
  16. I´m having problems with this offset. Here is the how. When I do this: pushv = 0; FSUIPC_Write(0x31F4, 4, &pushv, &dwResult); FSUIPC_Process(&dwResult); and then to stop it I do this pushv = 3; FSUIPC_Write(0x31F4, 4, &pushv, &dwResult); FSUIPC_Process(&dwResult); I have no problems to stop the PushBack. BUT, when I do: pushv = 0; FSUIPC_Write(0x31F4, 4, &pushv, &dwResult); FSUIPC_Process(&dwResult); //After some seconds >> (pushv = 1) or (pushv = 2); //It could be any of them FSUIPC_Write(0x31F4, 4, &pushv, &dwResult); FSUIPC_Process(&dwResult); and then, pushv = 3; FSUIPC_Write(0x31F4, 4, &pushv, &dwResult); FSUIPC_Process(&dwResult); THe Pushback wont stop, I dont know why. I must say, that this use to work fine, when I was using the normal IPCuser.c user lib, but, when I stated using the ModuleUser.c for internal proceess. I start having this problem. Hope that some one knows the answere.:wink: Regards Thomas
  17. now is working perfectly. :D DWORD value; DWORD hdg; char headi[64]; if (FSUIPC_Read(0x580, 4, &value, &dwResult) && FSUIPC_Process(&dwResult)) { hdg = value; hdg = (hdg * 360.0) / (65536.0 * 65536.0); if (hdg >= 360) { hdg = hdg - 360; } sprintf(headi, "%d", hdg); } Thanks a lot for your help. Best Regards Thomas
  18. so it should be something like this? int value; double hdg; char headi[64]; if (FSUIPC_Read(0x580, 4, &value, &dwResult) && FSUIPC_Process(&dwResult)) { hdg = (((value + 32768) / 65536) * 360) / 65536; if (hdg >= 360) { hdg = hdg - 360; } sprintf(headi, "%d", hdg); } Thomas.
  19. Does any one know what could be going wrong in these piece of code? double hdg; char headi[64]; if (FSUIPC_Read(0x580, 4, &hdg, &dwResult) && FSUIPC_Process(&dwResult)) { hdg = (((hdg + 32768) / 65536) * 360) / 65536; if (hdg >= 360) { hdg = hdg - 360; } sprintf(headi, "%f", hdg); } It´s really weird, because the hdg variable, after being proceced by FSUIPC it retunes a value like this "-9.2559629702313e+061", so I think that the problemens are not the calculations. Hope that somene can help me Ragards Thomas
  20. Seems that the answer is clearly stated in the error message -- you need to provide a pointer to a character or an array of characters and you are not, you are providing a constant. Really you should be able to read that yourself. Yes, send the correct sequence of messages to FS's Window, of course. Look up "PostMessage", "WM_KEYDOWN", "WM_KEYUP", "WM_CHAR", and "SendInput". Please see if you can find some books on Windows programming. They will be more appropriate than trying to learn here. I am trying to support my programs and develop them too, as well as maybe fly just now and then if possible. I hope you understand that I really cannot carry on an elementary Windows programming course here -- I really am not a good teacher, I have insufficient patience and understanding of learner's needs. I'm very sorry. Regards, Pete Don´t worry, I wont use this forum as a programing school. Thanks a lot again for your help. Regards Thomas
  21. I just search the Window title for "98", "2000" or "2002", else it's 2004. I think I will make it more foolproof in future though by reading the main EXE module's Version information. ;-) Pete Thanks, I'll try that. And sorry a boder you again, but now, I´m trying to use the following fucntion "SetKeyboardState" to send keys to flight sim, but I cant compile the file, I keep geting error like: "cannot convert parameter 1 from 'const int' to 'unsigned char *'" Is there any other way to send keys to FS, with out using FSUIPC, (no offence, :wink: ) Best Regards Thomás
  22. There are FS controls to do that -- the one normally assigned to Shift+P, for start/stop, optionally followed by keyboard keys 1 or 2 to select direction. From a module or gauge just send appropriate Key Events. Pete You are right, I havet thought about that. Now I having an other problem with the "GAUGESLINKAGE Linkage" The problem is that if I want my module to be compatible with FS2002, I have to tell de GAUGESLINKAGE which version should look at, and for FS2004 is the same, but how could I make my module compatible with both FS? Do you have a function o something that could help me out? Thanks a lot. Best Regards Thomas.
  23. I have build a module for FS that works perfectly. Now I would like to create a module that allows me to pushback the plane. Does any one know, which FS variables should I look to? or if any one could give a little pice of code or example, I will really apreciate that. I´m using VC++ Regards Thomas
  24. Hi Pete. Recently, I have been working on a time Sync Utility for FS. I was able to finish it, but I found that the offset 0246, that gives me the Bias, In some cases on FS2002, it gives bad number. For example in NZAA (New Zeland, Aukland), it should be 12, and the offset gives me 13. This just happened with some airports or locations in the world, and only in FS2002, in FS2004 every thing seems to be fine. I don’t know if this is a bug, or may be I’m doing something wrong. I’ve test this with FSIPC 3.45 and 3.48. Hope that you could give me a hand with this. Best Regards. Thomas
×
×
  • 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.