ED Forums - Search Results
 


Notices

Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: Hardcard
Forum: Mission Editor Discussion and Questions 11-18-2019, 03:16 PM
Replies: 3
Views: 163
Posted By Hardcard
@ghashpl That snippet will only target a...

@ghashpl

That snippet will only target a single unit... the moment you switch clients, it'll stop working.


I think this MOOSE script will serve you better (required fields marked in red,...
Forum: Mission Editor Discussion and Questions 11-17-2019, 10:21 PM
Replies: 2
Views: 98
Posted By Hardcard
Last time I checked, scenery could only be...

Last time I checked, scenery could only be removed via ME (using SCENERY REMOVE OBJECTS ZONE)

I tried to remove scenery objects via scripting, to no avail. The most I could do was detect certain...
Forum: Mission Editor Discussion and Questions 11-16-2019, 10:19 AM
Replies: 2
Views: 124
Posted By Hardcard
If you want to apply custom loadout restrictions...

If you want to apply custom loadout restrictions to different planes, I'm afraid you'll have to script it.
Forum: Mission Editor Discussion and Questions 11-13-2019, 10:08 AM
Replies: 3
Views: 166
Posted By Hardcard
The snippet I provided should get you the event...

The snippet I provided should get you the event initiator's group without throwing errors.

If it does not, then I guess you could try adding a category check, just in case:
if e.id ==...
Forum: Mission Editor Discussion and Questions 11-11-2019, 11:31 PM
Replies: 46
Views: 14,398
Posted By Hardcard
Custom flag names can be assigned as long as they...

Custom flag names can be assigned as long as they are scripted.
But, anyway, even if you're working with ME flags (which have a number as name), the server script I posted would still work...just...
Forum: Mission Editor Discussion and Questions 11-11-2019, 12:51 PM
Replies: 3
Views: 166
Posted By Hardcard
Get the group from the event initiator another...

Get the group from the event initiator another way?
Also, it's a good idea to protect the script from nil returns.


if e.id == world.event.S_EVENT_TAKEOFF and e.initiator then
local...
Forum: Mission Editor Discussion and Questions 11-09-2019, 11:39 AM
Replies: 1,826
Views: 296,452
Posted By Hardcard
@Markeebo The first error suggests that...

@Markeebo

The first error suggests that either the string value you provided is invalid or the folder doesn't exist.
I recommend that you contact Funkyfranky over the MOOSE Discord channel...
Forum: Mission Editor Discussion and Questions 11-04-2019, 10:35 AM
Replies: 46
Views: 14,398
Posted By Hardcard
@remus77 I think it would be simpler to...

@remus77


I think it would be simpler to write your own dedicated server script.

Keep in mind that the server can only communicate with the mission environment via user flags (well, at least...
Forum: Mission Editor Discussion and Questions 10-19-2019, 04:12 AM
Replies: 3
Views: 210
Posted By Hardcard
That's weird :huh: I think it's just a...

That's weird :huh:



I think it's just a matter of including this in missionConfig.lua

local alertLevel = "HIGH"

function getAlertLevel()
Forum: Mission Editor Discussion and Questions 10-16-2019, 10:39 AM
Replies: 101
Views: 6,175
Posted By Hardcard
Please, post your mission file here. Also,...

Please, post your mission file here.

Also, did this happen in a MP environment? If so, were you hosting or connecting to a dedicated server?

Also, did you get scripting errors in dcs.log? If...
Forum: Mission Editor Discussion and Questions 10-14-2019, 12:13 AM
Replies: 9
Views: 478
Posted By Hardcard
Alright, that's both weird and potentially...

Alright, that's both weird and potentially useful.


So, in the end, the answer is to combine isActive and isExist, right?

units[i]:isActive() and units[i]:isExist()


I'll need to keep...
Forum: Mission Editor Discussion and Questions 10-13-2019, 11:32 PM
Replies: 101
Views: 6,175
Posted By Hardcard
@SkipperSMG Did you get any errors in...

@SkipperSMG

Did you get any errors in dcs.log?
Also, could you post the mission file here?

Sorry for the late reply.
Forum: Mission Editor Discussion and Questions 10-11-2019, 11:33 AM
Replies: 9
Views: 478
Posted By Hardcard
This is weird ... :huh: What about...

This is weird ... :huh:

What about getPosition() ?

Does it actually return numeric values if you do something like:
if Group.getByName(group) then
local grp = Group.getByName(group)
local...
Forum: Mission Editor Discussion and Questions 10-11-2019, 07:30 AM
Replies: 3
Views: 221
Posted By Hardcard
Welcome to DCS ;) Learning to script may be...

Welcome to DCS ;)

