Raised This Month: $209 Target: $400
 52% 

Loading Music II v1.2.9


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-19-2009 , 08:47   Re: Loading Music II v1.2.9
Reply With Quote #121

It's a var unused for the moment. The author had started to add some code to a future feature. He should have uncomment but it doesn't matter because it's not used at all. So it's perfectly safe.
__________________
Arkshine is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 09-19-2009 , 08:49   Re: Loading Music II v1.2.9
Reply With Quote #122

okay thank you very much for the info
i appreciate your help
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
himanish.isaac
New Member
Join Date: Sep 2009
Old 09-21-2009 , 04:53   Re: Loading Music II v1.2.9
Reply With Quote #123

dude...its confusing for me...plz guide more specifically how to install
himanish.isaac is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-21-2009 , 06:48   Re: Loading Music II v1.2.9
Reply With Quote #124

You have one *sma and one config file. You have to install it like any plugins. What is the problem exactly ?
__________________
Arkshine is offline
Meathead~MBG~
Junior Member
Join Date: Mar 2009
Old 10-06-2009 , 00:10   Re: Loading Music II v1.2.9
Reply With Quote #125

For some reason, none of my precached files play except the .wav from counterstrike.
Quote:
; THIS IS A SAMPLE PLAYLIST FILE

; EDITING NOTES:
; 1) put this file under $AMXMODX/config/ folder
; 2) all paths to files must be relative to $MODDIR/ folder
; 3) you can skip an extension, but that file won't be precached (still can
; can be played by client side if exists right there)
; 4) files are precached only if they are placed within $MODDIR/sound/ folder

; NOTE: Half-Life??.mp3 tracks are supplied with HL/CS
;media/Half-Life01.mp3
;media/Half-Life02
media/Half-Life17
; your custom mp3 track to be precached; watch out for mp3 size!
;sound/mp3/your_track.mp3
sound/mp3/aacsong.mp3
sound/mp3/battlecry.mp3
sound/mp3/beer1.mp3
sound/mp3/beer2.mp3
sound/mp3/beer3.mp3
sound/mp3/beer4.mp3
;sound/mp3/Deja Voodoo.mp3
;sound/mp3/Panic Switch.mp3
;sound/mp3/This Love.mp3
sound/mp3/Walk.mp3
sound/mp3/shortbodies.mp3
sound/mp3/game.mp3
sound/mp3/pron.mp3
;sound/mp3/Fixer.mp3

; next track is supplied with CS
sound/ambience/lv_jubilee.wav

; and finally some loading samples supplied with this plugin
//sound/loading/HipHop.wav
//sound/loading/Shogo436.WAV
//sound/loading/ShogoTheme.wav
//sound/loading/Spaceman.wav

; NOTE: max number of tracks is 30; others will be skipped

Quote:
amx_loading_track -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
//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 1
//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 abe
//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')
__________________
Meathead~MBG~ is offline
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 10-06-2009 , 07:34   Re: Loading Music II v1.2.9
Reply With Quote #126

Quote:
For some reason, none of my precached files play except the .wav from counterstrike.
May be they aren't playable by CS due to technical restrictions. Have you checked this? I wrote about this issue in the FAQ.
__________________
my modest stuff: AXN 1.6.1 | plugins | bsp2csdm
Simon Logic is offline
Send a message via Skype™ to Simon Logic
Meathead~MBG~
Junior Member
Join Date: Mar 2009
Old 10-06-2009 , 07:39   Re: Loading Music II v1.2.9
Reply With Quote #127

I have used most of the mp3 files on the server through another plugin.

Quote:
#include <amxmodx>

// change maxsounds # to equal number of songs to randomly play
#define Maxsounds 6

// # of songs listed here MUST be equal to # in maxsounds
new soundlist[Maxsounds][] = {"Beer1","Beer2","Beer3","Beer4","game","shor tbodies"}

// downloads files to clients if they not have it
// be sure to add another line if you add more songs
public plugin_precache() {
precache_sound("misc/game.mp3")
precache_sound("misc/Beer2.mp3")
precache_sound("misc/Beer1.mp3")
precache_sound("misc/shortbodies.mp3")
precache_sound("misc/Beer3.mp3")
precache_sound("misc/Beer4.mp3")
return PLUGIN_CONTINUE
}
// DONT TOUCH CODE BELOW THIS - Initialization
public plugin_init() {
register_plugin("Random Connect Songs","76.0","TatsuSaisei")
return PLUGIN_CONTINUE
}
//plays one of the songs randomly
public client_connect(id) {
new i
i = random_num(0,Maxsounds-1)
client_cmd(id,"MP3Volume 1.0")
client_cmd(id,"mp3 play sound/misc/%s",soundlist[i])
return PLUGIN_CONTINUE
}
__________________
Meathead~MBG~ is offline
BustedRider
Senior Member
Join Date: Dec 2008
Location: Canada/QC
Old 10-07-2009 , 00:10   Re: Loading Music II v1.2.9
Reply With Quote #128

Hi, it doesnt play my sound...
; THIS IS A SAMPLE PLAYLIST FILE
; EDITING NOTES:
; 1) put this file under $AMXMODX/config/ folder
; 2) all paths to files must be relative to $MODDIR/ folder
; 3) you can skip an extension, but that file won't be precached (still can
; can be played by client side if exists right there)
; 4) files are precached only if they are placed within $MODDIR/sound/ folder
; NOTE: Half-Life??.mp3 tracks are supplied with HL/CS
;media/Half-Life01.mp3
;media/Half-Life02
media/Half-Life17
; your custom mp3 track to be precached; watch out for mp3 size!
;sound/mp3/your_track.mp3
; next track is supplied with CS
; and finally some loading samples supplied with this plugin
;sound/loading/HipHop.wav
;sound/loading/Shogo436.WAV
;sound/loading/ShogoTheme.wav
;sound/loading/Spaceman.wav
; NOTE: max number of tracks is 30; others will be skipped
sound/loading/Satisfaction.wav


I want satisfaction to play only when loading and downloading...
but
i can only hear the half-life17
and if i disable half-life i still dont hear satisfaction

Last edited by BustedRider; 10-07-2009 at 00:13.
BustedRider is offline
Meathead~MBG~
Junior Member
Join Date: Mar 2009
Old 10-07-2009 , 01:38   Re: Loading Music II v1.2.9
Reply With Quote #129

Sounds like we're having same problem. You can use the above code I'm using, edit and save as .sma and compile it and it should work fine for you.
It just has to be redone anytime you want to change music. Not sure if it does .wav's though.
__________________
Meathead~MBG~ is offline
Simon Logic
Senior Member
Join Date: Nov 2006
Location: RF
Old 10-07-2009 , 07:53   Re: Loading Music II v1.2.9
Reply With Quote #130

You can't play WAV on loading. Only mp3's. WAVs are for team select only.
__________________
my modest stuff: AXN 1.6.1 | plugins | bsp2csdm
Simon Logic is offline
Send a message via Skype™ to Simon Logic
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:01.


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