IRC logs for #opendune on OFTC at 2010-04-01
            
02:24:45 *** glx has quit IRC
08:31:41 <TrueBrain> @calc 0x44
08:31:41 <DorpsGek> TrueBrain: 68
08:32:45 <TrueBrain> @calc 0x1e
08:32:45 <DorpsGek> TrueBrain: 30
08:37:34 <TrueBrain> - emu_push(g_global->playerHouseID + (u->type == UNIT_HARVESTER) ? 68 : 30
08:37:36 <TrueBrain> );
08:37:37 <TrueBrain> + emu_push(g_global->playerHouseID + ((u->type == UNIT_HARVESTER) ? 68 : 3
08:37:39 <TrueBrain> 0));
08:37:40 <TrueBrain> stupid mistakes
08:38:09 <Xaroth|Work> heh
08:38:27 <TrueBrain> @calc 12 * 24 * 31 * 0.95
08:38:27 <DorpsGek> TrueBrain: 8481.6
08:38:30 <TrueBrain> @calc 12 * 24 * 31 * 0.05
08:38:30 <DorpsGek> TrueBrain: 446.4
08:38:35 <TrueBrain> @calc 446 * 5 / 24
08:38:35 <DorpsGek> TrueBrain: 92.9166666667
08:38:57 <TrueBrain> @calc 446 * 5 / 60
08:38:57 <DorpsGek> TrueBrain: 37.1666666667
08:43:31 <TrueBrain> bah, OpenDUNE crashes when you destroy a building
08:45:49 <Xaroth|Work> uh oh :o
08:46:26 <TrueBrain> latest SVN crashes on startup :p
08:46:40 <Xaroth|Work> at least it doesn't crash when you destroy a building :P
08:58:37 <DorpsGek> SVN: truebrain (r1032) [JIT] -Fix: startup failed, destroying building crashed, and some other pieces of this puzzle
09:00:05 <DorpsGek> SVN: truebrain (r1033) -Update (r1032): update decompiled code
09:08:57 <DorpsGek> SVN: truebrain (r1034) -Add: C-ified the last few structure script functions: Script_Structure_GetDirection(), Script_Structure_Unknown11B9(), Script_Structure_Unknown133C(), Script_Structure_Fire(), Script_Structure_Unknown1524(), Script_Structure_Destroy()
12:20:25 *** glx has joined #openDune
12:20:25 *** ChanServ sets mode: +o glx
12:20:40 <glx> hello
12:21:59 <Xaroth|Work> o.
12:22:00 <Xaroth|Work> l/
12:22:02 <Xaroth|Work> ...
12:22:04 <Xaroth|Work> o/
12:22:32 <TrueBrain> howdie :)
12:22:44 <TrueBrain> glx: I fixed the wrong house named for harvester deployed ;)
12:22:47 <TrueBrain> missing () :p
12:23:33 <glx> oh
12:23:49 <glx> there's also a stack cleaning error
12:24:20 <TrueBrain> and I had to JIT/compile a few pieces in order to get latest SVN to work ;)
12:25:18 <glx> and you didn't see the stack error it seems (very minor)
12:25:42 <TrueBrain> what stack?
12:26:01 <glx> a emu_sp += 2 when it should be emu_sp += 4
12:26:07 <TrueBrain> haha
12:26:09 <TrueBrain> fix it ;) :p
12:33:23 <glx> oh yeah missing project update
12:33:39 <TrueBrain> oops
12:33:43 <TrueBrain> can you fix that too? :) :)
12:33:46 <glx> yes
12:34:55 <TrueBrain> I totally fail to name a few functions, but we will get to that some day :p
12:36:02 <TrueBrain> either way, 0972 completely done :p
12:37:29 <DorpsGek> SVN: glx (r1035) -Update (r1034): MSVC project file
12:37:29 <DorpsGek> SVN: glx (r1035) -Fix (r1006): minor stack usage error
12:37:56 <TrueBrain> nice find :)
12:42:02 <glx> I was looking for the other error ;)
12:42:11 <TrueBrain> what other?
12:42:11 <glx> a nasty one indeed
12:42:16 <glx> the () one
12:42:18 <TrueBrain> ah
12:42:19 <TrueBrain> yes
12:42:23 <TrueBrain> didn't know the order would be like this
12:42:26 <TrueBrain> was very suprised
12:43:06 <glx> well my C reference card clearly shows + > ?:
12:43:17 <glx> but I didn't think about it
12:46:18 <TrueBrain> I always put () around such statements .. now I just forgot :p
12:46:57 *** Yexo has quit IRC
12:47:15 *** Yexo has joined #openDune
12:47:15 *** ChanServ sets mode: +v Yexo
12:53:37 <glx> http://svn.opendune.org/~glx/temp.patch <-- with this patch enemy units come later than usual
12:53:51 <glx> maybe a timing issue because the function is now faster
12:54:55 <glx> and my trikes seem slower
12:58:31 <Xaroth|Work> glhax :o
12:58:48 <TrueBrain> unit->variable_69 = (uint8)loc02; <- nicer if you make it: loc02 & 0xFF
12:58:55 <TrueBrain> a cast is a bit less readable in this case
12:59:06 <TrueBrain> either way, it is useless ... so a bit fuzzy in both cases
12:59:36 <TrueBrain> well, I guess you can remove the loc02 &= 0xFF :p
13:00:13 <TrueBrain> function looks okay; timer can't be an issue, because it simply is too small
13:02:12 <glx> indeed the loc02 &= 0xFF is just stupid ;)
13:02:14 <TrueBrain> hmm .. this clearly shows playing at 'Fastest' is a bit fucked up :p
13:02:42 <TrueBrain> units all move at the same 'cycle' then
13:03:18 <glx> oh I think I know
13:03:24 <glx> inverse is reverted
13:03:28 <TrueBrain> haha
13:03:30 <TrueBrain> yes
13:03:31 <TrueBrain> :)
13:03:36 <TrueBrain> we should stop keeping to forget that :p
13:03:52 <glx> it just came into my mind so I checked
13:03:56 <TrueBrain> I think I reverted it too ...
13:04:30 <TrueBrain> 0 means true, 1 means false, for that function, right?
13:04:35 <glx> yes
13:04:52 <TrueBrain> and 'true' means that Fastest gives the lowest value?
13:05:03 <glx> dunno
13:05:16 <TrueBrain> as turret fire rate should be inverted
13:05:19 <TrueBrain> but that feels wrong
13:05:31 <glx> but now enemy units come at the right time
13:06:00 <glx> and trike speed is ok
13:06:08 <TrueBrain> we really really need to double check those entries :)
13:07:33 <TrueBrain> I see little difference in my turrets :p
13:07:51 <TrueBrain> dah .. 'normal' speed doesn't change
13:08:11 <TrueBrain> owh, I play at Fastest :p
13:08:31 <glx> I always play at fastest ;)
13:08:51 <TrueBrain> wow ... that is a difference in turret behavoir ...
13:09:26 <DorpsGek> SVN: truebrain (r1036) -Fix (r1034): Tools_AdjustToGameSpeed() has latest param reversed in C-fied version
13:10:16 <TrueBrain> okay, our other values are all correct
13:10:35 <TrueBrain> good you found that now for your patch glx ;)
13:11:54 <glx> a lucidity flash ;)
13:12:13 <TrueBrain> 4200 openttd downloads today alone
13:12:21 <Xaroth|Work> holy shit O_O
13:12:33 <glx> stable releases tend to cause that yes
13:13:00 <Xaroth|Work> tbh 1.0.0 should have had an april fools prank in it :/
13:15:13 <TrueBrain> k, I got to go .. bye :)
13:46:12 <Xaroth|Work> o/
14:34:48 <DorpsGek> SVN: glx (r1037) -Add: C-ified Unit_Unknown2134()
22:01:34 <DorpsGek> SVN: glx (r1038) -Add: named and C-ified Unit_CreateWrapper() and Unit_FindTargetAround()