#nuvie@irc.freenode.net logs for 13 Jul 2012 (GMT)

Archive Today Yesterday Tomorrow
Nuvie homepage


[00:59:32] --> Malignant_Manor has joined #nuvie
[00:59:51] <Malignant_Manor> wjp: Should the Linux default save directory be <savedir>@datadir@/nuvie/u6_save</savedir>
[01:02:56] <Malignant_Manor> No, I really doubt it. It should be the home directory but I don't know how to add that to the cfg.
[02:21:23] <CIA-35> nuvie: 03malignantmanor * r1417 10/nuvie/trunk/ (5 files in 4 dirs):
[02:21:23] <CIA-35> nuvie: * Add nuvie.cfg options to Linux and OSX build
[02:21:23] <CIA-35> nuvie: * Remove some dead code
[02:45:29] <-- Malignant_Manor has left IRC (Quit: ChatZilla 0.9.88.2 [Firefox 13.0.1/20120614114901])
[06:51:39] <wjp> Malignant_Manor: nuvie.cpp sets a default of ~/.nuvie/savegames for config/ultima6/savedir in initDefaultConfigUnix
[07:00:00] <wjp> but it might be nice to add support for ~ in directory and filenames
[08:11:41] --> Dominus has joined #nuvie
[10:07:57] --> Yuv422 has joined #nuvie
[10:36:43] <-- Yuv422 has left IRC (Quit: Yuv422)
[11:50:18] --> TheCycoONE has joined #nuvie
[12:04:33] --> Yuv422 has joined #nuvie
[13:28:10] <-- Kirben has left IRC ()
[13:41:10] <CIA-35> nuvie: 03efry * r1418 10/nuvie/trunk/ (5 files in 2 dirs): * Code clean up in Actor classes. Dead code removal.
[13:44:17] <TheCycoONE> yey dead code
[13:44:31] <Yuv422> there is lots in nuvie
[13:52:40] <Yuv422> time for bed
[13:52:41] <Yuv422> cya
[13:52:45] <-- Yuv422 has left IRC (Quit: Yuv422)
[15:58:21] --> Malignant_Manor has joined #nuvie
[15:58:51] <Malignant_Manor> wjp: Is this a proper conversion? http://pastebin.com/14p2hrfL
[16:00:25] <Malignant_Manor> Here's an example of the warnings generated before the conversion.warning: narrowing conversion of '170' from 'int' to 'const char' inside { } is ill-formed in C++11 [-Wnarrowing]
[16:33:00] <wjp> having static constructed objects is often problematic
[16:33:24] <Malignant_Manor> I know it is wrong since it displays wrong
[16:33:39] <wjp> the problem with the 170 is just that it doesn't fit in a char, I think
[16:33:40] <Malignant_Manor> Of course, it compiles without any warning
[16:33:57] <Malignant_Manor> I can't seem to find any examples from searching
[16:34:14] <wjp> I'm confused why you're turning them into strings
[16:34:47] <Malignant_Manor> Not sure either
[16:34:49] <wjp> I'd have to look at usage, but my first idea would be converting them into unsigned char
[16:35:04] <Malignant_Manor> warnings is only for 170 and 168
[16:35:21] <wjp> yes, because those are larger than the max value that fits in a char (on most current systems)
[16:35:42] <wjp> (char stores -128 to 127 if it is signed)
[16:35:59] <Malignant_Manor> memcpy(&blocked_tile->data, &gump_blocked_tile_data, 256);
[16:36:08] <Malignant_Manor> is how it is used
[16:36:53] <wjp> ok, definitely make it unsigned char instead of char then
[16:37:15] <wjp> i.e., static const unsigned char gump_blocked_tile_data[] = { .... };
[16:37:59] <wjp> blocked_tile->data is unsigned char* too, so that fits well
[16:38:27] <Malignant_Manor> No warning now
[16:38:37] <Malignant_Manor> Thanks
[16:39:24] <Malignant_Manor> It seems like most data in U6ActorTypes.h is duplicated code from what is in Lua.
[18:57:25] <-- Malignant_Manor has left IRC (Quit: ChatZilla 0.9.88.2 [Firefox 13.0.1/20120614114901])
[19:46:09] <CIA-35> nuvie: 03malignantmanor * r1419 10/nuvie/trunk/ (5 files in 3 dirs):
[19:46:09] <CIA-35> nuvie: * Remove useless check to see if unsigned int is >= 0
[19:46:09] <CIA-35> nuvie: * Fix conversion warning
[19:46:09] <CIA-35> nuvie: * Make sure SE and MD max hp don't overflow
[20:55:21] --> Malignant_Manor has joined #nuvie
[21:02:41] --> Dominus1 has joined #nuvie
[21:03:29] --- Dominus is now known as Guest25800
[21:03:29] <-- Guest25800 has left IRC (Killed (sendak.freenode.net (Nickname regained by services)))
[21:03:29] --- Dominus1 is now known as Dominus
[21:09:37] <-- TheCycoONE has left IRC (Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/)
[21:33:29] --> Dominus1 has joined #nuvie
[21:33:58] <-- Dominus has left IRC (Killed (niven.freenode.net (Nickname regained by services)))
[21:33:58] --- Dominus1 is now known as Dominus
[21:39:39] --> Dominus1 has joined #nuvie
[21:39:53] --- Dominus is now known as Guest36927
[21:39:53] <-- Guest36927 has left IRC (Killed (zelazny.freenode.net (Nickname regained by services)))
[21:39:53] --- Dominus1 is now known as Dominus
[21:44:02] <-- Dominus has left IRC (Ping timeout: 244 seconds)
[21:56:24] <-- Malignant_Manor has left IRC (Read error: Connection timed out)
[21:56:48] --> Malignant_Manor has joined #nuvie
[22:12:22] --> Yuv422 has joined #nuvie