JV helppppppp....

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
7th Es Cyborg
First Lieutenant
Posts: 189
Joined: Fri Dec 13, 2002 5:00 pm
Location: PA
Contact:

JV helppppppp....

Post by 7th Es Cyborg »

ok what I've got set up in a rcon control panel is:


resource
PulldownMenuContainer
{
title "music"
name "Default"
rect 241 160 24 16
fgcolor 0.00 0.00 0.00 1.00
bgcolor 0.75 0.75 0.75 1.00
borderstyle "INDENT_BORDER"
menushader "MENU" "textures/menu/pulldownarrow"
selmenushader "MENU" "textures/menu/pulldownarrow_sel"
addpopup "MENU" "xx1" command "tmstop;wait5;tmstart xx1.mp3"
addpopup "MENU" "xx2" command "tmstop;wait5;tmstart xx2.mp3"
addpopup "MENU" "xx3" command "tmstop;wait5;tmstart xx3.mp3"
addpopup "MENU" "xx4" command "tmstop;wait5;tmstart xx4.mp3"
addpopup "MENU" "xx5" command "tmstop;wait5;tmstart xx5.mp3"
addpopup "MENU" "xx6" command "tmstop;wait5;tmstart xx6.mp3"
addpopup "MENU" "xx7" command "tmstop;wait5;tmstart xx7.mp3"
addpopup "MENU" "xx8" command "tmstop;wait5;tmstart xx8.mp3"
addpopup "MENU" "xx9" command "tmstop;wait5;tmstart xx9.mp3"
addpopup "MENU" "xx10" command "tmstop;wait5;tmstart xx10.mp3"


how do I create and execute a script that will play one song after the other has finished?? basicly I want to add an option to the menu to play all songs in order.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Don't think you can type a 'wait' in console :?.

Also don't know a better way. Maybe ask Innkeeper, he seems good at jukeboxes ;).
Image
7th Es Cyborg
First Lieutenant
Posts: 189
Joined: Fri Dec 13, 2002 5:00 pm
Location: PA
Contact:

Post by 7th Es Cyborg »

damm, guess I'll just restart them each time. Playing Disturbed, Godsmack, Metallica, and Marylin Manson in the background gets that killer edge up :lol: :lol: :lol:
7th Es Cyborg
First Lieutenant
Posts: 189
Joined: Fri Dec 13, 2002 5:00 pm
Location: PA
Contact:

Post by 7th Es Cyborg »

ok think i have a solution, but I don't know how to script it,

If I was to set the command line to run say, exec song.cfg

then had in song.cfg

xx[variable].mp3 in an array with something to count the variable from 1 to 10 and switch to the next varaible when the mp3 ends.

anyone got any ideas???????
Post Reply