AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Loading Music II v1.2.9 (https://forums.alliedmods.net/showthread.php?t=52029)

Simon Logic 03-01-2007 09:38

Loading Music II v1.2.9
 
4 Attachment(s)
This is the most downloadable plugin of my collection in my country. Why not to release it right here? Here it is. Hope, you'll like its stability & new features.

Preamble:
* this plugin is intended to completely replace all the following
plugins: Loading Song (by Torch), Loading Song Advanced (by eFrigid) &
Loading Sound (by [OSA]Odin). This plugin will never replace
Loading Music (by Andrax2000) cause i don't like that concept.

Info:
* plugin for playing sound file or music track during connection to the
server, first team selection (under CS only) or during spectator mode.

Features:
* support for mp3/wav files
* playlist support ($AMXMODX/config/loading_music.ini or hardcoded by
g_sDefaultPlaylist array)
* support for separate playlist for each map (usage: just create
a playlist $AMXMODX/config/loading_music/<mapname>.ini)
* support for separate playlist for each group of maps (usage: just
create a playlist $AMXMODX/config/loading_music/<prefix>_.ini)
* up to 30 filenames (can be changed by MAX_TRACKS macro within the script
file)
* playlist-random/playlist-single-file/single-file playback modes
* precaching of any file within $AMXMODX/sound/ folder (in playlist
playback mode only)
* fadeout effect for mp3 tracks
* and more...

Notes:
* mp3/wav files can be placed anywhere within $MODDIR/, but only under
$MODDIR/sound/ folder they will be precached
* external playlist editing rules see inside .ini file supplied
with plugin

Installation:
* read install.txt inside .zip file

Requirements:
* any mod (preferably HLDM/CS/CZ)
* AMX/X 1.7x (or higher)
* Fakemeta module

New cvars:
* amx_loading_track <number|filename> (default=-1)
sets playback mode:
-1 - random order
0 - play nothing (disable plugin)
N - play single file from playlist (N=1..30)
filename - name of file to play ignoring the playlist (it's
a single-file playback mode); if this is a file under precache dir
it won't be precached
* amx_loading_loop <0|1|2> (default=0)
customizes loop mode playback:
0 - play mp3/wav until a player starts to play
1 - play mp3 once till the end; play wav as described above
2 - play mp3/wav forever (strongly do not recommend
if 'amx_loading_flags' cvar has no flag 'a')
* amx_loading_delay <float> (default=0.0)
if your clients often complain about silence while connecting to your
server try to set this cvar to non-zero number to delay (in sec)
playback after connection event has been triggered
* amx_loading_flags <flags> (default=abc)
a - play mp3 files only on player connection/spectating; otherwise
wav files are possible (strongly do not recommend to turn this flag
OFF because you may get an unstoppable ambient cyclic sound during
the game)
b - play mp3 on spectate; otherwise stop playing track when player
goes to spectator
c - (CS specific) play wav files only on team select; otherwise
connection track will continue playing (under CS it can be turned off
by the game; try using flag 'd' to fix this issue)
d - (CS specific) restart a track on team select to fix a CS bug;
has minor priority than flag 'c'
e - don't play a spectator track on dead players (consider to use it
if you enabled flag 'b')

Known issues:
* mp3 track will continue playing if player disconnects before
he is spawned for the first time; in such a case client should manually
execute 'mp3 stop' or 'stopsound' command in console to stop playing a
track (impossible to fix)
* on loading you may notice a short gap while music is playing;
it's a client related problem (impossible to fix)

TODO:
* apply fadeout effect for wav files

Credits:
* White Panther for the idea

History:
1.2.9 [2007-05-05]
! fixed a bug when the last player in team was dead
and a new round was started, a track was played on him till the end; this bug occasionally occured under CS when flag 'b' was active
+ added new flag 'e' to not play a track on dead players when they
temporarily become a spectators
* Fakemeta module is required now
1.2.8 [2007-03-31]
! fixed improper storing of file extension
! fixed a potential bug when mp3 files under 'sound' folder were not precached
1.2.7 [2007-03-23]
+ added support for separate config files for maps by prefix
(again req. by arkshine)
... (see .sma file for full changelog)

Arkshine 03-01-2007 10:29

Re: Loading Music II v1.2.5
 
Very nice !

I will try asap. :)



EDIT : can you add a per-map feature please ? I mean to define sounds by map. It's useful on my server because the sounds are played according map ambience.

HighX 03-01-2007 17:12

Re: Loading Music II v1.2.5
 
Cool. Going to go load this on.

Simon Logic 03-02-2007 05:37

Re: Loading Music II v1.2.5
 
Damn, i used old .wav samples while creating a loading_music2-1.2.5.zip file. Fixed! Please, redownload .zip.

arkshine, ok, i'll consider later. I think it would be a one .ini file per each map. E.g. loading_music-de_dust.ini for De Dust map. Or a separate folder to leave configs folder clean enough.

Hawk552 03-03-2007 09:48

Re: Loading Music II v1.2.5
 
I can't make a decision on this, so for now it's going to be the only plugin in the new submissions. There's no record of anyone saying it works, and it's sort of redundant.

Simon Logic 03-03-2007 11:30

Re: Loading Music II v1.2.5
 
Somebody told that there is no 100% working plugin today. Also i was too unsatified with existent plugins. I think that those plugins are redundant rather than mine because they are abandoned & contain bugs.

> There's no record of anyone saying it works
There is no answers that it does not work also. By default that should mean that everything is ok because people usually post bad news than good one.

Also i'm open to fix any touble with this plugin if one detects it.

Well, let's wait for answers.

Arkshine 03-03-2007 11:35

Re: Loading Music II v1.2.5
 
I'm testing...

6pack 03-03-2007 22:17

Re: Loading Music II v1.2.5
 
This plugin is not all that great. For a server that has many mods, it makes people download more crap.
Loading sounds (HL Sounds) is a much better plugin.
Also, I can't find it right now but there is an AMX plugin out there that was ported that does not have all the crap that this 1 does and worked like a charm.....iF I find i Will post it for ya.

Hawk552 03-03-2007 22:34

Re: Loading Music II v1.2.5
 
Quote:

Originally Posted by 6pack (Post 448280)
This plugin is not all that great. For a server that has many mods, it makes people download more crap.
Loading sounds (HL Sounds) is a much better plugin.
Also, I can't find it right now but there is an AMX plugin out there that was ported that does not have all the crap that this 1 does and worked like a charm.....iF I find i Will post it for ya.

Yeah, for once I agree with you.

Optimus Prime 03-03-2007 23:08

Re: Loading Music II v1.2.5
 
Quote:

Originally Posted by 6pack (Post 448280)
This plugin is not all that great. For a server that has many mods, it makes people download more crap.
Loading sounds (HL Sounds) is a much better plugin.
Also, I can't find it right now but there is an AMX plugin out there that was ported that does not have all the crap that this 1 does and worked like a charm.....iF I find i Will post it for ya.

Does this plugin do more than play loading sounds? I am confused by the endless description


All times are GMT -4. The time now is 20:18.

Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.