working Neuros Media Player

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

George helped me to fix the code and now we have a working Neuros Media Player.
Thanks to Bobby for the fantastic idea.

Current version play 10 free songs, taken from remix.kwed.org
They are all remixes of famous old space games or space related games: like R-Type, Cybernoid, Turrican, Uridium, Space Harrier, One Man and His Droid.
The pack can be downloaded from MegaUpload: 13.52MB
http://www.megaupload.com/?d=G8OX7BTE


Unfortunately Transcendence supports only .wav files at this time, so you have to convert your mp3 or whatever to plain .wav files.

I prepared the xml and uploaded it on xelerus (without the music)
the code is easy enough to be edited by anyone to meet their music needs. :)
http://xelerus.de/index.php?s=mod&id=67

PS: Don't invoke the item if a song is still playing, or 2 songs will be played at the same time. :)
Last edited by digdug on Mon Jan 28, 2008 12:15 am, edited 1 time in total.
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

oh.. cool! You got it working. :)

Hmm.. you know, what about some kind of timer on the invoke so that if a song is playing it won't invoke for the length of the song-

Some kind of blunt method might use a table that you placed the length of each song into to be read later- then work in some kind of method to set a timer from the table that stops the invoke if the timer hasn't run down.
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

I would like in "some kind" to know how to do it. :D

However nice idea. :)
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

The game uses some timers for items built in- like capacitor recharge, for one. And there are many forms of timers in the game outside of the items, so there must be a way to set, activate, and check a timer inside an invoke that can regulate the songs and avoid playing more than one at one time.

It could be something like sysAddObjTimerEvent that was set to the length of the tune, make the function fire an event that clears the item to allow it to be used again.

When you invoke, it sets itself as 'locked' or unable to be invoked again. This can be done in a variety of ways, even using the charges might work.

then it starts the timer, at the end of which the function to unlock (or add a charge to) the invoke is fired and the timer is cleared. (sysCancelTimerEvent)
Post Reply