Sound Events Manager plugin

ManiaControl, the completely new designed and easy to use controller managing all your Maniaplanet server.

Moderators: Wabbitface, Jocy, steeffeen, NADEO

Search44
Posts: 47
Joined: 02 May 2014, 20:33
Location: Nantes, France
Contact:

Re: Sound Events Manager plugin

Post by Search44 »

A un moment dans la journée d'hier j'ai essayé à 8 vs 8 et ça allait, le plugin n'est pas trop envahissant ça va, au contraire, il rajoute du fun! 8-)
Sinon j'ai mis à gauche de l’écran les petits messages qui indique le nombre de frags du joueur, car j'ai remarqué qu'à droite le texte dépassait de l’écran quand un pseudo est très long, car ce texte est aligné à gauche...
Sinon je n'ai pas l'intention de rajouter des sons, ceux déjà présents sont très bien! :thumbsup:

Je m'exprime en français car je suis nul en anglais, d'ailleurs j'ai pas trop compris ton precedent message, mais je vais faire un coup de google traduction pour la forme :
At one point in the day yesterday I tried to 8 vs 8 and it was going, the plugin is not too intrusive it will, on the contrary, it adds fun! 8-)
If I put the left of the small screen messages indicating the number of kills the player, because I noticed that right the text exceeds the screen when a name is very long, because the text is left-aligned ...
Otherwise I do not intend to add sounds, those already present are very good! :thumbsup:
User avatar
Lumpik
Posts: 41
Joined: 04 Jan 2015, 22:00
Contact:

Re: Sound Events Manager plugin

Post by Lumpik »

SEM v1.03 released !

Changelog :
- Players can enable/disable MUSIC : Image / Image
- HIT sounds are differentiated for RAIL, ROCKET, NUCLEUS and ARROW.
- RANKING is aligned on the right.
- Description label added on SEM icons.

Enjoy.
Search44
Posts: 47
Joined: 02 May 2014, 20:33
Location: Nantes, France
Contact:

Re: Sound Events Manager plugin

Post by Search44 »

Merci pour la mise à jour. :thumbsup:
Par contre j'ai remarqué un petit bug pour les RANKING, ça "clignote" de façon aléatoire. Pas facile à expliquer, mais disons que ça disparait et réapparait très souvent alors que le joueur est encore en train de fraguer.
Sinon j'ai essayé à 32 joueurs et je crois que ça devient vite fatiguant les sons, tout le monde fini par se plaindre sur le tchat. Du coup je laisse seulement le son de départ "Start fight" et le son de capture d'un pole, c'est plutôt sympa et ça rend bien. ;)
En suggestion, je pensais à un son qui se déclencherait à la fin d'un round, du genre "Well play team" ou autre.
Ou pourquoi pas une sorte de klaxon qui annoncerait la fin d'un match ? Mais ça après c'est aux admin de faire à leur sauce :D

[Google translate]
Thank you for the update. :thumbsup:
By cons I noticed a small bug for RANKING, it "flashes" randomly. Not easy to explain, but let's say it disappears and reappears frequently while the player is still in the process of fraguer.
If I tried to 32 players and I think it quickly becomes tiresome sounds, everyone ended up complaining on chat. So I just left the departure of its "Start fight" and the sound capture a pole, it's quite nice and it looks good. ;)
In suggestion, I thought of a sound that would trigger the end of a round, like "Well play team" or whatever.
Or why not a kind of horn that would herald the end of a match? But it is after the admin to make their sauce :D
User avatar
Lumpik
Posts: 41
Joined: 04 Jan 2015, 22:00
Contact:

Re: Sound Events Manager plugin

Post by Lumpik »

Ranking should not blink anymore in the next release.
It was blinking because it was removed+displayed on each kill. Now, i don't remove the ranking because it's not necessary.

For servers with 32 players, you can configure SEM to play sound every 2 kills, starting on 2nd or 3rd kill.
I would set this config by default by I need to know the mode name of Battle, something like "Battle@<author>".
Search44, could you activate DEBUG in parameters, desactivate the plugin then active the plugin. You'll see a message ""Mode is <mode_name>". Tell me the <mode_name> please. Then, desactive DEBUG in parameters.

At the moment, SEM can't play sound on end of rounds or end of map but i'll add many triggers in a futur release, v1.05 probably.*

Thanks for your report Search44, it help me to improve the plugin :thumbsup:
User avatar
Lumpik
Posts: 41
Joined: 04 Jan 2015, 22:00
Contact:

Re: Sound Events Manager plugin

Post by Lumpik »

Using only "self::SOUND_LINK_KILL . $i" or "self::SOUND_LINK_KILL_{$i}" don't work.
I've already tested a little bit some days ago and again right now.

