Jump to content

GaSi

Members
  • Posts

    26
  • Joined

  • Last visited

Posts posted by GaSi

  1. Thanks a lot for the help Grimes!

     

    Long ago I really didn't know anything about scripts

     

    A few years later I have my own dynamic campaign with many very cool features that DCS would really miss.

     

    It is a real war conflict where a lot of COMBINED ARS is used (ED don't forget that you did it and there are many loose things there too) a lot of strategy involved, taking into account the available weapons, the economic budget of each coalition, costs of unit maintenance, buying / selling and much more.

     

    Completely persistent over time and does not require a 24 hour server. You just run one day and you can continue another day.

     

    The only insoluble thing is that the client airplanes that remain in other bases at the end of the day have to be touched by hand. The rest is all automated.

     

    The stock system of each airbase of the mission editor is very funny. If you put a client aircraft, then it takes off from that base, the stock goes to 0, it lands in another base, add the stock to that base but ... then the client cannot leave any of them because they have nowhere to do SPAWN ... And for the number of players we have in the group, which are more than 20 per session, they do not reach the parking lots since if you put too many they start already on ... well.

     

    Things that remain in time and are never solved ... we will see how they solve it with their own dynamic campaign.

     

    I hope one day they solve these things that are totally meaningless!

  2. I will ask the team about it, but can not make any promises.

     

    thanks

     

    Hi BiG!

     

    I know I sometimes ask some silly questions on Discord. But in my flight group we have a dynamic campaign that is continuous over time with a socio-economic environment. It is insane and very popular, it requires a lot of tactics and strategies. But just these functions trigger Player events to save to tables and doing it with Birth is very annoying. I understand that the team is working on things of greater importance, but I think it can even solve a lot of problems for them in the development of their dynamic campaign.

     

    I hope it is solved and thanks for your answer Big!

  3. Really thanks Flappie!

     

    Please don't forget to also check out the ADD / REMOVED MARK Event. It always shows the name of the player who hosted the server. There must be some conflict or some parameter that is not taking into account since the mark left on the map shows the player's name but the event does not.

     

    and thanks again for quick answer!

     

    Have a nice weekend!

  4. Hi Flappie.

     

    Thanks for the file, I just tested.

     

     

    The same thing happened with the lua you sent me, the event 20 EnterUnit does not take it.

     

    I hope it is not a difficult problem to solve and in the next update it works.

     

    I really need it to work because the dynamic campaign I have developed uses this event to add radio commands.

     

    Thank you very much for the quick reply.

     

    2020-10-10 20:40:29.676 INFO DCS: Screen: mission_online

    2020-10-10 20:40:29.680 INFO Dispatcher: precache units resources in slots

    2020-10-10 20:40:29.688 INFO Lua: Lua CPU usage: metric: average mission loading: 2.9667 %

    2020-10-10 20:40:29.688 INFO Dispatcher: loadMission Done: Сontrol passed to the player

    2020-10-10 20:40:46.322 INFO NET: onPlayerSlot(1, 1)

    2020-10-10 20:40:46.322 INFO NET: passed onPlayerTryChangeSlot

    2020-10-10 20:40:46.322 INFO NET: release unit

    2020-10-10 20:40:46.324 INFO NET: client[1] occupied unit 1

    2020-10-10 20:40:47.170 INFO NET: simResume: curTime=14293.170765, syncDelay=0.500000, startTime=14293.670765

    2020-10-10 20:40:47.170 INFO NET: simulation starting, state=ssStarting

    2020-10-10 20:40:47.170 INFO NET: syncStart at 14293.670765:

    2020-10-10 20:40:47.687 INFO NET: simulation started, state=ssRunning

    2020-10-10 20:40:47.689 INFO TACVIEW.DLL: Recording flight data in [x:\Tacview-20201010-174047-DCS-Test Events.zip.acmi]

    2020-10-10 20:40:47.690 INFO LuaNET: [LOTATC] Load from simu...

    2020-10-10 20:40:47.695 INFO LuaNET: [LOTATC] Load from simu OK

    2020-10-10 20:40:51.837 INFO NET: onPlayerSlot(1, )

    2020-10-10 20:40:51.837 INFO NET: passed onPlayerTryChangeSlot

    2020-10-10 20:40:51.837 INFO NET: release unit 1

    2020-10-10 20:40:51.838 INFO NET: client[1] occupied unit

    2020-10-10 20:40:55.337 INFO Lua: Lua CPU usage: metric: average mission execution: 1.4623 %

    2020-10-10 20:40:55.337 INFO NET: simulation paused, modelTime = 7.638000

    2020-10-10 20:40:55.755 INFO NET: simResume: curTime=14301.755477, syncDelay=0.500000, startTime=14302.255477

    2020-10-10 20:40:55.755 INFO NET: simulation starting, state=ssStarting

    2020-10-10 20:40:55.755 INFO NET: syncStart at 14302.255477:

    2020-10-10 20:40:56.270 INFO NET: simulation started, state=ssRunning

    2020-10-10 20:41:13.411 INFO NET: accepting connection from xx.xxx.x.xxx:64818

    2020-10-10 20:41:13.420 INFO NET: adding client[2]

    2020-10-10 20:41:13.471 INFO NET: added client[2] name=CETAV - [sAINT] addr=xx.xxx.x.xxx:64818

    2020-10-10 20:41:13.474 INFO LuaNET: [LOTATC] Player connect: xx.xxx.x.xxx

    2020-10-10 20:41:13.475 INFO LuaNET: [LOTATC] Player connect done

    2020-10-10 20:41:14.592 INFO NET: client[2] UDP port changed from 64818 to 56674

    2020-10-10 20:41:24.720 INFO NET: onPlayerSlot(1, 1)

    2020-10-10 20:41:24.721 INFO NET: passed onPlayerTryChangeSlot

    2020-10-10 20:41:24.721 INFO NET: release unit

    2020-10-10 20:41:24.721 INFO NET: client[1] occupied unit 1

    2020-10-10 20:41:27.242 INFO DCS: MissionSpawn:spawnLocalPlayer 1,Su-25T

    2020-10-10 20:41:27.249 ERROR WORLDGENERAL: MagVar: Storage hasn't been initialized!

    2020-10-10 20:41:27.297 INFO VISUALIZER: cockpit ILV loaded

    2020-10-10 20:41:27.300 INFO Scripting: event:type=under control,initiatorPilotName=[CETAV] - GaSi,target=Aerial-1-1,t=28838.589,targetMissionID=1,

    2020-10-10 20:41:27.300 INFO SCRIPTING: 20

    2020-10-10 20:41:27.318 INFO COCKPITBASE: lua state still active GNS430, 1 (status undefined)

    2020-10-10 20:41:27.318 INFO COCKPITBASE: lua state still active SNS, 2 (status undefined)

    2020-10-10 20:41:27.318 INFO COCKPITBASE: lua state still active GNS430_Radio, 3

    2020-10-10 20:41:27.318 INFO JSAVIONICS: Shaders preparing...

    2020-10-10 20:41:27.318 INFO JSAVIONICS: Vertex shader prepared

    2020-10-10 20:41:27.318 INFO JSAVIONICS: Pixel shader(col) prepared

    2020-10-10 20:41:27.318 INFO JSAVIONICS: Pixel shader(tex) prepared

    2020-10-10 20:41:27.318 INFO JSAVIONICS: initState OK

    2020-10-10 20:41:27.933 INFO JSAVIONICS: loaded 129562 nav aids

    2020-10-10 20:41:28.947 INFO JSAVIONICS: loaded 146684 cities

    2020-10-10 20:41:28.948 ERROR WORLDGENERAL: MagVar: Storage hasn't been initialized!

    2020-10-10 20:41:28.953 WARNING LOG: 1 duplicate message(s) skipped.

    2020-10-10 20:41:28.953 INFO Scripting: event:type=birth,initiatorPilotName=[CETAV] - GaSi,place=Kobuleti,t=28838.589,placeDisplayName=Kobuleti,initiatorMissionID=1,

    2020-10-10 20:41:28.953 INFO SCRIPTING: 15

    2020-10-10 20:41:28.954 INFO WORLDGENERAL: loaded from mission Scripts/World/birds.lua

    2020-10-10 20:41:28.954 ERROR WORLDGENERAL: MagVar: Storage hasn't been initialized!

    2020-10-10 20:41:29.014 WARNING LOG: 4 duplicate message(s) skipped.

    2020-10-10 20:41:29.014 ERROR_ONCE DX11BACKEND: texture 'su25-cpt-mb-01' not found. Asked from 'NGMODEL'

    2020-10-10 20:41:29.028 INFO EDTERRAINGRAPHICS41: surface5 gc() LOD 0 85 squares

    2020-10-10 20:41:29.031 INFO EDTERRAINGRAPHICS41: surface5 gc() LOD 1 86 squares

    2020-10-10 20:41:29.031 INFO EDTERRAINGRAPHICS41: surface5 gc() 8.680200 ms

    2020-10-10 20:41:29.032 ERROR WORLDGENERAL: MagVar: Storage hasn't been initialized!

    2020-10-10 20:43:45.703 WARNING LOG: 12455 duplicate message(s) skipped.

    2020-10-10 20:43:45.703 INFO NET: client[2] is ready to start

    2020-10-10 20:43:45.703 INFO NET: spawning client[2]

    2020-10-10 20:43:45.705 INFO NET: client[2] started

    2020-10-10 20:43:45.705 ERROR WORLDGENERAL: MagVar: Storage hasn't been initialized!

    2020-10-10 20:43:53.936 WARNING LOG: 738 duplicate message(s) skipped.

    2020-10-10 20:43:53.936 INFO NET: onPlayerSlot(2, 2)

    2020-10-10 20:43:53.936 INFO NET: passed onPlayerTryChangeSlot

    2020-10-10 20:43:53.936 INFO NET: release unit

    2020-10-10 20:43:53.936 INFO NET: client[2] occupied unit 2

    2020-10-10 20:43:53.937 ERROR WORLDGENERAL: MagVar: Storage hasn't been initialized!

    2020-10-10 20:44:05.208 WARNING LOG: 1015 duplicate message(s) skipped.

    2020-10-10 20:44:05.208 INFO Scripting: event:type=birth,initiatorPilotName=CETAV - [sAINT],place=Kobuleti,t=28996.555,placeDisplayName=Kobuleti,initiatorMissionID=2,

    2020-10-10 20:44:05.208 INFO SCRIPTING: 15

    2020-10-10 20:44:05.208 ERROR WORLDGENERAL: MagVar: Storage hasn't been initialized!

    2020-10-10 20:44:46.169 WARNING LOG: 3685 duplicate message(s) skipped.

    2020-10-10 20:44:46.169 INFO Scripting: event:type=relinquished,initiatorPilotName=CETAV - [sAINT],target=Aerial-2-1,t=29037.521,targetMissionID=2,

    2020-10-10 20:44:46.169 INFO SCRIPTING: 21

    2020-10-10 20:44:46.170 INFO NET: remove: client[2]

    2020-10-10 20:44:46.171 ERROR WORLDGENERAL: MagVar: Storage hasn't been initialized!

    2020-10-10 20:50:29.701 WARNING LOG: 30919 duplicate message(s) skipped.

    2020-10-10 20:50:29.701 INFO TACVIEW.DLL: During the last 600.0s an average of 0 units objects and 0 ballistic objects have been active per frame

    2020-10-10 20:50:29.701 INFO TACVIEW.DLL: The average frame rate of 59.7fps would have been 60.0fps if the flight data recorder was disabled

    2020-10-10 20:50:29.701 INFO TACVIEW.DLL: DCS World simulation is taking 99.5% of CPU

    2020-10-10 20:50:29.701 INFO TACVIEW.DLL: DCS GetWorldObjects is taking 0.2% of CPU

    2020-10-10 20:50:29.701 INFO TACVIEW.DLL: Tacview recorder is taking 0.3% of CPU

    2020-10-10 20:50:29.735 ERROR WORLDGENERAL: MagVar: Storage hasn't been initialized!

    2020-10-10 20:53:47.305 WARNING LOG: 17782 duplicate message(s) skipped.

    2020-10-10 20:53:47.305 INFO NET: accepting connection from xx.xxx.x.xxx:64916

    2020-10-10 20:53:47.316 INFO NET: adding client[2]

    2020-10-10 20:53:47.316 ERROR WORLDGENERAL: MagVar: Storage hasn't been initialized!

    2020-10-10 20:53:47.366 WARNING LOG: 4 duplicate message(s) skipped.

    2020-10-10 20:53:47.366 INFO NET: added client[2] name=CETAV - [sAINT] addr=xx.xxx.x.xxx:64916

    2020-10-10 20:53:47.367 ERROR WORLDGENERAL: MagVar: Storage hasn't been initialized!

    2020-10-10 20:53:47.367 INFO LuaNET: [LOTATC] Player connect: xx.xxx.x.xxx

    2020-10-10 20:53:47.367 INFO LuaNET: [LOTATC] Player connect done

    2020-10-10 20:53:47.383 ERROR WORLDGENERAL: MagVar: Storage hasn't been initialized!

    2020-10-10 20:53:48.475 WARNING LOG: 98 duplicate message(s) skipped.

    2020-10-10 20:53:48.475 INFO NET: client[2] UDP port changed from 64916 to 55475

    2020-10-10 20:53:48.483 ERROR WORLDGENERAL: MagVar: Storage hasn't been initialized!

    2020-10-10 20:53:52.716 WARNING LOG: 380 duplicate message(s) skipped.

    2020-10-10 20:53:52.716 INFO NET: client[2] is ready to start

    2020-10-10 20:53:52.716 INFO NET: spawning client[2]

    2020-10-10 20:53:52.718 INFO NET: client[2] started

    2020-10-10 20:53:52.718 ERROR WORLDGENERAL: MagVar: Storage hasn't been initialized!

    2020-10-10 20:53:55.849 WARNING LOG: 282 duplicate message(s) skipped.

    2020-10-10 20:53:55.849 INFO NET: onPlayerSlot(2, 2)

    2020-10-10 20:53:55.849 INFO NET: passed onPlayerTryChangeSlot

    2020-10-10 20:53:55.849 INFO NET: release unit

    2020-10-10 20:53:55.849 INFO NET: client[2] occupied unit 2

    2020-10-10 20:53:55.850 ERROR WORLDGENERAL: MagVar: Storage hasn't been initialized!

    2020-10-10 20:53:57.887 WARNING LOG: 181 duplicate message(s) skipped.

    2020-10-10 20:53:57.887 INFO Scripting: event:type=birth,initiatorPilotName=CETAV - [sAINT],place=Kobuleti,t=29589.234,placeDisplayName=Kobuleti,initiatorMissionID=2,

    2020-10-10 20:53:57.887 INFO SCRIPTING: 15

    2020-10-10 20:53:57.887 ERROR WORLDGENERAL: MagVar: Storage hasn't been initialized!

    2020-10-10 20:54:33.166 WARNING LOG: 3175 duplicate message(s) skipped.

    2020-10-10 20:54:33.166 INFO Scripting: event:type=engine startup,initiatorPilotName=CETAV - [sAINT],place=Kobuleti,t=29624.52,placeDisplayName=Kobuleti,initiatorMissionID=2,

    2020-10-10 20:54:33.166 INFO SCRIPTING: 18

    2020-10-10 20:54:33.166 ERROR WORLDGENERAL: MagVar: Storage hasn't been initialized!

    2020-10-10 20:57:16.481 WARNING LOG: 14697 duplicate message(s) skipped.

    2020-10-10 20:57:16.481 INFO Scripting: event:type=takeoff,initiatorPilotName=CETAV - [sAINT],place=Kobuleti,t=29787.833,placeDisplayName=Kobuleti,initiatorMissionID=2,

    2020-10-10 20:57:16.482 INFO SCRIPTING: 3

    2020-10-10 20:57:16.482 ERROR WORLDGENERAL: MagVar: Storage hasn't been initialized!

  5. Hi Flappie, thanks for your answer.

     

    I send the .miz file with a simple event handler script showing the problem.

     

    In BUG_1.jpg You can see that the EnterUnit event does not show it for any player, only for those who host the server. This did not happen before the update working without problems. But now for some unknown reason it doesn't take the event for any other player other than the host.

     

    In BUG_2.jpg You can see that in MARK events, both when it is added and when it is removed it always shows the name of the player who host the server. I discovered this problem several months ago but it was not causing me problems, but it would be good to fix it.

     

    I would be grateful if you could fix it as many of my missions use the EnterUnit event to add radio commands to them.

     

    For my part excuse me, English is not my native language and if you need something to solve it you can contact me.

    Test Events.miz

    BUG_1.thumb.jpg.a3ca8a2fc5fdacca1527b10722e56b9d.jpg

    BUG_2.thumb.jpg.bec8ce840fd7c5eb5933410409bb875a.jpg

  6. Sorry for my English which is not good.

     

    Using the Event Handler, the Enter Unit events do not work, they only work with whoever hosts the server. Birth, Leave Unit, Start Up work perfectly. Please check and fix this bug as it breaks several scripts and one of the important ones I use in my flight group.

     

    Thanks!

  7. Hi.

     

    Since the last update I have also encountered similar problems but with SAMs. We were more than 200nm from a SA10 and it was blocking more than 8 aircraft, at least 5 totally out of range.

     

    Something I have also discovered is that with Combined Arms, in multiplayer like game master or tactical commander, changing the alert state of sam is not working. No matter how green you are, the radar continues to work. I have tried since the ME to test the mission and outside the multiplayer it works well to change the state of the sam.

     

    I hope they solve it soon. The multiplayer is getting worse and worse.

  8. SOLUTION

     

    Hi Again.

     

    I found the problem in ...\DCS World OpenBeta\CoreMods\tech\TechWeaponPack\Database\vehicles\SAM\S75_Launcher.lua

     

    Line 134:

     

    GT.WS[ws].LN[1].PL[1].reload_time = 1000000; -- never during the mission

     

     

    With the value that comes by default I was going to recharge in 11 and a half days ...

     

    I was looking for information regarding the procedure to recharge the SA-2 but I have not found a credible source, but according to what I researched and asked friends who know a bit about the issue is within 15 to 30 minutes depending on the crew. For my part I have set it in 20 minutes but I would like it if you have more information about it to leave it in the corresponding value.

     

    Thanks

  9. SA-2 Not Reload

     

    Hi.

     

    The SA-2 not reload, i put M818 at side of SA-2 Launcher and nothing happens after two hours. Someone have the same problem?

     

    Sorry my english is not good.

     

    Thanks.

  10. I would have prefered an AWACS, a TANKER or at least some military aicraft with recon capabilities...something that can add a value to the "Combat" of Digital COMBAT simulator. Instead, this module only offers airshows. Nothing more. A real shame to waste your time wherease there are other simulators for this kind of aircraft. I thought DCS stands for COMBAT not CIVILIAN simulator. Is my humble opinion. I bought all modules and campaigns, even the GPS and the Yak52 has a little military appeal... but this CE.. this is the first time I won't buy one of your products. I am really sad.

    • Like 1
  11. Hi! Ciribob. The Script runs perfect! But I have a little problem!

     

    The message only appears to the each group, exist the possibility that it appears to Coalition Blue or Red. I try to modified the script but i dont have experience with LUA.

     

    I saw the command:

     

    range.displayMessageToGroup(_unit, _message, 30,false)

     

     

    What should I modify so that the message appears to a coalition? Can you help me?

     

    Thanks and is a great script!

     

     

    Sorry my english is not my native language

  12. Hi.

     

    I would like to know if it is possible to make a RAT departure from airport A, go to a trigger zone X, then to trigger zone Y, then trigger zone Z and finally land in the airport B. is this possible? Could you help me with an example to write the script? My idea is that the aircraft can follow a more real path through a SID, a route, a STAR and finally IAC.

     

    Sorry for my English is not my native language.

  13. I check the PDF document but i do not understand lua and I can not find a way to make the script.

     

    Somewhere I read that could be done but can not find the forum, I have been hours looking for it.

     

    We will have to wait for a programmer in lua. I check the PDF document but i do not understand lua and I can not find a way to make the script.

    Somewhere I read that could be done but can not find the forum, I have been hours looking for it.

    We will have to wait for a programmer in lua.

     

    EDIT --->

     

    Maybe this is what you say?

     

    Examples:

    mist.flagFunc.units_in_polygon{

    units = {'[blue][vehicle]'},

    zone = mist.getGroupPoints('forest1'),

    flag = 11

    }

    --[[Once run, this function will start a process that will set flag 11 true when any blue vehicles are within the polygon shape created by the waypoints of the group named "forest1"]]

     

    mist.flagFunc.units_in_polygon{

    units = {'[red][plane]'},

    zone = {

    [1] = mist.DBs.unitsByName['AO 1'].point,

    [2] = mist.DBs.unitsByName['AO 2'].point,

    [3] = mist.DBs.unitsByName['AO 3'].point,

    [4] = mist.DBs.unitsByName['AO 4'].point,

    [5] = mist.DBs.unitsByName['AO 5'].point,

    [6] = mist.DBs.unitsByName['AO 6'].point,

    },

    flag = 201,

    maxalt = 6000,

    interval = 30

    }

    --[[Once run, this function will start a process that will set flag 201 true when any red planes are within the polygon shape derived by the intial starting positions of the units named "AO 1" through "AO 6" and are less than 6000 meters above sea level. This process will run once every 30 seconds.]]

  14. Hi.

     

    I have no knowledge of lua. I'm developing on a mission editor and I need to define a trigger zone that is not circular. I need the area is polygonal or square and that this defined by geographical coordinates. Is that possible? or I can just make circular in the default?

     

    If there way to do this through a LUA, and someone can help me write the code, I would really be very thankful.

     

    Regards!

  15. Hi St3v3f.

     

    I need some help with the lua script.

     

    I have tried to modify the script with helicopters but had no luck. I try to modify this part (in red) and nothing.

     

    group = mist.getGroupData(groupName)

    group.route = { points = mist.getGroupRoute(groupName, true) }

    group.groupName = newName

    group.groupId = nil

    group.units[1].unitId = nil

    group.units[1].unitName = newName

    group.category = 'AIRPLANE'

     

    I tried with CHOPPER or HELICOPTER and nothing results.

     

    How do I have to do to work with helicopters too?

     

    Thanks!

  16. I have tested again and only works with IL78M / KC135 TANKERS and A50 / E3 AWACS. But I have also done with the E-2D (AWACS) and does not work.

     

    I could get it done with various groups but I can not do with other types of aircraft other than those described in the preceding paragraph.

     

    What part of the script should be modified or what does not work?

     

    Thanks for the help and quick response.

     

    If you want i can upload the .miz flie.

     

    EDIT: I Fixed the problem, thanks for your help and this excellent script!

  17. Hello.

     

    I'm not very good with programming. Really I do not understand anything. I am slowly reading forums and testing; it emepeora the fact of not having a good English. What you created with this script is fantastic. I tried it with the TANKER and the AWACS and works great. I need to run this script but with an An-26B or a MiG-25 or any other aircraft and I can not make it work.

     

    I can not find the error code which is due to my lack of knowledge. But if it works with the TANKER and the AWACS why not with others?

     

    Some kind person who can help me.

     

    thanks.

×
×
  • Create New...