[xAseco 1] Plugin: Custom Sounds (clickable)

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

Post Reply
User avatar
L3cKy
smooth traffic navigator
smooth traffic navigator
Posts: 283
Joined: 05 Sep 2007 13:55
Owned TM-games: TMUF
Location: Berlin
Contact:

[xAseco 1] Plugin: Custom Sounds (clickable)

Post by L3cKy »

Plugin: Custom Sounds

Info

- This plugin provides the "/cs" chat command, allows to load different custom sounds via click or given chat command.
- All sounds get's preloaded at player connect and played over the "Sound" channel.
- Sends customizeable server messages via click or chat command (can be disabled)

- Preview


Setup

- unzip the file Custom_Sounds_v1.0.zip
- edit "custom_sounds.xml" (all required fields are explained in detail)
- copy "custom_sounds.xml" to xaseco's main directory.
- copy "plugin.custom_sounds.php" to xaseco's "plugins" directory.
- edit the file xaseco/plugins.xml and add <plugin>plugin.custom_sounds.php</plugin> to it.
- restart xAseco


Additional

- a few custom sound files are included ("wav_files")


Changes

v1.0 - initial release for xAseco1.16+ by L3cKy


Download

- Custom_Sounds_v1.0.zip

Have fun ... so long L3cKy 8)
FilipTheWise
highway camper
highway camper
Posts: 3
Joined: 20 Apr 2020 13:07
Owned TM-games: TMU

Re: [xAseco 1] Plugin: Custom Sounds (clickable)

Post by FilipTheWise »

Hey, thanks for making the plugin!
I just found out that some manialink IDs overlap with ones from custom chat pugin and, because of that, both plugins can't be used at the same time...
I hope that it is possible to fix it.
Regards

Line 89 in plugin.custom_chat.php:

Code: Select all

if ($answer[2] >= 60001 && $answer[2] <= 60200) {
		// get player
		
		$player = $aseco->server->players->getPlayer($answer[1]);
		$target = $player->playerlist[$answer[2]-60001]['login'];
		
		if (isset($customChat->mutes[$target])) {
		$customChat->remove_mute($answer[1], $target);		
		} else {
		$customChat->add_mute($answer[1], $target);
		}
		$command = array();
		$command['author'] = $player;
		$command['params'] = "";
		chat_mute($aseco, $command);
	}


}  // event_players
plugin.custom_sounds.php manialink IDs:

Code: Select all

# ---------------------------------------------------------------------------------------------------------------------
#
# Manialink id's	60000 main window
#					60002 preloader
#					60003 icon play click command
#					60004 icon play chat command
#					60005 sound icon
#
# ---------------------------------------------------------------------------------------------------------------------
#
# Action id's		60001 close main window
#					60010 to 60014 switch pages
#					60020 to 60220 reserved for play sound via click
#
# ---------------------------------------------------------------------------------------------------------------------
User avatar
L3cKy
smooth traffic navigator
smooth traffic navigator
Posts: 283
Joined: 05 Sep 2007 13:55
Owned TM-games: TMUF
Location: Berlin
Contact:

Re: [xAseco 1] Plugin: Custom Sounds (clickable)

Post by L3cKy »

FilipTheWise wrote: 11 Sep 2022 19:59 Hey, thanks for making the plugin!
I just found out that some manialink IDs overlap with ones from custom chat pugin and, because of that, both plugins can't be used at the same time...
I hope that it is possible to fix it.
Regards
Hej hej ... thx for the report.

I try to find some time to fix it.
I have send you a fast fix via pm.

So long L3cKy
Post Reply