We've found with work colleagues how to declare and use dynamical constants in php :

Code: Select all

<?php

class test {

	public function load(ManiaControl $maniaControl) {
		// DECLARE KILL_*_LINK constants
		for ($i = 1; $i <= 30 ; $i++) {
			// Get $i in 2 digits
			$i_2digits = sprintf("%02u",$i);
			// Define constants KILL_*_LINK if not already defined
			if (!defined ("KILL_" . $i_2digits . "_LINK")) {
				define("KILL_" . $i_2digits . "_LINK", "100." . $i_2digits . ". Sound for kill " . $i_2digits);
			}
		}
	}

	public function boucle(){
		// CREATE VARIABLES FROM CONSTANTS
		for ($i = 1; $i <= 30 ; $i++) {
			// Get $i in 2 digits
			$i_2digits = sprintf("%02u",$i);
			// Get parameters
			${"KILL_" . $i_2digits . "_LINK"} = $this->maniaControl->settingManager->getSettingValue($this, constant("KILL_" . $i_2digits . "_LINK"));
		}
	}
}

?>
Note that you'll maybe have to use constant("self::SOUND_LINK_KILL_" . $i) if constants are declared with "const" instead of "define".

I'll test this code into my plugin and i'll update it if something's wrong.
Last edited by Lumpik on 20 Feb 2015, 11:49, edited 1 time in total.
Search44
Posts: 47
Joined: 02 May 2014, 20:33
Location: Nantes, France
Contact:

Re: Sound Events Manager plugin

Post by Search44 »

Lumpik wrote:Ranking should not blink anymore in the next release.
It was blinking because it was removed+displayed on each kill. Now, i don't remove the ranking because it's not necessary.
Ok ty :thumbsup:
Lumpik wrote:For servers with 32 players, you can configure SEM to play sound every 2 kills, starting on 2nd or 3rd kill.
I would set this config by default by I need to know the mode name of Battle, something like "Battle@<author>".
Search44, could you activate DEBUG in parameters, desactivate the plugin then active the plugin. You'll see a message ""Mode is <mode_name>". Tell me the <mode_name> please. Then, desactive DEBUG in parameters.
Mode is <SmStorm> ;)
Lumpik wrote:At the moment, SEM can't play sound on end of rounds or end of map but i'll add many triggers in a futur release, v1.05 probably.*
Ty Lumpik, hurry to see that :3
Otherwise I've noticed that when I deactivates "killstreak" sounds, the number at the top right frags disappears. Therefore, I reactivated "killstreak" but I put the volume to zero. In this case, possible to separate the text from the sounds please? :roll:
:1010
User avatar
Lumpik
Posts: 41
Joined: 04 Jan 2015, 22:00
Contact:

Re: Sound Events Manager plugin

Post by Lumpik »

Thanks Search44.
"SMStorm" mode is used for Battle and Instagib, which is really smart... i hope it will not be a problem.

The "number at the top right frags" seems to be the ranking of 3 best killstreakers. I'll add a title to be more understandable.
But disabling KILLSTREAK in parameters should not remove the ranking. It would just remove messages displayed on killstreaking.
I'll test it again.

In a futur release (v1.05 ?), ranking, killstreak sounds and messages will probably be separated in SEM parameters.
It's already separated in players configuration, so why not in admin parameters.
User avatar
insomnia-yamyam
Posts: 213
Joined: 05 Sep 2011, 04:59
Contact:

Re: Sound Events Manager plugin

Post by insomnia-yamyam »

Awesome work chco, reminds me the good old SMART times :thumbsup:

I not have tested the plugin yet, but will for sure next days. If i find some bugs or have suggestions, i will report them here. Keep up the good work and never lose the motivation to improve and to continue updating the plugins. :thx:
GermanINSOMNIAClan!
Multigaming Fun-Clan since 1998!
» www.I-N-S-O-M-N-I-A.de «

Visit our TM2 and SM Clanserver or download the INSOMNIA TM2-Trackpack or SM-Mappack !
You also find us at both Mania-Exchanges - search "German INSOMNIA Clan"
User avatar
Lumpik
Posts: 41
Joined: 04 Jan 2015, 22:00
Contact:

Re: Sound Events Manager plugin

Post by Lumpik »

Thanks insomnia-yamyam !
But i'm Lumpik, not chco ;)
This plugin is not linked to the Maniacontrol loadscreen plugin from chco / Sen-Sai.

FYI, i'm writing description and how-to-use about all parameters. I'll add this in my 1st post, today i hope.
Post Reply

Return to “ManiaControl”

Who is online

Users browsing this forum: No registered users and 1 guest