Jump to content

Skynet99

Members
  • Posts

    51
  • Joined

  • Last visited

Everything posted by Skynet99

  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!
  14. That's the way it has to be, then so be it. Thanks for the tip! (BTW I figured if I don't move my wingmen won't come out of their bunkers as well, so I wait for the humvee to pass and kutaisi to clear me for takeoff, and then taxi)
  15. Hey Ranger79, loved the first mission, really nice. Then I loaded up the second one... First off: nr 3 gets rear ended by a humvee, then number two doesnt move out of the way when kutaisi finally gives permission to continue taxi. I waited for 30 minutes, they don't move. Then I quit the mission thinking I'll just restart, campaign threw me back to the first mission, I quit that one too, to try again and now it says campaign failed. Is this something you need to fix or ED?
  16. How? I see the campaign on the website, but no buy button... Edit: I want to buy it but can't. Anyone got the same issue? Or is it not released for eur yet?
  17. Attached the miz. The -blue05 to -blue10 plane triggers are the ones. Those work in SP but not in MP. AIR_BASE_0709.miz
  18. Yep, all the units are set to client. There is only one trigger in the mission to determine if the client is outside the zone, then it should action the deactivate. Should I use a flag set to true then trigger the deactivation in another step?
  19. Hi, could not find accurate info about the following problem I have: There is a trigger zone in a multiplayer map which should deactivate the client (user controlled) if he/she leaves the zone. However it only works if I launch the mission in single player (local). The trigger works, as there is a message as well when I leave the zone, yet I am not deactivated. Any thoughts?
  20. Is Bulls always wp5 in all missions? I read the briefing and I don't remember this being articulated in there.
  21. I don't really know if it is a bug or intentional: Mission 5: WP 5 is at Bulls, and WP 7-8 is leading me through container resulting in a mission failure.
×
×
  • Create New...