#exult@irc.freenode.net logs for 10 Apr 2003 (GMT)

Archive Today Yesterday Tomorrow
Exult homepage


[00:13:38] <Servus> hiya
[00:16:55] <Servus> a stijlfiguur is an emblem :-/
[00:20:49] <Servus> oh nm duh :P
[00:22:07] <Servus> nah, i rescind the previous rescinding, it must be "emblem" *shuts up and cries*
[00:22:55] <-- Matt_O has left IRC ("Client Exiting")
[00:41:47] --- sbx|afk is now known as sbx
[00:41:56] --- sbx is now known as SB-X
[00:43:32] --> Kirben has joined #exult
[00:43:32] --- ChanServ gives channel operator status to Kirben
[00:53:13] <-- Yuv422 has left IRC ("BitchX by any other name is still BitchX")
[01:06:56] --> Soul|LOVE has joined #exult
[01:25:24] --> Jett has joined #exult
[01:42:13] <-- DarkeZzz has left IRC (Read error: 110 (Connection timed out))
[03:00:46] --- SB-X is now known as sbx|afk
[03:29:48] --- sbx|afk is now known as SB-X
[03:36:34] * Eclair is back (gone 04:54:38)
[03:57:30] --> `daniel has joined #exult
[04:09:54] --> matt__ has joined #exult
[04:11:53] --- matt__ is now known as Matt_O
[04:49:00] <-- `daniel has left IRC ("Client Exiting")
[04:59:17] --> ShadwChsr has joined #exult
[04:59:21] <ShadwChsr> hey :)
[04:59:34] <SB-X> hello
[05:00:24] <ShadwChsr> super geek question... is there any way I can override the "new" operator (function) in c++ once it has been defined? Not the new operator for a class, but for everything
[05:01:43] <ShadwChsr> the only way I've seen how to do it is to define a macro called new, except that messes up all the member "new"s in classes :P
[05:01:58] * SB-X passes up answering that one.
[05:02:06] <SB-X> why do you have members called new?
[05:02:21] <ShadwChsr> I dont, a direct-x header does ;P
[05:02:57] <SB-X> your going to replace it with your own allocator?
[05:03:08] <ShadwChsr> so once I define the new macro (for my leak checking) in the stdafh.h file, it gets compiled into the direct-x headers, messing them up
[05:03:12] <SB-X> ah
[05:03:51] <ShadwChsr> the default visual c++ "debug allocator" has a bug in it where it doesn't report the line & file the leak occured in properly, it only tells me it happened in the file that "new" is declared in (duh! :-)
[05:04:08] <SB-X> i wouldnt know... i didnt even know you could overload new :)
[05:04:12] <ShadwChsr> I found a way to fix it, but it requires defining the macro in every one if my source files, which is ugly to say the least
[05:04:16] <ShadwChsr> I dont think you can ;)
[05:04:29] <SB-X> hmm
[05:04:33] <ShadwChsr> Theres a hack where you can define a macro called new that overrides it, but anyplace you have the keyword new, it messes up :)
[05:04:49] <ShadwChsr> You can override new (and delete) on a class-by-class basis as well, thats where its messing up :(
[05:04:54] <SB-X> did you try malloc from stdlib?
[05:05:20] <SB-X> that would require more changes in the files
[05:05:38] <-- Matt_O has left IRC ("Client Exiting")
[05:05:51] <ShadwChsr> yeah
[05:05:58] <ShadwChsr> and "new" is alot more common :)
[05:06:27] <SB-X> if your stl class is leaking you can change its allocator
[05:06:29] <ShadwChsr> #define new new(_NORMAL_BLOCK, THIS_FILE, __LINE__)
[05:06:33] <ShadwChsr> thats what the line is :)
[05:06:36] <SB-X> but i guess your new allocator would need to use new also :P
[05:06:50] <ShadwChsr> well, nothing is leaking right now, it just would be handy for debugging later
[05:07:04] <ShadwChsr> without having the file reported, I get to hunt through code randomly to try to find it ;) (almost randomly ;)
[05:10:52] --- Eclair is now known as animeloe
[05:48:23] --> Matt_O has joined #exult
[06:45:43] <-- Servus has left IRC ()
[08:01:29] --> Kirben2 has joined #exult
[08:01:30] <-- Kirben has left IRC (Read error: 104 (Connection reset by peer))
[08:01:37] --- Kirben2 is now known as Kirben
[08:26:48] <-- animeloe has left IRC (Read error: 110 (Connection timed out))
[08:34:39] --> Quester has joined #exult
[09:08:07] --> Servus has joined #exult
[09:10:05] <-- ShadwChsr has left IRC (Read error: 54 (Connection reset by peer))
[09:35:41] <Servus> *tries to implement a _real_ physics system... location, velocity, acceleration, slope, surface and flags :-/
[11:00:26] --> Fingolfin has joined #exult
[11:00:26] --- ChanServ gives channel operator status to Fingolfin
[11:14:57] <-- Fingolfin has left IRC ("later")
[12:01:28] <-- Quester has left IRC ()
[12:21:32] <-- SB-X has left IRC ("zzzz")
[12:41:49] --- Jett is now known as Darke
[12:41:57] --- ChanServ gives channel operator status to Darke
[12:53:19] --> Yuv422 has joined #exult
[12:53:26] <Yuv422> hi
[12:53:39] <Darke> Hi.
[12:54:11] * Yuv422 has been hiding in #nuvie
[12:56:14] <Darke> Still lonely in there? Or are some people keeping you company? *grin*
[12:56:51] <Yuv422> I've been nutting out some u6 issues with SB-X
[12:57:27] <Yuv422> He's working on the converse class for nuvie
[12:59:59] <Yuv422> is max magic level determined by exp?
[13:00:09] <Darke> Ahh.
[13:00:09] <Yuv422> in u6
[13:00:11] <Darke> No idea. *grin*
[13:00:28] <Yuv422> because they only seem to save your current levels
[13:00:43] <Yuv422> which makes me think that the max is computed
[13:01:08] <Darke> Makes sense.
[13:01:15] <Yuv422> but you'd need a charater class in that case too.
[13:01:25] <Yuv422> as dupre has no magic ability
[13:03:05] * Darke nods.
[13:16:53] * Darke sleeps. Night!
[13:16:57] --- Darke is now known as DarkeZzz
[13:39:23] <Yuv422> time for bed
[13:39:39] <Yuv422> cya
[13:39:41] <-- Yuv422 has left IRC ("[BX] Eat, drink and be merry...for tomorrow we die")
[13:39:51] --> Colourless has joined #Exult
[13:39:55] --- ChanServ gives channel operator status to Colourless
[13:40:15] <Colourless> greetings
[13:45:42] <artaxerxes> hi
[14:55:01] <-- Kirben has left IRC ("System Meltdown")
[15:08:00] --> animeloe has joined #exult
[15:25:02] <-- Colourless has left IRC (brunner.freenode.net irc.freenode.net)
[15:25:56] --> Colourless has joined #exult
[15:47:53] <Colourless> whoa for 20 minutes ago
[16:08:33] <artaxerxes> slow board today, isn't it?
[16:08:43] <Colourless> uh, yeag
[16:09:44] <artaxerxes> what project you've been working on lately?
[16:11:41] <Colourless> hmm, lets see... nothing in particular
[16:12:54] <artaxerxes> how's pentagram going?
[16:13:27] <Colourless> wjp has been doing some stuff this last week
[16:26:03] <artaxerxes> off-topic: is PPC a RISC arch ?
[16:26:50] <Colourless> PPC = PowerPC or PocketPC?
[16:26:55] <artaxerxes> powerPC
[16:27:10] <artaxerxes> like the Mac
[16:28:18] <-- Matt_O has left IRC (Read error: 54 (Connection reset by peer))
[16:32:48] <-- Colourless has left IRC (brunner.freenode.net irc.freenode.net)
[16:33:20] * artaxerxes wonders what this "netsplit" is
[16:35:19] <-- animeloe has left IRC (Read error: 110 (Connection timed out))
[16:35:58] --> animeloe has joined #exult
[16:37:25] --> Colourless has joined #exult
[17:03:25] --> wjp has joined #exult
[17:03:25] --- ChanServ gives channel operator status to wjp
[17:03:57] <wjp> hi
[17:04:03] <Colourless> hi
[17:05:41] <wjp> hm, looks like Jeff is working on party formation stuff
[17:05:49] <artaxerxes> hi
[17:18:43] <Colourless> i think there could be a memory leak in the exult voc file playing stuff
[17:19:08] <Colourless> it allocates a buffer of memory, that i can for the life of me find where it's being deleted
[17:19:36] <Colourless> also we 'may' be leaking memory by not freeing SDL mixer chunks
[17:19:39] <wjp> hm, that reminds me... I still need to look at that segfault I'm getting
[17:20:02] <Colourless> the voc file reading is also, just more than a little bit wrong.
[17:20:08] --> armchair_avatar has joined #exult
[17:20:34] <wjp> totally reproducable... when I enter the main menu with music enabled, it crashes after about 4 seconds
[17:20:38] <wjp> every single time
[17:21:04] <wjp> floating point exception
[17:21:07] <wjp> not segfault, sorry :-)
[17:21:21] <Colourless> the code seriously doesn't make sense in places.... i was going over it with a fine toothed comb when attempting to use 'our' resampling code in 'my' port of Duke3D
[17:21:55] <Colourless> what type of music are you using?
[17:22:01] * wjp grumbles... it crashes it SDL_mixer itself
[17:22:06] <wjp> s/it S/in S/
[17:22:12] <wjp> um, let me check
[17:22:39] <wjp> it crashes somewhere behind a Timidity_PlaySome() function, so I'm guessing midi
[17:22:43] * Colourless attempts to notify wjp that rebuilding SDL_mixer and getting latest sources might solve his problem, whatever it is
[17:23:00] <wjp> my SDL_mixer is fairly recent
[17:23:07] <wjp> (about a week old)
[17:23:49] <Colourless> heh
[17:23:55] <wjp> let me rephrase that... I upgraded SDL_mixer about a week ago, to 1.2.5
[17:23:57] <Colourless> then ignore my advise :-)
[17:24:22] <wjp> I wonder if the crash started after that upgrade
[17:24:36] <wjp> don't really know since I generally have audio disabled in exult
[17:25:28] <wjp> anyone running linux around who can quickly check if it works?
[17:27:16] * wjp looks for SDL_mixer's post-1.2.5 changelog
[17:27:31] <artaxerxes> what would like me to do?
[17:27:48] <wjp> run exult using SDL_mixer for midi music
[17:27:57] <wjp> and then wait around in the main exult menu for a few seconds
[17:28:25] <Colourless> and make sure it's using timidity
[17:28:31] * wjp nods
[17:29:01] <wjp> hm, any idea if the main menu midi file has more than 32 tracks?
[17:29:11] <wjp> "* Fixed crash in native midi code with files with more than 32 tracks"
[17:29:13] <artaxerxes> oups... don't have timidity in I believ
[17:29:19] <-- armchair_avatar has left IRC ("Client Exiting")
[17:29:30] <wjp> k, nvm then :-)
[17:29:43] <Colourless> no i doubt it very much so
[17:29:57] <Colourless> i'll check
[17:30:46] <artaxerxes> you are fortunate ! I left timidity in!
[17:31:09] <wjp> maybe the fix caused crashes for files with less than 32 tracks? :-)
[17:31:15] <Colourless> do you have the patches?
[17:31:29] * wjp wonders which patches he has installed
[17:31:30] <Colourless> wjp, does the piccolo in the track begin to play?
[17:32:07] <wjp> no, I don't think so
[17:32:12] <wjp> just the 'heavy' sounds at the start
[17:32:28] * wjp has a timidity-eawpatches package installed
[17:32:40] <wjp> which apparently contains "Eric Welsh's GUS patches for TiMidity"
[17:33:03] <Colourless> i'm guessing things are dieing when it's attempting to start playing the piccolo
[17:33:16] <artaxerxes> hmmm... where can I select timidity for music?
[17:33:40] <wjp> it does sound like a good point to start a new instrument
[17:33:41] <Colourless> when building exult
[17:34:01] <wjp> but it should enable it by default
[17:34:11] <wjp> since we're using timidity through sdl-mixer
[17:34:11] <Colourless> 2 bars or music will play, then the piccolo is meant to start
[17:34:17] <artaxerxes> how can I make sure I am using timidity with SDL_mixer if I compiled --WITH_TIMIDITY
[17:34:47] <wjp> it should say things like "Internal SDL_mixer timidity synthesiser" during startup
[17:34:57] <artaxerxes> Internal SDL_mixer timidity synthesiser
[17:35:40] <wjp> Colourless: yes, a new instrument starts at the crash point
[17:35:51] <Colourless> corrupt patch?
[17:35:53] <wjp> running meditown.mid through timidity outside of exult does work
[17:35:57] <wjp> so, no :-)
[17:36:09] <artaxerxes> no music is playing in the start menu
[17:36:24] <Colourless> you probably don't have the patches
[17:36:53] <artaxerxes> I should still be able to hear the start menu, no?
[17:37:04] <artaxerxes> it used to work a long time ago
[17:37:06] <Colourless> wjp, try killing reverb by editing .exult.cfg from memory it should be off by detault
[17:37:29] <wjp> it's already disabled
[17:37:32] <artaxerxes> weird, I don't even have playmidi anymore!
[17:37:35] <Colourless> as i thought
[17:37:47] * wjp doesn't have a playmidi either
[17:37:53] <wjp> but you want to try 'timidity' to play it
[17:38:09] <Colourless> one question, why do we name the config file exult.cfg in windows, but .exult.cfg on other systems? it's not like the . causes any issues for windows
[17:38:19] <wjp> no idea
[17:38:55] <wjp> I prefer the pentagram way of just naming it pentagram.cfg everywhere, anyway :-)
[17:38:55] <Colourless> same thing could be applied to pentagram. using the same name for all operating systems would be nice :-)
[17:39:07] <wjp> Colourless: we already do that :-)
[17:39:08] <artaxerxes> timidity ~/programming/exult/data/meditown.mid
[17:39:16] <artaxerxes> gives me:
[17:39:19] <artaxerxes> aRts init failed: can't connect to aRts soundserver
[17:39:19] <artaxerxes> Couldn't open Arts device
[17:39:22] <Colourless> eh, didn't relaliez
[17:39:36] <wjp> just the location of pentagram.cfg differs
[17:39:45] <wjp> I put it in ~/.pentagram/pentagram.cfg in linux
[17:40:14] <Colourless> thats cool
[17:40:38] <artaxerxes> so that's where the ~/.exult/ idea comes from?
[17:40:50] <wjp> artaxerxes: try outputting it to a .wav instead of to your soundcard
[17:41:08] <wjp> (timidity -o blah.wav <file>)
[17:41:39] <wjp> or you could probably say "timidity -o /dev/mixer <file>"
[17:41:53] <wjp> or whatever that audio device was called
[17:42:23] <wjp> artaxerxes: no, ~/.exult predates pentagram
[17:42:23] <artaxerxes> same thing happen
[17:42:37] <wjp> why would it needs arts to write a .wav file?
[17:43:08] <artaxerxes> I used -Od, -o file.wav and -o /dev/dsp... all give the same result
[17:43:30] <wjp> did you put the -o option before the .mid file?
[17:44:12] <artaxerxes> I did: timidity -o file.wav /path/to/file.mid
[17:44:31] <artaxerxes> oh wait!
[17:44:49] <wjp> Colourless: does 'rs_vib_loop' mean anything to you?
[17:44:55] <artaxerxes> If I run artsd in the background, then it works!
[17:45:00] <wjp> (that's the function in which it's crashing)
[17:45:07] <artaxerxes> it even sounds MUCH better!
[17:45:16] <artaxerxes> WOA it's stunning!
[17:45:21] <wjp> :-)
[17:45:31] <wjp> through exult or directly through timidity?
[17:45:50] <artaxerxes> direct through timidity
[17:45:54] <Colourless> i'm sure the sdl mixer source might give me some indication
[17:46:06] <wjp> I'll take a peek at it myself
[17:46:07] * artaxerxes wonders now if it will work when I run exult
[17:46:23] <Colourless> static sample_t *rs_vib_loop(Voice *vp, int32 count)
[17:46:24] <Colourless> {
[17:46:24] <Colourless> /* Play sample until end-of-loop, skip back and continue. */
[17:46:33] <artaxerxes> All I hear is a harp sound
[17:46:57] <artaxerxes> mcop warning: user defined signal handler found for SIG_PIPE, overriding
[17:46:57] <artaxerxes> /dev/dsp: Device or resource busy
[17:46:57] <artaxerxes> Couldn't open audio: No available audio device
[17:47:14] <wjp> hm, dinner's ready
[17:47:18] <artaxerxes> hmm.. artsd is monopolizing /dev/dsp
[17:47:21] <Colourless> wjp: got something to do with 'vibrato control'
[17:47:28] <artaxerxes> bon appetit!
[17:47:32] <wjp> merci :-)
[17:47:39] <wjp> Colourless: what's that? :-)
[17:47:52] <wjp> nvm, dinner first :-)
[17:47:53] <wjp> bbl
[17:47:53] <Colourless> i property of instruments
[17:47:58] <Colourless> s/i/a/
[17:48:09] <artaxerxes> and not even a harp when I kill artsd
[17:49:27] <artaxerxes> If I use digital output in exult, there is nothing coming out about timidity and no sound comes at all
[17:50:06] <artaxerxes> fmsynth works perfect though
[17:50:47] <Colourless> my wonderful fmsynth :-)
[17:52:05] <artaxerxes> even using soundwrapper doesn't do it
[17:56:36] <artaxerxes> what is this marketpl.mid file for/
[17:58:00] <Colourless> not needed
[17:58:57] <artaxerxes> obviously, SDL_mixer doesn't use timidity properly since on its own it can play files and with SDL, nothing is played
[17:59:24] <artaxerxes> but is weird that I hear this harp at the beginning no matter what!
[17:59:57] <Colourless> your timidity support in sdl_mixer may not be set up properly, don't ask me how to do that though
[18:03:43] <artaxerxes> I am going to use the <patch> ability to distribute si-french
[18:04:16] <artaxerxes> just tested it and it works
[18:04:41] <artaxerxes> The best would be to have a utility that reads the .exult.cfg file and use or create the patch line for serpentisle
[18:06:23] <artaxerxes> never mind the harp... it is launched whenever I open a new window! :-)
[18:07:20] --> armchair_avatar has joined #exult
[18:09:56] <wjp> sdl_mixer expects the timidity.cfg file in a different place than timidity
[18:10:11] <artaxerxes> might be the pb
[18:10:15] <wjp> or rather, sdl_mixer has the prefix /usr/local hardcoded
[18:10:33] <wjp> I think it looks in /usr/local/lib/timidity.cfg
[18:10:42] <wjp> I think this is in the FAQ somewhere
[18:12:13] <wjp> oh, somehow the docs mention that timidity.cfg has to be in the directory where the exult binary is
[18:12:36] <wjp> not strictly true, but it is probably the easiest way to fix things :-)
[18:12:45] <wjp> (since it depends on the linux distro where sdl_mixer looks)
[18:13:32] * wjp grins; gentoo fixes the hardcoded /usr/local in sdl-mixer :-)
[18:14:08] <artaxerxes> ============================
[18:14:08] <artaxerxes> An exception occured:
[18:14:08] <artaxerxes> Error opening file u7midi
[18:14:08] <artaxerxes> errno: 13
[18:14:08] <artaxerxes> Error Description: Permission denied
[18:14:11] <artaxerxes> ============================
[18:14:14] <artaxerxes> pure virtual method called
[18:14:34] <artaxerxes> I run the game a reg user
[18:14:41] <wjp> from which directory?
[18:14:53] <artaxerxes> launched from /usr/local/bin/exult
[18:15:02] <wjp> try running it from /tmp or ~ or something
[18:15:20] <wjp> I think it tries to create u7midi in the current directory
[18:15:48] <artaxerxes> works from /tmp, but still no sound, although I used soundwrapper
[18:16:12] <wjp> you do have audio enabled, right?
[18:16:18] <artaxerxes> yup
[18:16:35] <artaxerxes> just killed artsd, and launched without soundwrapper. No sound at all
[18:16:41] <artaxerxes> (in the start screen)
[18:18:17] <artaxerxes> it'd be nice to have this u7midi file only created in your home dir
[18:20:26] <wjp> hm, I only see one division in rs_vib_loop
[18:20:36] <artaxerxes> weird... the intro has sound though
[18:23:11] <artaxerxes> and voices too
[18:23:16] <wjp> they're dividing by sample_increment
[18:23:25] <wjp> which apparently can be 0 somewhere
[18:24:32] <wjp> strange that the only places where sample_increment is changed haven't been changed for over a year in sdl-mixer's CVS
[18:32:26] <wjp> bbl
[18:47:43] --> Dark-Star has joined #exult
[18:49:13] <-- Dark-Star has left IRC (brunner.freenode.net irc.freenode.net)
[18:49:13] <-- armchair_avatar has left IRC (brunner.freenode.net irc.freenode.net)
[18:49:13] <-- wjp has left IRC (brunner.freenode.net irc.freenode.net)
[18:49:38] --> wjp has joined #exult
[18:49:38] --> Dark-Star has joined #exult
[18:49:38] --> armchair_avatar has joined #exult
[18:51:02] <-- armchair_avatar has left IRC (Read error: 110 (Connection timed out))
[18:58:12] --- Dark-Star is now known as Darkstar|Robocup
[19:25:03] --> armchair_avatar has joined #exult
[19:33:59] <-- armchair_avatar has left IRC ("Client Exiting")
[19:46:40] <Colourless> i should go
[19:46:42] <-- Colourless has left IRC ("casts invisibility")
[20:08:06] <-- Darkstar|Robocup has left #exult ()
[20:25:30] <artaxerxes> gotta go too
[20:25:32] <-- artaxerxes has left #exult ()
[20:56:01] --> Fingolfin has joined #exult
[20:56:01] --- ChanServ gives channel operator status to Fingolfin
[21:23:17] --> armchair_avatar has joined #exult
[21:24:39] --> sbx has joined #exult
[21:33:58] --- animeloe is now known as Eclair
[21:48:32] <-- Servus has left IRC ()
[21:55:50] <-- sbx has left IRC (brunner.freenode.net irc.freenode.net)
[21:55:50] <-- Fingolfin has left IRC (brunner.freenode.net irc.freenode.net)
[21:55:50] <-- wjp has left IRC (brunner.freenode.net irc.freenode.net)
[21:55:50] <-- DarkeZzz has left IRC (brunner.freenode.net irc.freenode.net)
[22:01:02] <-- armchair_avatar has left IRC (brunner.freenode.net irc.freenode.net)
[22:01:02] <-- laxdragon has left IRC (brunner.freenode.net irc.freenode.net)
[22:01:02] <-- MakeGho has left IRC (brunner.freenode.net irc.freenode.net)
[22:01:27] --> armchair_avatar has joined #exult
[22:01:27] --> MakeGho has joined #exult
[22:01:27] --> laxdragon has joined #exult
[22:02:24] --> wjp has joined #exult
[22:02:24] --> Fingolfin has joined #exult
[22:02:24] --> DarkeZzz has joined #exult
[22:11:15] <-- wjp has left IRC ("Zzzz...")
[22:23:30] <-- Fingolfin has left IRC ("good night")
[22:26:54] <-- armchair_avatar has left IRC ("Client Exiting")
[23:26:25] --> Dark-Star|Robots has joined #exult
[23:26:41] --- Dark-Star|Robots is now known as Dark-Star
[23:49:22] <-- DarkeZzz has left IRC (brunner.freenode.net irc.freenode.net)
[23:52:00] --> Matt_O has joined #exult
[23:55:52] <-- Dark-Star has left #exult ()