[Bug] [Lua] [Multiplayer] Change team names
Wed, 2017-04-05 17:41
Changing team names with a lua script doesn't allow players to rejoin after leaving in multiplayer games.
Changing team names with a lua script doesn't allow players to rejoin after leaving in multiplayer games.
Hi bmo
Do you mean changing Team Name using Lua directly "from" .hwt ???
or in detail: do you are changing that team's name from it's Team properties which is stored in its hwt that are placed under %Hedgewars%/Teams ???
Or you're changing that team name generally(in the menu) after quitting a multiplayer games ?
And how long it's effect ? Permanent ?
I curious about this... Gotta check this out soon
Cuz this quite interesting ^^
╓──────────────────╖ ╓──────────────────╖
⠀HP: ██████████ 1E9/1E91E9/1E9 ██████████ :MP
╙──────────────────╜ ╙──────────────────╜
Through SetHogTeamName() in a script.
I'm not sure if this should be cosidered a real bug.
Why would you want to rename an entire team in a multiplayer script? This would cause way too much confusion anyway.
I'm inclined to say that this will not be fixed and instead we just advice Lua scripters to not rename teams in multiplayer.
Hi, I am a Hedgewars developer.
Part of the script consists on players choosing among predefined teams at the beginning of the game. Each team has something special. Changing team names is an easy way to know which teams have been chosen and which player did.
Oh, I see this too late xD
Not like what I've expected before ;S
Okay...
AFAIK, Renaming Team Name "In Multiplayer" Isn't allowed and cause desync, but it's not a bug...
Since I have test it last year (almost get forgotten xD)
But dunno what devs will say about this...
"Warning: This works only for singleplayers training missions for now and will desync multiplayer games."
A quote from Lua API that I can remember...
This is a warning for using "AddHog" function in Multiplayer Games
And so be it for SetHogTeamName function... Maybe just lacks of warning on SetHogTeamName
The things to be notes is that SetHogTeamName is used for Training mission, like AddHog function usage, which is used only in singleplayer
Therefore...
SetHogTeamName [AFAIK] are ONLY used for singleplayer purpose...
╓──────────────────╖ ╓──────────────────╖
⠀HP: ██████████ 1E9/1E91E9/1E9 ██████████ :MP
╙──────────────────╜ ╙──────────────────╜