[ML 2.2] TeamSpeak

Post here every finished plugin

Moderator: NADEO

User avatar
The_Big_Boo
Posts: 1041
Joined: 15 Jun 2010, 15:46

[ML 2.2] TeamSpeak

Post by The_Big_Boo » 14 Dec 2011, 19:01

A new standard plugin to expose some TeamSpeak features ingame. It can create automatically a channel for your dedicated server and 3 subchannels: 1 for each team and 1 for commentators. Spectators can either listen to commentators or talk freely in the main channel.

Requirements

- A TeamSpeak server on which you know the ServerQuery credentials.
- Using threads is useful for this plugin (but that's not mandatory)

Features

- TS group for ManiaPlanet players
- Connection to the TS server from the game by clicking the TS icon
- "Join protected" channels for each ingame team
- Auto switch when changing team or going to spectator mode

Configuration

You'll have to configure this plugin to make it works. You should first create an alias to make it easier.

Code: Select all

alias teamspeak = ManiaLivePlugins\Standard\TeamSpeak\Config
teamspeak.voiceHost
Public IP or hostname or URL of your TS server for people to be able to join it. No default value and mandatory.

teamspeak.voicePort
Voice port of your TS server. Default is 9987.

teamspeak.voicePassword
Password of your TS server if it has one. No default.

teamspeak.queryHost
IP or hostname or URL of your TS server for plugin to control it. Default is '127.0.0.1' as it's better to run ML and TS on the same machine to reduce lag.

teamspeak.queryPort
ServerQuery port so plugin can send commands to your TS server. Default is 10011.

teamspeak.queryLogin
Login for ServerQuery. Default is 'serveradmin'.

teamspeak.queryPassword
ServerQuery password, given by TS server on first launch (see TS documentation if you don't know it).

teamspeak.serverChannelName
By default, the main channel will be named like the following: "ManiaPlanet> [name of your server]" (or the name of the main server in the case of a relay server). You can force its name here.

teamspeak.serverChannelPath
By default, the main channel will be created at the root of your server. You can specify the path where the channel should be.

teamspeak.commentators[]
Logins of commentators.

teamspeak.groupPermissions[]
By default, the ManiaPlanet Players group has the same permissions than the default Guest group. If you know what you're doing, you can edit these permissions but you be really careful because once the group is created you'll have to edit it by hand if you did something wrong or forgot some. The complete list of permissions that can be found in Config.php file has to be given.

It's available in the last standard plugins for ManiaLive 2.2 (and needs at least ManiaLive 2.1)
Standard plugins
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

User avatar
The_Big_Boo
Posts: 1041
Joined: 15 Jun 2010, 15:46

Re: [ML 2] TeamSpeak

Post by The_Big_Boo » 13 Jul 2012, 11:06

Plugin has been updated to offer different features than before. First post updated accordingly.

The main purpose of this new version is to offer an easy way to use TS in team modes like Elite or Heroes. Just use the link to connect to the server and you won't have anything else to do to be in the right channel to talk to your team!

Have fun :)
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

User avatar
magnetik
Nadeo
Nadeo
Posts: 1645
Joined: 01 Feb 2012, 19:13
Location: Paris
Contact:

Re: [ML 2] TeamSpeak

Post by magnetik » 13 Jul 2012, 11:16

:gobananas:
ManiaPlanet technical documentation portal (Dedicated, ManiaLink, ManiaScript, Titles...) -- contribute!

User avatar
Knutselmaaster
Posts: 1267
Joined: 15 Jun 2010, 18:03
Location: Somewhere between Paris and Disney in France.
Contact:

Re: [ML 2.1] TeamSpeak

Post by Knutselmaaster » 28 Jul 2012, 16:24

I love this plugin!
Could you please document the settings a bit more, namely the naming of the channels was hard, i ended up "hacking" into the code and replacing team1 and team2 by Blue and Red, to make it work on all levels.

I had a fatal error too:

Code: Select all

Fatal error: Call to a member function privilegeKeyDelete() on a non-object in /home/tmservers/shootservers/Intense_World_FR/libraries/ManiaLivePlugins/Standard/TeamSpeak/Connection.php on line 189

User avatar
The_Big_Boo
Posts: 1041
Joined: 15 Jun 2010, 15:46

Re: [ML 2.1] TeamSpeak

Post by The_Big_Boo » 29 Jul 2012, 21:04

You can only choose the main channel name. Actually I'm planning to set the team channel names depending on the team names when the method GetTeamInfo gets added to the dedicated. Maybe I'll add a setting to force names anyway.

Do you have a more detailed callstack about the bug, or what happens before it? I know how to quickly fix it but maybe it will create problems on the TS server...
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

User avatar
Knutselmaaster
Posts: 1267
Joined: 15 Jun 2010, 18:03
Location: Somewhere between Paris and Disney in France.
Contact:

Re: [ML 2.1] TeamSpeak

Post by Knutselmaaster » 31 Jul 2012, 15:02

Sorry for the late reply.
I got no more info, there was no error log, just that one error in the normal log.

User avatar
The_Big_Boo
Posts: 1041
Joined: 15 Jun 2010, 15:46

Re: [ML 2.1] TeamSpeak

Post by The_Big_Boo » 03 Aug 2012, 17:04

I forgot to say the bug should be fixed (and probably another one btw). I'll make a new release soon.

Thanks for the report.
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

User avatar
Knutselmaaster
Posts: 1267
Joined: 15 Jun 2010, 18:03
Location: Somewhere between Paris and Disney in France.
Contact:

Re: [ML 2.1] TeamSpeak

Post by Knutselmaaster » 04 Aug 2012, 07:27

Great, thanks!
Please tell what files have changed, so that i don't have to overwrite/compare all my "slightly hacked" files.

User avatar
The_Big_Boo
Posts: 1041
Joined: 15 Jun 2010, 15:46

Re: [ML 2.2] TeamSpeak

Post by The_Big_Boo » 07 Aug 2012, 14:02

Standard plugins package has been updated with fixed TS plugin (download in the first post).

@Knutselmaaster (and whoever is interested in): you can see changes made to the plugin here http://code.google.com/p/manialive/source/detail?r=432
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

User avatar
Knutselmaaster
Posts: 1267
Joined: 15 Jun 2010, 18:03
Location: Somewhere between Paris and Disney in France.
Contact:

Re: [ML 2.2] TeamSpeak

Post by Knutselmaaster » 11 Aug 2012, 21:44

Nice one, thanks ;)

Post Reply

Return to “ManiaLive Plugins”

Who is online

Users browsing this forum: No registered users and 1 guest