Problem with in game Manialinks

Talk about ManiaLink development in this forum

Moderator: NADEO

Post Reply
User avatar
Darkminus
Posts: 228
Joined: 05 Jun 2012, 20:54
Location: Dans mon monde.
Contact:

Problem with in game Manialinks

Post by Darkminus »

Hello,

Yesterday I tried to update my ingame arena duel manialinks (to add some cool fonts 8-) ) 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 ;)
Professor Law
ShootMania-addict since June 2012.
Arena Duel, Duel Elite V2, MidAir V2 and SDPro Developer

System Specs:
OS: Windows 10 Professionnal x64
CPU: Intel i5-4670
GPU: MSI TwinFrozr GTX 760 OC
Motherboard: Asus Z87-C
RAM : 10Gb
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: Problem with in game Manialinks

Post 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?
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
Darkminus
Posts: 228
Joined: 05 Jun 2012, 20:54
Location: Dans mon monde.
Contact:

Re: Problem with in game Manialinks

Post 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.
Professor Law
ShootMania-addict since June 2012.
Arena Duel, Duel Elite V2, MidAir V2 and SDPro Developer

System Specs:
OS: Windows 10 Professionnal x64
CPU: Intel i5-4670
GPU: MSI TwinFrozr GTX 760 OC
Motherboard: Asus Z87-C
RAM : 10Gb
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: Problem with in game Manialinks

Post by Eole »

Can you share an example or the code of your mode that doesn't work?
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
undef.de
Posts: 2095
Joined: 06 Apr 2011, 21:57
Location: Germany, North Sea Coast
Contact:

Re: Problem with in game Manialinks

Post 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.
Developer of UASECO, a controller with support of the Modescript Gamemodes for TM².
Visit the official website for more: UASECO.org


Developer of various plugins for XAseco/XAseco2 and MPAseco, visit my lab: www.undef.name

You like what I do? Then award a ManiaStar.
jui
Posts: 171
Joined: 16 May 2013, 15:58

Re: Problem with in game Manialinks

Post 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.
Post Reply

Return to “ManiaLink”

Who is online

Users browsing this forum: No registered users and 1 guest