Author Topic: Help With The Motd  (Read 2495 times)

0 Members and 1 Guest are viewing this topic.

Offline killklli

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Help With The Motd
« on: February 20, 2009, 03:29:34 PM »
Is There A Way For It To Play Music When You Join The Game But It Also Force Downloads And It Only Plays It To The Person Who Joins?

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Help With The Motd
« Reply #1 on: February 20, 2009, 04:58:51 PM »
Not by default.. you'd have to add this functionality to it yourself. unless.. can the GMod html panel have imbedded music/midi players? I honestly dont know.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Help With The Motd
« Reply #2 on: February 20, 2009, 06:38:15 PM »
The Source html (which ULX uses) allows for embedded streaming windows media player content.
URadio (OLD no longer working release from gmod9 days) used these type of pages.
Figuring out the local relative path to play a file that was forcedownloaded however would be quite tricky.
ULX has force downloads of course by default, but combining the two would be a challenge.

I _really_ need to pick Umotd back up.
Though no plans for exactly what you're wanting, I did have plans for a 'radio' page. One of the community members actually edited it themself and added one. Take a look at the last few pages of the UMotd thread for the discussion.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Black_Knight

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Help With The Motd
« Reply #3 on: February 26, 2009, 04:29:14 AM »
Couldn't you just embed it using html, from a url? 

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Help With The Motd
« Reply #4 on: February 26, 2009, 03:12:32 PM »
Couldn't you just embed it using html, from a url?
If the embed was a windows media player object linking to a URL, yes.
If it was just a sound embeded using straight linking, no.
It would try to download it and play it in a separate player. (Whether that be WMP, WMPClassic, Winamp, etc)

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline tony

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
  • Happy Day.
Re: Help With The Motd
« Reply #5 on: February 27, 2009, 03:59:10 PM »
Yeah, doing it JamminR's way would probably be best. You may have to embed the page from the net, however, I'm not sure.
As for "forcing downloads" thats done with your "resources" file