Miguel21 Posted December 27, 2024 Posted December 27, 2024 Hello programmers ^^ I think I've found a little bug that can be quite annoying if you're not careful: The getGroups() function does not return the same thing between a “normal” server and a dedicated server On a dedicated server, it “invents” as many groups as there are units in a Client's group. Example with 3 red groups : 1 group of 3 Mig21 (including one client) 1 group of 2 Mig23 1 group of 2 Mig29 Here's what the function returns on a “normal” server: and here's what the function returns on a dedicated server: I'm attaching the script file I used and a test mission. @f-18hornet bug_getGroups_in_dedicatedServer.lua bug_getGroups_dedicatedServeur.miz FAQ DCE (Cef & Miguel'version) In case of problem with a mission generated by CEF's DCEs, please post as many elements as possible: - the mission + the tacview + a screenshot of the bug window + Give the name of the campaign + version of the scriptsMod
R-Born Posted December 28, 2024 Posted December 28, 2024 (edited) Hi Miguel21 After testing, I can confirm the problem. and to be more precise, if you remove the AI from the group where the human is, the result is correct on the dedicated server. Edited December 28, 2024 by R-Born
Miguel21 Posted December 28, 2024 Author Posted December 28, 2024 5 minutes ago, R-Born said: Hi Miguel21 After testing, I can confirm the problem. and to be more precise, if you remove the AI from the group there is the human, the result is correct on the dedicated server. thanks for the confirmation ^^ And yes, if you take away the AI in the player training, it goes back to normal. That said (and this is what made me look for this error), if N Client (unit) plays in a player's group, this creates N more group. And that's not normal ^^. and it makes our scripts work in unexpected ways FAQ DCE (Cef & Miguel'version) In case of problem with a mission generated by CEF's DCEs, please post as many elements as possible: - the mission + the tacview + a screenshot of the bug window + Give the name of the campaign + version of the scriptsMod
R-Born Posted December 29, 2024 Posted December 29, 2024 On 12/28/2024 at 3:31 PM, Miguel21 said: And that's not normal ^^. and it makes our scripts work in unexpected ways Right !! "Bon courage !"
ED Team f-18hornet Posted January 2 ED Team Posted January 2 Thank you, reported. 1 AMD Ryzen 9 3900X, GeForce RTX 2080Ti, 32 GB DRAM, HOTAS TM Warthog, FSSB R3 Lighting, MFG Crosswind, Win 10 Pro
Recommended Posts