

Wrench
Members-
Posts
800 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Wrench
-
Hoggit Wiki style respawn script no longer functional
Wrench replied to Wrench's topic in Mission Editor
Okay, so I had to rework the script a bit to handle both cases, but it works once again. function Wrench.respawn(group, drone, zones, msg) if Group.getByName(group) then local spawnGroup = '' Wrench_Log:msg('Wrench.respawn called for '..group) local grp = Group.getByName(group) local units = grp:getUnits() local activebool = false for i=1,#units do if units[i]:isActive() and units[i]:isExist() then activebool = units[i]:isActive() end end if not activebool then Wrench_Log:msg(group .. ' not found, respawning now.') if msg then trigger.action.outText('Respawning ' .. group, 10 , false) end if zones then spawnGroup = mist.respawnInZone(group, zones, true, 0) local route = mist.getGroupRoute(group , true) route[1] = nil for i=2,#route do route[i-1] = route[i] end mist.scheduleFunction(mist.goRoute ,{spawnGroup["groupId"] ,route} ,timer.getTime() + 1 , 10 ,6 ) else spawnGroup = mist.respawnGroup(group, true) end if drone == true then local con = Group.getByName(group):getController() con:setOption(AI.Option.Air.id.PROHIBIT_AA, true) end grp:destroy() return spawnGroup else Wrench_Log:msg(group .. ' was found to be alive') end else Wrench_Log:msg(group .. ' not found, respawning now.') if msg then trigger.action.outText('Respawning ' .. group, 10 , false) end if zones then spawnGroup = mist.respawnInZone(group, zones, true, 0) local route = mist.getGroupRoute(group , true) route[1] = nil for i=2,#route do route[i-1] = route[i] end mist.scheduleFunction(mist.goRoute ,{spawnGroup["groupId"] ,route} ,timer.getTime() + 1 , 10 ,6 ) else spawnGroup = mist.respawnGroup(group, true) end if drone == true then local con = Group.getByName(group):getController() con:setOption(AI.Option.Air.id.PROHIBIT_AA, true) end return spawnGroup end end Given the extra complexity, I should probably break it into two functions, but I just don't care enough. :music_whistling: -
Hoggit Wiki style respawn script no longer functional
Wrench replied to Wrench's topic in Mission Editor
It does. It returns the orientation and position tables for where the unit *will* spawn. -
Is there a script out there to auto-kick DCS clients who aren't connected to the SRS server?
-
Hoggit Wiki style respawn script no longer functional
Wrench replied to Wrench's topic in Mission Editor
So for groups that die, if not Group.getByName(group) then will work, but late activated groups return the class for that one as well. Group.getByName(group):isExist() will return true. #Group.getByName(group):getUnits() will return the number of units assigned to the group. grpunits = Group.getByName(group):getUnits() for i=1,#grpunits do bool = Unit.isExist(grpunits[i]) Wrench_Log:msg(bool) end will return true for all unspawned units in an unspawned group. if Group.getByName(group) then local grp = Group.getByName(group) local grpunit = grp:getUnit(1) local pos1 = grpunit:getPoint() Wrench_Log:msg(pos1) end will return the unit's initial position from the ME. So the only way I can think of is to spawn all groups at mission start, and then kill any you'd have otherwise set to late activation. -
Hoggit Wiki style respawn script no longer functional
Wrench replied to Wrench's topic in Mission Editor
Tried that, returns mission editor group size for unactivated groups now. I'm not sure if it'll be the same if they are killed. I could simply have the group spawn, then explode at mission start, then selectively respawn them if needed, but that's pretty clunky. If I wanted a ground start group I'd have to teleport them first to avoid damaging the airfield and nearby aircraft as well.l, and that's assuming the conditionals will work on a group which has been killed. I'll give it a shot tonight. -
You'll have to assign the advanced waypoint action FAC Engage Group, and set the mark type to IR Pointer. Note that you have to do this for each group you want it to mark. I'm actually working on a script to do this for us, but I've been hitting brick walls.
-
I've used the conditional from the Hoggit wiki for many years to control a respawn script, here: if not Group.getByName('groupName') then however, that has recently been changed so that a group set to late activation, and I believe even a group that has been destroyed, are no longer evaluated as false with this condition. I think that has been changed to determine if a group exists in the mission, as opposed to how it used to work where it determined if the group is currently alive. I've also tried Group.isExist with the same results. Does anyone know a conditional that is still functional?
-
Wishlist: fix the default pilot position like the DCS F-16 Viper
Wrench replied to OttoPus's topic in DCS: A-10C Warthog
For the sake of having in in this thread, the procedure to save head position is as follows: 1. Bind control UI | 'VR Center' to something you can reach without moving your head (I use the ENTER/RETURN key on my keyboard. 2. Ensure 'User Snap View Saving' is enabled in main settings. 3. Ensure head position is centered with the above key. a. Ensure your head stays centered for this whole process. 4. Adjust head position with the keyboard. a. Do not press any 'snap view' keys (RAlt + Numpad #'s) b. Keyboard combinations for translation are RCtrl RShft + Numpad #'s 5. Center view again, just to be sure. 6. Press RAlt+Numpad 0 to save the current view as default. a. remember that it is saving the 'center' of the VR world space, not where you're head actually is at that moment. i.e. if you save the view, then lean to the right in VR (or trackir for that matter) without touching the camera control commands, then save again, nothing will change. I did this for all the modules I own when I upgraded to the O+, and it took about 5 minutes. It's worth the time to open the mission editor and create a mission file with all the aircraft you own set to CLIENT | RAMPSTART, so you can quickly jump from one to the next without a long loading time. -
A simpler way would be to set their missile attack range to the minimum setting. This is done in advance waypoint options > set option > MISSILE ATTACK RANGE IIRC.
-
Can I get AI to fly a set of waypoints continuoously??
Wrench replied to tmansteve's topic in Mission Editor
It's also worth mentioning that aircraft will automatically refuel from tankers and return to their route if there is a tanker nearby. I'm not sure how close it needs to be though. -
Radar elevation always full up 99/99?
Wrench replied to Stinger's topic in Controller Questions and Bugs
PSA there, the axis is set up as a push & hold to move style, rather than an absolute axis. So I bound my antenna elevation to a hat and used my available axis (TMWH) as the MAN RNG knob. -
Look at the controls indicator (RCTRL+ENTER) there's a notch for where the AB detent should be.
-
I saw that last night. I assume it's just a basic mode for SRS to work with while the viper is in EA, and Ciribob hasn't had time to update SRS yet (I don't think he was given early-early access) From what I can tell it does read the freqs from the in-sim radio properly though, so no worries.
-
Hey SUNSTAG, Is there any chance you could make an edm of the x4 mat that's either 2 dimensional, or very (read: impossibly) thin? This could solve a number of problems I'm having with it. I'd have done it myself, but the blender plugin doesn't seem to work anymore and I don't have 3dmax. Thanks!
-
Hey scriptors, I've been trying to get JTACs running via script, and I'm having some issues. I've can get task FAC working with pushTask, but can't se to get FAC_engageGroup to work. I've tried adding it to a route before assigning it to the group like I did with the tanker section of my carrier script, but to no avail. If you're curious, the reason I want to do this is to have control over the JTAC, but also have it dynamically locate targets. The trouble is, from the ME, task FAC will dynamically allocate targets but the mark type etc. Cannot be specified, and with FAC engage group the mark type etc can be specified, but will not dynamically allocate targets. So I'd like to write a script that will periodically check the JTAC's detected targets, add those to a table,(done) and them add them to the list of tasks, each as a FAC enage group/ FAC attack group. I hope that's reasonably clear. Wrench
-
Check the thread in my signature, I wrote a script for this.
-
I've seen (and used) the navigation target points you can add in the mission editor for Fix point, Initial Point, etc. I saw that you can add Datalink points (Datalink Waypoint 1 Through 3 DLWP1, DLWP2 and DLWP3) in the manual, and this got me thinking: Is it possible to add them mid-mission, either through something in the mission editor I've not seen or through script? I'd like to simulate an actual datalink target being sent in real-time.
-
I assume the Tomcat has a HUD only view. (LCTRL + F1 IIRC) Which does what it says on the tin, it's a camera angle of what you'd see if the cockpit wasn't there, with the HUD projected on top. So there are a few extra steps, but you could get that video with the following steps: -Fly mission as normal (record via OBS, fraps, etc if desired) -Save the Track file -Run the track file back, go to Hud only view and record again. Alternately, it may also be possible to edit the track file to be in the HUD only view, and then use the AVI record function DCS offers, which I see was recently updated.
-
Hosting closed MP session
Wrench replied to Wrench's topic in Spitfire LF Mk.IX The Big Show Campaign
The missions from the campaign are write protected, can't edit them it seems. -
That file is a collection of scripts I wrote to handle some other tasks, like respawning/controlling the drone fighters in the demo mission. It's not needed for the carrier script to function.
-
Anything but late for dinner.
-
Hey all. I'm in a small virtual squadron, and I wanted to know if it's possible to host a multiplayer session with the missions from the campaign if all the members own the campaign. Obviously, you can't just host missions that not everybody has paid for, but I'm wondering if there's a 'legal' workaround for this given that it's a small group of guys who do.
-
I've written a script to do just this. Have a look at the link in my signature.
-
Reactivation Requests After DCS World Updates
Wrench replied to sgilewicz's topic in DCS: A-10C Warthog
I get the same thing, doesn't seem to affect anything. What's really annoying is if you're typing a message in discord or something when the message pops up and you type over the serial number. -
I see, thanks Wags. I guess I'll have to get used to having the SA page on the right :p