Jump to content

Andy2828

Members
  • Posts

    12
  • Joined

  • Last visited

About Andy2828

  • Birthday 09/16/1963

Personal Information

  • Flight Simulators
    DCS, MSFS
  • Location
    United States
  • Interests
    Hunting, Fishing
  1. Does the ADF work on needle 2 yet? Im not sure if Im doing something wrong...cant find much info on it.
  2. Can I get some input on how everyone adjusts how the AI fighters react when they spawn in. I'm trying to build an A2A arena where you can spawn in and fight a PVP opponent or chose to fight an AI fighter of your choice from the F10 menu. I've finally got it down to where it works correctly but the AI fighters are very unpredictable. Sometimes the work correctly and fly to the center WP and Intercept with you and fight correctly. Other times they spawn in and fly around randomly and other times they turn and fly away and land. All the different AI's are setup exactly the same...they are set to Intercept, to fly to a center WP and they are set to weapons free. I'm not sure what else I can do to make them come in and fight every time. Ideas? Thanks.
  3. The amount of wounded is limited....it turned away others saying I was full but I cant tell how many I picked up.
  4. Should there be a menu item to turn on the blood counter an other things?
  5. Thanks...I have it working now. Id still like to send you my last version of my mission to look at it if that would be ok?
  6. Thanks for the excellent script. Im having a problem when I add it into my training map. Do i need to add something to get the convoy guys to respawn as wounded? So far all Im getting is dead troops....no wounded to medevac...no messages to my Huey(which is expected considering they are dead). What am I missing. The demo version works fine for me so im missing something somewhere. I added the Farp as BlueMash #1 and the medevac as MEDEVAC#1 (copy and Paste). Do i need to do something with the convoy troops to make them respawn that Im missing? Thanks for your help Edit: Ive read through all 38 pages of posts....I had the wounded invisible, Ive added and changed names, Made them immortal/not immortal. My issue is that the script is not running at all, im sure. problem is that this script is part of a much bigger mission with everything I can think of in it...from a PVP/PVE arena to attacking ships with JSOWS. I feel like my whole attempt at mission making is amateurish because I dont have a background in any type of coding but Im trying. Id like to post the whole mission here for someone..anyone to look at and tell me where its wrong as far as this script. Maybe someone could look the whole thing over and give me feedback? You guys are really good at this stuff and Im just a newb so I feel pretty lost. Any help is appreciated. TAW Battleground 2.5 .miz
  7. So if I want to use it for multiple groups can I just put local Group_ID = Group.getByName("BVR_Blue_F18_1"):getID() in for each group then use Group I'd for the rest of the script? local Group_ID = Group.getByName("BVR_Blue_F18_1"):getID() local Group_ID = Group.getByName("BVR_Blue_F18_2"):getID() local Group_ID = Group.getByName("BVR_Blue_F18_3"):getID() Like that?
  8. Thank you Hardcard....ill try it out. I appreciate your response.
  9. Ok, so I have 2 menu scripts....one that is for a coalition and one that is for individual groups. Coalition menu's work perfectly all the way through. Change it to the Group menu and nothing comes up at all. What am I missing? Both scripts are posted below. Thanks for any feedback! Coaltion: (this works) local function setFlags(v) trigger.action.setUserFlag(v.flag, v.val) end local spawn1 = missionCommands.addSubMenuForCoalition(coalition.side.BLUE,"Spawn PVE") local spawn2 = missionCommands.addSubMenuForCoalition(coalition.side.BLUE,"Mig-29s",spawn1) local spawn3 = missionCommands.addSubMenuForCoalition(coalition.side.BLUE,"SU-33s",spawn1) local spawn4 = missionCommands.addSubMenuForCoalition(coalition.side.BLUE,"F-14s",spawn1) local spawn5 = missionCommands.addSubMenuForCoalition(coalition.side.BLUE,"F-18s",spawn1) local spawn6 = missionCommands.addSubMenuForCoalition(coalition.side.BLUE,"F-15s",spawn1) local spawn7 = missionCommands.addSubMenuForCoalition(coalition.side.BLUE,"J-11As",spawn1) local spawn8 = missionCommands.addSubMenuForCoalition(coalition.side.BLUE,"F-5Es",spawn1) local spawn9 = missionCommands.addSubMenuForCoalition(coalition.side.BLUE,"FW-190s",spawn1) local spawn10 = missionCommands.addSubMenuForCoalition(coalition.side.BLUE,"F-16Cs",spawn1) local spawn11 = missionCommands.addSubMenuForCoalition(coalition.side.BLUE,"F-4Es",spawn1) missionCommands.addCommandForCoalition(coalition.side.BLUE, "Mig 29 1 Ship", spawn2, setFlags, {flag=123, val=true}) missionCommands.addCommandForCoalition(coalition.side.BLUE, "Mig 29 2 Ship", spawn2, setFlags, {flag=184, val=true}) missionCommands.addCommandForCoalition(coalition.side.BLUE, "Su-33 1 Ship", spawn3, setFlags, {flag=124, val=true}) missionCommands.addCommandForCoalition(coalition.side.BLUE, "Su-33 2 Ship", spawn3, setFlags, {flag=185, val=true}) missionCommands.addCommandForCoalition(coalition.side.BLUE, "F-14 1 Ship", spawn4, setFlags, {flag=125, val=true}) missionCommands.addCommandForCoalition(coalition.side.BLUE, "F-14 2 Ship", spawn4, setFlags, {flag=182, val=true}) missionCommands.addCommandForCoalition(coalition.side.BLUE, "F-18 1 Ship", spawn5, setFlags, {flag=126, val=true}) missionCommands.addCommandForCoalition(coalition.side.BLUE, "F-18 2 Ship", spawn5, setFlags, {flag=183, val=true}) missionCommands.addCommandForCoalition(coalition.side.BLUE, "F-15 1 Ship", spawn6, setFlags, {flag=127, val=true}) missionCommands.addCommandForCoalition(coalition.side.BLUE, "F-15 2 Ship", spawn6, setFlags, {flag=186, val=true}) missionCommands.addCommandForCoalition(coalition.side.BLUE, "J=11A 1 Ship", spawn7, setFlags, {flag=130, val=true}) missionCommands.addCommandForCoalition(coalition.side.BLUE, "J=11A 2 Ship", spawn7, setFlags, {flag=190, val=true}) missionCommands.addCommandForCoalition(coalition.side.BLUE, "F-5E 1 Ship", spawn8, setFlags, {flag=131, val=true}) missionCommands.addCommandForCoalition(coalition.side.BLUE, "F-5E 2 Ship", spawn8, setFlags, {flag=189, val=true}) missionCommands.addCommandForCoalition(coalition.side.BLUE, "FW-190 1 Ship", spawn9, setFlags, {flag=132, val=true}) missionCommands.addCommandForCoalition(coalition.side.BLUE, "FW-190 2 Ship", spawn9, setFlags, {flag=191, val=true}) missionCommands.addCommandForCoalition(coalition.side.BLUE, "F-16C 1 Ship", spawn10, setFlags, {flag=133, val=true}) missionCommands.addCommandForCoalition(coalition.side.BLUE, "F-16C 2 Ship", spawn10, setFlags, {flag=187, val=true}) missionCommands.addCommandForCoalition(coalition.side.BLUE, "F-4E 1 Ship", spawn11, setFlags, {flag=146, val=true}) missionCommands.addCommandForCoalition(coalition.side.BLUE, "F-4E 2 Ship", spawn11, setFlags, {flag=188, val=true}) Group: (this doesnt) local function setFlags(v) trigger.action.setUserFlag(v.flag, v.val) end local spawn1 = missionCommands.addSubMenuForGroup(BVR_Blue_F18_1,"Spawn PVE") local spawn2 = missionCommands.addSubMenuForGroup(BVR_Blue_F18_1,"Mig-29s",spawn1) local spawn3 = missionCommands.addSubMenuForGroup(BVR_Blue_F18_1,"SU-33s",spawn1) local spawn4 = missionCommands.addSubMenuForGroup(BVR_Blue_F18_1,"F-14s",spawn1) local spawn5 = missionCommands.addSubMenuForGroup(BVR_Blue_F18_1,"F-18s",spawn1) local spawn6 = missionCommands.addSubMenuForGroup(BVR_Blue_F18_1,"F-15s",spawn1) local spawn7 = missionCommands.addSubMenuForGroup(BVR_Blue_F18_1,"J-11As",spawn1) local spawn8 = missionCommands.addSubMenuForGroup(BVR_Blue_F18_1,"F-5Es",spawn1) local spawn9 = missionCommands.addSubMenuForGroup(BVR_Blue_F18_1,"FW-190s",spawn1) local spawn10 = missionCommands.addSubMenuForGroup(BVR_Blue_F18_1,"F-16Cs",spawn1) local spawn11 = missionCommands.addSubMenuForGroup(BVR_Blue_F18_1,"F-4Es",spawn1) missionCommands.addCommandForGroup(BVR_Blue_F18_1, "Mig 29 1 Ship", spawn2, setFlags, {flag=123, val=true}) missionCommands.addCommandForGroup(BVR_Blue_F18_1, "Mig 29 2 Ship", spawn2, setFlags, {flag=184, val=true}) missionCommands.addCommandForGroup(BVR_Blue_F18_1, "Su-33 1 Ship", spawn3, setFlags, {flag=124, val=true}) missionCommands.addCommandForGroup(BVR_Blue_F18_1, "Su-33 2 Ship", spawn3, setFlags, {flag=185, val=true}) missionCommands.addCommandForGroup(BVR_Blue_F18_1, "F-14 1 Ship", spawn4, setFlags, {flag=125, val=true}) missionCommands.addCommandForGroup(BVR_Blue_F18_1, "F-14 2 Ship", spawn4, setFlags, {flag=182, val=true}) missionCommands.addCommandForGroup(BVR_Blue_F18_1, "F-18 1 Ship", spawn5, setFlags, {flag=126, val=true}) missionCommands.addCommandForGroup(BVR_Blue_F18_1, "F-18 2 Ship", spawn5, setFlags, {flag=183, val=true}) missionCommands.addCommandForGroup(BVR_Blue_F18_1, "F-15 1 Ship", spawn6, setFlags, {flag=127, val=true}) missionCommands.addCommandForGroup(BVR_Blue_F18_1, "F-15 2 Ship", spawn6, setFlags, {flag=186, val=true}) missionCommands.addCommandForGroup(BVR_Blue_F18_1, "J=11A 1 Ship", spawn7, setFlags, {flag=130, val=true}) missionCommands.addCommandForGroup(BVR_Blue_F18_1, "J=11A 2 Ship", spawn7, setFlags, {flag=190, val=true}) missionCommands.addCommandForGroup(BVR_Blue_F18_1, "F-5E 1 Ship", spawn8, setFlags, {flag=131, val=true}) missionCommands.addCommandForGroup(BVR_Blue_F18_1, "F-5E 2 Ship", spawn8, setFlags, {flag=189, val=true}) missionCommands.addCommandForGroup(BVR_Blue_F18_1, "FW-190 1 Ship", spawn9, setFlags, {flag=132, val=true}) missionCommands.addCommandForGroup(BVR_Blue_F18_1, "FW-190 2 Ship", spawn9, setFlags, {flag=191, val=true}) missionCommands.addCommandForGroup(BVR_Blue_F18_1, "F-16C 1 Ship", spawn10, setFlags, {flag=133, val=true}) missionCommands.addCommandForGroup(BVR_Blue_F18_1, "F-16C 2 Ship", spawn10, setFlags, {flag=187, val=true}) missionCommands.addCommandForGroup(BVR_Blue_F18_1, "F-4E 1 Ship", spawn11, setFlags, {flag=146, val=true}) missionCommands.addCommandForGroup(BVR_Blue_F18_1, "F-4E 2 Ship", spawn11, setFlags, {flag=188, val=true})
  10. Im fairly new to scripting and Im sure this question is answered somewhere but i cant find it. I have a training mission now that includes a bumch of different elelments and Id like to add this to the mission. How can I get it to work within an already existng mission? Im sorry if its an ignorant question but I am basically, ignorant to the whole idea. Once I get a clue I'll be able to add scripts in other areas as well. Id like to use this in conjunction with the LSO script from Alereax....
  11. I cant get the debugger to connect. It gets to 70% in Eclipse but wont connect and debug the mission. Im not sure where Im missing out. Ill be happy to provide whatever info is needed to solve this. Its very frustrating. This is what I get.... <terminated, exit value: 1>C:\Users\andyp\Documents\jre1.8.0_201\bin\java (Aug 13, 2019, 3:35:22 AM) Along with this in the console: Debugger v1.4.2 Debugger: Trying to connect to 127.0.0.1:10000 ... Debugger: Connection succeed. Exception in thread "main" com.naef.jnlua.LuaRuntimeException: ...in32.win32.x86_64\workspace\DCS MISSIONS\Border test.lua:9: attempt to index global 'SET_GROUP' (a nil value) at com.naef.jnlua.LuaState.lua_pcall(Native Method) at com.naef.jnlua.LuaState.call(LuaState.java:585) at org.eclipse.ldt.support.lua52.internal.interpreter.JNLua52Launcher.run(JNLua52Launcher.java:128) at org.eclipse.ldt.support.lua52.internal.interpreter.JNLua52DebugLauncher.main(JNLua52DebugLauncher.java:24)
×
×
  • Create New...