Jump to content

Skynet99

Members
  • Posts

    51
  • Joined

  • Last visited

About Skynet99

  • Birthday 09/03/1980

Personal Information

  • Flight Simulators
    DCS: Wolrd, DCS: A-10C, Falcon BMS sometimes
  • Location
    Budapest
  • Interests
    DCS: A-10C, pitbuilding
  • Occupation
    UNIX Subject matter expert

Recent Profile Visitors

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

  1. "mark_added" is the name, so it can be anything as far as I know. (but I get what you mean) I'll give this one a try, thank you!
  2. Hi, I've been thinking about creating a dynamic flight plan creator. I'm using the latest openbeta, tried it on a syria map. So far I've got this code: -- Define the altitude at which the waypoints will be added (in meters) local ALTITUDE = 1500 -- Define the maximum number of waypoints the player can add local MAX_WAYPOINTS = 15 -- Create an empty table to store the player's waypoints local playerWaypoints = {} -- Define a function to create a waypoint based on a map marker function createWaypointFromMarker(marker, player) -- Get the coordinates of the map marker local point = marker:getPoint() -- Create a new waypoint at the same coordinates local waypoint = { ["type"] = "Turning Point", ["action"] = "Turning Point", ["altitude"] = ALTITUDE, ["alt_type"] = "BARO", ["speed"] = 150, ["x"] = point.x, ["y"] = point.z, ["name"] = "Waypoint " .. #Group.getByName(player:getClientGroup():getName()):getWaypoints() + 1, ["task"] = { ["id"] = "ComboTask", ["params"] = { ["tasks"] = { { ["enabled"] = true, ["id"] = "EngageTargets", ["number"] = 1, ["params"] = { ["expend"] = "Jettison", ["weaponType"] = 2032 } } } } } } -- Add the new waypoint to the group Group.getByName(player:getClientGroup():getName()):getController():pushTask(waypoint) end function onPlayerAddMarker(eventName, args) local clientName = args.initiator:getClientName() if clientName ~= nil then -- Get the player's coalition local coalition = args.initiator:getCoalition() -- Get the map marker based on the name of the marker group and the text of the marker local markerGroup = coalition.getGroups(coalition, Group.Category.MARKER) for _, group in pairs(markerGroup) do if group:getName() == args.groupName then for _, marker in pairs(group:getMarkers()) do if marker:getName() == args.text then -- Add a new waypoint based on the map marker local client = args.initiator:getClientGroup():getUnits()[1] if not playerWaypoints[client] then playerWaypoints[client] = {} end if #playerWaypoints[client] < MAX_WAYPOINTS then createWaypointFromMarker(marker, client) table.insert(playerWaypoints[client], marker) trigger.action.outTextForGroup(client:getGroup():getID(), "Added waypoint " .. #playerWaypoints[client], 5) else trigger.action.outTextForGroup(client:getGroup():getID(), "You have reached the maximum number of waypoints (" .. MAX_WAYPOINTS .. ")", 5) end break end end break end end end end -- Register the event handler for the "mark_added" event -- This event is triggered when a player adds a new marker on the F10 map world.addEventHandler("mark_added", onPlayerAddMarker) I load up the mission, and jump into a client A-10C and when I try to add a marker on the F10 Map I get the error: (See attached) Anyone got any ideas how this could be resolved. If this is something that DCS is currently not supporting please also let me know. Thanks in advance!
  3. Okay, so I figured it out. To anyone let this be a warning: If you uninstall NTTR, then reinstall it, it will show up as "disabled". Thus not granting access to ANY activity to that map, and not even showing up as "this requires blabla map to be enabled and installed". Which would have been helpful in my case. Now I can see my red flag campaign: My face rn:
  4. What do you mean? The CAMPAIGNS screen doesn't show the f-16, yes that IS my concern here.
  5. I am on open beta, 2.5.6.60966, I have tried editing the cmp file, tried to use dcsupdater to clean, reinstall, manually delete everything and reinstall. I have tried repairing the sim, I ran out of ideas. Here it is in the list: No f-16 showing up: If yall can give me ideas, that'd be swell.
  6. I have open beta and I don't see it either...
  7. I get the following error when exiting the campaign and it won't save any progress. I run dcs as administrator. https://imgur.com/gKtP4C6 Any tips?
  8. For some reason I get the following error when launching with DCE: The following DLCs are not authorized and will be disabled: Dynamic Campaign Engine What did I miss in the installation process? Edit: Got it, wrong tech folder...
  9. Setup: F/A-18C case I recovery through the instant action mission on stennis cv74 Bug: when approaching from a shallow glideslope and a high AOA the aircraft is getting stuck in position at touchdown. Video: https://www.dropbox.com/s/dyleimyqx1egfgs/land.avi?dl=0
  10. I'm in love with this campaign. I have a minor bug to report though. Since 2.1 when I try to close the flight (quit) the script fails and throws an error instead of the " do you want to save the progress" cli thing. Anyone the wiser how to fix it? Well, this is what happens when you don't read. Straight from the readme.txt: "Open the file "DCS World 2 OpenAlpha\Scripts\MissionScripting.lua". Add two minus signs in front of line 16 "sanitizeModule('os')" and line 17 "sanitizeModule('io')". The code block from line 16 to line 20 should then look like this: --sanitizeModule('os') --sanitizeModule('io') sanitizeModule('lfs') require = nil loadlib = nil This modification has to be repeated after each update of DCS World 2 OpenAlpha, as each update reverts the file back to its original state. " Not gonna try it tonight, although I have a strong feeling this should do it.
  11. You win the internet this month. 10/10. Also, I will probably curse you a few times since this will prevent me from seeing sunshine in the coming weeks!
  12. Holy cow! Mr Magician, thank you so much! It works like a charm! Grüße aus Ungarn!
  13. Hi, I'm fairly new to DCS-BIOS and was wondering if I could export the CMSP to a 16x2 LCD. Later on I plan a full fidelity cockpit, right now I'm trying to decypher the arduino and the I2C+LCD combo. My setup is this: Arduino leonardo connected to a Blue IIC I2C TWI 1602 16x2 Serial LCD Module Display. If I add DcsBios::setup(); or DcsBios::loop(); to the relevant places it doesn't compile. "error: 'setup' is not a member of 'DcsBios'" and "error: 'loop' is not a member of 'DcsBios'" Now, if I remove these lines and start the comport listener I get LOADs of numbers scrolling on the LCD. (see attached) Here is the code: #include <Wire.h> #include "DcsBios.h" #include <LiquidCrystal_I2C.h> LiquidCrystal_I2C lcd(0x3F, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); /* paste code snippets from the reference documentation here */ void onCmsp1Change(char* newValue) { lcd.setCursor(0, 0); lcd.print(newValue); } DcsBios::StringBuffer<19> cmsp1Buffer(0x1000, onCmsp1Change); void onCmsp2Change(char* newValue) { lcd.setCursor(0, 0); lcd.print(newValue); } DcsBios::StringBuffer<19> cmsp2Buffer(0x1014, onCmsp2Change); void setup() { Serial.begin(112500); lcd.begin(16,2); lcd.clear(); } void loop() { while (Serial.available()) { lcd.print(Serial.read()); } } What am I not doing right? I have the wires in 5+, GND, 2(sda), 3(scl). I also tried to use the scl, sda pins on the arduino, then it just displayed jibberish on the lcd. Thank you in advance!
×
×
  • Create New...