Darren9 Posted February 18, 2015 Share Posted February 18, 2015 Here's something I made with kOS and had some fun testing it with BDArmory. Yes it's a RADAR screen! It still has a glitch that the script breaks when you hit something, but up until then it works like a charm.Y axis distanceX axis degree offset from nose of the radarNumbers on contacts are HEADING (taken out because it's your heading not the targets heading)ALTITUDE (ft)SPEED (m/s) Amazing, it also seems possible to detect if each non-player craft has a weapon manager, which team it's set to and what weapons it carries. It could be used to set a threat level and prioritize targets? Link to comment Share on other sites More sharing options...
VentZer0 Posted February 18, 2015 Share Posted February 18, 2015 Amazing, it also seems possible to detect if each non-player craft has a weapon manager, which team it's set to and what weapons it carries. It could be used to set a threat level and prioritize targets?Yep, I believe that is entirely possible. I cant determine if you have targetted something or something is targetting you, so no RWR or pursuit-tracking modes yet. They dont have that ability in kOS yet.I am currently working on an autopilot that will pilot my test drones and later they will even evade missiles and engage you autonomously. Though dogfighting would be impossible I think. Link to comment Share on other sites More sharing options...
Darren9 Posted February 18, 2015 Share Posted February 18, 2015 Yep, I believe that is entirely possible. I cant determine if you have targetted something or something is targetting you, so no RWR or pursuit-tracking modes yet. They dont have that ability in kOS yet.I am currently working on an autopilot that will pilot my test drones and later they will even evade missiles and engage you autonomously. Though dogfighting would be impossible I think.The other ships don't have targets, it's all internal inside BD, we'd need to petition BahamotoD to have the weapon manager send it's target to the GUI. You can set a target with kOS but only for the ship you're controlling, a script can't set a target on a drone - the last time I tried it only the player controlled ship can have a KSP target. You can also (I think) detect if your ship has a target, "IF TARGET:NAME = VESSEL:NAME" when you go through the vessel list seems like it should work? Link to comment Share on other sites More sharing options...
VentZer0 Posted February 18, 2015 Share Posted February 18, 2015 I'm not talking about the BD target aquisition, I mean the normal targets you can assign yourself and BD tracks those targets if you fire a missile. I have the code to arm select and fire missiles, but if I cant select a target for a vessel im not controlling then the whole thing doesn't work. And I quite frankly do not like the guard mode at all, it is not really smart. Ah ok so I can check if I have a target, nice ok pursuit radar mode comes next :B Damn, I just checked it, I cant check if a variable exists or not, so I either have to set a target before I can check it or the program encounters an error. I hope they fix this issue, since its not good to have no means of telling if a variable is set or not. Link to comment Share on other sites More sharing options...
King_komodo93 Posted February 18, 2015 Share Posted February 18, 2015 Here's something I made with kOS and had some fun testing it with BDArmory. Yes it's a RADAR screen! It still has a glitch that the script breaks when you hit something, but up until then it works like a charm.Y axis distanceX axis degree offset from nose of the radarNumbers on contacts are HEADING (taken out because it's your heading not the targets heading)ALTITUDE (ft)SPEED (m/s) Hmmm very interesting (and nicely done) but 1 question, is there a way to differentiate between air a ground targets? Also perhaps an "option" to set targets manually off of it's tracks would be a nice idea though I think that would be a separate thing. Link to comment Share on other sites More sharing options...
VentZer0 Posted February 18, 2015 Share Posted February 18, 2015 Hmmm very interesting (and nicely done) but 1 question, is there a way to differentiate between air a ground targets? Also perhaps an "option" to set targets manually off of it's tracks would be a nice idea though I think that would be a separate thing.I think yes. I can check if the craft is on the ground or below a certain altitude ( need to find outif I can check altitude for above ground level instead of above sea level).Please explain your second question, I do not understand what you mean. Link to comment Share on other sites More sharing options...
King_komodo93 Posted February 19, 2015 Share Posted February 19, 2015 I think yes. I can check if the craft is on the ground or below a certain altitude ( need to find outif I can check altitude for above ground level instead of above sea level).Please explain your second question, I do not understand what you mean.Basically it takes the "IFF" from BD's weapon manager and give you a "priority" list of targets to pick from instead of the current point and hope you're targeting what you want or clicking about 6 times to get the target you want. Though it was just a random thought off the top of my head and I was a little tired this morning when I typed that. Link to comment Share on other sites More sharing options...
The Space Man Posted February 19, 2015 Share Posted February 19, 2015 BahamutoD, would it be possible to add the option to toggle between surface to air, air to surface and surface to surface guidance modes for all the missiles? Link to comment Share on other sites More sharing options...
VentZer0 Posted February 19, 2015 Share Posted February 19, 2015 Basically it takes the "IFF" from BD's weapon manager and give you a "priority" list of targets to pick from instead of the current point and hope you're targeting what you want or clicking about 6 times to get the target you want. Though it was just a random thought off the top of my head and I was a little tired this morning when I typed that.It would also be possible to differenciate between friend and foe on the radar screen, would a bit more code intensive but it would work. And I can override the weaponmanagers targetting. Link to comment Share on other sites More sharing options...
metalconscript Posted February 20, 2015 Share Posted February 20, 2015 thanks i'll look it up. I understand the linking issue. Link to comment Share on other sites More sharing options...
sumghai Posted February 20, 2015 Share Posted February 20, 2015 BahamutoD, would it be possible to add the option to toggle between surface to air, air to surface and surface to surface guidance modes for all the missiles?This was discussed previously, and the conclusion was that this wouldn't make any sense.Each type of missile have different dimensions / fin designs because they are optimized for one specific role - in other words, fins that work very well for AAMs would work poorly for SSMs, and vice versa. Link to comment Share on other sites More sharing options...
The Space Man Posted February 20, 2015 Share Posted February 20, 2015 (edited) This was discussed previously, and the conclusion was that this wouldn't make any sense.Each type of missile have different dimensions / fin designs because they are optimized for one specific role - in other words, fins that work very well for AAMs would work poorly for SSMs, and vice versa.I can understand why it wouldn't be realistic IRL but if it was totally optional then i would definitely make use of it. I'm more of a tank and ground vehicle user but none of the missiles seem to work as ground to ground missiles, so being able switch modes would be great for people like me. Edited February 20, 2015 by The Space Man Link to comment Share on other sites More sharing options...
sumghai Posted February 20, 2015 Share Posted February 20, 2015 I can understand why it wouldn't be realistic IRL but if it was totally optional then i would definitely make use of it. I'm more of a tank and ground vehicle user but none of the missiles seem to work as ground to ground missiles, so being able switch modes would be great for people like me.Since you're a SSM user, perhaps petition BahamutoD* to add an SSM-only missile in the next update.*I'm aware that he's not as active on the KSP Community as he was in the past, but as he is the original author asking him is still the best bet. Link to comment Share on other sites More sharing options...
Aghanim Posted February 21, 2015 Share Posted February 21, 2015 Now how can I make my joystick trigger button to work with vulcan cannon? I've bound the trigger button to weapon manager action group but it didn't fire. The description says only bombs and missile, and aiming with mouse make sense for turrets, but for static guns there should be a option to fire through weapon manager Link to comment Share on other sites More sharing options...
King_komodo93 Posted February 21, 2015 Share Posted February 21, 2015 Now how can I make my joystick trigger button to work with vulcan cannon? I've bound the trigger button to weapon manager action group but it didn't fire. The description says only bombs and missile, and aiming with mouse make sense for turrets, but for static guns there should be a option to fire through weapon managerThe fire button is the same for turrets and static guns and to set the fire button to the joystick I believe you change it from that to "joystick button 0" though don't quote me on this. Link to comment Share on other sites More sharing options...
tetryds Posted February 21, 2015 Share Posted February 21, 2015 (edited) The fire button is the same for turrets and static guns and to set the fire button to the joystick I believe you change it from that to "joystick button 0" though don't quote me on this.I quote you on that, because it's right.In my case it's: joystick button 0 (It was working with JoystickButton0 before but now it's not).I am using a Logitech Extreme 3d Pro. Edited February 22, 2015 by tetryds Button changed, what? Link to comment Share on other sites More sharing options...
Aghanim Posted February 22, 2015 Share Posted February 22, 2015 How do I change the fire button? Link to comment Share on other sites More sharing options...
King_komodo93 Posted February 22, 2015 Share Posted February 22, 2015 How do I change the fire button?In the .cfg file labeled settings. Link to comment Share on other sites More sharing options...
Aghanim Posted February 22, 2015 Share Posted February 22, 2015 (edited) I'm using Logitech Attack3 joystick, and keybind option menu shows the trigger button as JoystickButton0. Then I go to BDArmory settings.cfg and change FireKey from mouse 0 to JoystickButton0 . But now I cannot fire my guns at allEdit: Using joystick button 0 works Edited February 22, 2015 by Aghanim Link to comment Share on other sites More sharing options...
Aerolfos Posted February 22, 2015 Share Posted February 22, 2015 I quote you on that, because it's right.In my case it's: JoystickButton0I am using a Logitech Extreme 3d Pro.What about gamepads? Using a Saitek P880, joystickbutton11 and joystick button 11 do not work (This is what KSP in settings menu says when I rebind a key to that, it's pushing down on the right stick. Windows also calls it Joystick Button 11 when looking at the menu thing) Link to comment Share on other sites More sharing options...
tetryds Posted February 22, 2015 Share Posted February 22, 2015 What about gamepads? Using a Saitek P880, joystickbutton11 and joystick button 11 do not work (This is what KSP in settings menu says when I rebind a key to that, it's pushing down on the right stick. Windows also calls it Joystick Button 11 when looking at the menu thing)There is something very weird, JoystickButton0 was working for me, then it suddenly stoped working.I changed it to joystick button 0 and it's now working again, let me fix my post up there.What I found about the Saitek P880 seems like you have to put button(0) there to fire with the triangle button.If anything, just use some joystick mapper program and you would be able to fire with any key you want. Link to comment Share on other sites More sharing options...
Mangey Carl Posted February 23, 2015 Share Posted February 23, 2015 Does this work with Update .90? I've been having glitches on my game. I'm not sure if I downloaded the mod correctly. Link to comment Share on other sites More sharing options...
PSOliver Posted February 23, 2015 Share Posted February 23, 2015 Yes it works on Beta Then Ever (Version .90) I love it I suggest you get it and also it's a pretty small file. Link to comment Share on other sites More sharing options...
King_komodo93 Posted February 23, 2015 Share Posted February 23, 2015 Does this work with Update .90? I've been having glitches on my game. I'm not sure if I downloaded the mod correctly.Yes and no. while you may have downloaded incorrectly could you describe what you're seeing so we can either tell to look for the answer 3 pages back in exasperation or if we could help you, all joking aside if it's missing Bombs there is a space in the .cfg files for them (part_name .cfg) and once you remove it you should be fine. Link to comment Share on other sites More sharing options...
Aghanim Posted February 23, 2015 Share Posted February 23, 2015 Now is it possible for me to use my joystick middle button to lock to a target and shoot it with a missile? Link to comment Share on other sites More sharing options...
Recommended Posts