Jump to content

Steggles

Members
  • Posts

    223
  • Joined

  • Last visited

Everything posted by Steggles

  1. The copy is just a backup incase something goes wrong. In the original do this: Ok, so in the area where it says local units = country:get("USA").units (Line 1062 I think, I've modified this file so I'm not sure if thats the standard line) Find cnt_unit( units.Planes.Plane, "A-10A"); Highlight with the mouse, then press CTRL+C to copy. Then find local units = country:get("WHAT_EVER_COUNTRY_YOU_WANT").units select the line below it and press CTRL+V to paste what you copied. Yes the file needs to be replaced where it is. Ensure you make a backup first in case you accidentally muck it up.
  2. You have to modify db_countries.lua in your 'Scripts\Database' directory. Make a backup, then open it, find the A10a in the USA area, and copy and paste it into another country. This will allow you to chose it from the list for that country in the ME. EDIT: The area you are looking for is from Line 743 down if you haven't touched this file before.
  3. I've thought about that, but never tried it. Glad it works, I'll be using that technique too now.
  4. At a request of a squad mate, I've been asked to do a simple cargo (sling load) tracking script. Everything is working great apart from being able to find if the current cargo (which is a static object), has been destroyed or not. Can anyone help me out here? I believe getLife() is only available on Units, however I did try it, and it returns the same value before and after it was damaged / crashed. This even the right place for scripting questions? Cheers Steggles
  5. Just did this last night with a mission. Just change the group name and it works exactly the same as the tanker :-)
  6. Hey guys, Cause I absolutely suck at understanding documentation, can someone please explain to me how spawn an aircraft group using MIST? I've got a group on late activation, (WP's set, and they have no extra tasks apart from the normal ones when the group is created), and what I want to be able to do, is spawn this group using the F10 radio menu (the same group multiple times if the user keeps pressing it). Setting up the menu is easy enough, but I can't get my head around what MIST function to use, and what arguments need to be supplied. Ive tried this and it didn't work. mist.dynAdd(Group.getUnits(group), country, category) Is that the right way to use this function? Edit: Never mind. Got it working Thanks in advance Steggles
  7. Thats because they are in the same group. As commented in the top of the script: To avoid this the mission designer will have to have them as separate groups. I should clarify that the measurements will be correct for each player's BRA, just the ability to send messages to individual units doesn't exist. The F10 menus are per group as well. So if flight lead (or 2 or 3 for that matter) turn the messages off, the entire group wont receive messages. No worries about picking stuff up, its great that you are, as I haven't had a chance to test on a large scale and I'm sorry for the bugs you have found so far. I've create a fix which I will put up soon for the detection of the ground radars, its not an ideal implementation but fixes the problem until I get a work around. EDIT: That fix is active too now
  8. Damn. Thought I had squished that one. I'll take another look. Thanks. Was there an AWACS aircraft up in that mission at all?
  9. New Version Changes: - Bug fix for client aircraft in multiplayer not receiving messages or F10 menu. Thank you ciribob for http://forums.eagle.ru/showpost.php?p=2499638&postcount=5 and Pikey for bringing it to my attention - Added Some logging events. - Added F86 Sabre into the aircraft list https://github.com/Bob7heBuilder/EWRS
  10. Zaz0, I will have a look into it. Work is getting busy after today. I'll see what I can do.
  11. Ok. Thank you so much. This was doing my head in. I could not for the life of me figure out what was going on. Didn't think to check there. Thanks again.
  12. Ive got the following code in my script, it works in single player and works in MP when flying on the server machine, but fails with 'Group doesn't exist' when it comes to a client aircraft. Am I doing something wrong? It fails on local groupID = Group.getID(group) only when it comes to a client aircraft. vec is a Unit object if vec ~= nil and Unit.isActive(vec) then playerName = Unit.getPlayerName(vec) local group = Unit.getGroup(vec) local groupID = Group.getID(group) --Fails here on clients if playerName ~= nil then --Do stuff here end end
  13. I'll update the aircraft list later today. In the mean time, you can add it manually, just follow the same format as the others. ["F-86F Sabre"] = ewrs.FIGHTER , The by demand thru the F10 menu should be easy to implement. I'll get it in, in the next couple of days. EDIT: Currently working on a bug fix for the BRA report and radio menus are not building for client aircraft in multiplayer
  14. New Version Changes: -Uses extra radar information to know if type and distance is known to the target -Can be switched on and off in the script settings Basically won't give aircraft type if its not known, and won't supply BRA if the radar can't get distance information https://github.com/Bob7heBuilder/EWRS
  15. If its just 1 number you after on startup, I would call math.random 2 or 3 times. The first generated number of a certain seed will always be the same. No idea why randomseed crashes for you. I've used it a few times with os.time() when testing things in DCS and its worked fine.
  16. Super old man. Check out CTLD by ciribob. http://forums.eagle.ru/showthread.php?t=143107 Hes got a sample mission in his github repo as well for you to see how it works.
  17. When there's no threats detected? I'll add that in tonight when I finish work. EDIT: Changes are in place, and updated on GitHub. https://github.com/Bob7heBuilder/EWRS
  18. There aren't any AWACS scripts that I've come across outside of the one on the 159th forums, so I thought I would have a crack at creating one. Basically EWRS passes on BRA information, via text, on threats that selected friendly radars are picking up. Features: - Uses in-game radar information to detect targets so terrain masking, beaming, low altitude flying, etc is effective for avoiding detection - Dynamic. If valid units with radar are created during a mission (eg. via chopper with CTLD), they will be added to the EWRS radar network - Can allow / disable BRA messages to fighters or sides - Uses player aircraft or mission bullseye for BRA reference, can be changed via F10 radio menu or restricted to one reference in the script settings - Can switch between imperial (feet, knots, NM) or metric (meters, km/h, km) measurements using F10 radio menu - Ability to change the message display time and automated update interval - Can choose to disable automated messages and allow players to request BRA from F10 menu - Can allow players to request Bogey Dope at any time through F10 radio menu - Can allow players to request Friendly Picture to see where the closest friendly aircraft(s) to them are. This is the first time I've done anything with LUA apart from fiddling around with ciribob's CTLD script. I'm not an experienced programmer, and I drive trains for a living, so please be gentle with any criticisms of the code. I'll be continuing to work on this and add features for a while. If you have any problems, please open an issue on Github, PM me or post here. Please try and describe the bug as best you can and when it occurred and include a copy of dcs.log from your saved games folder. The script can be found on GitHub here: https://github.com/Bob7heBuilder/EWRS Hopefully some of you guys will find this useful. If you have any questions or feature requests, fire away. Cheers Steggles
  19. Scripting and using the event handlers. I've never used the events for scripting but everything your asking is possible. I'll have a play round later tonight to see if I can implement what you're asking and let you know. Unless someone gets in before I get back to you.
  20. Set the aircrafts skill to client for the ones you want playable.
  21. Ok, so I'm working on a multiplayer script, which soon you will all see (hopefully). My original plan was to implement individual player settings and allow a player to change their settings thru the F10 menu. The basic functionality of the script is working, and I'm in the process of adding the extra features to complete it. But, when I come to adding the F10 menu's (to change only 2 variables), it dawned on me, that they are only available for groups and not individual players, and with the recent change of having more then 1 human player in a group, will not work how I want it to. I ultimately need the ability to pull the clients playerName when they issue the command. SL mod uses the MP chat system for clients to interact with, which is the only way (that I can see, feel free to point me elsewhere), to get around my problem. Can anyone point me to a library or an explanation on how to implement pulling commands from the chat window? All I need is for a client to be able to type something like -set OPTION VALUE with both arguments being strings. At the end of the day, worst case scenario will be that the mission designer gets to decide on these 2 settings rather then the individual clients. EDIT: I should say that I've seen this http://forums.eagle.ru/showthread.php?t=70782 but being 5 years old, I haven't looked at it yet as a lot has changed. If someone can say its still working I'll take a look. Edit2: Decided to go with having group settings rather then player settings. But if someone could still point me in the direction I'm asking would be great. Thanks in advance! Steggles
  22. Excellent. Thanks heaps mate.
  23. Just a question about the F10 radio menus. If I call missionCommands.addSubMenuForGroup in a script for a particular group, then all players in the group exit the aircraft (so the group is not active anymore), do I have to call it again once the group becomes active again? Or does the DCS environment remember that I've already built the F10 menu for that group? IE- Will the F10 menu still be there when it becomes active again, without me rebuilding the menu?
  24. Thank you sir :-) Answered some of my questions I never got round to asking. Thanks for taking the time to put this up.
  25. I havn't tested this, but the logic should be right. Check Kobuleti airport, trigger zone, and triggers in the attached mission. Smoke markers last for 5 minutes, so I've got it checking every 300 seconds so they don't overlap, and there will always be smoke to mark the zone. EDIT: Logic behind flag numbers (that I use) - first digit is capture zone number, second digit is for zone condition. 0 = no one in it, 1 = red in zone, 2 = blue in zone, 3 = red and blue in zone. So flag 10 is capture zone 1 with no one in it, and flag 12 is capture zone 1 with blue in it. Hope you know what I mean and can make sense of what I'm saying. Mission was made in stable release of 1.5 Edit2: Fixed the logic. Its correct now, I forgot to switch the flags off for when a new one was set. Tested and it works. Kobuleit-CaptureZone.miz
×
×
  • Create New...