IRC logs for #opendune on OFTC at 2010-01-17
⏴ go to previous day
04:51:28 *** Igor2___ has joined #openDune
04:51:53 <Igor2___> hmmz, where's TrueBrain when I need him? :)
09:26:36 *** ChanServ sets mode: +v Yexo
10:42:07 <tb2> might be that it was 2:30 I logged out :s
12:07:00 <tb2> emu_orw(&emu_di, emu_di); if (!(emu_flags.sf != emu_flags.of)) goto l__05DC;
12:07:03 <tb2> what would that do .. euuh ...
12:14:06 <Xaroth> what did of do again :o
12:15:27 <tb2> it is: if (emu_di >= 0) ;)
12:24:43 <tb2> grr ... the decompiler is annoying me
12:24:56 <tb2> f__0C3A_01BA_0018_69C9 / f__0C3A_0C5C_004D_2837 keep on popping up, as a function I just translated and is never called ...
12:27:56 <tb2> what the fuck .. even if I implement them, they still appear ...
12:34:27 <tb2> whoho, my rewrite works! :o :)
13:39:10 <tb2> it is hard to get into this job again ;)
13:40:48 <glx> hmm I should try in patch viewer :)
13:41:46 <glx> but I don't understand how that works
13:56:17 <Xaroth> paste the link in the patch viewer
13:56:24 <Xaroth> and it'll redirect you to the view page
13:58:31 <Xaroth> hm, it seems to fail :o
13:58:55 <glx> tb2: I hate this complicated stuff :)
13:59:26 <tb2> I only need to get the struct from variable_34 documented nicely
13:59:29 <tb2> I think it is scrollbar only
13:59:40 <glx> and you inverted some additions, so it was not easy to follow
13:59:54 <tb2> haha, yes, sorry, I did some optimizations
14:00:34 <glx> I'm at positionX and positionY ;)
14:00:53 <tb2> ah .. that is just some general piece of code I copy/pasted .. as they implement it in 4 ways that I know of :p
14:12:20 <glx> if (loc10 > loc14) { <-- (line 162) can be a simple else
14:13:17 <tb2> } else { emu_push(position < scrollTop ? -emu_get_memory16(scrollcsip.s.cs, scrollcsip.s.ip, 0xA) : emu_get_memory16(scrollcsip.s.cs, scrollcsip.s.ip, 0xA));
14:13:32 <tb2> was what I had in mind ('scrollTop' is loc12, 'position' is loc10)
14:18:21 <Igor2___> >tb2> hi, are you truebrain? :)
14:18:39 <Xaroth> wait, I know that name
14:18:59 <glx> Igor2___: yes a temp TrueBrain ;)
14:19:08 <tb2> Igor2___: as much as you are Igor2
14:19:50 <Igor2___> >tb2> i may need some help for challenge24 some time soon :)
14:20:02 <Igor2___> heh, and why are you using a webchat?! :)
14:20:17 <Xaroth> I converted him to the darkside
14:20:18 <tb2> because my main system crashed, and I can't get myself to rebuild it
14:20:31 <tb2> stupid 'squeeze' fucked up
14:20:35 <tb2> so I need to reinstall 'lenny' again
14:20:42 <tb2> which doesn't have the versions of certain software I would like
14:20:46 <tb2> short to say: Debian sucks
14:20:59 <tb2> (upgrade from lenny to squeeze causes 'udev' to fail)
14:21:25 <Igor2___> anyway, we are preparing our system for the Electronic Contest
14:21:35 <Igor2___> the main organizer is a bit concerned about DDoS attacks
14:21:57 <Igor2___> he strongly suspects that we will have a massive DDoS attack during that 5 hours for some reason, i don't know the background
14:22:30 <tb2> *he starts it himself* :p
14:22:31 <Igor2___> he asked how we could more or less protect ourselves against such problems and I suggested that we would distribute as much of our system as possible
14:22:58 <Igor2___> so my question is: would you be able to provde secondary dns and/or an irc server during the EC?
14:23:53 <Igor2___> ok, a bit more, probably from a few hours before the EC starts till a few hours after we put the final results online
14:23:56 <tb2> with a chance of it generating tons of bandwidth ;)
14:23:57 <Igor2___> so probably less than 24h
14:24:50 <tb2> tricky ... openttd.org is streched as it is .. the ISP I work for too ..
14:24:51 <Igor2___> we would use a low TTL value on the DNS to be able to reorganize IPs any time during the contest, if some systems are brought down by DDoS
14:25:29 <tb2> The ISP can spare 1 mbit/s .. but if you expect a DDoS, I don't think that would be sufficient
14:25:50 <Igor2___> the EC is on 27th February; in case you find "spare bandwidth" till then, i would be grateful :)
14:26:13 <tb2> we 'should' be moving stuff around before the 1st of March, so you might be in luck ;)
14:26:30 <tb2> I will ask my boss .. for sure I can give you a temp VPS, that is no issue
14:27:23 <Igor2___> please also ask him if he needs anything in return - the posters are already printed, so we couldn't put more sponsors on it, but i guess if he'd like, we could add entries on some credits or extra sponsors, dunno ;)
14:27:51 <tb2> nah, don't be silly :p I am not going to tell him that :)
14:27:53 <Igor2___> (i also need to ask the main organizer if it's ok to bring in such friend-of-a-friend-of-a-friend solutions at all, but he is slower to answer than you are, so i asked you first;)
14:27:56 <tb2> (as then he wants it .. he is that kind of boss :p)
14:28:16 <tb2> that means: I just create the VPS in the cloud, he will never know :p
14:28:32 <tb2> I just need to know the bandwidth expectation for that date :p
14:28:37 <Igor2___> ohh, and team up with glx and rubidium and register now ;)
14:28:49 <tb2> I don't have the time for that ;)
14:29:02 <Igor2___> i guess the irc service and the dns service would be both relatively low bandwidth
14:29:05 <tb2> either way, ask me again around the 10th next month or so :)
14:29:15 <tb2> the DDoS part is what concerns me ;)
14:29:18 <tb2> not the IRC or DNS or what ever :p
14:29:27 <Igor2___> need to ask him why he suspects the attack
14:29:36 <Igor2___> maybe he is just thinking, maybe he knows something :)
14:29:40 <glx> tb2: finished reading, seems correct
14:30:03 <tb2> Igor2___: k .. just ask me again next month ;)
14:30:13 <Igor2___> btw, how's opendune? :)
14:30:52 <DorpsGek> SVN: truebrain (r814) -Add: C-ified GUI_Widget_Scrollbar_ArrowUp_Click(), GUI_Widget_Scrollbar_ArrowDown_Click() and GUI_Widget_Scrollbar_Click()
14:31:08 <Igor2___> you are already translating to real C? :)
14:31:23 <tb2> the decompiled code is working
14:32:02 <tb2> we named 32%, and converted 13% already
14:32:23 <tb2> 97k lines of code left, 10k lines of code already done
14:32:28 <tb2> (not one-on-one relation, but okay)
14:32:28 <Igor2___> a lot of unnamed stuff :)
14:32:38 <tb2> yup .. figuring out what does what is not the easiest job
14:32:57 <Igor2___> yeah, we are doing that for like 2 years at the company with old asm code ;)
14:33:22 <tb2> I filed in my decompiler idea as bachelor project for my final thesis (bachelor thesis)
14:33:43 <Igor2___> if they don't, they are too lame :)
14:34:45 <tb2> but you should give OpenDUNE a try
14:34:57 <tb2> you need libEMU for now, an emulator layer for DOS calls
14:35:06 <tb2> but when that 13% hits 100%, that should be long gone :p
14:35:15 <Igor2___> yeah, i plan to try it :)
14:37:10 <tb2> (although just in static mode)
14:37:28 <Igor2___> btw, i upgraded debian from lenny to squeeze on 2 hosts and it worked
14:37:35 <Igor2___> might be because i do not use distrib kernels :)
14:37:49 <tb2> yeah, udev needs a kernel update, but it needs that at 40% of the upgrade
14:38:06 <Igor2___> if i had the time...
14:38:15 <Igor2___> i always wanted to have my own debian spinoff
14:38:21 <Igor2___> just a repo with alternative packages
14:38:31 <tb2> waste of your time, I say
14:38:40 <Igor2___> so when i install a system, it wouldn't have udev and dbus
14:38:53 <Igor2___> well, i wouldn't feel it as waste, i just can't find the time
14:39:03 <Igor2___> i prefer static /dev
14:39:38 <Igor2___> and i prefer to use a mount command over automagic "ohh, you plugged this in sure you wanted to name it eth8 or wanted to mount it!"
14:40:53 <tb2> glx: I will try both patches tomorrow or something on my mac
14:40:59 <tb2> see if they work there too ;)
14:41:11 <tb2> but the timer should really work .. I see no reason why not ..
14:41:30 <tb2> btw, do you think that variable_34 would be used for anything else?
14:41:37 <glx> the main problem was -shared (not supported by gcc apple gcc ;) )
14:42:13 <Igor2___> reminds me, scconfig already works... ;)
14:42:14 <tb2> yeah, you had to run: make OSX:=1 STATIC:=1 ;)
14:42:36 <Igor2___> (just in case you are looking for a lightwight config system for opendune;)
14:42:44 <glx> .so -> .dylib change is just to have a more OSX style shared lib
14:42:49 <tb2> for now it is a lightweighted makefile ;)
14:46:02 <Igor2___> maybe i could contribute on this side when it's time to have something more complicated
14:46:08 <tb2> I am proud OpenDUNE is still C89 (ANSI-C, ISO90, what ever you want to call it)
14:46:18 <Igor2___> (i really don't dare to dive down in translating to C because then i wouldn't have time for anything else;)
14:46:28 <tb2> we do need it, I am just too busy with other parts of OpenDUNE :p (which are more important for me to take care of)
14:46:29 <Igor2___> yeah, scconfig is like that too :)
14:46:43 <Igor2___> you mean you do need it already?
14:47:17 <Igor2___> ok, then when i first try opendune, i'll probably hack something up with scconfig
14:47:24 <tb2> you are now forced to put libemu in that dir, and shit like that :p
14:47:40 <Igor2___> if the code itself is c89, it's only generating some Makefiles for those system-specific extensions and gcc flags, shouldn't be big
14:48:08 <tb2> we currently need some gcc specific something for gcc builds
14:48:18 <tb2> (sibling calls optimization)
14:48:30 <tb2> and 'tcc' complains about some things ..
14:48:33 <tb2> 'icc' doesn't like the -ansi
14:48:46 <DorpsGek> SVN: truebrain (r815) [LibEMU] -Add: dynamic library support for OSX (glx)
14:48:52 <Igor2___> btw i still have my porting test machine
14:48:58 <DorpsGek> SVN: truebrain (r816) -Add: dynamic library support for OSX (glx)
14:49:08 <Igor2___> i guess i would also try to compile on those
14:49:08 <tb2> I always had a weird: tomorrow; tnx glx ;) Works perfectly :)
14:49:23 <tb2> for now, libEMU requires, demands, LibSDL
14:49:32 <tb2> so any platform that can run libSDL, should be able to run OpenDUNE
14:49:45 <tb2> of course I do hope to allow alternatives next to libSDL
14:49:51 <Igor2___> minix3 probably can't - but still i could _compile_ the code
14:49:54 <tb2> but I strongly doubt OpenDUNE will ever run on DOS :)
14:50:07 <Igor2___> my experience is that if something compiles on all linux, minix and netbsd, it's rather safe for porting
14:50:27 <tb2> MSVC and GCC compile it (MSVC in C mode, which is amasingly hard)
14:50:36 <tb2> so I am fairly sure it will compile on those targets :)
14:51:31 <glx> C mode is not hard in MSVC (if you respect C standard, like no declaration in the middle of code)
14:51:45 <tb2> I found it rather bitchy ....
14:52:42 <Igor2___> don't you use -pedantic with gcc?
14:53:08 <Igor2___> anyway lately i took a look on gcc sources
14:53:13 <Igor2___> wanted to make a new target to it
14:53:30 <Igor2___> (it was surprisignly straigthforward until a given point)
14:53:49 <Igor2___> well, the target part is rather nice :)
14:54:03 <Igor2___> only problem is that my target has a single register
14:54:16 <Igor2___> i couldnt' find real info about it, but it _seemed_ like gcc wouldn't like that situation
14:54:33 <tb2> haha :) Single register systems .. that brings back old memories ...
14:54:48 <Igor2___> i am also in contact with DJ Delorie
14:54:49 <tb2> A / B register for ALU operations, not usable from code ... C register as general register ...
14:54:56 <Igor2___> he does that gcc hacking for living
14:55:46 <Igor2___> what made me not even try was that i found microchip already ported gcc to their other, 16-bit platforms (pic 24fxxx) and that the 24 family is not any more expensive than the 16 bit family
14:56:09 <Igor2___> so i decided to go for existing gcc target and better CPUs for the same money ;)
14:57:17 <nsz> i thought you write your microcontroller stuff in asm
14:58:34 <Igor2___> for a long time i did
14:58:47 <Igor2___> it was fun and i learned a lot about the controllers
14:58:56 <Igor2___> i would even write some critical parts in asm now
14:59:22 <Igor2___> problem is that I do not have a simulator for a lot of chips
14:59:40 <Igor2___> writing in asm without a sim is suicide
14:59:56 <Igor2___> doing the same in C for the very same chip and task is bearable
15:00:11 <Igor2___> also, portability.. it matters some even in this range
15:01:04 <glx> I only did some pic18 with USB
15:01:20 <Igor2___> pic18 is 8 bit yet, no gcc support
15:01:39 <glx> no gcc but they have C compiler
15:03:01 <Igor2___> yeah, guess what their mplab shit uses on pic24 and above now...
15:03:34 <Igor2___> (i use sdcc for 8 bit, but that doesn't optimize that much - i expect gcc to do a much better job on 16 bit)
15:04:32 <nsz> there should be an llvm like compiler architecture ..written in c
15:05:30 <Igor2___> a lot of things there should be, yeah ;)
15:06:22 * Xaroth likes the linking to the devpatch page ^^
15:07:03 <Xaroth> btw, tb2, how does lighttpd do its mod_rewrite stuff?
15:07:19 <Xaroth> I wanted to make svn.opendune.org/trunk/whatever to point to the repo browser directly
15:07:20 <glx> variable_06 and variable_04 are something like min/max
15:07:31 <tb2> Xaroth: dunno ... www.google.nl? :)
15:07:58 <Igor2___> anyway... see you next time :)
15:08:04 <tb2> glx: I am not sure yet .. either it is the position of the scrollbar, or something else ...
15:08:51 <tb2> and 06 the current position
15:09:07 <Xaroth> tb2: bah, I had hoped you had experience with it :P
15:09:18 <tb2> a little .. but I always open the manual page :p
15:10:15 <glx> widget_click.c:136 scrollbar->variable_0E ?
15:10:46 <Xaroth> bouncing boobs of goodness
15:10:56 <glx> (because you didn't replaced it ;) )
15:11:03 <Xaroth> meh, not available until 10
15:11:04 <tb2> Xaroth: put your age at 89
15:11:21 <Xaroth> have you ever seen that movie?
15:11:23 <tb2> DOA4, if you make a profile with age 89
15:11:40 <Xaroth> never played the games
15:11:44 <Xaroth> not a fan of fighting games
15:11:52 <Xaroth> well, i played DOA2 at an arcade a few times
15:11:53 <tb2> glx: suggestions for a name for variable_0A
15:12:00 <Xaroth> but that was like.. ages ago :/
15:12:02 <tb2> it is the amount of scroll when clicking not on the scrollpart
15:12:48 <tb2> so how to call the value that does more?
15:14:56 <glx> f__B520_062C_0030_162A() is ScrollbarMove(scrollbar, offset)
15:19:01 <glx> except widget_click.c:136 it's ok
15:21:22 <tb2> new patch, named most variables
15:23:29 <tb2> I am not 100% sure about 'dirty'
15:24:55 <glx> hmm scrollTop and scrollBottom seems strange for horizontal scrollbars ;)
15:26:06 <tb2> positionBegin and positionEnd
15:27:12 <tb2> I wonder if the 'dirty = 0' is at the right place ...
15:28:19 <glx> hmm it's reset only for custom drawing ?
15:28:22 <tb2> then the 'dirty' name is correct
15:28:30 <tb2> yeah ... it was an unresolved jump
15:28:32 <tb2> but I resolved it wrong :p
15:28:48 <tb2> it should be called in all cases
15:29:15 <tb2> and then the rest makes sense too :)
15:29:29 <Xaroth> time to try something :o
15:29:51 <glx> I think I'll convert f__B520_062C_0030_162A() :)
15:30:13 <Xaroth> 2010-01-17 15:29:35: (server.c.931) WARNING: unknown config-key: url.rewrite-if-not-file (ignored)
15:30:29 <Xaroth> would have been too easy :P
15:30:38 <tb2> emu_Widget_Scrollbar_Scroll <- sensible name for that function glx?
15:31:01 <tb2> owh, it is only called from the C functions :) How nice ;)
15:32:05 <DorpsGek> SVN: truebrain (r817) -Add: made a struct for Widget_Scrollbar, named most variables, and named one more function
15:32:20 <tb2> now this is nice and much more readable :)
15:32:51 <glx> and emu_GUI_Widget_Scrollbar_Scroll is now easy to convert ;)
15:33:58 <tb2> I expect another callback there .. dunno why
15:34:04 <tb2> possible it is the draw callback which takes care of it
15:34:42 <tb2> yeah, it is the draw callback which takes care of the parent looking good
15:35:15 <glx> someone again forgot some renames ;)
15:36:11 <tb2> ah, you are right ... but if you are going to C-ify them, I suggest you hurry, and take care of it :p :p
15:36:11 <glx> ,...emu_push(emu_cs); emu_push(0x03DE); emu_cs = 0xB520; f__B520_062C_0030_162A(); <-- not a depends error
15:36:18 <tb2> the file was not recompiled
15:37:04 <tb2> because of the other changes
15:37:08 <tb2> like this: I compiled, it worked
15:37:13 <tb2> it didn't recompile those files
15:37:31 <DorpsGek> SVN: truebrain (r818) -Fix (r817): forgot to rename the functions in the src/ dir
15:37:41 <glx> extern void f__B520_062C_0030_162A(); <-- no reason for recompile ;)
15:38:03 <glx> it doesn't use the include directly
15:38:05 <tb2> exactly .. make depend fails :p
15:43:03 <tb2> okay, that brings scrollbars to an end for me for now ..
15:44:43 <tb2> I think emu_Tools_MulCSIP_csip() is not the right name :p
15:44:48 <tb2> I think it is a general 32bit multiplier
15:48:45 <tb2> all B520 functions are scrollbar related
15:53:16 <Xaroth> it doesn't parse the query string properly
16:02:08 <Xaroth> ah, google is indexing our filez as well :p
16:07:02 <Xaroth> I am now officially happy with the repo browser
16:16:46 <tb2> s/wscrollbar/scrollbarcsip/ I guess
16:16:54 <tb2> as the 'w' in 'wcsip' comes from the 'w' from Widget * ;)
16:18:13 <tb2> 0C is something like scrollPosition and 08 something like scrollMax
16:18:44 <tb2> but no idea why it has to stay a page from the max value ..
16:18:53 <tb2> well, because of the length ..
16:19:03 <glx> and scrollPerPage is more like scrollSize
16:19:05 <tb2> so s/scrollPerPage/scrollPageSize/
16:20:26 <tb2> I love it when we are in agreement ;)
16:23:04 <tb2> I am surprised that your function does not alter 'position' directly
16:23:09 <tb2> most likely some subfucntion which does
16:33:58 <tb2> "(click outside scrollbar)" <- that is now obselete
16:36:27 <DorpsGek> SVN: glx (r819) -Add: C-ified GUI_Widget_Scrollbar_Scroll()
17:24:55 <Xaroth> I opted at some point to make it an AJAX repo browser
17:24:58 <Xaroth> but that would be just ott.
17:35:07 <Xaroth> btw, I take it we're moving the release cycle date a week back?
17:35:17 <Xaroth> to compensate for the slow xmas period
17:35:49 <tb2> yeah, we already said that, not? :)
17:36:05 <tb2> next sunday we freeze trunk for a week
17:36:18 <tb2> only allowing fixes for bugs and other problems
17:36:21 <tb2> (which I don't expect btw)
17:36:36 <Xaroth> I can make some if you want? :P
17:37:31 <tb2> I rather have you get your ship out, and shoot a few pieces of Lords
17:38:08 <Xaroth> I'm staying where it's safe, atm :P
17:39:43 <Xaroth> there's 2 fleets already up to provide defence
17:40:17 <tb2> just arrived at the station too :p
17:40:27 <tb2> so if there is defence, what is wrong with going out and shooting a few asses
17:40:55 <Xaroth> the fact that would most likely fuck over my goal of, not getting blown up :)
17:41:06 <Xaroth> I have a habit of always getting called primary during roaming ops
17:43:02 <glx> tb2: you noticed the 3 crash reports?
17:43:16 <tb2> I read them, didn't load them in yet
17:47:52 <tb2> most likely due to some corruption
18:32:04 <tb2> okay .. nuff of this GUI stuff .. what next .. hmm ..
18:32:37 <tb2> and Xaroth: I WANT TO LOOT! :p (I need money :p)
18:32:41 <Xaroth> wasn't there one left still?
18:32:45 <Xaroth> well, tell that to the hostiles
18:32:58 <Xaroth> ther'es 13 of em last reported in PI5
18:33:21 <tb2> what are they doing there ...
18:33:39 <Xaroth> trying to kill stuff, obviously
18:33:42 <Xaroth> or at least be very annoying
18:49:12 <glx> main gameloop is left IIRC
19:06:29 <tb2> the GameLoop_Main contains a lot of shit which doesn't seem all that interesting
19:06:40 <tb2> the only thing that makes me wonder is the first cascade of compares ..
19:08:43 <tb2> I mean .. the language is in the DuneCfg
19:08:59 <tb2> then it starts to look at the parameters of that function (which are the command line parameters)
19:10:00 <tb2> too bad opendune doesn't parse the command line ;)
19:13:59 <tb2> that is all it does ... set the language to another value, and move the command line
19:14:19 <tb2> then the command-line is given to Gameloop_IntroMenu
19:18:39 <tb2> double checked .. it really isn't
19:18:49 <tb2> so I suggest we leave that 'feature' out, and don't allow that way of language selecting ...
19:19:40 <Xaroth> localization should be changed at some point to a more.. usable sollution
19:20:45 <tb2> wat als er nou 10 van die gasten dit station komen aanvallen? Er is hier te weinig om dat direct te verdedigen, niet?
19:22:39 <tb2> where to put GameLoop_Main?
19:59:32 <glx> as it's is something like main() :)
19:59:44 <tb2> yeah, but main.c is reserved by the decompiler
19:59:48 <tb2> so opendune.c has to do for now :p
21:22:18 <tb2> (untested, don't even know if it compiles)
21:22:58 <Xaroth> I'm going to make a rewrite for that as well
21:49:14 <tb2> 'n hele battle past gewoon in mijn cargo hold
21:49:17 <tb2> kon ik gisteren niet zeggen :p
21:50:22 <tb2> wow, my patch works .... haha, that was unexpected :)
21:57:56 <tb2> yes, I don't expect my patches to work in one run :p
22:20:53 <glx> yes I konw the feeling :)
22:21:10 <glx> my last change didn't work at first run
22:21:23 <glx> (nor at second run either ;) )
23:50:11 <Xaroth> there, changed the devpatch field to automatically redirect to the pretty format
23:56:49 <Xaroth> changed changelog to -show- the changed files list if all 3 lists have 10 or less items, and hide if it they have more
23:56:58 <Xaroth> you canc lick it to view/hide the list (clarified that as well)
23:57:33 <tb2> not long from now, it is the perfect replacement for WebSVN :p
continue to next day ⏵