Learning to script may be a pita at first, but it's definitely worth the effort.

I found myself in a similar situation last year (ME had all sorts of limitations I simply...
Forum: Mission Editor Discussion and Questions 10-11-2019, 06:41 AM
Replies: 1,826
Views: 296,452
Posted By Hardcard
@BoneDust The dcs.log errors that you posted...

@BoneDust

The dcs.log errors that you posted here (https://forums.eagle.ru/showpost.php?p=4061258&postcount=1766) clearly referenced pretty large script files of, at least, 20k - 90k lines... the...
Forum: Mission Editor Discussion and Questions 10-10-2019, 03:19 AM
Replies: 1,826
Views: 296,452
Posted By Hardcard
@BoneDust Please, get the temporary script...

@BoneDust

Please, get the temporary script file(s) referenced in the dcs.log error(s) (following the steps I explained) and upload it/them here.

It might very well be that you have the wrong...
Forum: Mission Editor Discussion and Questions 10-10-2019, 02:50 AM
Replies: 9
Views: 478
Posted By Hardcard
@Wrench What you report is both weird and...

@Wrench

What you report is both weird and disturbing.

Have you tried using Unit class instead of Group class?

This works for me (apparently, at least):

if Unit.getByName(unitname) == nil...
Forum: Mission Editor Discussion and Questions 10-08-2019, 07:05 AM
Replies: 1,826
Views: 296,452
Posted By Hardcard
@BoneDust You're getting different kinds of...

@BoneDust

You're getting different kinds of errors there (they might have a common cause, though).

I'd say that the script that's erroring is probably Moose.lua, but I can't be sure.

Go to...
Forum: Mission Editor Discussion and Questions 10-03-2019, 08:28 PM
Replies: 1,826
Views: 296,452
Posted By Hardcard
@BoneDust Post the script file that's...

@BoneDust

Post the script file that's erroring (should be specified in the dcs.log error, along with the line)
Forum: Mission Editor Discussion and Questions 09-29-2019, 12:52 PM
Replies: 101
Views: 6,175
Posted By Hardcard
@Rudel_chw oB6LnFYkTzs :D

@Rudel_chw

oB6LnFYkTzs


:D
Forum: Mods and Apps 09-21-2019, 02:33 PM
Replies: 0
Views: 340
Posted By Hardcard
SWAPR - SWeet Automatic Player Replacement script

Hi there DCS people!

A couple months ago I started working on this nice little project, which has grown into a pretty interesting addition to DCS (I think).

I'm creating this thread over here...
Forum: Mission Editor Discussion and Questions 09-20-2019, 09:30 PM
Replies: 101
Views: 6,175
Posted By Hardcard
@Everyone Alright boys and girls... SWAPR...

@Everyone

Alright boys and girls... SWAPR 1.2 is finally here and it brings slot block with it! :cheer3nc: :drunk: :yay:

AhU55G3CbuE


OP updated with new videos, timestamps, notes,...
Forum: Mission Editor Discussion and Questions 09-20-2019, 12:10 PM
Replies: 1
Views: 228
Posted By Hardcard
If ME doesn't allow you to select naval groups...

If ME doesn't allow you to select naval groups when trying to set an AFAC, you'll need to use a script instead.

I wrote one such script a while ago, you might find it helpful, it's attached...
Forum: DCS Mods 09-20-2019, 10:38 AM
Replies: 267
Views: 50,791
Posted By Hardcard
I have to agree with Grimes, using obfuscated...

I have to agree with Grimes, using obfuscated code in a public DCS script is pretty silly...if you combine it with lfs and io activation, then it becomes suspicious (sure, you can always leave them...
Forum: Mission Editor Discussion and Questions 09-19-2019, 07:54 PM
Replies: 10
Views: 1,019
Posted By Hardcard
They must be set to late activation and you must...

They must be set to late activation and you must make sure that the provided group name matches exactly (do not remove the quotation marks in the script, btw).

Also, you must load Moose.lua...
Showing results 1 to 25 of 500

 
Forum Jump
All times are GMT. The time now is 04:05 PM. vBulletin Skin by ForumMonkeys. Powered by vBulletin®.
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.