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