Jump to content

AKA_Clutter

Members
  • Posts

    524
  • Joined

  • Last visited

1 Follower

About AKA_Clutter

  • Birthday 08/28/1954

Personal Information

  • Flight Simulators
    IL-2 1946
    DCS World - Most titles
    LOMAC/Flaming Cliffs
    X-Plane 11
    Fly Inside
    Falcon $ Allied Force
    Falcon 4 Free Falcon 5
    Eve
    Elite Dangerous
  • Location
    WA
  • Interests
    Sims and Period Ship Modeling
  • Occupation
    Engineer

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Here is what someone said on Casmo's Discord channel. Because it doesn't do anything in the real helicopter. It's why the cursor auto jumps to the boresight potion on the MFD. So it's not that ED didn't implement it, they just implemented in accordance with sme feedback and how it works in the software version presented.
  2. I followed the instructions and removed the screws. IIRC I looked at it and thought there might be some interference, and it was easy enough to do.
  3. Interested in how you did this. Do you have layouts you care to share.
  4. "Hi, I'm Uncle Bill and I'm here to help!" IMHO, not the first, not last time, MS has #$% us all.
  5. I use SkateZillas utility for this and it works great
  6. At the 1:17 mark in Virpil's release video, it looks like to me they have the "Counterbalance" upgrade kit installed. Curious if it is "required" to get the grip/base to function properly. ALso it will be interesting to see how this spring counterbalance works. I currently use the counterweight setup.
  7. We run our mission on a server that swaps to a specific instance for liberation missions, and then swaps back to a different server instance for general/public DCS missions. The issue is that some times, before I have a chance to copy the Liberation state.josn file to a different folder, or rename it, the server starts with the same mission ( even though there are other missions listed) and overwrites the state.json file. What I would like to do is copy the state.josn file to a different file about 45 to 60 seconds before the mission ends. I know the basics of Lua, but not sure how to use lua to copy a file. I can write to a file, just dln't know how to issue a command to copy a file. Can anyone point me the a direction to do this. Thanks
  8. Thanks Grimes. The main place I am looking to use it is in Liberation Campaign generated missions. It looks as though dead units are kept around from mission to mission. I have no clue if that would degrade server4 performance.
  9. Hi all, I have a few questions on the world.removeJunk function. I have added it to a test mission and it seems to work, or at least it doesn't throw any errors. 1. I read a few reports that this function was causing crashes, both ser4vers and clients. Has this been fixed and is it now working? 2. Assuming it's working, what would be the use case? Does removing the dead persistent units improve or is it primarily for ascetics. 3. are there limitations on the size of the sphere to use? Would it be better to use a lot of small ones, or one very large ones. Thanks, Cluitter
  10. IMHPO - One must bide your time. It will happen, or it won't. It will always be "not soon enough" , but once released, that will become history.
  11. Thanks for the response Kanelbolle. The reason I am checking to see if I get an error when trying to open the file is to try and avoid a runtime error that stops the script. I also posted this question on the Stack Overflow board. The response I got there, was that I was opening the file TWICE is rapid succession., which may caused a Time of check to Time of Use error (Time-of-check_to_time-of-use). As being new to programming and lua, I would never have figured this out. The responder also suggested a better way to do what I wanted to do. The key seems to be to open the file and assign that to a handle (Variable) and also capture the error, if the file can't be opened. I think the key is the follwoing line. local Test_File_Handle, err = io.open(FILENAME, "w") Anyway, my revised code is shown below and seems to work. I haven't tested to see what happens if I can't write the file to start with. local function Write_Mission_Stats () trigger.action.outTextForCoalition(2,MSG_Header .. "TEST - Simple test to write to file TEST" .. MSG_Footer, 15) ---[[ ALternate Method local Test_File_Handle, err = io.open("C:\\Users\\Nathan\\Saved Games\\DCS.openbeta\\AKA_Test_File.txt", "w") -- For Clutter's Comuter -- local Generate_A2A_Summary_Stats_OutString = Summary_Stats_Report_Tbl (Index_TBL) if not Test_File_Handle then -- failed to open file, let's display the error -- print(err) -- or error(err), or whatever debugging function trigger.action.outTextForCoalition(2,MSG_Header .. "FIle was not opened\n" .. MSG_Footer, 15) trigger.action.outTextForCoalition(2,MSG_Header .. err .. MSG_Footer, 15) else local Generate_Mission_Config_Report_Tbl_Outstring = Mission_Config_Report_Tbl () trigger.action.outTextForCoalition(2,MSG_Header .. "TEST PRINT BEFORE WRITE CALL" .. MSG_Footer, 15) -- Output summary talbe of A2A groups trigger.action.outTextForCoalition(2,MSG_Header .. Generate_A2A_Summary_Stats_OutString .. MSG_Footer, 15) -- Output summary talbe of A2A groups -- opened the file, write some data Test_File_Handle:write("===============================\n") Test_File_Handle:write(" Mission Stats for AKA Campaign\n") -- Close the file Test_File_Handle:close() end return end -- Next line is to call the function to write mission states to a file. timer.scheduleFunction(Write_Mission_Stats, {}, timer.getTime() + 15*Sec_per_min)
  12. Hi all, I am trying to write information to a file and I am having an issue. I have commented out the sanitize lines in MissionScripting.lua and I am able to write to a file. However, I want to add a check to make sure that DCS sanitation has been disabled. I do this with an if statement, but this ends up generating an error. Here is the sbnipet of code that I am having issues with. local function Write_Mission_Stats () trigger.action.outTextForCoalition(2,MSG_Header .. "TEST - Simple test to write to file TEST" .. MSG_Footer, 15) -- Test_File_Handle = io.open("C:\\Users\\Nathan\\Saved Games\\DCS.openbeta\\AKA_Test_File.txt","w") if io.open("C:\\Users\\Nathan\\Saved Games\\DCS.openbeta\\AKA_Test_File.txt","w") ~= nil then local Generate_Mission_Config_Report_Tbl_Outstring = Mission_Config_Report_Tbl () Test_File_Handle = io.open("C:\\Users\\Nathan\\Saved Games\\DCS.openbeta\\AKA_Test_File.txt","w") Test_File_Handle:write("===========================\n") Test_File_Handle:write("Mission Stats for AKA Campaign\n") Test_File_Handle:write("===============================\n") Test_File_Handle:write(Generate_Mission_Config_Report_Tbl_Outstring) else trigger.action.outTextForCoalition(2, "\n*************************************\n\nNot able to open wirte file. \n\n**********************", 15) end end -- Next line is to call the function to write mission states to a file. timer.scheduleFunction(Write_Mission_Stats, {}, timer.getTime() + 15*Sec_per_min) The error message is that the line with " Test_File_Handle:write("===========================\n")" attempt to index global Test_Handle(a nil) value). I check after the error and a file named "AKA_Test_File.txt" has been created,but is empty. If I remove the if statement, the code works fine and a file is written. I tried adding "Test_File_Handle = io.open("C:\\Users\\Nathan\\Saved Games\\DCS.openbeta\\AKA_Test_File.txt","w")" as the text condition to the if statement, but it didn't like that at all. Can any tell me why this is happening, or a better way to check and see if I can write a file and not generate an error that stops the script. Thanks,
×
×
  • Create New...