Search found 210 matches

by ckfinite
Wed Feb 13, 2019 4:28 pm
Forum: Command: Modern Operations series
Topic: One more question befiore I buy
Replies: 10
Views: 313

RE: One more question befiore I buy

It means that the video card needs 16MB of VRAM - any modern desktop computer (including those that use integrated graphics) will be able to fulfill this requirement.
by ckfinite
Sun Jan 21, 2018 8:59 pm
Forum: Lua Legion
Topic: SAMs Evading HARMS LUA
Replies: 2
Views: 309

RE: SAMs Evading HARMS LUA

<r> That's one of the scripts that I wrote!<br/>
<br/>
The general idea of this script is to track all targets to look for ARMyness (e.g. going straight towards the SAM at high velocity).<br/>
<br/>
To accomplish this, the detected missile event is fired whenever a missile target is identified ...
by ckfinite
Sat Feb 25, 2017 4:39 am
Forum: Mods and Scenarios
Topic: Lua library for arcs
Replies: 1
Views: 145

Lua library for arcs

<r> I'm working on a scenario, and wrote this little library for making and modifying arcs in a more convenient way than manually writing tables, and thought that it could be useful to other people here. The library can be found <URL url="https://raw.githubusercontent.com/BenChung/LuaUtils/master ...
by ckfinite
Mon Sep 26, 2016 7:08 pm
Forum: Mods and Scenarios
Topic: Lua assigning Non-unique names to mission
Replies: 8
Views: 363

RE: Lua assigning Non-unique names to mission

Sorry about the broken script, here's a fixed version

for _,v in pairs(VP_GetSide({name="Cuba"}).units) do
local unit = ScenEdit_GetUnit({guid=v.objectid})
if unit.name == "Bandito" then
unit.mission = "East Strike"
end
end
by ckfinite
Sun Sep 25, 2016 2:36 pm
Forum: Mods and Scenarios
Topic: Lua assigning Non-unique names to mission
Replies: 8
Views: 363

RE: Lua assigning Non-unique names to mission

<t> To deal with units with the same name, you have three options:<br/>
<br/>
* You can rename units as you examine them, then rename them back when you're done<br/>
* You can use GUIDs exclusively to select units<br/>
* You can use VP_GetSide to list all units of the side, then select from that ...
by ckfinite
Thu Sep 15, 2016 3:16 am
Forum: Mods and Scenarios
Topic: Lua Openstreetmap Pathfinding Script
Replies: 0
Views: 167

Lua Openstreetmap Pathfinding Script

<r> This is still rather experimental (for reasons that will become clear), but here's a demo of a Openstreetmap pathfinding implementation in Lua. In the demo scene, you are a Serbian man named Miroslav, who is trying to get home after all of his road maps blew out the window - but luckily, he had ...
by ckfinite
Mon Sep 05, 2016 1:24 pm
Forum: Mods and Scenarios
Topic: SAM Reactive EMCON Lua Script
Replies: 6
Views: 720

RE: SAM Reactive EMCON Lua Script

<t> It doesn't know - I address this in the second bullet point. It makes an educated guess based on the missile being aimed directly(ish) at a SAM site (determined by looking at the history of the contact), combined with a time-to-go estimate. It also computes target speed, which can also be taken ...
by ckfinite
Mon Sep 05, 2016 11:50 am
Forum: Mods and Scenarios
Topic: SAM Reactive EMCON Lua Script
Replies: 6
Views: 720

RE: SAM Reactive EMCON Lua Script

Thanks! Fixed.
by ckfinite
Sun Sep 04, 2016 9:11 pm
Forum: Mods and Scenarios
Topic: SAM Reactive EMCON Lua Script
Replies: 6
Views: 720

SAM Reactive EMCON Lua Script

<t> This is a small script intended to add some depth to 60s through 90s IADS and SEAD operations, controlling how SAMs react to the detection of an anti-radiation missile (or something that looks like it) aimed at them.<br/>
<br/>
An example scenario where this would be useful is an Operation ...
by ckfinite
Sun Aug 07, 2016 12:12 pm
Forum: Lua Legion
Topic: LUA in scenario guidelines
Replies: 19
Views: 2603

RE: LUA in scenario guidelines

<r> <QUOTE><s>[quote]</s>That is you want to do something on callsign #1 to #16. Easy enough with names, but for GUID you would need to get the values for each plane<e>[/quote]</e></QUOTE>
<br/>
The way I typically do this is by using a lua snippet in the editor to find all the GUIDs in one go ...
by ckfinite
Sun Aug 07, 2016 1:34 am
Forum: Lua Legion
Topic: LUA in scenario guidelines
Replies: 19
Views: 2603

RE: LUA in scenario guidelines

