dorianR666 Posted November 22, 2020 Posted November 22, 2020 I was writing a script that duplicates groups and found out that if you add a group using the addGroup Lua function, it breaks the debriefing screen in following ways: 1) The new group will have no country. In attached screenshot, the country should be USA but the field is empty. And yes, all the referenced countries are in coalitions. 2) The new unit will be named after its ID, not its name. In attached screenshot, the name should be "new unit", but instead it shows ID of 67. This ID of 67 is assigned by me and if you leave it unassigned, it will display an autogenerated ID (1000000 and higher). 3) The screen sometimes shows events from previous sessions before the mission start event. It appears memory is not properly cleaned up, which might be dangerous for stability of the game. I did actually have a DCS crash while writing my script, altough it might be unrelated.messed_up_debriefing2.trkx.miz CPU: AMD Ryzen 5 1600X GPU: AMD RX 580
dorianR666 Posted November 22, 2020 Author Posted November 22, 2020 The script is within the miz file, /l10n/DEFAULT/ddf_clone.lua. The group cloning portion is between lines 26 and 71. It simply searches the table of an existing group in env.mission, modifies its names and IDs and calls addGroup with it. The table is also printed on screen in the trackfile, so you can see the names and IDs are correctly assigned. CPU: AMD Ryzen 5 1600X GPU: AMD RX 580
Grimes Posted November 23, 2020 Posted November 23, 2020 Its been like that since coalition.addGroup was added to the game. The debrief code simply hasn't been updated to reflect any information about dynamically spawned units. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
dorianR666 Posted November 23, 2020 Author Posted November 23, 2020 i see, thanks for answer CPU: AMD Ryzen 5 1600X GPU: AMD RX 580
Recommended Posts