#nuvie@irc.freenode.net logs for 14 Jun 2003 (GMT)

Archive Today Yesterday Tomorrow
Nuvie homepage

[00:41:11] <-- wjp has left IRC ("Zzzz...")
[01:33:40] --> Kirben has joined #nuvie
[02:21:53] <-- kefka has left IRC (Read error: 110 (Connection timed out))
[02:22:26] --> kefka has joined #nuvie
[04:22:58] --> Yuv422 has joined #nuvie
[05:58:07] <-- Kirben has left IRC (Read error: 104 (Connection reset by peer))
[06:02:13] --> Kirben has joined #nuvie
[06:07:02] <-- Kirben has left IRC (Read error: 104 (Connection reset by peer))
[06:08:33] --> Kirben has joined #nuvie
[08:58:22] <-- servus has left IRC ()
[09:02:14] --> servus has joined #nuvie
[09:02:33] --- servus is now known as servusAway
[11:08:20] <-- kefka has left IRC (Read error: 110 (Connection timed out))
[11:30:29] <Yuv422> it looks like MD and SE use the shape graphics format alot.
[11:30:50] <Yuv422> portraits appear to be shapes
[11:30:57] <Yuv422> as do most other graphics
[11:37:23] --> wjp has joined #nuvie
[11:37:37] <Yuv422> hi wjp
[11:37:49] <wjp> hi
[11:38:42] <Yuv422> all this interest in mars ATM has got me adding MD support into Nuvie. ;)
[12:53:46] <Yuv422> Argh, it looks like fonts are handled differently in each of the three games.
[13:02:42] * Yuv422 wonders what could be in system.lzc?
[13:26:22] <Yuv422> well MD and SE load now.
[13:26:31] <Yuv422> npcs are messed up
[13:26:43] <Yuv422> and it needs lots of U6 data to run correctly
[13:26:47] <Yuv422> but it is a start
[13:36:59] <Yuv422> it looks like the developers kept the same palette rotation positions. :)
[13:37:08] <wjp> :-)
[13:37:18] <wjp> how much of the data files is different?
[13:37:40] <Yuv422> the base tile related data is pretty much the same
[13:37:48] <Yuv422> conversation data looks similar
[13:37:50] <Yuv422> too
[13:38:04] <Yuv422> but MD and SE use alot more shape data than U6
[13:38:14] <Yuv422> font looks different
[13:38:38] <Yuv422> MD and SE data looks alot nicer than U6. ;)
[13:39:17] <Yuv422> most of the tileflags seem to have stayed the same too. :)
[13:39:22] <Yuv422> so walls block
[13:40:57] <wjp> that helps :-)
[13:41:41] <Yuv422> I feel better about rolling the three games into one engine, now that I've studied the datafiles closely.
[13:42:04] <Yuv422> MD and SE are quite similar
[13:42:12] <Yuv422> U6 is the odd one out
[13:44:40] <Yuv422> wjp: you might be able to help me with somthing
[13:45:05] <Yuv422> I'm having trouble calling a C function from my C++ classes
[13:45:25] <Yuv422> I put extern "C" around the prototype
[13:45:37] <wjp> ah, I was just going to suggest that :-)
[13:45:44] <Yuv422> but it seems to only work it the prototype in the the C++ source file
[13:46:00] <Yuv422> not in the .h file for the C function. :(
[13:46:02] <Yuv422> any ideas?
[13:46:04] <wjp> huh?
[13:46:11] <wjp> compilers shouldn't care in which file something is
[13:46:21] <wjp> since the preprocessor handles #include's
[13:46:28] <Yuv422> that's why I'm a bit confused
[13:46:44] <wjp> anyway, it should work... SDL does it this way too, and SDL works from C++
[13:47:12] <Yuv422> this is what I have in misc.h
[13:47:14] <Yuv422> extern "C" void config_get_path(Configuration *config, std::string filename, std::string &path);
[13:47:38] <Yuv422> but when I compile a class that includes misc.h
[13:47:49] <Yuv422> it says can't find config_get_path
[13:47:52] <Yuv422> :(
[13:48:25] <wjp> the only way I've ever seen it is: extern "C" { void config.....; }
[13:48:38] <wjp> but I'm not sure if the {}'s are necessary
[13:49:05] <Yuv422> still does it with the {} around the definition
[13:49:44] <Yuv422> should the file be called misc.c
[13:49:47] <Yuv422> not misc.cpp
[13:49:51] <wjp> um... wait a sec
[13:49:57] <wjp> how can a C function use std::string?
[13:50:17] <Yuv422> hm
[13:50:18] <wjp> and references
[13:50:27] <Yuv422> I see your point. ;)
[13:50:34] <Yuv422> why is it working at all then?
[13:50:53] <wjp> not a clue
[13:51:05] <wjp> why do you think this is a C function?
[13:51:39] <Yuv422> it isn't associated with a class
[13:51:50] <Yuv422> should I put it in a namespace?
[13:51:54] <wjp> doesn't matter; C++ has those too
[13:52:12] <wjp> if you want you can put it in a namespace, but you don't have to
[13:53:57] <Yuv422> it's still saying undefined
[13:54:25] <Yuv422> if the C++ function is in another file do I have to do any thing special to use it in a class method?
[13:54:34] <wjp> no
[13:55:09] <wjp> is it a compiler or a linker error, btw?
[13:55:16] <Yuv422> compiler
[13:55:27] <wjp> did you remove the extern?
[13:55:32] <Yuv422> yes
[13:56:22] <Yuv422> ../Map.cpp: In member function `bool Map::loadMap(TileManager*, ObjManager*)':
[13:56:22] <Yuv422> ../Map.cpp:161: `config_get_path' undeclared (first use this function)
[13:56:22] <Yuv422> ../Map.cpp:161: (Each undeclared identifier is reported only once for each function it appears in.)
[13:57:02] <wjp> and you properly included the header file?
[13:57:14] <wjp> (and no errors about not being able to find misc.h earlier?)
[13:57:25] <Yuv422> nope
[13:57:51] <Yuv422> trying a clean build now
[14:00:31] <Yuv422> oh
[14:00:43] <Yuv422> it might be a include naming conflict
[14:01:03] <Yuv422> yup
[14:01:07] <Yuv422> that was what it was
[14:01:20] <Yuv422> now where was the misc.h that it was loading
[14:01:23] <Yuv422> ?
[14:02:21] <Yuv422> heheh whoops
[14:02:35] <Yuv422> I had a misc.h in my conf/ directory. ;)
[14:06:54] <Yuv422> looks like I'm going to have to add some game selection code now. :)
[14:07:26] <Yuv422> can't really ask people to change an argument and recompile to change games. ;O
[14:07:37] <wjp> heh :-)
[14:07:47] <wjp> game selection should probably be runtime, yes :-)
[14:08:02] <Yuv422> who did exult's menu music?
[14:09:42] <wjp> it's in the credits somewhere
[14:09:48] <Yuv422> ah k
[14:09:50] * wjp takes a look
[14:10:06] <wjp> Matt Kimmich, I think
[14:10:20] <Yuv422> thanks.
[14:10:46] <Yuv422> I wonder if I can find somone willing to write some music for Nuvie. ;)
[14:11:01] <Yuv422> we'd need some menus first though. ;)
[14:12:09] <wjp> heh :-)
[14:12:40] <Yuv422> cool blacking works in MD
[14:13:15] <Yuv422> well it will work correctly when I tell Nuvie what objects are doors in MD. ;)
[14:13:38] <Yuv422> oh dear
[14:13:48] <Yuv422> the canals are full of water.
[14:13:53] <Yuv422> that shouldn't be. ;)
[14:14:08] <wjp> there's water on Mars? I knew it! :-)
[14:14:56] <Yuv422> and this martian water seems to flash in and out of existance. ;)
[14:15:22] <wjp> that would explain why it's so hard to detect
[14:31:17] <Yuv422> time for bed
[14:31:38] <Yuv422> changes are in cvs now.
[14:31:42] <Yuv422> cya
[14:31:45] <-- Yuv422 has left IRC ("BitchX: causing all sorts of havok!")
[15:37:35] <-- Kirben has left IRC (Read error: 104 (Connection reset by peer))