Page 2 of 7
Re: Sound Events Manager plugin
Posted: 16 Feb 2015, 18:24
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!
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!
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! 
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! 
Re: Sound Events Manager plugin
Posted: 17 Feb 2015, 18:59
by Lumpik
SEM v1.03 released !
Changelog :
- Players can enable/disable MUSIC :

/

- HIT sounds are differentiated for RAIL, ROCKET, NUCLEUS and ARROW.
- RANKING is aligned on the right.
- Description label added on SEM icons.
Enjoy.
Re: Sound Events Manager plugin
Posted: 19 Feb 2015, 06:17
by Search44
Merci pour la mise à jour.
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
[Google translate]
Thank you for the update. 
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 
Re: Sound Events Manager plugin
Posted: 19 Feb 2015, 11:37
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

Re: Sound Events Manager plugin
Posted: 19 Feb 2015, 16:14
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.
Re: Sound Events Manager plugin
Posted: 19 Feb 2015, 19:01
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
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
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?

Re: Sound Events Manager plugin
Posted: 20 Feb 2015, 16:26
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.
Re: Sound Events Manager plugin
Posted: 23 Feb 2015, 04:04
by insomnia-yamyam
Awesome work chco, reminds me the good old SMART times
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.

Re: Sound Events Manager plugin
Posted: 23 Feb 2015, 12:10
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.