IRC logs for #opendune on OFTC at 2010-02-13
⏴ go to previous day
04:03:42 <glx> finally I found the cause for the difference
04:04:49 <glx> music was "on" (in the game config) for my working repo, it was "off" for the reference repo
10:57:16 <TrueBrain> poor glx ... such a mistake sucks ...
11:01:20 <DorpsGek> SVN: truebrain (r892) -Documentation (r888): forgot to document the new function
11:23:06 <DorpsGek> SVN: truebrain (r893) -Add: C-ified Map_IsPositionUnveiled()
11:28:39 <DorpsGek> SVN: truebrain (r894) -Cleanup: removed unused functions and declares
11:30:54 <DorpsGek> SVN: truebrain (r895) -Fix: rename a variable to make a tiny bit more sense
11:40:04 <DorpsGek> SVN: truebrain (r896) -Add: named one more variable
11:47:30 <DorpsGek> SVN: truebrain (r897) -Update: update the order of decompiled.h, so all developers output the same order
12:18:13 <Xaroth> nice post of him indeed, TrueBrain
12:18:37 <TrueBrain> he finally shut up about it :p
12:18:52 <Xaroth> not him, the one on our forum
12:19:35 <TrueBrain> well .. it made me laugh HARD
12:24:14 <DorpsGek> SVN: truebrain (r898) -Add: identified which bits are used in [Structure|Unit]Info->flags
13:04:02 <DorpsGek> SVN: truebrain (r899) -Add: named a function and a few more variables
13:33:11 <TrueBrain> fixes our differences in decompiled.h ;)
13:34:31 <TrueBrain> and it really sucks it took you so long to figure out that you had a configure difference :s I hate those things .... your patch was okay after that?
13:35:03 <glx> no, but I was then able to fix the bugs ;)
13:35:19 <TrueBrain> good :) so progress? :)
13:35:41 <glx> I still have output differences but I don't know from where they come
13:36:00 <glx> and it stills triggers an unresolved
13:36:42 <glx> not big, but some "note off" are in the clean version, and the modified version doesn't have them
13:37:51 <glx> maybe, I don't fully understand the format yet
13:40:32 <glx> maybe a real timing issue this time :)
13:40:59 <glx> because reading of sound files looks correct
13:41:09 <TrueBrain> well, 'note off' sounds important :p
13:41:25 <glx> but I don't know if they come from sound file
13:42:38 <glx> I just print in MPU_WriteData and in the interrupt
13:43:52 <TrueBrain> btw, I realised a way we might be able to use to see if our changes affect the gameplay:
13:43:55 <TrueBrain> make a demo with Dune2
13:43:58 <TrueBrain> and play it back with OpenDUNE
13:44:01 <TrueBrain> it should be identical
13:45:50 <glx> hmm last time I tried that, the playback was not exactly the same (made with opendune, replayed with opendune)
13:47:13 <TrueBrain> hmm .. so I will need to check that out then :)
13:47:27 <glx> but maybe IA is not fully deterministic
13:47:56 <TrueBrain> maybe the randomizer is not always loaded the same
13:48:04 <TrueBrain> I will experiment with it, see where it takes me
13:48:11 <TrueBrain> would be a nice way :)
13:48:17 <TrueBrain> but of course we do need to disable our enhancements
13:49:19 <glx> anyway first thing to check when you notice a difference: the game config ;)
13:57:39 <glx> adding printf in another loop
14:00:37 <TrueBrain> okay .. how are we going to enable the enableLog flag .. hmm ..
14:01:27 <glx> ha I have different output in this loop
14:02:34 <TrueBrain> do you remember how we made the playback the first time?
14:02:39 <TrueBrain> and how to play it back? :p
14:03:13 <glx> hmm there's a value to change somewhere
14:03:40 <TrueBrain> yeah, the enableLog
14:03:46 <TrueBrain> but .. I can't get it to playback :(
14:05:54 <glx> hmm 1 to save, 2 to replay ?
14:06:03 <TrueBrain> I thought it was via parameters ..
14:08:13 <glx> IIRC we set the value in config.c (when we need it)
14:08:29 <TrueBrain> yeah, that is for creating a dune.log
14:09:31 <glx> change the value, recompile, restart
14:09:43 <glx> and don't touch the mouse
14:09:45 <TrueBrain> enableLog is either 0 or non-zero
14:10:02 <TrueBrain> I can only find checks for != 0
14:10:47 <glx> f__257A_000D_001A_3B75() checks for 3 values
14:10:51 <TrueBrain> decompiled/cs__B4B8.c: if (emu_get_memory16(emu_ds, 0x00, 0x379A) == 0x0) goto l__21B6;
14:10:52 <TrueBrain> src/opendune.c: if (g_global->enableLog != 0) {
14:10:58 <TrueBrain> grrr ... no direct access
14:11:24 <glx> ,...emu_push(emu_get_memory16(emu_ds, 0x00, 0x379A));
14:11:24 <glx> ,...emu_push(emu_cs); emu_push(0x21B3); emu_cs = 0x257A; f__257A_000D_001A_3B75();
14:12:06 <TrueBrain> so how to get it to work in dosbox .. hmm ..
14:13:31 <glx> dune2 can get some command line args
14:13:40 <glx> but this part is not decompiled IRIC
14:13:52 <TrueBrain> I thought it was just 'dune2.exe dune.log'
14:13:56 <TrueBrain> but that doesnt work :p
14:16:51 <TrueBrain> yes, any parameter should put it in playback mode
14:19:58 <TrueBrain> when I put it in mode 1, the mouse freezes when I start a game
14:20:51 <TrueBrain> as it does in mode 2 ...
14:24:21 <TrueBrain> GCC bug!! /prog/opendune/clean/src/patched.c:27: undefined reference to `F::f(_0F45_0, B_44, [0])'
14:29:32 <TrueBrain> okay, in a clean verison recording does work
14:29:34 <TrueBrain> so I broke it somewhere
14:30:55 <glx> ha I indeed have a bug in a loop
14:31:02 <TrueBrain> glad you found it :)
14:31:10 <glx> easy to spot with extra printfs
14:32:20 <TrueBrain> now your result is identical?
14:32:45 <TrueBrain> grr, playback is not 100%
14:32:45 <glx> I probably missed a shift somewhere
14:33:17 <TrueBrain> outside the JIT it works, inside not so much
14:33:24 <TrueBrain> the timer stuff has to be identical
14:34:54 <TrueBrain> okay, playback itself works
14:35:00 <TrueBrain> recording fails, so it seems (in latest trunk)
14:36:04 <TrueBrain> going to try to find the revision that caused that
14:37:38 <glx> let me guess, file rewrite ?
14:38:01 <TrueBrain> well .. the mouse and keyboard lock
14:38:05 <TrueBrain> so I am not sure ..
14:38:55 <TrueBrain> so, are we going to run some missions today?
14:42:55 <TrueBrain> between 875 and 885
14:44:00 <Xaroth> still empire wars, TrueBrain
14:44:09 <TrueBrain> nowhere near our systems
14:44:15 <TrueBrain> went back and ford today
14:44:38 <TrueBrain> glx: yup, seems to be 878 .. I wonde rhow / why
14:45:57 <Xaroth> I'll have a look in jita if they are there
14:46:25 <TrueBrain> and even if they are there, what are the chances they come in a group? And with the two of us, we can hold of one, I guess?
14:46:32 <TrueBrain> and else make sure you have some worthless clone :p
14:46:38 <Xaroth> er, that's the whole point of empire wars :P
14:46:49 <Xaroth> and both my worthless clones are in 0.0 ;)
14:47:03 <TrueBrain> sigh ... then we go to 0.0 and do some pvp? :p
14:47:24 <Xaroth> let me first check jita
14:47:43 <TrueBrain> okay .. the file is opened in "ab+"
14:47:47 <TrueBrain> I don't see a problem there ..
14:51:51 <glx> ok I think I failed to convert a rep_scasb
14:52:22 <TrueBrain> hehe, nasty functions
14:52:25 <TrueBrain> even more in the 'cx' usage
14:53:17 <glx> in my case it's probably the zf flag :)
14:55:55 <Xaroth> no warred people in jita
14:59:38 <TrueBrain> I see no reason why recoding doesn't work with the new File stuff
15:03:20 <TrueBrain> I am not going to say it again :p
15:03:46 <Xaroth> Aliens vs. Predator (PC)
15:03:46 <Xaroth> Release Region: United Kingdom
15:03:46 <Xaroth> Release Date: February 26, 2010
15:03:55 <Xaroth> Release Region: United States
15:03:55 <Xaroth> Release Date: February 16, 2010
15:04:03 <TrueBrain> I see you never experiences leaks
15:04:14 <TrueBrain> to sell things, it has to be in stores
15:04:14 <Xaroth> yes, I know that one's out
15:04:21 <TrueBrain> to get things in stores for the 16th, it has to be there around the 13th
15:04:29 <Xaroth> but seeing I want to play multiplayer...
15:05:18 <Xaroth> ah, avialable on steam
15:05:22 <TrueBrain> wtf ... it opens the file, and then nothing
15:08:10 <DorpsGek> SVN: truebrain (r900) -Fix: the input could remain locked if File_Exists() or File_Create() failed
15:09:23 <TrueBrain> whoho, glx posted on the forum :o :)
15:10:36 <TrueBrain> well, you do make a very good point about scenario editor
15:11:42 <glx> I though about this possibility when I first saw these strings
15:13:00 <TrueBrain> all debugScenarios are resolved
15:13:27 <TrueBrain> owh, that is for sure not true
15:17:10 <glx> hmm ok more printfs seem to confirm I made an error
15:21:24 <TrueBrain> okay, there is just one unresolved debugScenario
15:21:29 <TrueBrain> and I doubt it writes the scenari :)
15:21:37 <TrueBrain> too bad .. now a game of EVE, tonight more research
16:35:56 <TrueBrain> fixed the problems glx? :)
16:36:26 <glx> not yet, but I know where it is :)
16:36:31 <TrueBrain> brb, reboot, burning 2 games .. takes a while :p
16:36:38 <TrueBrain> hehe :) I hope you manage to get any sound of it .. would be good :)
16:37:07 <glx> well if at least I can understand the format of the file
16:37:25 <glx> looks like there are many sounds in one file
16:43:12 <TrueBrain> yeh .. I expected that
16:43:16 <TrueBrain> damn, burning takes for ever ..
16:43:21 <TrueBrain> lucky, found a way to connect to my IRC :p
16:45:00 <TrueBrain> do you also understand the format of the sounds?
18:37:57 <TrueBrain> glx: you are right, there are things in the code which use those %s=%s things
18:38:10 <TrueBrain> I can find them when I manually look in the executable
18:38:15 <TrueBrain> now the only question is, how to make them available
19:00:20 <TrueBrain> there are A LOT of debug thingies ..
19:00:47 <TrueBrain> directly going to house select, for one
19:01:16 <TrueBrain> haha, found a way to immediatly complete a level .. every time
19:27:30 <DorpsGek> SVN: truebrain (r901) -Add: named a few debug variables
19:28:13 <DorpsGek> SVN: truebrain (r902) -Fix: enableLog didn't specify enough what it did
19:45:43 <TrueBrain> @calc (0x3B34 - 0x3A3E)
19:45:47 <DorpsGek> TrueBrain: 8.78571428571
19:46:15 <TrueBrain> @base 10 16 [calc 0x3A3E + 22]
19:47:30 <TrueBrain> @calc (0x3B50 - 0x3A3E)
19:47:35 <DorpsGek> TrueBrain: 9.78571428571
20:01:02 <TrueBrain> nope ... looking at certain strings, they are only used once
20:01:09 <TrueBrain> so there is no real editor in the game
continue to next day ⏵