IRC logs for #opendune on OFTC at 2009-11-25
            
02:46:04 <DorpsGek> SVN: glx (r610) -Add: named another function
02:49:13 *** glx has quit IRC
08:31:31 <Xaroth> morning
08:34:07 <Xaroth> TrueBrain: what I was aiming at, is what kind of inheritance capabilities are there in c/cpp
08:34:46 <Xaroth> I should refrain from asking wierd stuff when semi-asleep
08:38:17 <TrueBrain> yes, I wasn thinking you wanted to communicate with the .NET framework or what ever
08:38:30 <Xaroth> phew :P
08:38:32 <TrueBrain> still I have no real clue what you are trying to ask, as 'inheritance capabilities' is kind of ... vague
08:38:40 <Xaroth> meh, nevermind :P
08:38:44 <TrueBrain> but C is not object oriented
08:38:50 <TrueBrain> I think that covers your question either way
08:38:56 <Xaroth> in a broad way, yes.
08:43:58 <TrueBrain> and I guess what you describe otherwise is C++, or any object oriented language for that matter
08:46:44 <TrueBrain> I type in google: module pi fast. I get: did you mean module pifast. and I only get results with mod pifast
08:46:46 <TrueBrain> WHAT THE FUCK
08:47:41 <Xaroth> module pi fast -pifast ?
08:47:58 <TrueBrain> do I really need to start thinking for my search engine? I thought it was the other way around :(
08:48:21 <TrueBrain> bing is even worse, shows me completely non-related results
08:51:11 <TrueBrain> we were wondering if you can do a 'modulo pi' without using division
08:51:23 <Xaroth> o_O
08:51:30 <Xaroth> and you say my questions are weird
08:51:36 <TrueBrain> at least mine make sense
08:51:44 <Xaroth> true that
08:51:45 <TrueBrain> (question wise, that is :p)
08:55:31 <TrueBrain> k, I am not going to join this catfight Nyblabla seems to want to start over and over
08:55:41 <Xaroth> hah
08:58:41 <TrueBrain> k, classes! :) WOEI! ... can I go home now? :p
08:58:42 <TrueBrain> bye :)
08:58:45 <Xaroth> o_O
08:58:47 <Xaroth> cya :P
09:11:52 <Xaroth> there, just got me tickets for jeff dunhammmmmm
12:27:27 <Xaroth> http://www.xkcd.com/664/
12:59:40 *** glx has joined #openDune
12:59:40 *** ChanServ sets mode: +v glx
13:00:07 <glx> hello
13:26:21 <Xaroth> hullo glx
13:47:05 <TrueBrain> SVN sucks .. it is impossible to share a function
13:47:16 <TrueBrain> function = dir
13:47:24 <TrueBrain> so the svn dir can't update via post-commit hook :s
13:48:03 <Xaroth> http://www.cogentco.com/us/network_datacenters.php << since when is EVO in amsterdam?
13:48:14 <TrueBrain> glx: ah, the first pointer points to the text section ... I already had a hard time figuring out where it was :)
13:48:16 <TrueBrain> that explains :)
13:48:25 <TrueBrain> strangly, it seems to be NULL for I believe structures it was
13:48:52 <TrueBrain> Xaroth: you didn't get that memo?
13:49:07 <Xaroth> heh
13:49:14 <TrueBrain> Xaroth: it has to do that people otherwise think it is a bad location, while it is basicly in Amsterdam
13:49:17 <glx> no script uses text in dune2
13:49:28 <TrueBrain> glx: that explains why it is a NULL pointer ;)
13:49:32 <TrueBrain> I wonder if we can add that ...
13:49:58 <glx> but that don't help to decipher emu_Script_General_DisplayText() :)
13:50:04 <Xaroth> TrueBrain: well, why does it list useless places like Schiphol-rijk and Hilversum then :P
13:50:18 <TrueBrain> Schiphol is not as close as Haarlem
13:50:23 <TrueBrain> and Hilversum for sure not
13:50:46 <glx> at the beginning of text section seems to be an array of BE offset to char*
13:50:47 <TrueBrain> glx: I forgot to add a mark for functions which are normally not used .. might have been useful ;)
13:51:36 <glx> but both offsets and char* are at the same "address" :)
13:51:40 <TrueBrain> but okay, lets not concentrate too much on functions that are not used ;)
13:52:00 <glx> anyway I just named it, and stopped the conversion because it was not used
13:52:08 <TrueBrain> :)
13:52:12 <TrueBrain> how did you find out it was not used?
13:52:37 <glx> http://xhp.xwis.net/cgi-bin/forum.cgi?a=26;mid=6143 <-- after looking for more info about the format :)
13:53:08 <glx> and as text was 0...
13:53:53 <TrueBrain> hehe, only for structures .. why not for units :p
13:54:54 <TrueBrain> ah, I remember why I didn't want to mark 'not used', as that is only for a temporary situation
13:55:51 <TrueBrain> i hope my laptop charges fast enough .. it was out of juice, and I have to leave again in a few, hoping I could do something on the train ...
14:00:14 <Xaroth> TrueBrain: if you put it on power saving mode
14:00:26 <TrueBrain> then I can't work on it :p
14:00:45 <TrueBrain> glx: any suggestions for a function for me to work on?
14:01:36 <glx> random script function?
14:01:54 <glx> I'm on f__0972_13AF_0015_619A (refineSpice)
14:02:04 <Xaroth> loading/saving ?
14:02:06 <TrueBrain> I think I will try something completely different
14:02:20 <TrueBrain> hmm .. if I can find save/load stuff
14:03:04 <Xaroth> saving should be easier than loading to find
14:03:17 <Xaroth> seeing lots of stuff read data, and only few write data to disk
14:03:47 <TrueBrain> so, I trace back all write routines
14:03:50 <TrueBrain> sounds like a plan, yes
14:04:01 <Xaroth> see, I can have sensible ideas from time to time ;P
14:04:12 <TrueBrain> what else do we have ...
14:04:35 <TrueBrain> drawing routines of course
14:04:49 <TrueBrain> can be useful to, to make SDL native to OpenDUNE instead of doing it via the libemu layer
14:04:58 <Xaroth> hell yeh
14:05:34 <TrueBrain> how ot find out what takes care of that ...
14:05:40 <TrueBrain> map access ...
14:06:18 <Xaroth> whatever calls the display stuff through libemu :)
14:06:30 <TrueBrain> goes via memory
14:06:33 <TrueBrain> so .. ;)
14:06:38 <Xaroth> hrnf
14:07:04 <Xaroth> whatever is executed before it calls memory to be displayed?
14:07:20 <TrueBrain> you never do that
14:07:24 <TrueBrain> you create the screen
14:07:26 <TrueBrain> then write to the memory
14:07:29 <Xaroth> ah, hrnf
14:07:48 <TrueBrain> k ... other things ..
14:07:50 <Xaroth> was hoping some kind of double buffering, but i doubt that was even available back then :P
14:08:57 <TrueBrain> mentat screens and stuff
14:09:02 <TrueBrain> menu
14:09:42 <Xaroth> the main menu
14:09:48 <TrueBrain> intro
14:09:49 <Xaroth> +intro vid :P
14:10:19 <TrueBrain> what else is in this game ...
14:10:43 <TrueBrain> 900 functions left, and I have a hard time thinking what has to be done :p
14:14:31 <TrueBrain> k, got to go
14:14:33 <TrueBrain> bye all :)_
14:14:47 <Xaroth> cya
14:22:00 <Xaroth> http://www.xkcd.com/583/
14:39:10 <planetmaker> hehe ^^ that's imo one of the best ones ;-)
14:47:27 <glx> http://glx.dnsalias.net:8080/opendune/script_refinespice.diff
21:18:54 <TrueBrain> @base 16 10 fde8
21:18:54 <DorpsGek> TrueBrain: 65000
21:19:02 <TrueBrain> glx: nicer number ;)
21:23:37 <TrueBrain> glx: I am suprised it is never checked if it is a refinery, or a harvester
21:23:55 <TrueBrain> sandwormLeft has to be renamed to 'contentCount' or what ever .. :p
21:24:41 <TrueBrain> if (u->sandwormLeft <= harvesterStep) harvesterStep = u->sandwormLeft; <- the '=' of '<=' is useless
21:24:47 <TrueBrain> same for the line below
21:25:33 <TrueBrain> AIs are lovely restricted in their amount of harvest per tick ..
21:25:41 <TrueBrain> also, a deviated harvester doesnt give you money :p
21:30:57 <TrueBrain> I figured out a lot of the save stuff .. it is kind of nice
21:30:59 <TrueBrain> chunks :)
21:43:56 <glx> <@TrueBrain> AIs are lovely restricted in their amount of harvest per tick .. <-- yes it's random :)
21:48:39 <TrueBrain> but also a max of 3
21:48:53 <TrueBrain> so it can never get more than 300 credits per harvester
21:49:52 <glx> and I noticed harvester capacity depends on its HP
21:50:16 <glx> but not checked in code yet
21:52:14 <glx> unit flags 0x0800 is maybe "harvester not empty", but we have too little info for now I think
21:52:27 <TrueBrain> at least document it is a valid flag
21:52:53 <glx> it's already in the comments, just ??
21:53:05 <TrueBrain> that is fine :)
21:53:51 <DorpsGek> SVN: truebrain (r611) -Fix: lets not name something 'move' when in fact it is 'copy'
21:53:52 <glx> can you comment about my comments ?
21:54:34 <glx> I'm not sure what to say for @return
21:54:38 <TrueBrain> maybe btw remove the \n between the 3 ifs
21:55:11 <TrueBrain> (emu_ax & 3) - 1; <- are you sure about the -1?
21:55:27 <TrueBrain> + * @return 0 if there is no spice to refine, otherwise 1
21:55:29 <TrueBrain> I would say
21:55:30 <TrueBrain> + * @return 0 if there is no spice to refine, otherwise 1.
21:55:46 <glx> yup it's -1
21:55:56 <glx> -,...emu_andw(&emu_ax, 0x3);
21:55:56 <glx> -,...emu_dx = emu_si;
21:55:56 <glx> -,...emu_addw(&emu_dx, emu_ax);
21:55:56 <glx> -,...emu_si = emu_dx;
21:55:56 <glx> -,...emu_decw(&emu_si);
21:55:56 <TrueBrain> so it can be -1 :s
21:56:39 <glx> so AI is randomely advantaged ;)
21:56:55 <glx> not by too much
21:57:21 <TrueBrain> either way, don't forget to rename sandwormLeft, it is silly :)
21:58:31 <glx> but it's also sandwormLeft :)
21:58:36 <TrueBrain> more like 'content'
21:58:50 <TrueBrain> 'counter'
21:58:51 <TrueBrain> 'storage'
21:59:48 <TrueBrain> 'amount'
21:59:50 <TrueBrain> I dunno :)
22:00:01 <TrueBrain> what fits best for both worlds :)
22:00:16 <glx> hmm amount can work for both sandworm and harvester
22:00:21 <glx> I'll go for it
22:00:58 <TrueBrain> fine by me
22:01:42 <glx> will need a multiline comment in unit ;)
22:01:59 <TrueBrain> do what you think is best, and show me the result :)
22:08:40 <glx> ok refreshed
22:09:36 <TrueBrain> how about replacing &3 for %4?
22:09:40 <TrueBrain> would that be better?
22:10:19 <TrueBrain> u->amount = 0x03; <- please make it '3', as it no longer is a hex value ;)
22:10:48 <TrueBrain> rest looks lovely :)
22:14:33 <TrueBrain> k, I am off to bed .. serie is finished :)
22:14:35 <TrueBrain> night!
22:14:36 <TrueBrain> nice work glx ;)
22:15:02 <DorpsGek> SVN: glx (r612) -Add: C-ified Script_Structure_RefineSpice()
22:23:11 <glx> TrueBrain: worklist doesn't auto update :)
23:47:40 *** ChanServ sets mode: -o TrueBrain
23:49:51 *** Xaroth sets mode: +o TrueBrain
23:50:04 <Xaroth> hm, i think one of my disks is being a twat
23:50:10 * Xaroth goes checkdisk
23:51:40 <Xaroth> it's output is too much.. chkdsk should output a nice progress bar and a list of serious errors
23:52:21 <Xaroth> dad was watching it and was like 'your hard drive is broken' .. 'why?' .. 'it sais "fixing mirror copy of the security descriptors data stream." ...'