xbox-scene.com - your xbox news information source
Quick Links: Main Forums | Xbox360 Forums | Xbox1 Forums | PS3 Forums
Xbox-Scene Forum Help  Search Xbox-Scene Forums   Xbox-Scene Forum Members   Xbox-Scene Calendar

Giganews Usenet Offers: +1150 days binary retention, 99%+ Completion, and Unlimited Speed/Access!

360 ODD Emulators: X360 Key $99 | Wasabi360 FAT $99 | Wasabi360 Slim $99
C4E's iXtreme Burner MAX Drive: LiteOn iHAS124 DROPPED TO JUST $17


Welcome Guest ( Log In | Register )

 Forum Rules Rules
 
Reply to this topicStart new topic
> Power Hour Feature, and possibly century club?
GWisAwesome
post May 23 2006, 06:04 AM
Post #1


X-S Young Member
*

Group: XS-BANNED
Posts: 33
Joined: 5-January 04
From: Morgantown, WV
Member No.: 88992
Xbox Version: v1.1
360 version: none



first off, if you are unfamiliar with the drinking game power hour..
you get together with your friends and start playing music usually from a power hour CD someone put together
its 60 second clips of songs, each time a song changes you know its time to take a shot (of beer) 60 shots in 60 minutes (hence power hour), my favorite way to pre-game it

cutting 60 second clips from 60 songs is REALLY REALLY annoying and seeing how my xbox does everything else these days i was wander a couple things..

is it possible to have xbmc automatically switch songs in a playlist after every 60 seconds?

could i also get it to randomly start the song like maybe start from 20 seconds in instead of the begining?

could i get a 5 second delay of silence between songs, maybe a beep or something to alert you to drink?

the option to toggle between 60 and 100 songs? (century club = 100 in 100... if you dare)

if this isnt already out there could someone point me in a direction? i've coded a little, mostly pascal in highschool and ive made a couple simple games in flash like pacman... but i think if someone could help me do this or tell me what language i need to know, i can do some research and make it...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
slumberpod77
post May 23 2006, 07:49 AM
Post #2


X-S Freak
*****

Group: Members
Posts: 1476
Joined: 16-October 04
From: Portland, Oregon
Member No.: 156814
Xbox Version: v1.1
360 version: v1 (xenon)



devs, is this do-able with Python?
actually i am certain you could play each track from the beginning for 60 seconds, the script could just contain a timer function which is called between each enque command. the big question is, is it possible to tell mplayer "go to x:x:x position within the current media"? i'm kindof surprised this hasn't come up before now, since many college kids do this kind of stuff and many computer science majors look for random projects to do to help learn stuff.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
GWisAwesome
post May 24 2006, 02:02 AM
Post #3


X-S Young Member
*

Group: XS-BANNED
Posts: 33
Joined: 5-January 04
From: Morgantown, WV
Member No.: 88992
Xbox Version: v1.1
360 version: none



ok so im downloading python from python.org as i type this
im not sure about the syntax or anything with this language but the logic should be easy,
im going to make some type of function that delays for 60 seconds and call that function after making a song play?
some type of 'for - to - do' loop from 1 to 59 to have it change the song and delay for 59 times, so it will play a song, wait 60 seconds, then start over - play a new song, wait 60 again?
sound right?

is there anyway to have a user interface with this?
for example make the number 59 a variable X where you could set the number of songs, so you could choose to do a power hour or century club?
and also some way to display what minute you are on or a timer counting up to 1 hour?

lol the more i think about this the more stuff i think would be cool

if anyone can/wants to help me thatd be awesome
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
nuka1195
post May 24 2006, 02:13 AM
Post #4


X-S Expert
***

Group: Members
Posts: 639
Joined: 17-September 04
Member No.: 147942



CODE
import xbmc, sys
from time import sleep

plist = xbmc.PlayList(0)
plist.shuffle()

c = 0
while 1:
  c +=1
  if (c < 61):
    xbmc.Player().playnext()
    sleep(60)
  sys.exit()


Queue a bunch of songs then run this script.

This post has been edited by nuka1195: May 24 2006, 02:19 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
imamafackinhokie
post May 24 2006, 12:12 PM
Post #5


X-S Freak
*****

