Problem with SpawnScreen lib

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Akbalder
Posts: 1059
Joined: 15 Jun 2010, 11:00
Contact:

Problem with SpawnScreen lib

Post by Akbalder »

I tried to use some new functionalities (pretty rules and ranking) of the SpawnScreen lib but I have a problem. :?
When coming back on the server after a while, it seems that all the custom UI is disabled (scoretable, spawns, messages).

Does anyone know what could cause that? What changed in this library?
It's difficult to find the cause of the problem because everything works when playing the first matches. :teub:
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: Problem with SpawnScreen lib

Post by Eole »

Mmmh, strange indeed. When it happens it affect all the players joining the server? To me it looks like the game mode script destroys all the layers for some reason after a while. If it was a crash in the UI script, it should just affect this specific UI and not all the custom ones. :/

It happens only if the new functions from the SpawnScreen lib are used? If you use the old functions all works fine? If you remove the lib completely from the game mode script no more problems?
Do you use a server controller that display custom manialinks?
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
Akbalder
Posts: 1059
Joined: 15 Jun 2010, 11:00
Contact:

Re: Problem with SpawnScreen lib

Post by Akbalder »

All the players who join the server seems to have the problem.
Going to the next map doesn't fix the UI.

When I disabled the call to CreatePrettyRules, I think that it solves the problem. I'm not sure since the problem usually happens on the server after a few hours.

On the server, I only use the voting plugin from manialive.
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: Problem with SpawnScreen lib

Post by Eole »

The next time you see the problem, can you launch a vote to restart the map and see if the problem is still here? A map restart also restart the game mode script, so if the problem is linked to the game mode script, there's a high chance that it should bring back the UI to its initial state.
Another thing you can try is to press ctrl+g two times on the ManiaPlanet client after connecting to the server. And try to see if you see an error linked to the SpawnScreen lib UI in the debugger.

Is there a server where I can check from time to time if the problem happens?
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
Akbalder
Posts: 1059
Joined: 15 Jun 2010, 11:00
Contact:

Re: Problem with SpawnScreen lib

Post by Akbalder »

The script is running on the BCZ Jailbreak right now.
In this version, I call ResetRulesSection() before re-creating the pretty rules.
It's been a few hours and there hasn't been any problem yet.
Akbalder
Posts: 1059
Joined: 15 Jun 2010, 11:00
Contact:

Re: Problem with SpawnScreen lib

Post by Akbalder »

This bug also happens on Battle servers! (I copied from Battle to do the modifications for Jailbreak).
With Ctrl+G, there is no error displayed, the manialink from the UI are not in the list.
Restarting the map restarts correctly the interface.


With the ResetRulesSection added, my server has been able to run for 24 hours without problem.
The difference between Jailbreak/Battle and the other gamemodes is that the rules are recreated at each round.
Could it be a memory management issue?
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: Problem with SpawnScreen lib

Post by Eole »

I've seen the problem on some Battle servers. The script runs and it's possible to play, but it looks like the server stops to send the UI to the clients at some point for an unknown reason. We're investigating this bug.
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
franck70
Posts: 224
Joined: 10 Jan 2011, 18:15
Location: France/Rhone-Alpes/Isère

Re: Problem with SpawnScreen lib

Post by franck70 »

Eole wrote:I've seen the problem on some Battle servers. The script runs and it's possible to play, but it looks like the server stops to send the UI to the clients at some point for an unknown reason. We're investigating this bug.
Any news about this problem ?
Image
Akbalder
Posts: 1059
Joined: 15 Jun 2010, 11:00
Contact:

Re: Problem with SpawnScreen lib

Post by Akbalder »

You still have the problem?!

In the Battle script, just before the line

Code: Select all

SpawnScreen::AddSubsection(_("Type"), _("Team versus Team"), 0.);
try to add the line

Code: Select all

SpawnScreen::ResetRulesSection();
It solved the problem for Jailbreak.
User avatar
franck70
Posts: 224
Joined: 10 Jan 2011, 18:15
Location: France/Rhone-Alpes/Isère

Re: Problem with SpawnScreen lib

Post by franck70 »

Ty Akbalder :thx:
Image
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 2 guests