Jump to content

ECV56_Polten

Members
  • Posts

    43
  • Joined

  • Last visited

Everything posted by ECV56_Polten

  1. Well, as a matter of fact, it is wrong, I fogot a ":" between ("ZonaEstaticos01") and PointVecZ01, the correct one wold be PosX1 = ZONE:New("ZonaEstaticos01"):PointVecZ01:GetPointVec2():GetX() PosY1 = ZONE:New("ZonaEstaticos01"):PointVecZ01:GetPointVec2():GetY()
  2. Swany, IMO, the coding style is kind of subjective; it will depend on how do you like it most. The first example takes more lines to write, but is easier to follow if you want to debug or analyse the code. The third one is more compact, takes less lines; in a more complex code, this style will require less CPU and/or memory, but, if you get an error, it will be more difficult to read it and follow the logic. Take this code I used in a mission as an example ZonaEstaticos01 = ZONE:New("ZonaEstaticos01") PointVecZ01 = ZonaEstaticos01:GetPointVec2() PosX1 = PointVecZ01:GetX() PosY1 = PointVecZ01:GetY() I could make it smaller and use less variables, like this PosX1 = ZONE:New("ZonaEstaticos01")PointVecZ01:GetPointVec2():GetX() PosY1 = ZONE:New("ZonaEstaticos01")PointVecZ01:GetPointVec2():GetY() As you can see, I reduced the code from 4 lines to 2, and 4 variables to 2, so it has a better performance and less use of memory, but is harder to understand and debug in case of problems
  3. Argh, I should kick myself in the butt for the obviousness of the solution. Thanks Shadow.
  4. You can try the code in this thread. I used it for more or less for the same thing you are trying with excelent results.
  5. Hey FlightControl; this is a great mod. Kudos for you and the whole MOOSE team. I have a question for the devs, I am using the SPAWNSTATIC class to create some static trucks from a given point (using the SpwanFromPointVec2 method), and it works ok. The thing is I need this statics to be hidden, so they don't appear on the F10 map, but I can't find the way to do it. This is the code I am using: -- Zonas iniciales de generación de objetos estáticos ZonaEstaticos01 = ZONE:New("ZonaEstaticos01") ZonaEstaticos02 = ZONE:New("ZonaEstaticos02") PointVecZ01 = ZonaEstaticos01:GetPointVec2() PosX1 = PointVecZ01:GetX() PosY1 = PointVecZ01:GetY() PointVecZ02 = ZonaEstaticos02:GetPointVec2() PosX2 = PointVecZ02:GetX() PosY2 = PointVecZ02:GetY() SpawnEstatico = SPAWNSTATIC:NewFromStatic("Estatico", country.id.RUSSIA) for cont = 0, 19, 1 do -- las funciones math.sin y math.cos toman los valores en radianes, no en grados -- radianes = grados * pi / 180 local x1 = PosX1 + (cont * 50 * math.sin(252 * math.pi / 180)) local y1 = PosY1 - (cont * 50 * math.sin(342 * math.pi / 180)) SpawnEstatico:SpawnFromPointVec2(POINT_VEC2:New(x1, y1), 342, "RusStat_"..cont) local x2 = PosX2 + (cont * 50 * math.sin(301 * math.pi / 180)) local y2 = PosY2 - (cont * 50 * math.sin(31 * math.pi / 180)) SpawnEstatico:SpawnFromPointVec2(POINT_VEC2:New(x2, y2), 31, "RusStat_"..cont + 20) end The object "Estatico" is marked as hidden in ME.
  6. Ok, I can confirm that the problem, in my case, was caused by an outdated version of the Coalition Update Mod by uboat and Grimes. I now use the updated version of this mod, available from https://github.com/mrSkortch/DCS-miscScripts/issues/1
  7. Hi robgraham. I haven't tried a repair, but I uninstalled all the mods, and it worked again, so it is reasonable to assume that one or more mods are the cause of the issue.
  8. It seems my case is worst. After upgrading to 2.5.0.14304 the ME gets stuck in the loading screen and doesn't run. I left it for more or less and hour and nothing happened. Before the upgrade, the ME was working, but with long load times as described in the first post. I uploaded the dcs.log file in case it is of any help. dcs.zip
  9. Hi Pikey. You said that you are not a developer, but the code you put here is quite advanced. I looked into it and I wouldn't change anything (at least until ED corrects the bug), maybe I would use a different indentation style, but that is a personal preference. Still trying to learn moose.
  10. Kind of difficult being objective for me in this matter because Puma and Chinook are two helicopters flown by Fuerza Aérea Argentina. The Puma can be armed like the Mi-8, but as far as I know, the Chinook is limited to the transport role, so I imagine it wouldn't generate much interest in the combat flight sim community. Anyway, it would be nice to have two more helicopters flown by the FAA besides the UH-1H and Mi-8 (Mi-171E to be exact)
  11. Now I have no excuse to buy this module :joystick: Thansk a lot.
  12. Voted yes, because I'm Argentine, who wouldn't like to have a plane in DCS that was developed in his/her motherland? :-D But, I agree with the opinion that the Pucara in Nevada or Caucasus would be way out of place; this is a COIN plane
  13. nick = "Yurgon" msg = "you sir, are a GOD" print (nick .. ", " .. msg) env.info ("All hail the Yurgon... let him live foreva...(said with a James Earl Jones kind of voice)")
  14. Can someone please make the Fuerza Aérea Argentina Livery? You can see more pictures here
×
×
  • Create New...