Group: Members
Posts: 1452
Joined: 5-January 04
From: Pittsburgh
Member No.: 89217
Xbox Version: v1.6
360 version: v4.0 (jasper)



Did anyone try that script, it seems easy enough? blink.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
GWisAwesome
post May 28 2006, 02:04 AM
Post #6


X-S Young Member
*

Group: XS-BANNED
Posts: 33
Joined: 5-January 04
From: Morgantown, WV
Member No.: 88992
Xbox Version: v1.1
360 version: none



after the song gets to 60 seconds my xbox freezes with the posted script
it wont reset without actually pressing the power button

any ideas on how to fix it?


hokies huh? its a shame the mountaineers wont be playing you all anymore, it would be great to go to blacksburg and slaughter them this year along with everyone else we are playing.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
nuka1195
post May 28 2006, 04:03 AM
Post #7


X-S Expert
***

Group: Members
Posts: 639
Joined: 17-September 04
Member No.: 147942



CODE
import xbmc, sys
from time import sleep

plist = xbmc.PlayList(0)
plist.shuffle()
xbmc.Player().play(plist)

c = 0
while (c < 60):
  c += 1
  sleep(60)
  xbmc.Player().playnext()
xbmc.Player().stop()


Oops, this should work. remember crossfade should be off for this game. This is set for you to drink at the very begining. If you want it on every song change. c < 61
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
lclagett
post Jan 30 2007, 04:03 AM
Post #8


X-S Enthusiast


Group: Members
Posts: 21
Joined: 1-July 05
From: Ocean City Md/Blacksburg Va
Member No.: 231165
Xbox Version: v1.0
360 version: v1 (xenon)



I know this an old thread but ...

I am working on a power hour with some sort of interface like someone asked in the thread. The code posted earlier should work just fine, but is pretty basic. Currently I have written something that will play whatever you have queued up, whether it is more or less than 60 songs it doesn't matter (it grabs the number of songs from the playlist, and uses that). There are also buttons in the script that open up the My Music section, and Queued music section from the window in the script. The script automatically fast forwards 45 seconds into a song (by roommate request)

Still in its infancy, but eventually I hope there should be some way to make it so that you can start part way through tracks, define a transition audio file, or maybe even a Harrel St. Power Hour type option (courtesy of the lovely iPowerHour people).

If there is still interest in this let me know - as it stands now this will pretty much only work right in PMIII under 720P, but if people out there are still interested ....
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
ScrewinGates
post Jan 30 2007, 04:37 AM
Post #9


X-S Senior Member
**

Group: Members
Posts: 285
Joined: 2-September 06
From: the mnts. of western nc
Member No.: 298004
Xbox Version: v1.0
360 version: v3.0 (falcon)



hell yea any kind of drinking game kicks ass biggrin.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
meanass
post Jan 30 2007, 02:06 PM
Post #10


X-S Young Member
*

Group: Members
Posts: 42
Joined: 3-February 04
Member No.: 97419



Absolutley interested!!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
lclagett
post Feb 1 2007, 07:08 AM
Post #11


X-S Enthusiast


Group: Members
Posts: 21
Joined: 1-July 05
From: Ocean City Md/Blacksburg Va
Member No.: 231165
Xbox Version: v1.0
360 version: v1 (xenon)



Ok I created a Google Code Project for this at xPowerHour Project.

This has been run in 720P, in XBMC 2.0.0, under PMIII. Using another skin may result in problems, since the script just does a quick and dirty 'background.png' call. I tested in 480P briefly, and it looked good, but your results may vary. Anyone out there let me know.

I should start a new thread for this in the proper scripts forum - will most likely do that once I get some basic feedback on this script.

Just run the script. From inside the script you can, add songs, edit the list of songs, and start power hour. When power hour has started it will show the number of seconds until the next drink, and the number of drinks left. Only the X and buttons work. X closes this so-called drinking mode, A shows a progress bar of the game. I cannot trap the remote buttons correctly.

Most of this is already listed on the Google project page in the expected places. Note this script also will:
Do a check for 60 songs
Check each song for 105 second length (since the script starts :45 seconds into the song)

This script isn't quite finished yet, so if there is a feature you hope to have, it may be yet to come!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post





Reply to this topicStart new topic

 

Lo-Fi Version Time is now: 19th May 2013 - 08:22 PM