IRC logs for #opendune on OFTC at 2010-12-04
            
03:30:11 *** DorpsGek has joined #openDune
03:30:11 *** ChanServ sets mode: +o DorpsGek
04:02:43 *** glx has quit IRC
05:23:20 *** olinuxx has joined #openDune
05:25:45 *** olinuxx has quit IRC
10:50:34 *** olinuxx has joined #openDune
10:54:48 *** fjb is now known as Guest1625
10:54:49 *** fjb has joined #openDune
11:01:40 *** Guest1625 has quit IRC
11:14:30 *** olinuxx has quit IRC
13:27:51 *** glx has joined #openDune
13:27:51 *** ChanServ sets mode: +o glx
13:28:29 <glx> hello
14:46:32 *** glevans2 has quit IRC
14:50:13 *** glevans2 has joined #openDune
16:17:23 *** glevans2 has quit IRC
16:27:58 *** glevans2 has joined #openDune
16:41:11 *** glevans2 has quit IRC
16:49:46 *** glevans2 has joined #openDune
20:01:09 *** olinuxx has joined #openDune
20:21:19 *** ChanServ sets mode: +v glx
20:21:20 *** ChanServ sets mode: +v DorpsGek
20:21:20 *** ChanServ sets mode: +o TrueBrain
20:21:20 *** ChanServ sets mode: +v Xaroth|Work
20:47:33 <TrueBrain> do we know how score is created, glx?
20:47:39 <TrueBrain> don't think House has a variable for it, does it?
20:47:57 <glx> hmm
20:51:16 <glx> I don't see any total harvested spice nor total killed unit counters in House struct
20:51:54 <TrueBrain> and upon kill, I don't see anything special happening too ..
20:52:38 <glx> but things should be stored somewhere
20:53:06 <TrueBrain> and updated somehow :p
20:54:35 <glx> opendune.c:298
20:54:41 <glx> it's in scenario :)
20:57:35 <glx> and harvested variables are updated in Script_Structure_RefineSpice()
20:57:37 <TrueBrain> smart approach :)
21:02:24 <glx> then I searched for 0x8D37, 0x8D39, 0x8D3B and 0x8D3D
21:02:50 <glx> I think the killed counter are variable 3E and 40
21:03:01 <TrueBrain> and so the other two the score?
21:03:05 <glx> and 3A and 3C are unused
21:03:28 <TrueBrain> Script_Unit_Unknown12CE
21:03:37 <TrueBrain> increases 3A and 3C (depending on player or AI)
21:04:30 <TrueBrain> so you get 1 point for 1 kill
21:05:09 <glx> variable_0002 may store the score
21:05:29 <TrueBrain> hmm
21:05:31 <TrueBrain> makes more sense :)
21:05:35 <glx> increase when you kill an unit, decrease when you lost one
21:05:41 <TrueBrain> 3A/3C are units killed
21:05:46 <TrueBrain> 3E/40 structures killed
21:05:49 <TrueBrain> then harvested
21:05:50 <TrueBrain> yeah :)
21:06:00 <glx> yup
21:06:25 <glx> we're good :)
21:06:45 <TrueBrain> there is one more change to 8CFF (Variable_0002)
21:06:48 <TrueBrain> in 0C3A
21:06:58 <glx> yes related to 3E/40
21:07:04 <TrueBrain> structures
21:07:14 <glx> similar to units
21:07:59 <glx> hmm variable_0002 is linked to unit/structs only
21:10:02 <TrueBrain> score is later on corrected
21:10:07 <TrueBrain> in B518_0F54
21:10:23 <TrueBrain> based on harvested
21:12:00 <TrueBrain> http://forum.opendune.org/viewtopic.php?f=9&t=107&p=252#p252
21:13:04 <TrueBrain> guessI could try to decode that function
21:15:52 <glx> some unresolved stuff in it
21:16:27 <glx> I can try to find it in the exe (as it's an overlay)
21:19:56 <TrueBrain> out playing some games with my roommates, so please do what you can :)
21:19:57 <TrueBrain> bbl :)
21:22:05 <glx> found it, now I can run my decompiler :)
21:29:03 <glx> ok jumps resolved (was easy)
22:22:45 <TrueBrain> commit, or url? :)
22:35:34 <glx> I started to convert it ;)
22:57:20 <Xaroth|Work> nn
23:03:18 <glx> hmm I have a bug :)
23:03:36 <glx> 4116 for atreides 1 is not right
23:07:33 <glx> TrueBrain: http://svn.opendune.org/~glx/temp.patch <-- that's what I have for now (bug included ;) )
23:15:55 <glx> ok bug fixed (sp != bp)
23:57:12 <TrueBrain> lots of cleaning to do :D
23:57:20 <TrueBrain> I wonder why harvested is given as pointer ...
23:59:20 <TrueBrain> owh, to change the value
23:59:22 <TrueBrain> nasty