IRC logs for #opendune on OFTC at 2010-04-15
            
02:47:26 *** glx has quit IRC
12:01:00 *** glx has joined #openDune
12:01:01 *** ChanServ sets mode: +o glx
12:01:21 <glx> hello
12:58:51 <TrueBrain> morning
12:58:59 <TrueBrain> LibEMU (and alleycat) 'works' on the FPGA :)
12:59:12 <TrueBrain> not really how it should ... but the timer works, the video works .. it just works
12:59:21 <TrueBrain> of course timing the 3DA port turns out to be a bitch
13:02:50 <TrueBrain> but .. I saw the cat walking over the fence! :)
13:04:54 *** arik1812 has quit IRC
13:07:08 *** arik1812 has joined #openDune
13:20:53 <Xaroth|Work> o_O
13:20:57 <Xaroth|Work> wb
13:25:40 <glx> http://paste.openttd.org/225570 <-- isn't there a bug ?
13:26:08 <glx> if I understand well it changes tile->houseID, but the and mask seems wrong
13:34:10 <TrueBrain> the FC?
13:34:13 <TrueBrain> @base 16 2 FC
13:34:13 <DorpsGek> TrueBrain: 11111100
13:34:20 <TrueBrain> as it is (once again) a few bits short
13:34:23 <TrueBrain> not the first time :p
14:19:31 *** Yexo has quit IRC
14:19:47 *** Yexo has joined #openDune
14:19:47 *** ChanServ sets mode: +v Yexo
14:29:09 <TrueBrain> ah, I was about to finish DrawText_Wrapper
14:29:13 <TrueBrain> I just needed to decompiel a few things
14:32:16 <TrueBrain> is an annoying one
14:32:25 <TrueBrain> as it has va-arg params :p
14:35:42 <TrueBrain> @calc 0xe8
14:35:42 <DorpsGek> TrueBrain: 232
15:00:37 <TrueBrain> hmmm ... it fails :(
15:07:17 <TrueBrain> @base 10 16 [calc 0x8bea - 0x8aee]
15:07:17 <DorpsGek> TrueBrain: FC
15:07:21 <TrueBrain> @calc fc
15:07:21 <DorpsGek> TrueBrain: Error: 'fc' is not a defined function.
15:07:23 <TrueBrain> @calc 0xfc
15:07:23 <DorpsGek> TrueBrain: 252
15:08:26 <TrueBrain> glx: something is VERY wrong
15:08:39 <glx> where?
15:08:41 <TrueBrain> when I load savegames, weird stuff starts to happen
15:08:52 <TrueBrain> for example, all my damaged units are being picked up and repaired
15:09:13 <TrueBrain> on a positive side, the text is (with my patch at least) correct in the top bar
15:12:48 <glx> when did it start ?
15:13:01 <TrueBrain> no idea
15:16:31 <glx> btw I just did a quick check regarding DisplayText, emu_cs is wrong when calling emu_GUI_DrawText_Wrapper
15:17:16 <TrueBrain> why?
15:17:51 <glx> ,...,...,...emu_push(emu_cs); emu_push(0x0AFF); emu_GUI_DrawText_Wrapper();
15:18:04 <TrueBrain> lol
15:18:05 <TrueBrain> that is wrong, yes :p
15:18:19 <TrueBrain> lucky no local cs access, so not an issue
15:18:22 <TrueBrain> but who did that? :)
15:18:36 <glx> dune2 did, local call
15:18:49 <TrueBrain> ah, so then it is correct
15:18:49 <Xaroth|Work> bad dune2 :P
15:18:57 <TrueBrain> then it already was 10E4, and it should still be 10E4
15:19:04 <glx> ,...,...,...emu_push(emu_cs); emu_push(0x0AFF); emu_cs = 0x10E4; emu_GUI_DrawText_Wrapper(); <-- with that no ugly spacing
15:19:26 <TrueBrain> then there is no need for that
15:19:29 <TrueBrain> none at all
15:19:33 <TrueBrain> hmm
15:19:34 <glx> pop cs:ip in wrapper
15:19:35 <TrueBrain> no, not true
15:19:39 <TrueBrain> but either way, don't worry about it
15:19:54 <glx> yes you are converting it :)
15:20:33 <glx> but we should be more carefull with "local" emu_ calls ;)
15:20:54 <TrueBrain> hmm .. most things I converted I added the emu_cs
15:21:03 <TrueBrain> but yes, we should take care of those
15:21:14 <TrueBrain> lucky DisplayText is yours, so I can just point fingers here :p
15:24:24 <glx> hmm I never added any emu_cs IIRC, so something to check
15:24:28 <TrueBrain> pff, replacing emu_calls is a bitch :(
15:25:00 <TrueBrain> fuck, emu_GUI_String_Get_ByIndex is not yet converted
15:25:28 <glx> isn't it like String_Get_ByIndex?
15:25:34 <TrueBrain> like, yes
15:25:37 <TrueBrain> but not exactly ;)
15:25:42 <glx> different buffer?
15:25:47 <TrueBrain> no clue
15:26:19 <glx> oh there's a switch in it
15:29:33 <DorpsGek> SVN: glx (r1087) -Add: C-ified Script_Unit_GetAmount(), Script_Unit_IsInTransport(), Script_Unit_Unknown22C4(), Script_Unit_Unknown246C(), Script_Unit_Unknown2552() and Script_Unit_FindStructure()
15:33:15 <TrueBrain> lol, something is not completely correct in my patch ...
15:35:07 <TrueBrain> seems va_ fails :p
15:36:38 <TrueBrain> "17% "
15:36:41 <TrueBrain> is giving issues ...
15:38:43 <TrueBrain> but I don't see why ....
15:39:38 <TrueBrain> k, printf indeed does something with it :)
15:39:45 <TrueBrain> how to resolve that ......
15:40:53 <TrueBrain> wow, a lot of emu_ seem unused ;)
15:41:00 <TrueBrain> something nice to cleanup :) But that is for another day
15:41:33 <DorpsGek> SVN: truebrain (r1088) -Add: C-ified GUI_DrawText_Wrapper()
15:41:39 <TrueBrain> still the % bug ...
15:41:41 <TrueBrain> still no clue :p
15:43:23 <DorpsGek> SVN: truebrain (r1089) -Fix (r1088): do not vsnprintf strings to GUI_DrawText_Wrapper() twice (once via emu, once in C-version)
15:43:25 <TrueBrain> there :)
15:43:53 <TrueBrain> either way, the problem units are being picked up immediatly, should be fixed ....
15:45:13 <TrueBrain> glx: http://paste.openttd.org/225575
15:45:27 <TrueBrain> that is a nice list ;) Mostly because of your C-ifiying ;)
15:45:36 <TrueBrain> I will take care of it this weekend if you haven't done so before :)
15:45:39 <TrueBrain> for now, I have to go :)
15:48:07 <glx> doing the cleanup :)
16:03:53 <DorpsGek> SVN: glx (r1090) -Remove: no longer required emu_ functions
16:42:27 <glx> http://svn.opendune.org/~glx/warnings.patch or http://svn.opendune.org/~glx/warnings2.patch ? (to fix uint16 -> uint8 warnings)
16:45:41 *** ChanServ sets mode: +v glx
16:45:41 *** ChanServ sets mode: +o TrueBrain
16:45:41 *** ChanServ sets mode: +v Xaroth|Work
16:45:41 *** ChanServ sets mode: +v Xaroth
20:58:10 <TrueBrain> warnings.patch can use some alignment fixing :)
20:59:27 <TrueBrain> and, euuhhh ... second is smaller, but first is nicer
22:38:38 *** maikel has joined #openDune