The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 94 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 573 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 752 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 752 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 892 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined array key "avatartype" - Line: 892 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 892 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined variable $awaitingusers - Line: 34 - File: global.php(959) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/global.php(959) : eval()'d code 34 errorHandler->error
/global.php 959 eval
/showthread.php 28 require_once
Warning [2] Undefined array key "style" - Line: 1024 - File: global.php PHP 8.4.12 (Linux)
File Line Function
/global.php 1024 errorHandler->error
/showthread.php 28 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5327 - File: inc/functions.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions.php 5327 errorHandler->error
/global.php 1024 build_theme_select
/showthread.php 28 require_once
Warning [2] Trying to access array offset on null - Line: 480 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 480 errorHandler->error
Warning [2] Undefined array key "dateline" - Line: 481 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 481 errorHandler->error
Warning [2] Undefined array key "closed" - Line: 485 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 485 errorHandler->error
Warning [2] Undefined array key "pid" - Line: 505 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 505 errorHandler->error
Warning [2] Undefined array key "options" - Line: 512 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 512 errorHandler->error
Warning [2] Undefined array key "votes" - Line: 513 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 513 errorHandler->error
Warning [2] Undefined array key "question" - Line: 514 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 514 errorHandler->error
Warning [2] Undefined array key "numoptions" - Line: 519 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 519 errorHandler->error
Warning [2] Undefined array key "numoptions" - Line: 525 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 525 errorHandler->error
Warning [2] Undefined variable $alreadyvoted - Line: 611 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 611 errorHandler->error
Warning [2] Undefined variable $undovote - Line: 9 - File: showthread.php(631) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/showthread.php(631) : eval()'d code 9 errorHandler->error
/showthread.php 631 eval
Warning [2] Undefined array key "pid" - Line: 21 - File: showthread.php(631) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/showthread.php(631) : eval()'d code 21 errorHandler->error
/showthread.php 631 eval
Warning [2] Undefined array key 1 - Line: 1474 - File: inc/functions.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions.php 1474 errorHandler->error
/inc/functions.php 1439 fetch_forum_permissions
/inc/functions.php 3077 forum_permissions
/showthread.php 661 build_forum_jump
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(484) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php(484) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 672 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 672 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 768 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 773 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 811 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 811 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(484) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php(484) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 672 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 672 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 768 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 773 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 811 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 811 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(484) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php(484) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 672 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 672 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 768 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 773 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 811 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 811 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "profilefield" - Line: 6 - File: inc/functions_post.php(484) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php(484) : eval()'d code 6 errorHandler->error
/inc/functions_post.php 484 eval
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "canonlyreplyownthreads" - Line: 672 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 672 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 768 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 768 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showvideos" - Line: 773 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 773 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "showimages" - Line: 811 - File: inc/functions_post.php PHP 8.4.12 (Linux)
File Line Function
/inc/functions_post.php 811 errorHandler->error
/showthread.php 1126 build_postbit
Warning [2] Undefined array key "invisible" - Line: 1568 - File: showthread.php PHP 8.4.12 (Linux)
File Line Function
/showthread.php 1568 errorHandler->error
Warning [2] Undefined variable $threadnotesbox - Line: 33 - File: showthread.php(1600) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/showthread.php(1600) : eval()'d code 33 errorHandler->error
/showthread.php 1600 eval
Warning [2] Undefined variable $ratethread - Line: 41 - File: showthread.php(1600) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/showthread.php(1600) : eval()'d code 41 errorHandler->error
/showthread.php 1600 eval
Warning [2] Undefined variable $addremovesubscription - Line: 82 - File: showthread.php(1600) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/showthread.php(1600) : eval()'d code 82 errorHandler->error
/showthread.php 1600 eval
Warning [2] Undefined variable $thread_deleted - Line: 104 - File: showthread.php(1600) : eval()'d code PHP 8.4.12 (Linux)
File Line Function
/showthread.php(1600) : eval()'d code 104 errorHandler->error
/showthread.php 1600 eval




Poll:
You do not have permission to vote in this poll.
Total 0 vote(s) 0%
* You voted for this item. [Show Results]

How do I add custom music to my server?
#1
I've always wanted to know how.
[Image: m2m2gSSDCz-2.png]

Well I WAS the walrus.
Reply
#2
Create Sound object in game. Name it "BGM" and put it directly in the world.

Add an MP3, WAV, or MIDI sound link to the Sound property of the Sound.

Whenever you want it to play, call this line somewhere in a script:

game.World.BGMConfusedtop()
sleep(0.1)
game.World.BGM:play()


If you just want it to play in your server, type "game.World.BGMConfusedtop() game.World.BGM:play()" into the Lua console of the server.
[Image: iwn8gk.gif]
Reply
#3
(03-17-2013, 11:34 PM)Ghosty Wrote: Create Sound object in game. Name it "BGM" and put it directly in the world.

Add an MP3, WAV, or MIDI sound link to the Sound property of the Sound.

Whenever you want it to play, call this line somewhere in a script:

game.World.BGMConfusedtop()
sleep(0.1)
game.World.BGM:play()


If you just want it to play in your server, type "game.World.BGMConfusedtop() game.World.BGM:play()" into the Lua console of the server.

So lets say I make a music track or whatever, and wanna upload it into my game/server, how would I enter that link or source file into the Lua console of the server? Be more specific.


Also, can I use an already made song/track? Or would I risk copyright infringements?
[Image: m2m2gSSDCz-2.png]

Well I WAS the walrus.
Reply
#4
You can't just upload it to the server. It has to be hosted somewhere on the net.

Like, for example, one of these files:

http://keybored.x10.mx/musicdata/bdsmmidi/

Then, add the link to the Sound property of the Sound object.

If you need to create it through a script, here's an example:

s = create("Sound"); s.Name = "BGM"; s.Parent = game.World; s.Sound = "http://keybored.x10.mx/musicdata/bdsmmidi/Axel_F_Remix.mp3"

Then, use that script I posted above.
[Image: iwn8gk.gif]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)