groupAddAreaNoGroup() not working properly #889
Comments
Per commented "bGroup.memebrs" -- did you also test without the misspelling? The C code in question looks fine to me. Can you also output the results of the groupAddArea command, to see if it worked? |
DylanDog commented Replying to Warzone2100/old-trac-import#889 (comment:1):
|
DylanDog commented I meant "c" code would generate an error with the misspelling. You could not compile it. |
Per commented Yes, please send a modified AI code that I can test. |
DylanDog uploaded file use player 0 !! |
DylanDog commented File attached, use the wz as mod and play with player 0! you will see on the top left of the screen the two debug messages. The code added to player0.slo is the following:
...and obviously I have added the variable declaration too:
There are also two jpg files with screendumps showing the debug messages on the maps:sk-Rush and sk-CloseComba Please fix this as without groupAddAreaNoGroup() I would have to create an ad-hoc group management which would requires many functions, checks and so on... Thanks!!!! |
Per commented (In [8172]) 2.2: Fix scrGroupAddAreaNoGroup script function, was called as scrGroupAddArea instead. |
Per commented (In [8173]) Fix scrGroupAddAreaNoGroup script function, was called as scrGroupAddArea instead. |
Per changed status from |
Per changed operating_system which not transferred by tractive |
Per set resolution to |
Per changed milestone from `` to |
Per commented groupAddAreaNoGroup and groupAddArea turned out to be the same function... Fixed for the next release. |
DylanDog commented FIXED! this is a great thing, I see you have put this as milestone for 2.2.4 -> great!! thanks! |
Buginator removed milestone (was |
Buginator commented Milestone 2.2.4 deleted |
keyword_groupAddAreaNoGroup
resolution_fixed
type_bug
| by DylanDogThe function groupAddAreaNoGroup() is not working properly as it adds to the given group even the units which are already grouped.
I have tested it also in the following way, I have added on the event which is called when a game is initialezed the following code:
On the map SK-Rush the message displays always
"bGroup Members (2)"
which is obviusly wrong.
without this function managing groups is quite hard.
Issue migrated from trac:889 at 2022-04-15 19:12:05 -0700
The text was updated successfully, but these errors were encountered: