Jump to content

algerad3

Members
  • Posts

    522
  • Joined

  • Last visited

Everything posted by algerad3

  1. Whartsell, Just wanted to say thanks for the help you have given me.... Still working on the example you have provided. It seems that when I start the program....Listener and Dcs it starts off telling me the gear1 = off. After that it states that there is an error...String expected but is nil, or after some changes it will run but, the gear is always reporting "off". I will get it sorted out . the Important part is that I now know which direction to go.
  2. Thanks for the example , So as I understand it , I need to create a table and then parse from the stream. I guess from here I can reference lua strings.
  3. Are you talking about the roller knobs under the mfd? If so, the only way to get dcs to see them is with the panel control thingy page open. Same for the two push buttons in between and the mod button. Give it a go and we will help where ever we can.
  4. I hate it when I am half assed right....leaves too much to go wrong....
  5. could be for the Huey.... Belsimtek had stated that they were trying to get it out today or tomorrow. From where i stand they are out to prove me crazy...so , I am more confident that it is a Huey update. This is a guess, it is only a guess.. If this post had any factual information you would be instructed with links for further information. This concludes the lets guess broadcast alert system... We now return to regular posting.
  6. If you find any good deals let me know , Girlfriend wants to go shopping this week end. I share in your joy.
  7. oh, So I have to declare it again even though I have it in the export file ( now that I think about it some. Never mind got it. declare ,declare). Anyways , I am using lua as I have a dll that will allow me/us to get our saitek x52 pro gear mfd working. Also helps me understand basics of programming as i really want to expand on the possibility of using the saitek flight instrument panels for gauge displays.
  8. I am messing around with an example script I found in the Lua folders. The export of course is from blackshark export, The example listener is thelittle script I found and modified. Currently it will write the exported values to the lua console window. I want the values to be used in the script. As it stands , it turns the light off so I guess gear1up and gear1down has now value to work with. How do I get the values is the question. ( as if you did not figure that out already. LOL) your time and help is appreciated. listeneradaptedsaitek.lua Export.lua
  9. O.k, had to double check... yes you can create shift states within Dcs. also if you open the saitek control panel( the one where you can test your buttons and what not ) and leave it open when you get into the sim , you will have access to every button on the controller. On a side note, I had to verify if the buttons worked with control panel open and assigned the rotary to the radio dial in b.s.2 it worked without crashing the sim. My new thought is to scrap the current form of the radio callback using get command and see if I can connect with the keyboard equivalent command... will have to dig deeper. I totally forgot about all this until now ....Thanks Time Killa you may have saved some hours and frustrations.
  10. I have never experienced the dreaded bsod with the Saitek S.S.T program. I had used it with , Falcon 4, apache /havoc back in the day...not with MSfx or Dcs . I do know that there have been many complaints about the bsod's with Dcs products.They do not play nice with each other.. What I did read pretty much says that you do not need s.s.t, you can create shift states in the input options menu when you assign your inputs. the drawback of course is that you can not use the mode buttons.
  11. I have a lua client script.. just trying to figure out how to get at the variables and values from the receive stream... I am also trying to piecemeal a client using visual studio C++ slow going , in up to my neck and getting more deeper into the water soon to be in over my head ,if not already . Thanks for the tip.
  12. Still working on the saitek thingy and I am looking at another angle. " lua sockets". Question... once I get the socket (tcp) running and sending to the client, how do I access the received packets i.e how do I get the values and variables for further use..... Silly me; I googled and goggled and even oggled myself to death and all I got was internet , http examples. I can get the stuff to print to lua console and that works fine , but I can not get the value for my own scripting use. Pointer,tips or topic title for further study would be helpful. :cry:
  13. Sometimes life sucks like that .... So close yet so far...I will take a look and see where you are at and maybe we can get at least half a step closer.
  14. I am still here . After a couple of false starts I am now able to immerse myself into this again. I managed to get some info to print to console using lua sockets, and I was able to get something to the x52 for landing lights but, I must be doing something wrong as it does not work properly yet. As soon as I get the lights to work, I will see what happens on the radio end of things . Expect an update within the next 36 hrs. wish me luck.
  15. O.k a little patience here.... I am going to figure out how to use the lua socket and try from another angle. The hard part was done by Moburma with the module selector code , Now it is my turn to get it in the right directions. I have a lot going on over here so might take some time. (per usual lately).
  16. Chrillith, It seems you replied while I was typing up my response to Moburma, Good to see you are back. Currently we have questions in regards to control of the Rotaries. What kind of output are they giving us? Is it a rotary type value or button type? I.e mouse wheel vs. mouse click? Not sure if you have time to look at the lua export maybe you can clarify thing as far as command inputs. Trying to tackle this in between other pressing matters.
  17. Moburma , I am still under the impression that inserting the code for the saitek device directly into the Lua export is the issue. I believe ( my uneducated guess) the lua is for sending and receiving info and all the other commands are to be created in another program(thread). By introducing our button commands in the manner we are using is causing memory errors. I took another look at a partial debug instance and keep finding access violations, which if i am correct means that the values being accessed by the sim and sent tot the mfd are changing in a manner that is difficult for the program (export ) to get a good read. More simply put, we are trying to get a freq value and when it is time to be read out of memory, the value is changing, the export lua has a deadline to get the information, before frame /after frame. The information is not changed and read fast enough or the information is in flux at time of reading. Move wheel slowly and info is read , move faster and the info is still changing and not ready. Let me get a bead on the rest of your experiment before I comment on that part.
  18. I appreciate that !!!! Was not sure if anyone would understand/remember where I was going with that!!! One rep for you .
  19. So, you wanna turn this into a Heinz ketchup commercial?
  20. Time Killa, It really depends how you want to work things. Before I got the X-65 I used both the keyboard and some functions/buttons on the joy stick. I never really played with the software since Falcon 4. Like Moburma stated , it would be useful to have a shift state function working . I understand that for some people had issues running the Saitek programm with dcs, those complaints have seemed to all but dis appear since world. Any question about your gear feel free to ask us here. It will help us stay in the active column and we are eager to reply to post here. Maybe we should figure out how to organize the current run of information into the wiki?
  21. Oh yeah, one more thing that's more of a general export.lua question anyone familiar with that could probably answer: did you export stuff like the airspeed indicator from the A-10c? I just get weird null values that crash the MFD if I export it and it's driving me mad. It also happens with altitude and the LAST dial of the ILS indicator (!?). It's just weird as trying to get the info from them behaves totally different to any other instrument in a DCS module, and to the other dials in the A-10. Is it just me being a moron or is there some trick to it (seeing as people have been exporting that info for ages)?
  22. I am afraid that the Lua module needs to be a 64 bit module and that there were many changes in lua 5.2 that made it incompatible with the Saitek Dll and Dcs's lua dll ( It appears that they are using 5.1 as well.) As for the rotary iirc I had used it for landing gears without issues. It should work for simple state buttons ( on /off) when using it for the Black shark radios, I can use it if i go slowly for the most part. for any other module it will not stop at the desired rotation point. I believe that is because even though the scroll wheel rotates, it does not send out a rotary type signal and basically tells the program that we made a complete rotation of the dials. The Saitek Flight instrument panels have the same effect on the abris when I tried to program it. Bottom line , we are not sending the right info on the "button" press to the simulator. I finally have a day to myself and I will investigate further as soon as I can clear off my desk and find room.
  23. Got it , wrecked it like I stole it .... hope they had insurance.
  24. Well, Someone is all over it. I am on vacation soon, I will give the radios a whack.
  25. Haha ha , Just got home yesterday and and today I find this ..... Coincidence ?? https://www.digitalcombatsimulator.com/en/downloads/modules/ I think not !!!!! This is too cool.( kinda screws up my previous prediction.
×
×
  • Create New...