Jump to content

Recommended Posts

Posted

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:

Screen_241227_231250.jpg



and here's what the function returns on a dedicated server:

 

Screen_241227_231517.jpg

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
Posted (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 by R-Born
Posted
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
Posted
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
Posted

Thank you, reported.

  • Like 1

AMD Ryzen 9 3900X, GeForce RTX 2080Ti, 32 GB DRAM, HOTAS TM Warthog, FSSB R3 Lighting, MFG Crosswind, Win 10 Pro

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...