<t> I'd go further on #1:<br/>
<br/>
The use of unit names is strongly discouraged in triggers and events, as it is sensitive to units being renamed. Rather, using unit GUIDs (most easily found by right click -> Scenario Editor -> Copy Unit ID to Clipboard) is suggested, as it is not effected by ...
by ckfinite
Mon Jul 25, 2016 10:11 am
Forum: Mods and Scenarios
Topic: Lua - Paradrop
Replies: 7
Views: 272

RE: Lua - Paradrop

<t> There's a bug in the library code - it doesn't like being started up in a scene that doesn't have any unit data already. I've patched the bug in the attached file.<br/>
<br/>
I also realized that there's a similar bug in the airdrop script. You'll need to add the line<br/>
<br/>
if unit ...
by ckfinite
Sun Jul 24, 2016 3:19 pm
Forum: Mods and Scenarios
Topic: Lua - Paradrop
Replies: 7
Views: 272

RE: Lua - Paradrop

<r> <QUOTE><s>[quote]</s>
-the game seemed to run quite slow, is that a result of the libraries? <e>[/quote]</e></QUOTE>
<br/>
Shouldn't be - they only run when the unit enters the area.<br/>

<QUOTE><s>[quote]</s>there were a couple RPs created (Foo Bar) is that a by product <e>[/quote]</e ...
by ckfinite
Sun Jul 24, 2016 2:26 pm
Forum: Mods and Scenarios
Topic: Lua - Paradrop
Replies: 7
Views: 272

RE: Lua - Paradrop

<r> First off, I would suggest using my KeyValue library to make the code easier to write - no need for all the gsub anymore, the library does that. <URL url="https://github.com/BenChung/TamKungScripts/blob/master/keystore.lua"><s>[url=https://github.com/BenChung/TamKungScripts/blob/master/keystore ...
by ckfinite
Sun Jun 26, 2016 11:25 pm
Forum: Mods and Scenarios
Topic: Thread for DB3000 database problems, updates or issues
Replies: 7411
Views: 300043

RE: New USN frigate: FF 29

<r> From that though, it looks like neither ESSM nor SM-2 could have illumination provided by SPY-3 until the software upgrade was performed, in which case the ship shouldn't have ESSM, its only in game air defense weapon, either.<br/>
<br/>
Edit: from <URL url="http://www.i2insights.com/library ...
by ckfinite
Sat Jun 25, 2016 10:08 pm
Forum: Mods and Scenarios
Topic: Thread for DB3000 database problems, updates or issues
Replies: 7411
Views: 300043

RE: New USN frigate: FF 29

<r> As far as I can tell, the <URL url="http://www.navy.mil/navydata/fact_display.asp?cid=4200&tid=900&ct=4"><s>[url=http://www.navy.mil/navydata/fact_display.asp?cid=4200&tid=900&ct=4]</s>Zumwalt should be able to carry at least SM-2MR<e>[/url]</e></URL>, which would be consistent with its ...
by ckfinite
Sat Jun 11, 2016 1:58 am
Forum: Mods and Scenarios
Topic: Lua Question - missing unit?
Replies: 4
Views: 168

RE: Lua Question - missing unit?

Sorry, didn't see this for a bit.

There are unique identifiers, GUIDs, but it's not really easy to get them from units in airbases (though you can get them from unhosted units). The best bet IMO is to do it manually.
by ckfinite
Fri Jun 10, 2016 1:35 am
Forum: Mods and Scenarios
Topic: Lua Question - missing unit?
Replies: 4
Views: 168

RE: Lua Question - missing unit?

Write

for i=1,24 do
if ScenEdit_GetUnit({Side='Test', Name="58 FS 'Gorillas' #"..i,}) ~= nil then
ScenEdit_DeleteUnit({Side='Test', Name="58 FS 'Gorillas' #"..i,})
end
end
by ckfinite
Sat Jun 04, 2016 1:19 am
Forum: Mods and Scenarios
Topic: LUA - Use of KeyValue to track settings in scenario
Replies: 7
Views: 551

RE: LUA - Use of KeyValue to track settings in scenario

<r> I also wrote one that lets you store values directly on the unit object, though it's a bit hacky. It's <URL url="https://github.com/BenChung/TamKungScripts/blob/master/sceneutils.lua"><s>[url=https://github.com/BenChung/TamKungScripts/blob/master/sceneutils.lua]</s>here, lines 233 through 282<e ...
by ckfinite
Fri Jun 03, 2016 12:41 pm
Forum: Mods and Scenarios
Topic: LUA - Use of KeyValue to track settings in scenario
Replies: 7
Views: 551

RE: LUA - Use of KeyValue to track settings in scenario

<r> If anyone is interested, I wrote a library that abstracts over all of the stringy business, available <URL url="https://raw.githubusercontent.com/BenChung/TamKungScripts/master/keystore.lua"><s>[url=https://raw.githubusercontent.com/BenChung/TamKungScripts/master/keystore.lua]</s>here<e>[/url ...

Go to advanced search