FeedBack & Bugs | Your ideas are important

The next generation of server controlling with clean and powerful user interface

Moderators: oliverde8, reaby, NADEO

User avatar
weerwolf
Posts: 603
Joined: 15 Jun 2010, 21:21
Location: Wijchen, Netherlands
Contact:

Re: FeedBack & Bugs | Your ideas are important

Post by weerwolf »

@base

Oliverde has gives quite a few good pointers for starting writing plugins. I cannot help you at this moment with your idea, but (depending on my time and eager) it may be possible that i write that too.
endbase
Posts: 475
Joined: 26 Jun 2011, 19:34

Re: FeedBack & Bugs | Your ideas are important

Post by endbase »

That sounds nice Weerwolf :thumbsup:

For now I have wrote down the inlog name of the players who where online when they were on the server Old skool on paper :mrgreen:

Thx in advance !

Base
User avatar
weerwolf
Posts: 603
Joined: 15 Jun 2010, 21:21
Location: Wijchen, Netherlands
Contact:

Re: FeedBack & Bugs | Your ideas are important

Post by weerwolf »

Code: Select all

            //$this->connection->kick($player, __($player, "This server is dedicated to European clients. Your connection is terminated."));
            $this->connection->kick($player->login, "This server is dedicated to European clients. Your connection is terminated.");
either code does not show the message to the player, but just gives a connecting failed (10054) to the player.
I wonder why, cause i see the same code used for admin who kickes a player, but in that case a the message (typed in the window) does show.
oliverde8
Posts: 1286
Joined: 16 Jun 2010, 07:33
Location: in a Blue Box

Re: FeedBack & Bugs | Your ideas are important

Post by oliverde8 »

Simple my mistake the ther day, connection->kick requires player login and not the player object in parameter.

Try this :

Code: Select all

$this->connection->kick($player->login, __($player, "This server is dedicated to European clients. Your connection is terminated."));
Not 100% sure for the translation either you may try to remove it if it still don't work.
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...
User avatar
weerwolf
Posts: 603
Joined: 15 Jun 2010, 21:21
Location: Wijchen, Netherlands
Contact:

Re: FeedBack & Bugs | Your ideas are important

Post by weerwolf »

Nope sry

Code: Select all

$this->connection->kick($player->login, "This server is dedicated to European clients. Your connection is terminated.");
Still same effect. Kicked, but no message (10054)
oliverde8
Posts: 1286
Joined: 16 Jun 2010, 07:33
Location: in a Blue Box

Re: FeedBack & Bugs | Your ideas are important

Post by oliverde8 »

Ok so the message is ignored by the game client XD, that is not an eXpansion issue. That function is from the dedicated server API, so if it doesen't work it isn't part of eXpansion.
I will investigate some more this weekend nevertheless to see if we can't display it another way.
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...
User avatar
weerwolf
Posts: 603
Joined: 15 Jun 2010, 21:21
Location: Wijchen, Netherlands
Contact:

Re: FeedBack & Bugs | Your ideas are important

Post by weerwolf »

If u have the time and want to ofcourse, but it felt strange to me because the same function is used on the idlekick plugin for example. So why would it do it there on not on mine :XD

EDIT: Could it be something based on the moment of kick. In situations both on a admin kick or a idle kick, the players connection was fully established.
oliverde8
Posts: 1286
Joined: 16 Jun 2010, 07:33
Location: in a Blue Box

Re: FeedBack & Bugs | Your ideas are important

Post by oliverde8 »

weerwolf wrote:If u have the time and want to ofcourse, but it felt strange to me because the same function is used on the idlekick plugin for example. So why would it do it there on not on mine :XD

EDIT: Could it be something based on the moment of kick. In situations both on a admin kick or a idle kick, the players connection was fully established.
It is probably that. I was thinking of kicking the player after a few seconds, but if you wait for the connection it will cause the lag you try to avoid?

Maybe force spectete, send message, wait a few second then kick?
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...
User avatar
weerwolf
Posts: 603
Joined: 15 Jun 2010, 21:21
Location: Wijchen, Netherlands
Contact:

Re: FeedBack & Bugs | Your ideas are important

Post by weerwolf »

I just kicked myself with the admin command. No message is shown :'(
something changed on the dedicated server maybe ...
The_Big_Boo
Posts: 1026
Joined: 15 Jun 2010, 15:46

Re: FeedBack & Bugs | Your ideas are important

Post by The_Big_Boo »

When a player connects, he's not fully synchronized yet thus some methods can have unexpected results on client side. You may check the flag HasJoinedGame (which is false until the player is synchronized) by calling GetPlayerInfo method or listening to PlayerInfoChanged callback (which is called whenever something change in this PlayerInfo structure, first parameter being the new structure). For instance:

Code: Select all

$info = $this->connection->getPlayerInfo($player);
if($info->hasJoinedGame)
    $this->connection->kick($player, "reason");
Btw, in dedicated server API, you can use either a string or any object with a "login" attribute, both will work correctly.
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
Post Reply

Return to “eXpansion”

Who is online

Users browsing this forum: No registered users and 0 guests