Page 1 of 1
Problem with in game Manialinks
Posted: 25 Sep 2014, 12:01
by Darkminus
Hello,
Yesterday I tried to update my ingame arena duel manialinks (to add some cool fonts

) But I noticed a little problem with them (probably due to one of the last updates)
When my text function returns the manialink for the layer, if that result is empty, the manialink is not refreshed.
For example, if I generate something only when there's a spectator, when he will disconnect, the manialink won't disappear (beause the empty return doesn't make the manialink to disappear as before).
The workaround I use is to return a """<frame></frame>""" to force refresh that layer.
Note that my script uses the old Layers library (as I didn't have time yet to migrate to the latest one.)
The problem is that the same thing happens with the score table which is a little bit boring..
Have a nice day

Re: Problem with in game Manialinks
Posted: 25 Sep 2014, 15:24
by Eole
Hi,
We had a bug like that a long time ago, but it was fixed. I can't reproduce what you're describing, even with the old Layers.Script.tx library.
Code: Select all
declare LayerTest = Layers::Create("LayerTest", """<label text="LABEL" textsize="10" />""");
declare LayerAttached = Layers::Attach("LayerTest", NullId);
sleep(1000);
declare LayerUpdated = Layers::Update("LayerTest", "");
After the layer update I don't see the label anymore.
Darkminus wrote:The problem is that the same thing happens with the score table which is a little bit boring..
What do you mean?
Re: Problem with in game Manialinks
Posted: 25 Sep 2014, 19:45
by Darkminus
Eole wrote:
Darkminus wrote:The problem is that the same thing happens with the score table which is a little bit boring..
What do you mean?
I use my own version of the scoretable (basically a modded version of ScoresTable.Script.txt), and the same problem occurs, when someone disconnects, the scoretable is not updated as it was before (It shows the disconnected people as connected, with its score like if he was still there). I double checked Players/Spectators array, they were empty, so it doesn't come from the Player/Spectator/AllPlayers arrays.
That's why I think that this problem comes from a Maniaplanet update.
Re: Problem with in game Manialinks
Posted: 26 Sep 2014, 12:05
by Eole
Can you share an example or the code of your mode that doesn't work?
Re: Problem with in game Manialinks
Posted: 29 Sep 2014, 20:08
by undef.de
Darkminus wrote:...when someone disconnects, the scoretable is not updated as it was before (It shows the disconnected people as connected, with its score like if he was still there).
Phatom and me noticed this also on a TMStadium test server with the default ScoresTable2.Script.txt from the 2014-09-10 dedicated server, but with the new
UI-Properties. I'm unsure if the "online-status-indicator" was green or not, but the disconnected Player was still listed in the Scoretable after 5-6 map changes.
Re: Problem with in game Manialinks
Posted: 29 Sep 2014, 21:06
by jui
undef.de wrote:Darkminus wrote:...when someone disconnects, the scoretable is not updated as it was before (It shows the disconnected people as connected, with its score like if he was still there).
Phatom and me noticed this also on a TMStadium test server with the default ScoresTable2.Script.txt from the 2014-09-10 dedicated server, but with the new
UI-Properties. I'm unsure if the "online-status-indicator" was green or not, but the disconnected Player was still listed in the Scoretable after 5-6 map changes.
I am not sure but i think this is a different problem with TM servers running in script mode. The online "online-status-indicator" is disconnected and the player is also "disconnected" but somehow stays on the scoreboard. In the logs file there is no entry of player disconnect but i had one guy which was on my server for 16 hours and i do not think he was Alt-Tab out the whole time. I have seen this from more players. Anyway i am gonna watch it and report back.