[Feature Request] Increase fake cd track limit of 255

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

[Feature Request] Increase fake cd track limit of 255

Postby oz » Fri Nov 23, 2007 1:44 pm

Hi,
If one puts more than 255 fakecd tracks in the cdtracks directory, it is currently only possible to play the first 255, because the track number argument will be wrapped to stay between 0 and 255.

Examples of the current state:
If one enters "cd play 256" it will result in an error, because track 0 is invalid (256-256=0).
If one enters "cd play 666" it will result in playing track 154 (666-256*2=154).

I'd like it to be able play about 999 tracks (or maybe a whole int) instead.

The fake cd construct is better for playing music than external media players, for one can manipulate it via aliasses and keybindings from within the game. Currently only three drawbacks seem to exist:
  • The limit of 255 tracks.
  • The lack of documentation.
  • It won't play continuously.


Thanks for your time.
oz
 

Postby KadaverJack » Fri Nov 23, 2007 2:11 pm

just use the filename (without extension) instead of a tracknumber
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby oz » Sat Nov 24, 2007 4:22 pm

Thank you KadaverJack!

I updated my aliasses and bindings. It works fine now!
I also wrote it in the wiki (may need some correction): http://alientrap.org/wiki/pmwiki.php?n= ... ommands#cd
oz
 

Postby Blµb » Sun Nov 25, 2007 9:07 am

[query="oz"]The fake cd construct is better for playing music than external media players, for one can manipulate it via aliasses and keybindings from within the game.[/query]

If that's the only problem, you might want to play around with the vid_grabkeyboard var :)
I personally wouldn't want to use in-game keys for things like music, it's just additional work to do :S
Blµb
Alien trapper
 
Posts: 277
Joined: Thu Mar 29, 2007 1:49 pm


Return to Nexuiz - Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron