#tfl@irc.freenode.net logs for 3 Apr 2007 (GMT)

Archive Today Yesterday Tomorrow
tfl homepage

[03:38:51] <-- servus has left IRC (pratchett.freenode.net irc.freenode.net)
[03:38:51] <-- Marzo has left IRC (pratchett.freenode.net irc.freenode.net)
[03:40:08] --> Marzo has joined #tfl
[03:40:08] --> servus has joined #tfl
[03:42:14] --- Marzo is now known as Marzo_away
[03:57:34] <-- Marzo_away has left IRC (Read error: 104 (Connection reset by peer))
[16:55:15] --> petermdodge has joined #tfl
[16:55:15] --- ChanServ gives voice to petermdodge
[17:19:19] <-- petermdodge has left IRC (Read error: 110 (Connection timed out))
[18:09:22] --> petermdodge has joined #tfl
[18:09:26] --- ChanServ gives voice to petermdodge
[19:20:06] --> Marzo has joined #tfl
[19:20:08] --- ChanServ gives voice to Marzo
[19:20:17] <Marzo> Hi
[19:20:29] <petermdodge> Greetings.
[19:21:08] <Marzo> Did you notice the new TFL title screen actually showing up?
[19:22:01] <petermdodge> We have a title screen?
[19:22:08] <Marzo> Yep
[19:22:15] <petermdodge> Sneaky.
[19:22:24] <Marzo> I took one that was in the data folder and modified it a little
[19:22:30] <petermdodge> I should upsate from CVS shouldn't I?
[19:22:35] <Marzo> :-)
[19:22:37] <petermdodge> Update, even
[19:22:55] <Marzo> It is also possible now to use custom oggs
[19:23:20] <Marzo> I am still trying to figure out the midi portion, though, as it is extremelly confusing
[19:24:17] <Marzo> (you will likely have to get the latest snapshot of Exult too, if you haven't already)
[19:24:19] <petermdodge> Nice
[19:33:39] <Marzo> Which one do you think is best: http://seventowers.u7feudallands.com/images/Katrina.png
[19:34:42] <petermdodge> I like the middle one the most
[19:35:18] <Marzo> I am thinking of softening up the middle of the neck a bit more
[19:35:31] <petermdodge> Aye
[19:35:39] <Marzo> But already one can see that the neck is way better than it was before :-)
[19:36:55] <petermdodge> Aye, again
[19:36:56] <petermdodge> :-)
[20:03:22] <petermdodge> SWEET
[20:03:30] * petermdodge hugs his title screen
[20:03:30] <Marzo> :-)
[20:04:05] <Marzo> I changed the position of the "Powered by Exult" thingy to avoid clashing with the "Journey Onwards" button on avatar creation
[20:04:20] <Marzo> But it looks great. You did a great job with it
[20:04:43] <petermdodge> Thanks :-)
[20:05:30] <Marzo> It looked so good that my accidentally finding out about it prompted me to change Exult so it could be used :-)
[20:05:40] <petermdodge> Nice :-)
[20:05:52] <petermdodge> So we can use custom OGGs now?
[20:05:57] <Marzo> Yes
[20:06:19] <petermdodge> Nice.
[20:06:31] <petermdodge> Just in the music egg, I take it?
[20:06:32] <Marzo> In the CVS tree, you would place them under a 'music' subdir on the same level as 'src'
[20:06:41] <Marzo> I have to look
[20:07:21] <Marzo> Names are in the '##bg.ogg' format
[20:08:54] <Marzo> You can play music through usecode with play_music intrinsic
[20:09:21] <Marzo> Track # you pass through will determine the file to play in the same way as eggs
[20:09:24] <petermdodge> Can we do it in eggs, or is that on the TODO list?
[20:09:33] <Marzo> Let me check
[20:09:53] <Marzo> It seems so
[20:10:01] <petermdodge> sweet!
[20:10:04] <Marzo> Have to see if ES passes the full song number
[20:10:26] <Marzo> (Exult limits to 0-254, with 255 being a 'stop music')
[20:11:59] <Marzo> Yes, ES also limits to 0-255 so there is no problem
[20:13:18] <petermdodge> So I can just put a /src/music directory, and if digital music is enabled, these will override the default oggs of the same number?
[20:13:31] <Marzo> Yes
[20:13:39] <petermdodge> So for example, if I wanted a new title theme, I could just find the number of the title theme and overwrite it thusly?
[20:13:53] <Marzo> Yes
[20:14:14] <Marzo> The title music is 3 IIRC
[20:14:31] <Marzo> And music numbers are in decimal, not hex
[20:14:49] <Marzo> Track # 240, for example, would be '240.ogg'
[20:15:04] <Marzo> Err... make that '240bg.ogg'
[20:15:51] <Marzo> But there is a minimum of two digits; thus, song 3 would be file '03bg.ogg'
[20:16:32] <petermdodge> I'm going to try that now
[20:16:34] <Marzo> SI has the problem that it re-uses several oggs from BG; thus, Exult automagically converts oggs < 71
[20:16:35] <petermdodge> the music
[20:17:00] <Marzo> From ogg 71 and above in SI, though, the file names are standard: ##si.ogg
[20:17:06] <Marzo> And it is dynamic
[20:17:13] <Marzo> You
[20:17:26] <Marzo> Exult can be open while you toy with the music
[20:17:36] <Marzo> (authough the music must not be playing)
[20:17:58] <Marzo> *although
[20:18:29] <petermdodge> so
[20:18:39] <petermdodge> It would go in /mods/tfl/src/music ?
[20:18:49] <Marzo> remove the erc
[20:18:52] <Marzo> *src
[20:18:59] <petermdodge> say so then mods/tfl/music?
[20:19:05] <Marzo> Yes
[20:19:12] <petermdodge> aha ok
[20:19:21] <Marzo> Err... no, scrap that
[20:19:30] <petermdodge> Where do I put it?
[20:19:31] <Marzo> it goes to patch/music
[20:19:56] <Marzo> if TFL's patch is mods/tfl/patch then it goes to mods/tfl/patch/music
[20:19:58] <petermdodge> Ah good, it'll be in the CVS tree then :-)
[20:20:28] <Marzo> Which is what I said above
[20:20:30] <petermdodge> So as an experiment I'm going to put some random ultima music for the title theme
[20:20:33] <Marzo> :-)
[20:20:39] <petermdodge> Hmm which track seems neat
[20:21:05] <Marzo> The one playing in the Batlin at Wall of Lights cutscene
[20:21:17] <Marzo> That one is cool
[20:21:41] <petermdodge> Ooh I'll put one of my favourite tracs
[20:21:44] <petermdodge> the intro to UW
[20:21:51] <Marzo> :-)
[20:22:03] <Marzo> I don't remember it; been a while since I played UW
[20:25:03] <petermdodge> Hmm I need a mp3 to ogg convertor
[20:25:07] <petermdodge> go go gadget goldwave
[20:25:14] <Marzo> :-)
[20:28:54] <petermdodge> 03 is the intro, you say?
[20:29:13] <Marzo> I said I think so
[20:29:17] <Marzo> Let me check
[20:29:26] <petermdodge> Well one way to find out
[20:29:37] <Marzo> It is, yes
[20:30:00] <petermdodge> hmm
[20:30:03] <Marzo> 03bg.ogg
[20:31:25] <petermdodge> Hmm I need to enable digital music
[20:31:33] <Marzo> :-)
[20:33:34] <petermdodge> Whats the bit for digimusic in exult.cfg again?
[20:34:26] <Marzo> I think it is this:
[20:34:28] <Marzo> <use_oggs>
[20:34:28] <Marzo> yes
[20:34:28] <Marzo> </use_oggs>
[20:35:03] <Marzo> I guess it would be safer to enable them from within Exult then restart Exult
[20:35:21] <petermdodge> It isn't coming up within Exult
[20:35:34] <petermdodge> music modes are GM, GS, MT-32 and Real MT-32
[20:35:34] <Marzo> ?
[20:35:39] <petermdodge> I don't see digital music
[20:36:16] <Marzo> Isn't there a 'digital music' option above the 'midi driver'?
[20:37:10] <petermdodge> not that comes up for me
[20:37:13] <petermdodge> let me chech again
[20:38:07] <petermdodge> Oh I know why
[20:38:08] <petermdodge> I think
[20:38:19] <petermdodge> I don't have the exult ogg pack thingy
[20:38:22] <petermdodge> Let me grab that
[20:38:25] <Marzo> Oh
[20:38:26] <petermdodge> and then see if it comes up
[20:38:43] <Marzo> You know, I thought about asking if you did but I thought it was too obvious...
[20:38:51] <petermdodge> Lol
[20:40:25] <petermdodge> Hmm
[20:40:26] <petermdodge> Okay
[20:40:30] <petermdodge> So I have digital music
[20:40:33] <petermdodge> and now its enabled
[20:40:40] <Marzo> Woot
[20:40:46] <petermdodge> but 03bg.ogg is not overwriting the default menu theme
[20:40:55] <Marzo> Hm
[20:41:40] <Marzo> I just tried here and it worked for me
[20:41:44] <Marzo> Let me check something
[20:42:13] <Marzo> OK, it does seem that the snapshot already has it
[20:44:01] <Marzo> Just to be sure: you placed the new '03bg.ogg' in 'tfl/music/03bg.ogg' right?
[20:44:29] <petermdodge> You said it went in patch
[20:44:43] <Marzo> (I am thinking on the CVS again)
[20:45:37] <Marzo> To be crystal clear: the 'music' folder goes in the same level as TFL's shapes.vga
[20:45:50] <Marzo> There, I can't explain better than that :-)
[20:50:43] <Marzo> So, does it work now?
[20:51:15] <petermdodge> Nope
[20:51:27] <Marzo> Hrm
[20:51:41] <Marzo> Weird, it does here
[20:52:16] <Marzo> I took music 10bg.ogg and copied it to tfl/music/03bg.ogg and I hear it playing in the intro
[20:52:45] <Marzo> (seeing as I configured Exult to look for the files directly from the CVS)
[20:52:48] <petermdodge> Okay I'll make sure the digimusic is enabled in exult.cfg and enable it there just to be sure
[20:56:53] <petermdodge> I think the intro is defaulting to MIDI for some reason
[20:57:07] <Marzo> Weird
[20:57:27] <Marzo> Try disabling the midi altogether
[20:57:35] <petermdodge> Because I can tell its not the digimusic ogg, I tried overwriting the file altogether
[20:57:39] <petermdodge> In the Exult music dir
[20:59:16] <Marzo> Check the value in Exult.cfg of 'config/audio/midi/use_oggs' and 'config/audio/midi/driver'
[20:59:33] <petermdodge> It's there
[20:59:49] <Marzo> What value is in the latter?
[21:00:54] <petermdodge> I'm going to try one more thing
[21:02:51] <petermdodge> Success
[21:02:58] <Marzo> Woot
[21:03:05] <Marzo> What did you do this time?
[21:03:39] <petermdodge> Hmm okay so the problem is that it's not 'overwriting' the digital music oggs with the patch ones if they exist. That is, it seems to be checking the Exult ones first and using them if they exist
[21:04:04] <Marzo> Weird, that is the exact opposite of what I programmed it to do
[21:04:22] <petermdodge> Sounds like programming to me, then :-)
[21:04:31] <Marzo> :-)
[21:04:44] <Marzo> Here, this is the relevant portion of the code:
[21:04:53] <Marzo> if (U7exists("<PATCH>/music/" + ogg_name))
[21:04:53] <Marzo> ogg_name = get_system_path("<PATCH>/music/" + ogg_name);
[21:04:53] <Marzo> else
[21:04:53] <Marzo> ogg_name = get_system_path("<MUSIC>/" + ogg_name);
[21:04:53] <Marzo> Mix_Music *newmusic = Mix_LoadMUS(ogg_name.c_str());
[21:05:02] <petermdodge> Hmm
[21:06:17] <Marzo> And besides, it works perfectly here for me; I use digital music all the time
[21:06:30] <Marzo> (beats the crap out of GM midi any time...)
[21:07:00] <petermdodge> Does GCC let you use try catch finally or is that a MSVC thing
[21:07:49] <Marzo> The "finally" is a MSVC construct, but the rest is there
[21:07:59] <petermdodge> try { play music file from patch } catch (exception file does not exist) { play music file from exult } finally { play midi }
[21:08:26] <Marzo> Well, it is basically what is being done
[21:08:36] <Marzo> But without using exceptions
[21:11:36] <petermdodge> Hmm
[21:12:25] <Marzo> Out of curiosity: are you on Windows right now?
[21:12:48] <petermdodge> aye
[21:13:05] <Marzo> There goes a theory out the window
[21:13:54] <petermdodge> XP Pro to be specific
[21:14:03] <Marzo> Same here
[21:14:52] <Marzo> Hrm
[21:15:15] <Marzo> I will be going away in a few minutes, but I'll be back later
[21:15:36] <petermdodge> Okay
[21:15:38] <petermdodge> Another thing
[21:15:40] <petermdodge> Ogg
[21:15:42] <Marzo> Shoot
[21:15:45] <petermdodge> Title music
[21:15:47] <petermdodge> dont loop
[21:15:54] <Marzo> :-)
[21:16:00] <petermdodge> It dont rather
[21:16:32] <Marzo> Are you sure? I mean, the old one does
[21:18:04] <petermdodge> Aye.
[21:18:09] <petermdodge> I'm perplexed, myself
[21:18:57] <Marzo> Oh, and one additional bit: when the midi portion gets implemented, the midi file will have to be in in either (or both) mt32mus.dat and adlibmus.dat
[21:20:55] <petermdodge> neat
[21:23:12] <Marzo> I just saying how it will be done; I don't have a clue *when* it will be...(that portion of the code is very confusing)
[21:24:40] <petermdodge> Aye, I was going to change the music system myself until I saw that code.
[21:24:49] <Marzo> :-)
[21:26:52] <Marzo> I have a slight clue about some of the parts that will need to be changed, but I have no idea how much more I will need to change
[21:27:13] <Marzo> Well, I am going now; be back in ~2 hours
[21:27:28] <petermdodge> Okay
[21:27:35] <-- Marzo has left IRC ("Marzo vanishes suddenly.")
[21:27:35] <petermdodge> Take care