IRC logs for #opendune on OFTC at 2011-02-06
            
05:30:25 *** glx has quit IRC
05:34:28 *** Xaroth__ has joined #openDune
05:35:58 *** Xaroth_ has quit IRC
12:39:12 *** fjb is now known as Guest454
12:39:14 *** fjb has joined #openDune
12:46:00 *** Guest454 has quit IRC
13:30:51 *** glx has joined #openDune
13:30:51 *** ChanServ sets mode: +o glx
13:31:27 <glx> hello
13:55:19 *** Alberth has joined #openDune
13:55:54 <Alberth> hello
13:56:30 <Alberth> after a long time, I decided to update my opendune program, and play a little.
13:56:42 <glx> and you found a bug ?
13:56:53 <Alberth> unfortunately, I did not get very far :)
13:57:14 <Alberth> when I add a second power plant to get enough power, the game freezes
13:57:39 <glx> hmm freezes are a known unsolvable problem
13:58:06 <glx> unless it happens every time you do it
13:58:39 <Alberth> it does
13:59:30 <Alberth> a savegame is sufficient?
14:04:20 <Alberth> http://devs.openttd.org/~alberth/_save016.dat place the power plant at the concrete
14:15:05 <glx> what's the game name ?
14:15:14 <Alberth> a8 busy
14:15:35 <glx> no freeze here
14:15:49 <glx> radar is activated
14:16:11 <Alberth> that should happen indeed
14:16:54 <Alberth> does it run at 64 bit?
14:17:06 * TrueBrain hugs Alberth
14:17:21 <Alberth> hai TrueBrain
14:17:55 <Alberth> I visit here, and you move to openttd.tgp :)
14:18:01 <TrueBrain> :p
14:18:03 <TrueBrain> freezes here too
14:18:37 <Alberth> at least 50% of the developers have the same problem :)
14:18:53 <TrueBrain> darn, no gdb installed
14:19:01 <glx> no freeze in MSVC
14:19:15 <TrueBrain> so most likely one of those shady pieces of code :p
14:19:27 <glx> trying a release build
14:19:50 <glx> hmm I should try gcc first
14:19:51 <Alberth> glx: I built from trunk r1290, so unlikely
14:20:25 <glx> I mean debug vs release ;)
14:20:38 <glx> optimisations...
14:21:33 <glx> freeze now
14:21:37 <TrueBrain> House_UpdateRadarState
14:21:49 <glx> music still plays
14:22:26 <TrueBrain> I guess the while (emu_ax != 0) ?
14:22:37 <TrueBrain> owh, no
14:22:44 <TrueBrain> glx: remember I was asking about those whiles?
14:22:50 <TrueBrain> and if you could put a sleep in them? :p
14:22:51 <glx> while (g_global->variable_76B4 != 0);
14:22:58 <TrueBrain> thought you did that?
14:23:34 <glx> I did but not everywhere I think
14:23:47 <TrueBrain> clearly :D
14:25:22 <DorpsGek> SVN: truebrain (r1291) -Fix (r1267): don't do infinite loops; machines tend not to like it ;) (tnx to Alberth for the savegame)
14:25:29 <TrueBrain> there you go, this should fix it Alberth :)
14:25:43 <Alberth> thanks for the quick fix
14:26:03 <TrueBrain> tnx for a very easy-to-reproduce instructions :D
14:26:24 <Alberth> now, I undoubtly will get slaughtered in a few minutes due to insufficient defenses in my game :P
14:26:29 <TrueBrain> glx: a quick grep doesn't show any other cases, maybe you can confirm that? :)
14:26:35 <TrueBrain> :D Good luck ;)
14:27:37 <glx> I searched for "!= 0);"
14:27:55 <glx> and "== 0);"
14:27:59 <glx> no "result"
14:28:02 <TrueBrain> :D
14:28:03 <TrueBrain> good
14:28:24 <glx> but sleep.h must be before math.h ;)
14:28:34 <TrueBrain> why?
14:28:40 <glx> else I get redefinitions for min and max
14:28:47 <TrueBrain> lol
14:28:52 <TrueBrain> stupid :D
14:28:56 <TrueBrain> #undef them? :p
14:29:10 <glx> windows.h redifines them
14:29:14 <TrueBrain> ugh
14:29:29 <TrueBrain> fair enough .. I won't promise I remember it, but you can fix it every time :D
14:30:12 <glx> or I can use an ugly way (undef them in sleep.h)
14:30:32 <planetmaker> what about #ifdef ... ?
14:30:57 <planetmaker> should be easy enough then
14:31:00 <glx> I can't modify windows headers
14:31:11 <planetmaker> oh, a windows header :S
14:31:15 <TrueBrain> you can, but not globally :p
14:37:19 <DorpsGek> SVN: glx (r1292) -Fix (r1291): MSVC wants sleep.h to be included before math.h
14:38:01 <Alberth> could you fix the radar click? if you click near the top, the display jumps to the bottom
14:39:26 <glx> confirmed
14:39:50 <glx> now to find where it's handled
14:40:47 <Alberth> They destroyed my construction yard :(
14:41:39 <glx> good luck :)
14:47:47 <glx> x 22 unsigned short
14:47:47 <glx> y 65532 unsigned short
14:47:59 <glx> something doesn't look right ;)
14:49:23 <TrueBrain> negative value? :p
14:49:50 <glx> yup
14:50:02 <glx> uint16 -> int16 solves that
14:50:33 <TrueBrain> and a cast :p
14:50:45 <glx> no need for a cast there
14:50:56 <glx> it's in Map_SetViewportPosition()
14:53:57 <DorpsGek> SVN: glx (r1293) -Fix (r1242): signed/unsigned side effect
19:51:10 *** TrueBrain is now known as TB2
19:54:12 *** Alberth has left #openDune
20:18:26 *** TB2 is now known as TrueBrain