#597 posted by Spirit on 2012/04/21 20:53:13
-width 1680 -height 1050 -bpp 32 -window
Re: Qconsole.log
#598 posted by szo on 2012/04/22 12:34:40
Because it is the engine's log. Besides, the mod directory can be changed when the game is still alive, so there is no point in putting it under /quake/gamedir/
@spirit
#599 posted by sock on 2012/04/22 21:59:32
I tried the -window command line and it worked perfectly but the +mlook no longer works, even if I do a vid_restart console command.
For some reasons if I start the engine normally and tell (via config file) the engine to go windowed the +mlook still works. (it also grabs the mouse pointer permanently, I have to close the engine down to use the mouse with other window apps.
#600 posted by necros on 2012/04/23 01:23:57
sock: try pulling down the console before tabbing? that works in quakespasm anyway. i agree though, it would be nice if mouse control was release as soon as focus was lost.
MP3 (or Ogg) Support
#601 posted by quaketree on 2012/04/26 03:02:44
Ok, maybe I'm an idiot (well, ok, maybe might be understating it a bit) but how do I get FQ 0.85 to play the ripped tracks (I've tried both formats)?
I've tried placing the files (named track02.xxx through track11.xxx where xxx is the two different format extensions) in:
QUAKE\id1\sound\cdtracks
QUAKE\id1\sound\music
QUAKE\id1\cdtracks
QUAKE\id1\music
QUAKE\cdtracks
QUAKE\music
I know that the music works (ogg plays fine in DarkPlaces and the mp3's work in a few different media players) and when I put in the game CD it plays just fine. I'd just rather not risk damaging the original CD if I don't have to.
Is this not supported in this engine or am I missing something obvious?
I'm Not Sure
#602 posted by necros on 2012/04/26 03:23:47
i know baker made a version where he added it in himself, so i don't think the stock fq085 does.
#603 posted by quaketree on 2012/04/26 03:27:46
Yeah, I saw that but the link to the binary is dead and I don't really want to mess with compiling a new exe. I'd probably just screw it up.
Oh well, maybe in the next version...
#604 posted by necros on 2012/04/26 03:31:47
quakespasm does play mp3/oggs (in /id1/music) and it's very similar to fq.
name them track02-11 and they will play normally.
#605 posted by necros on 2012/04/26 03:34:26
incidentally, you can make your own custom music by making music files track13 and up, then just using the sounds field in worldspawn or the builtin SVC for cd playing in the qc.
Quakespasm
#606 posted by quaketree on 2012/04/26 04:56:35
Spiffy! Thank you.
#607 posted by Spirit on 2012/04/26 07:48:36
many engines support arbitrary filenames so for custom tracks please avoid numbers but use distinct unique filenames Instead.
#608 posted by necros on 2012/04/26 07:59:07
numbers are better because you can use the builtin qc function to start music as well as the worldspawn key, which, if the engine integrates the mp3 playing PROPERLY should redirect to the mp3 reliably as opposed to stuffcmd'ing console commands that may vary between engines.
#609 posted by Spirit on 2012/04/26 18:26:13
engines should support any filenames for both of these options. the "cd play" command should be fully transparent/oblivious.
Arbitrary Filenames
#610 posted by mh on 2012/04/26 20:40:23
"cd play 5" should play the 5th file in the list - easy as that. No need for requiring any track naming convention at all.
#611 posted by metlslime on 2012/04/26 20:55:53
5th file in the list.... the list being all music files located in the id1 music dir + mod's music dir? So if someone adds "aaa.mp3" to their id1 dir, then every other level you own will now play a different track?
#612 posted by Spirit on 2012/04/26 21:01:19
cd play 5 must play the cd track 5 or the equivalent external files which is track005 or track05 or something like that.
#613 posted by szo on 2012/04/26 21:59:43
"cd play 5" playing the 5th file in the list is unreliable and also is against the purpose of the cd command which is "playing track 5 of the cdrom in the drive" and nothing else.
The reliable solution is using a unique filename for every different music which what hexen2 did 15 years ago: see svc_midi_name of hexen2. In uHexen2, I further extended its use for music files other than midi such as ogg, mp3, wav. (Of course the drawback of the server message is that it dictates a new protocol.)
I'm Not Seeing
#614 posted by mh on 2012/04/27 02:11:35
How somebody adding an extra file to the directory is any way different to somebody popping in a different CD. Other problems arise. What if somebody puts both track01.mp3 and track01.ogg into the directory for an engine that supports both mp3 and ogg formats? What if somebody deletes one of the files? What if the author of another popular engine decides to use a different naming convention because they feel that it's somehow superior? There's only so far you can go to protect against this kind of thing before it becomes counter-productive. Ultimately I favour the approach that is most pragmatic and that offers the least surprise and least unexpected behaviour to the player - not the engine coder, not the mapper/modder - the player. If the player puts an extra music file in there, what do you think the player's expected behaviour is going to be? So code to that.
#615 posted by necros on 2012/04/27 02:21:30
since everyone has their own protocols anyway, i'd rather see a new builtin svc.
CD Play
#616 posted by Preach on 2012/04/27 10:16:46
What's wrong with testing in the following order:
cd play X
First attempts to find a file exactly called x
If that fails, but X is numeric, try to load a file called track0X.wav, then track0X.ogg, then track0X.mp3 (in decending order of *likely* quality).
Finally if none of those files exist then play track X on the cd in the drive
This lets you play extra files and is consistent with previous behaviour, except where players have intentionally put new trackXX files in the music directory. You can even do fallbacks: play gorkypark.mp3 if it exists (and the engine supports it), otherwise play track 4 from the CD, through the commands
cd play 4
cd play gorkypark.mp3
You can replace the first one with the SVC command from qc as well, stuffcmd only the custom one. I wouldn't worry about the overhead of a stuffcmd, because you aren't going to change the music on a frame by frame basis (the drive wouldn't even have spun up)
Mh:
#617 posted by metlslime on 2012/04/28 00:32:05
your method makes a lot of sense for the use case of "user puts 10 audio tracks in a folder and expects the game to use those instead of the phyical CD in the drive."
The other use case, where modders want to include music with their levels, seems problematic to me. To correctly specify the music track, they can't use a number (since they don't know what else the user has installed, they don't know where their track falls in the order.) So they could use a name instead, and we could say that is the standard for modders including music. But, then we need a new mechanism for the server telling the client what track to play, since svc_cdtrack only allows a single byte.
However, the presence of mod music in id1 would screw up the user's music, since now there are extra tracks inserted in arbitrary order between the original 10 installed by the user.
However, The Presence Of Mod Music In Id1
#618 posted by mh on 2012/04/28 02:02:24
Should a mod even be putting music in id1? If a mod messed with id1 content to this kind of extent I would think it's overstepping bounds.
Maps are OK, but other kinds of content? That's the beginning of a slippery slope.
I appreciate the desire to play nice with what a modder might want, but the ultimate arbiter of everything is the player. If a mod shows disrespect to the player's desires, then the player will just not use that mod.
That's where I'm trying to come from here - what is the behaviour that the player expects? I'm not particularly religious about this - if it turns out that the player's expected behaviuour is something different to the way I've done it, then fine. I'll change. But it's the player's expected behaviour that calls the shots, not the modder or the engine coder.
Naming Convention
#619 posted by Preach on 2012/04/28 02:31:50
The naming convention for tracks benefits players, because it lets them selectively replace tracks and keep the CD for others. It's a side benefit that it opens the door for custom track playing in mods.
#620 posted by metlslime on 2012/04/28 03:09:59
agree that putting mods in id1 is not ideal, but in practice people do it when the mod is only adding files and not replacing them -- for example a map that comes with a custom skybox might just get installed in id1, the skybox won't hurt any other map by its presence. Or maps that have custom mapmodels as external bsp files -- those get installed in id1 also.
#621 posted by necros on 2012/04/28 05:42:40
Or maps that have custom mapmodels as external bsp files -- those get installed in id1 also.
you don't have to do this though. unless you mean replacement items?
|