How to display an identical window to all players ?

Discuss the Dedicated Server Tools developed by Nadeo Live such as ManiaLive, Trust Circles, Dedicated Manager, Competition Manager and Lobbies

Moderator: NADEO

oliverde8
Posts: 1286
Joined: 16 Jun 2010, 07:33
Location: in a Blue Box

Re: How to display an identical window to all players ?

Post by oliverde8 »

The_Big_Boo wrote:(and I can assure you it takes much more time on my side ^^).
Specially a lot more thinking.
Thanks a lot for your help, and for the information

Fadden wrote:
The_Big_Boo wrote:Indeed, you need to use Window::RECIPIENT_ALL ;)
Thanks, I found it a few days ago ;)
I use it but I didn't noticed this bug.
I will try to recheck it then tomorrow, thanks
Image
Developper for The next generation, Clean and Powerfull controller eXpansion for your SM & TM server . Working on eXpansion² with full MP4 support and many other awesome features...
Fadden
Posts: 181
Joined: 10 May 2011, 18:21

Re: How to display an identical window to all players ?

Post by Fadden »

Now, with Manialive2 r305, what is the best way to display a window to all players (and spectators) ?

Because Window::RECIPIENT_ALL doesn't work anymore...
Elle est où la poulette ?
The_Big_Boo
Posts: 1026
Joined: 15 Jun 2010, 15:46

Re: How to display an identical window to all players ?

Post by The_Big_Boo »

The best way is to call Create without parameter (or null) then to call show (without parameter too).
It makes me think that I should use my new Group feature to handle those kind of windows automatically, so it won't be necessary to call show() again when a player joins (and maybe default player and spectator groups).
OS: Win 7 Pro x64
RAM: 2x4GB Corsair @ 1600MHz
CPU: Intel i5 760 @ 3.6GHz
Mobo: Asus P7P55D-E
GPU: NVidia GTX 760 2GB
HDD: WD Black 1TB
Sound: VIA VT1828S (onboard)
Peripherals: Razer DeathAdder - Razer DeathStalker - Logitech F310
Fadden
Posts: 181
Joined: 10 May 2011, 18:21

Re: How to display an identical window to all players ?

Post by Fadden »

Hmmm... I tried that but it doesn't seem to work :

Code: Select all

$this->windowClassementEtape = WindowEtape::Create();
$this->windowClassementEtape->show();
No error but nothing is displayed.
If I pass my login to Create(), the window is displayed for me (normal^^)

I will retry this tomorrow, maybe I have a mistake somewhere, but I don't see where...
Elle est où la poulette ?
The_Big_Boo
Posts: 1026
Joined: 15 Jun 2010, 15:46

Re: How to display an identical window to all players ?

Post by The_Big_Boo »

Indeed, it seems I broke this in r305 while fixing a bug :teub:
OS: Win 7 Pro x64
RAM: 2x4GB Corsair @ 1600MHz
CPU: Intel i5 760 @ 3.6GHz
Mobo: Asus P7P55D-E
GPU: NVidia GTX 760 2GB
HDD: WD Black 1TB
Sound: VIA VT1828S (onboard)
Peripherals: Razer DeathAdder - Razer DeathStalker - Logitech F310
Fadden
Posts: 181
Joined: 10 May 2011, 18:21

Re: How to display an identical window to all players ?

Post by Fadden »

I just retested, it's broken :?
Elle est où la poulette ?
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: How to display an identical window to all players ?

Post by w1lla »

TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
Post Reply

Return to “Dedicated Server Tools”

Who is online

Users browsing this forum: No registered users and 1 guest