00:40:52 -!- tokigun_ has quit (Read error: 104 (Connection reset by peer)). 00:40:57 -!- tokigun has joined. 00:41:27 -!- CakeProphet has joined. 04:30:01 -!- Sgeo has quit (Read error: 104 (Connection reset by peer)). 04:33:42 -!- Sgeo has joined. 06:00:08 -!- cmeme has quit ("Client terminated by server"). 06:00:18 -!- oerjan has quit ("leaving"). 06:01:03 -!- cmeme has joined. 06:18:57 -!- Sgeo has quit ("Ex-Chat"). 07:59:59 -!- clog has quit (ended). 08:00:00 -!- clog has joined. 08:09:43 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)). 08:10:09 -!- CakeProphet_ has joined. 08:10:20 -!- CakeProphet_ has changed nick to CakeProphet. 08:28:21 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)). 08:28:46 -!- CakeProphet_ has joined. 08:28:57 -!- CakeProphet_ has changed nick to CakeProphet. 08:47:49 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)). 08:47:57 -!- CakeProphet_ has joined. 08:48:03 -!- CakeProphet_ has changed nick to CakeProphet. 08:57:40 -!- sebbu has joined. 09:06:25 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)). 09:06:54 -!- CakeProphet_ has joined. 09:07:13 -!- CakeProphet_ has changed nick to CakeProphet. 09:25:56 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)). 09:26:05 -!- CakeProphet_ has joined. 09:26:13 -!- CakeProphet_ has changed nick to CakeProphet. 09:45:05 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)). 09:45:22 -!- CakeProphet_ has joined. 09:45:31 -!- CakeProphet_ has changed nick to CakeProphet. 10:04:19 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)). 10:04:28 -!- CakeProphet_ has joined. 10:04:47 -!- CakeProphet_ has changed nick to CakeProphet. 10:23:29 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)). 10:23:58 -!- CakeProphet_ has joined. 10:24:05 -!- CakeProphet_ has changed nick to CakeProphet. 10:42:32 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)). 10:43:03 -!- CakeProphet_ has joined. 10:43:22 -!- CakeProphet_ has changed nick to CakeProphet. 11:02:08 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)). 11:02:43 -!- CakeProphet_ has joined. 11:02:51 -!- CakeProphet_ has changed nick to CakeProphet. 11:21:13 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)). 11:21:59 -!- CakeProphet_ has joined. 11:22:08 -!- CakeProphet_ has changed nick to CakeProphet. 11:40:44 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)). 11:41:11 -!- CakeProphet_ has joined. 11:41:17 -!- CakeProphet_ has changed nick to CakeProphet. 11:57:40 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)). 11:58:21 -!- CakeProphet_ has joined. 11:58:30 -!- CakeProphet_ has changed nick to CakeProphet. 12:16:01 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)). 12:16:20 -!- CakeProphet_ has joined. 12:16:29 -!- CakeProphet_ has changed nick to CakeProphet. 12:35:17 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)). 12:35:42 -!- CakeProphet_ has joined. 12:35:51 -!- CakeProphet_ has changed nick to CakeProphet. 12:54:11 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)). 12:54:27 -!- CakeProphet_ has joined. 12:54:41 -!- CakeProphet_ has changed nick to CakeProphet. 13:13:12 -!- CakeProphet has quit (Read error: 104 (Connection reset by peer)). 13:13:55 -!- CakeProphet_ has joined. 13:14:05 -!- CakeProphet_ has changed nick to CakeProphet. 13:54:41 -!- oerjan has joined. 14:01:00 -!- Pikhq has quit (Read error: 110 (Connection timed out)). 14:13:52 -!- oerjan has quit ("leaving"). 14:21:55 -!- Pikhq has joined. 14:30:35 -!- jix has joined. 17:30:50 * SimonRC LARTs CakeProphet. 17:33:18 -!- Sgeo has joined. 17:33:32 yo 17:33:45 -!- Sgeo has quit (Connection reset by peer). 17:34:15 erm, bze 17:34:38 wtf just happenned to mz kezboard_ 17:34:58 qwertzuiop asdfghjkl yxcvbnm 17:35:03 bah 17:35:24 there... deleted every language except english 18:37:10 -!- CakeProphet has quit ("haaaaaaaaaa"). 18:37:31 -!- CakeProphet_ has joined. 18:37:36 -!- CakeProphet_ has changed nick to CakeProphet. 19:19:01 .....I feel like making a game. 19:19:23 I feel like either implementing PESOIX or doing absolutely nothing. . . 19:19:29 And I think doing nothing would be easier. 19:19:50 ......games are pretty kickass to make.... besides being a crapload of work. 19:20:02 especially MMO games. 19:23:05 CakeProphet: Connection reset by peer 19:38:12 * SimonRC goes 19:46:06 -!- CakeProphet has quit (Remote closed the connection). 20:52:41 -!- oerjan has joined. 20:58:02 -!- fizzie has joined. 21:00:33 -!- oklopol has joined. 21:11:43 -!- CakeProphet has joined. 21:12:00 SO 21:13:17 I GOT A FUNKY COMPILE ERROR. 21:13:20 http://pastebin.ca/484986 <-- explain 21:13:43 apparently the *'s are throwing the compiler off. 21:14:57 if((num_updates % (1 MINUTE)) == 0 // wtf? 21:15:12 #define MINUTE * 60 21:15:12 ? 21:15:20 lol 21:15:58 hahaha.... I like it. 21:16:47 isn't my code. 21:16:51 BUT I MUST FIX THE PARSE ERROR. 21:17:04 what is MINUTE defined as? 21:17:50 What's CHAR_DATA #define'd to? 21:17:54 And the other _DATA's 21:20:57 ...I don't know....... C SYNTAX DOESN'T TELL YOU WHERE SHIT IS DEFINED. 21:21:09 well what are the #include lines? 21:21:20 * CakeProphet spits in #includes face. 21:21:37 grep is your friend. 21:21:51 yes 21:22:11 You can also run it through something like 'gcc -E' and look at the preprocessed output. 21:23:36 i would guess those _DATA's are all defined in some #included .h file. 21:24:07 so "grep -f _DATA *.h" 21:24:13 grep #define MINUTE ? 21:24:33 i would think MINUTE is unlikely to be the culprit. 21:24:40 ....just out of curiosity. 21:25:21 whoops, that should be -F not -f 21:28:48 how do you make grep do regexes? 21:28:55 leave out the -F 21:29:17 i included it because i couldn't remember if _ was a regexp character 21:29:53 use -E for advanced regexes 21:30:21 Or just use \(, \| and so on, if you have gnu grep. 21:30:26 (this from grep --help) 21:30:46 this is gnu grep i'm looking at 21:30:57 "In GNU grep, there is no difference in available functions in either of the first two syntaxes [-E and without]." 21:31:12 It's just that without -E you need the \s to keep the magic. 21:31:14 * CakeProphet is trying to weed out CHAR_DATA's definition out from all the countless function signatures. 21:31:26 oh. 21:31:53 do grep '[#]define *CHAR_DATA' 21:31:55 i think 21:32:50 It might also be a typedef. (But causing that parse error with a typedef would be rather impressive.) 21:32:54 -!- sebbu2 has joined. 21:33:30 ....here's what I've got that's the most useful. 21:33:30 actually neither # nor _ seem to be special 21:33:36 [bread@portent src]$ grep -E "struct.*?CHAR_DATA" *.h 21:33:37 mud.h:typedef struct char_data CHAR_DATA; 21:34:12 8| 21:36:14 bizarre. 21:36:34 ...what the hell is it? I can't figure out where it's at. 21:37:07 less mud.h ? 21:37:39 but it looks like a perfectly ok standalone declaration. 21:37:55 which should not make it possible to trigger that parse error. 21:38:47 ...if it means anything.... I never ran a configure script..... there wasn't one. 21:38:51 Yes, and if that file's not included, it should be a 'CHAR_DATA was not defined' error. 21:39:02 indeed 21:39:21 s/defined/declared/ 21:40:06 that's annoying 21:40:15 how a missing type gives a syntax error 21:40:21 are you compiling with all warnings? 21:40:30 but it cannot be missing 21:40:41 -shrug- I don't know... I just ran the makefile 21:41:06 ....I thought it might have something to do with the * being there. 21:42:15 CakeProphet: Try getting it to compile with -Wall added to the CC args. 21:42:54 found it. 21:42:58 what's -Wall do? 21:43:16 char_data is a struct. 21:43:36 http://pastebin.ca/485031 21:44:29 make CFLAGS=-Wall 21:44:39 i think 21:45:32 # flags to use during compilation 21:45:34 C_FLAGS := -Wall -g -ggdb -O2 21:45:37 in the makefile 21:45:50 so it already does so 21:45:57 yep 21:46:12 With a struct char_data { ... }; like that, and a typedef struct char_data CHAR_DATA; I don't see any reason for a parse terror. 21:47:17 well... the parse error comes before the *..... if that means anything. 21:49:04 well.... any way to fix it? 21:49:17 I don't necessarily care why it does it... I just want it not to do it. 21:49:35 Well, you could try sticking just "struct char_data *ch" there. 21:49:46 Instead of "CHAR_DATA *ch". 21:50:15 Since it's C++, even plain "char_data *ch" might work. 21:50:48 it's C++? 21:50:55 * CakeProphet thought it was C. 21:51:15 Hmm, it is C. 21:51:22 I wonder where I got the C++ impression from. 21:51:30 so did i except for the // comments 21:51:30 -!- sebbu has quit (Connection timed out). 21:51:32 from http://homepages.uc.edu/~hollisgf/nakedmud.html : "NakedMud is written in C, and uses Python for scripting." 21:51:45 Ah, right, must've been the // comments. 21:52:08 Anyway, 'struct char_data' should work. 22:01:03 Building dependencies for gameloop.c 22:01:05 Compiling gameloop.c 22:01:06 gameloop.c: In function `update_handler': 22:01:08 gameloop.c:350: parse error before `struct' 22:01:09 gameloop.c:351: `ch' undeclared (first use in this function) 22:01:11 gameloop.c:351: (Each undeclared identifier is reported only once 22:01:12 gameloop.c:351: for each function it appears in.) 22:01:14 gameloop.c:353: parse error before `struct' 22:01:15 gameloop.c:354: `obj' undeclared (first use in this function) 22:01:17 gameloop.c:356: parse error before `struct' 22:01:18 gameloop.c:357: `room' undeclared (first use in this function) 22:01:20 make: *** [gameloop.o] Error 1 22:01:21 ....nope.... I don't think it had anything to do with CHAR_DATA 22:01:45 maybe you should take a look at that MINUTE anyhow. 22:02:10 Hmm. 22:02:44 This is sort of grasping for straws, but you wouldn't happen to have any non-printing non-visible evil characters there somewhere? 22:04:27 ..........doubt it. 22:04:33 [bread@portent src]$ grep "MINUTE" *.h 22:04:35 mud.h:#define MINUTE * 60 SECONDS /* one minute */ 22:04:36 mud.h:#define MINUTES MINUTE 22:04:48 hahaha 22:04:54 that's very explainational 22:05:21 That's just sick and SICK. 22:05:43 1+1 MINUTES => 1 + 1*60 SECONDS. 22:06:14 fizzie: Well, that just means that 'MINUTES' has a lower precedence than + *shrugs* 22:06:14 [bread@portent src]$ grep "SECOND" *.h 22:06:16 mud.h:#define DFLT_PULSES_PER_SECOND 10 22:06:17 mud.h:#define PULSES_PER_SECOND mudsettingGetInt("pulses_per_second") 22:06:19 mud.h:#define SECOND * PULSES_PER_SECOND /* used for figuring out how many pulses in a second*/ 22:06:20 mud.h:#define SECONDS SECOND /* same as above */ 22:06:22 mud.h:#define MINUTE * 60 SECONDS /* one minute */ 22:06:30 #define MINUTE(x) x * SECONDS(60) 22:06:40 Holy. . . Must. Kill. 22:07:31 1 * 60 * mudsettingGetInt("pulses_per_second") 22:08:25 Silly pulse-based MUD. 22:08:32 .....C is REALLY annoying. >.< 22:08:34 The MUD I nearly wrote was event-queue based :) 22:08:58 Bah. Make it IRC-based. :p 22:09:42 Just checking: is line 350 in the file line 34 in the paste? 22:10:18 mine just makes a thread for each conncetion, and slaps input on a queue. it's like hardware nterrupts versus hardware polling. 22:11:09 fizzie, yep 22:11:32 lessee, gameloop.c is the first file compiled. 22:11:42 or at least mentioned in the makefile. 22:12:07 nope.... bunches were compiled. 22:12:34 I just didn't think they were important. 22:14:07 Is that nakedmudv3.3? gameloop.c compiles just fine for me. 22:15:05 aha, the plot thickens. 22:15:59 with plain make? is everyone using gcc >= 3.02 which the web site says is the only tested compiler? 22:16:55 Well, I had to add -I/usr/include/python2.4 to find Python.h, but other than that it compiled just fine with plain make. 22:17:08 With gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21). 22:18:33 yeah, 3.3 22:18:55 and your gcc is? 22:19:34 ...where'd fizzie get that string? 22:19:49 gcc --version. 22:20:11 gcc --version 22:20:12 2.95.3 22:20:17 ......old? 22:20:22 indeed. 22:20:35 requires >= 3.02, it says. 22:21:26 ah... it has version 3.02 22:21:36 gcc -V 3.02 --version 22:21:37 3.02 22:21:43 * CakeProphet SHALL CHANGE THE C_FLAGS 22:22:22 8| 22:22:51 * oerjan boggles his mind on the fact that CakeProphet's does _not_ run the latest version by default 22:22:57 *gcc 22:23:22 not mine... it's on a MUD host......... full of -really- old server programs. 22:23:49 stuff made in the early 90s 22:24:03 like when _I_ was playing MUDs :) 22:24:29 well... I don't like hack and slash ones... feels too much like excercising. 22:28:50 ..... is tgz a gzip file? 22:29:02 usually 22:29:10 tar xzvf something.tgz yah? 22:29:15 abbreviation for .tar.gzip 22:29:20 ah 22:29:22 alright cool 22:29:44 *.tar.gz 22:29:47 I use zxvf, but everyone else seems to use xzvf. Must be something wrong with me. :/ 22:30:19 no it is just your sense of ordering. 22:51:19 ...actually.. 22:51:26 it doesn't have 3.02 22:51:34 [bread@portent src]$ gcc -V 23.5 --version 22:51:35 23.5 22:51:44 ....unless gcc actually -does- have a version 23.5 22:51:58 That's nice behaviour to have. 22:58:38 ...my guess is that -V sets a version variable... and --version reads the version variable. 22:58:57 .....it's actually what I would expect... 22:59:24 For my 'gcc' -V is the version to run, if multiple versions are installed. 22:59:50 I wouldn't expect it to lie. 23:00:04 well... yeah... I didn't originally... 23:00:12 but considering how must scripts work... it's not surprising. 23:01:10 hmmm..... I -could- find a way to compile the source for the target machine.... using my computer. 23:01:48 Yeah. Cross-compilation. 23:01:59 Figure out what architecture their system uses. 23:02:31 that's where you have to keep your fingers crossed? :) 23:02:41 If it's ancient enough to have gcc less-than-three, it might also have pretty ancient libraries. 23:02:55 a.out executables and non-glibc C library, that sort of thing. 23:06:56 -!- tokigun has quit (Read error: 104 (Connection reset by peer)). 23:12:01 -!- tokigun has joined. 23:15:44 -!- tokigun has quit (Read error: 104 (Connection reset by peer)). 23:17:01 -!- tokigun has joined. 23:18:08 -!- Sgeo has joined. 23:23:18 fizzie: Cross-compiler which outputs a.out, static linking, voila. 23:25:12 Static linking doesn't much help if it runs a kernel so ancient that the syscalls are all different from what your fancy new library expects. (Not that you couldn't use old libs with the compiler.) 23:25:41 Cross-compilation *would* let you compile for linux-ancient. 23:27:25 I SHALL FIX THE PROBLEM 23:27:26 AT THE SOURCE 23:27:34 ....and complain to the server admin. 23:51:15 -!- tokigun has quit (Read error: 104 (Connection reset by peer)). 23:52:19 -!- tokigun has joined. 23:58:28 har