IRC logs for #opendune on OFTC at 2010-10-21
            
02:10:44 *** fjb is now known as Guest84
02:10:45 *** fjb has joined #openDune
02:17:28 *** Guest84 has quit IRC
02:23:36 *** glx has quit IRC
03:18:33 *** Yexo has quit IRC
03:18:44 *** Yexo has joined #openDune
03:18:44 *** ChanServ sets mode: +v Yexo
03:44:53 *** fjb has quit IRC
05:05:02 *** tolbin has quit IRC
05:11:26 *** tolbin has joined #openDune
06:53:43 *** zear has joined #openDune
06:53:48 <zear> hello
07:14:19 <zear> how bad is the idea of compiling with -O3?
07:14:41 <zear> i though maybe for performance testing i could optimize the binary a bit with -O3
07:25:30 <Xaroth|Work> for windows we noticed that if you didn't link opendune to a debug version of libemu things would break
07:25:46 <Xaroth|Work> so that might happen for you too, though I'm not sure to what extent
07:25:51 <Xaroth|Work> I'd say, try it and see :P
07:28:01 <zear> as long as it doesn't crash before i get in-game to check the performance, it's all fine with me
09:22:41 <zear> ok, i wrote mouse emulation with keyboard
09:23:20 <zear> seems to be working rather ok, though you must know i am not a coder and my C skills are VERY limited, so it could be probably written ten times better and saner :)
09:24:07 <Xaroth|Work> heh
09:24:17 <zear> a question though, any way to disable map scrolling with arrow keys?
09:24:26 <Xaroth|Work> er, in the code, probably
09:24:31 <zear> my mouse emulation is mapped to them and when i move the mouse, the map also scrolls
09:24:34 <Xaroth|Work> might even be in the 'fun' bits that aren't converted yet
09:24:35 <zear> really annoying
09:24:39 <zear> heh
09:27:22 <zear> any reason the input loop reads stuff on SDL_KEYUP and not SDL_KEYDOWN?
09:27:54 <zear> i can see KEYDOWN falls through to KEYUP, but still can't understand why
09:30:31 <zear> i will need custom key mapping for my platform anyway
09:30:41 <zear> so i can map move, attack, etc for the remaining buttons
09:30:55 <zear> as moving the cursor on the action menu every time it a bit tiring
09:31:00 <zear> when you don't have a real mouse
09:31:33 <Xaroth|Work> yep :P
09:31:43 <Xaroth|Work> might want to see how the megadrive version did it
09:32:23 <zear> yep
09:32:35 <zear> anyway, let me show you my mouse code
09:34:42 <zear> Xaroth|Work, here: http://pastebin.com/raw.php?i=PJ66KcT6
09:34:52 <zear> i bet it's not keeping to the standards of coding ;)
09:35:49 <Xaroth|Work> zear: you really should know that I'm not the best coder of the team :P
09:36:08 <Xaroth|Work> I didn't take the role as Manager/CM/blame-it-all-on-him person :)
09:36:24 <Xaroth|Work> for no reason
09:36:26 <Xaroth|Work> .. stupid enter
09:36:32 <zear> and you should know that i started learning C just two weeks ago :D
09:36:49 <Xaroth|Work> then yer about a week ahead of me :P
09:36:57 <zear> yeah, right :P
09:37:09 * Xaroth|Work eyes TrueBrain
09:37:21 <Xaroth|Work> tell him how good my C skillz are, TB :P
09:38:13 <Xaroth|Work> .. great.. the one time I give him an open goal to mock me, and he remains quiet
09:38:21 <zear> :D
09:38:55 <zear> anyway, if you apply the whole patch, it will also change the scaling to 1x
09:39:21 <zear> if you want to apply only the mouse emulation part, you need to "cursor_y / 2"
09:42:42 <Xaroth|Work> well you can always just stop the fall through
09:43:24 <Xaroth|Work> init a bool to true default, set it to false when one of your keys is handled, then if (mouse_emulation and <var>) {
09:43:30 <Xaroth|Work> dirty, but should work
09:43:39 <zear> i don't know why you do the fall
09:44:08 <Xaroth|Work> I'm pretty sure there's a valid reason for it :P
09:44:11 <zear> :D
09:45:04 <zear> i'm now wondering how can i make a constant mouse move. Now you have to click for every step
09:48:04 <TrueBrain> do what I already suggested to you: disable the mouse. Dune2 will do mouse emulation and other things :)
09:48:55 <zear> wait, it will move the mouse cursor when i press the arrow keys?
09:49:23 <TrueBrain> just try it :)
09:49:33 <zear> how do i do that?
09:49:41 <zear> is there a flag for that in the code?
09:50:07 <TrueBrain> int3f.c, line 107
09:50:11 <TrueBrain> int33.c, line 107
09:50:33 <zear> ha, no wonder i didn't notice it, hex is a bit cryptic
09:50:35 <zear> so 0x00?
09:50:47 <zear> ah, 0x0000
09:52:59 <zear> TrueBrain, nope, that doesn't seem to work at all
09:53:10 <zear> crashes the program once i launch it
09:53:30 <Xaroth|Work> 0x0?
09:53:35 <TrueBrain> define 'crash'?
09:53:49 <zear> as in creating the dump
09:53:55 <TrueBrain> which location?
09:54:00 <TrueBrain> also make very sure to remove your mouse emulation routines
09:54:01 <zear> after the first two [emu]
09:54:16 <TrueBrain> there is a location in the crash, or there should be
09:54:18 <Xaroth|Work> pastebin the crash report
09:54:24 <zear> yeah, my routins only work if mouse_emulation flag is 1
09:54:27 <zear> set it to 0 now
09:54:43 <zear> give me a sec, gonna try with 0x0 instead of 0x0000 now
09:54:49 <TrueBrain> lol
09:54:51 <TrueBrain> don't listen to Xaroth|Work
09:54:53 <TrueBrain> he doesn't know
09:54:58 <Xaroth|Work> \o/
09:55:00 <Xaroth|Work> finally a remark
09:55:01 <TrueBrain> 0x0 === 0x00 === 0x0000
09:55:02 <zear> well, for me that both numbers are the same, but well ;)
09:55:10 <Xaroth|Work> you are SOOO slow today TrueBrain
09:55:18 <TrueBrain> no, you were just trying to get that out of me
09:55:35 <Xaroth|Work> what, normally you're the first to respond
09:55:46 <TrueBrain> yeah, you were now just saying 0x0 to get me say this
09:55:49 <TrueBrain> that is no fun
09:56:00 <Xaroth|Work> so? :P
09:56:03 <Xaroth|Work> i got my remark
09:56:05 <Xaroth|Work> my day is good again
09:56:36 <Xaroth|Work> plus I think my unified diff -> repoviewer diff parser works flawlessly now \o/
09:56:49 <Xaroth|Work> means the devpatch viewer will work in repoviewer
09:57:14 <zear> TrueBrain, http://pastebin.com/raw.php?i=mmxsMMBL
09:57:56 <Xaroth|Work> zear: the 3 lines after the EMU lines are the most important ones to report when mentioning a 'crash' :)
09:58:01 <TrueBrain> weird, we compiled most of that code ..
09:58:16 <zear> Xaroth, yeah, i can see it points to the right lines in the code
09:58:26 <Xaroth|Work> :)
09:58:44 <zear> so my mouse emulation code is still helpful for now ;)
09:58:55 <zear> plus, i had fun coding it, will be useful for other games
10:03:07 <TrueBrain> k, crash is correct .. weird .. but correct
10:06:04 <TrueBrain> I love our decompile process
10:06:05 <TrueBrain> pompiedom
10:07:53 <DorpsGek> SVN: truebrain (r1145) [JIT] -Fix: startup failed without mouse
10:08:18 <zear> sounds like i should get a new svn
10:08:19 <DorpsGek> SVN: truebrain (r1146) -Update (r1145): update decompiled code
10:09:13 <zear> -O3 seems to be A LOT faster :)
10:09:15 <TrueBrain> hmm ... something is weird, without mouse .. it reacts different then I am used to ..
10:09:18 <TrueBrain> -O3 is dangarous
10:09:32 <zear> i don't mind, the game is unstable anyway
10:09:39 <TrueBrain> well .. unstable in a different way
10:18:47 <zear> TrueBrain, so i guess the mouse emu is fixed in the newest svn now?
10:18:53 <TrueBrain> yup
10:19:08 <TrueBrain> just it didn't work how I expected .. there was some flag ...
10:19:14 <TrueBrain> can't remember
10:19:16 <TrueBrain> glx will
10:19:36 <zear> weird, it says it's already 1146
10:19:53 <zear> unless it doesn't print any messages when it's updating
10:20:01 <zear> just "In version 1146"
10:20:05 <TrueBrain> update OpenDUNE
10:20:06 <TrueBrain> not libemu
10:20:09 <zear> ah
10:39:51 <zear> TrueBrain, mouse emulation does not seem to be working
10:40:11 <zear> the game launches, the cursor appears on the middle of the screen, but i can't move it and thus can't select my house
10:51:22 <TrueBrain> it moves the map
10:51:28 <TrueBrain> but that was the switch I was talking about
10:52:07 <zear> wait, so it wouldn't be useful for me at all?
10:52:19 <TrueBrain> if I can remember which switch it was, it will
10:52:23 <TrueBrain> but I can't remember
10:52:43 <zear> no, but i mean, is there any built-in mouse emulation with keyboard?
10:52:57 <zear> or only a mode where you can control everything from keyboard, but you need full qwerty for it?
10:53:03 <TrueBrain> Dune2 is good operatable without a mouse
10:53:11 <zear> with just arrow keys?
10:53:16 <TrueBrain> Dune2 needs 7 buttons
10:53:40 <zear> good, i have 8 + dpad
10:55:41 <Xaroth|Work> and a keyboard for the security message :P :P :P
10:56:15 <zear> and i believe full qwerty to pass the house selection menu
10:56:23 <Xaroth|Work> nope
10:56:26 <Xaroth|Work> that's just a yes/no button screen
10:56:36 <zear> and you have to press 'y' or 'n'
10:56:39 <zear> i don't have that buttons
10:56:45 <Xaroth|Work> or click the button on the screen?
10:56:50 <TrueBrain> enter and esc work for that
10:57:00 <zear> Xaroth|Work, how click when i don't have a mouse?
10:57:05 <zear> TrueBrain, really? doesn't for me
10:57:18 <TrueBrain> without mouse, all kinds of other thingies get to life
10:57:19 <zear> what about house selection, where you have 3 houses to choose from
10:58:27 <zear> not really, unless that mode is not yet supported by opendune
10:58:45 <zear> i'm stucked in the house selection menu, plus i see mouse on screen, so i guess it's not in menu only mode
10:58:51 <zear> *keyboard only
10:59:32 <TrueBrain> I hate repeating myself, but again: there was a mode where you could operate the on-screen mouse with the arrow keys. For some reason it seems not to be the default, but I can't remember how to fix that. glx most likely will.
11:00:01 <zear> that's why i wanted to hear from the beginning, there is a mode to operate the mouse cursor with arrow keys, great
11:00:05 <zear> :)
11:00:25 <zear> sorry if i didn't understand at first, but i got a couple of confusing answers
11:08:43 <zear> *that's what
11:39:09 *** fjb has joined #openDune
11:41:41 <fjb> Moin
11:45:23 <Xaroth|Work> o/
11:57:26 *** zear has quit IRC
12:07:59 *** glx has joined #openDune
12:07:59 *** ChanServ sets mode: +o glx
12:08:39 <glx> hello
12:08:48 <TrueBrain> howdie glx :)
12:09:04 <TrueBrain> glx: if I remember correctly, it was possible to move the mouse iwth the keyboard when you had no mouse, not?
12:09:21 <glx> hmm with numpad IIRC
12:09:46 <glx> but if mouse is enabled in config that doesn't work
12:09:54 <TrueBrain> yeah ...
12:10:31 <glx> but as we have config.c it's easy to test
12:11:53 <fjb> Moin glx
12:12:01 <fjb> Moin TrueBrain
12:14:40 <SmatZ> hello fjb
12:15:05 <fjb> Moin SmatZ
12:24:26 <Xaroth|Work> http://xkcd.com/276/ << for TrueBrain and his obsession for fixed width
14:10:18 *** fjb has quit IRC
14:35:30 *** fjb has joined #openDune
15:38:00 *** Yexo has quit IRC
16:50:39 *** zear has joined #openDune
16:51:01 <zear> re
16:51:25 <zear> this is weird guys, i launched opendune on my mips device about 50 times today, though this time suddenly everything's really fast
16:52:35 <zear> i was experimenting with disabling SDLK_[arrows] support and added an if statement for _int9_keyadd call, but i doubt that would change the game speed in any way
16:53:10 <zear> but this is both weird and good, because the game is totally playable now
16:53:21 <zear> let's see if it will still be that fast after restarting the game
16:58:43 <zear> hmm.. i think this might be because i compiled libemu with -O3, but this wasn't the first build with this flag i tested
16:59:01 <zear> but yes, this looks to be reproductible after restarting the binary
16:59:30 <zear> the game's quite unstable now, had a couple of crashes in main menu, but the speed difference is very noticable
16:59:38 <zear> i'd say it runs double speed now
17:05:41 <glx> optimisations can cause some bugs
17:06:27 <zear> i know, but this makes the game really playable now
17:06:50 <zear> and i think i found a way to disable SDLK_[arrows]
17:07:15 <zear> and also how to map keys from my device to SDLK_m, SDLK_a and to other useful actions
17:07:19 <glx> for example, with MSVC we must use debug libemu even for release opendune, else it doesn't run
17:07:38 <zear> glx, it is 50:50 it will crash during the menu with O3
17:08:54 <glx> http://bugs.opendune.org/view.php?id=44 <-- the problem :)
17:09:11 <zear> glx, it prints the lines on which it crashes here
17:09:15 <zear> so maybe we can debug it
17:09:29 <glx> on windows it prints it too :)
17:09:33 <zear> ;P
17:09:42 <glx> but it's just not valid
17:09:54 <zear> ah
17:10:01 <zear> you think it won't be valid in my case too?
17:11:13 <glx> maybe, maybe not
17:34:39 <zear> great, everything's slowly progressing with my port. Now i can map custom commands to my keys
17:49:33 *** fjb has quit IRC
18:05:42 *** fjb has joined #openDune
18:48:12 <zear> glx, here are two errors i got when running with -O3: http://pastebin.com/YMxPNf9w
18:48:16 <zear> the second one is interesting
18:48:58 <zear> it happened during the gameplay, the game window freezed, while the program returned to commandline
18:50:15 <glx> the crash is invalid
18:50:34 <zear> hah ;)
18:52:55 <glx> and the assert is probably invalid too
18:53:16 <glx> both are caused by corruptions due to optimisations I'd say
18:53:43 <zear> the performance improvement is tempting though
19:10:10 *** Yexo has joined #openDune
19:10:10 *** ChanServ sets mode: +v Yexo
21:12:35 <glx> zear: performance improvement is nice, but not having stack corruption is better :)
21:13:39 <zear> you think it's stack corruption? :)
21:16:03 <glx> it is
21:16:21 <glx> invalid crash are always stack corruption (libemu stack)
21:16:29 <zear> ah
21:16:38 <zear> too bad, it looks very playable
21:16:58 <zear> i'll keep monitoring this project, maybe one day the stack problem will be eliminated
21:17:58 <glx> when conversion will be complete :)
21:20:16 <zear> when is this expected if i may ask? I'm too fresh to know the speed of the progress with this project ;)
21:20:38 <glx> progress is very slow
21:20:56 <glx> http://svn.opendune.org/
21:21:24 <Xaroth> zear: duke nukem forever, only without the forever bit
21:22:09 <glx> could be GT5 too
21:22:15 <zear> well, dnf is almost out now
21:22:19 <zear> so i guess, 10 years?
21:23:00 <zear> glx, any non-financial way to motivate you guys to work faster on it? :P
21:23:09 <zear> like, me porting it to various exotic devices?
21:23:57 <zear> i can't lend a hand unfortually, you have seen my mouse emulation code, it's of a questionable quality
21:25:08 <Xaroth> it's more about wanting than knowing tbh
21:25:12 <Xaroth> even i've done comits
21:25:21 <Xaroth> and i suck at converting :P
21:25:26 <zear> :D
21:26:55 <zear> well, i just want to tell you guys that while on PCs opendune will be mostly played by retro fans who remember old dune times, but on handheld devices there's a whole new generation of players wanting to give this game a try
21:27:23 <glx> <@Xaroth> and i suck at converting :P <-- I confirm :)
21:27:27 <zear> so yeah, we, handheld guys have a great hope in projects like OpenDune
21:27:46 <glx> so I'm currently the only "active" coder
21:27:56 <zear> heh
21:28:18 <glx> as TrueBrain doesn't have enough free time
21:28:26 <Xaroth|Work> zear: openttd not up your alley then?
21:29:03 <zear> openttd doesn't work well at 320x240, unfortunatelly
21:29:12 <Xaroth|Work> not even with the small screen adjustments?
21:29:14 <zear> but it's on my list "to-port" games
21:29:27 <zear> there's a lack of a real mouse, too
21:29:32 <Xaroth|Work> true
21:29:36 <glx> IIRC the main toolbar is splitable for small res
21:29:38 <zear> i have played openttd in that res on the gp2x
21:29:44 <zear> was really painful to do anything
21:30:06 <zear> glx, yes, but it only takes up the precious screen space ;)
21:30:10 <zear> keep in mind this is 320x240
21:30:33 <zear> if one did 8x8 tileset this game would be playable at this res
21:30:38 <zear> but 16x16 simply doesn't fit
21:31:13 <zear> here to give you an idea how terrible it presents: http://gp2x-emulation.dcemu.co.uk/files/1openttd.gif
21:32:15 <Xaroth|Work> one can always zoom out :P
21:32:24 <zear> tried it, hard to do anything with it
21:32:38 <Xaroth|Work> well, then a 8x8 tileset would suck anyhow :P
21:32:43 <zear> yea, probably
21:32:52 <Xaroth|Work> 12x12 perhaps
21:33:02 <zear> yeah, that could actually work
21:33:19 <Xaroth|Work> the top bar maybe with pager buttons rather than 2 lines
21:33:26 <Xaroth|Work> like a < and > at each end
21:33:29 <zear> here's my port to jornada 720 for comparison: http://jornada.m01.pl/repo/shots/bf5f4dc2.png
21:33:34 <zear> (640x240)
21:33:43 <zear> it's fully playable at that res
21:33:47 <Xaroth|Work> much better that one
21:36:07 <zear> openttd did a great job on freeing the graphics/music
21:36:15 <zear> though i still prefer simutrans over it
21:38:43 <Xaroth|Work> never really got into simutrans
21:39:16 <zear> you should try unstable, stable always lacks features
21:39:40 <zear> but i love the possibilities in this game
21:40:02 <zear> metro, custom built airports, etc
21:40:11 <zear> day/night cycle, seasons
21:40:20 <zear> cars and pedestrians
21:40:33 <zear> and passengers have actual goals
21:40:49 <zear> they won't get in the first bus to nowhere that stops at their station
21:41:36 <zear> also, factories, oilrigs, etc all have workers, so you can organize passenger transports to that places
21:41:42 <zear> not only good transports to/from
21:41:46 <Xaroth|Work> aj
21:41:48 <Xaroth|Work> ah, even
21:41:53 <Xaroth|Work> can't type properly in the dark
21:41:56 <zear> ;P
21:43:07 <Xaroth|Work> working on a replacement for the svn viewer of opendune
21:43:18 <Xaroth|Work> which was already a custom build
21:43:22 <Xaroth|Work> as websvn sucks
21:43:26 <Xaroth|Work> and trac is bloated to fook
21:43:32 <zear> yes it does, i must admit ;D
21:43:33 <SmatZ> fook!
21:43:39 <zear> i like the svn viewer from sourceforge
21:43:42 <Xaroth|Work> ! SmatZ !
21:43:51 <SmatZ> hello Xaroth|Work
21:43:55 <SmatZ> still at work?
21:43:57 <Xaroth|Work> nah
21:43:59 <SmatZ> :)
21:44:05 <SmatZ> I like git web interface
21:44:12 <Xaroth|Work> easier to ssh to work machine than to home machine
21:44:16 <SmatZ> :)
21:44:34 <Xaroth|Work> I was really proud of the 'dev patch' bit of the current svn viewer
21:44:55 <SmatZ> :-)
21:45:28 <Xaroth|Work> like, instead of http://devs.opendune.org/~xaroth/patches/unit_team.patch one would show http://svn.opendune.org/~xaroth/patches/unit_team.patch
21:45:34 <Xaroth|Work> small difference, huge improvement
21:46:04 <Xaroth|Work> means any idiot can then read and 'understand' the patch
21:47:52 <Xaroth|Work> anyhow, time to snooze
21:47:52 <Xaroth|Work> nn
21:47:59 <SmatZ> :)
21:48:02 <SmatZ> good night, Xaroth|Work
21:48:36 *** zear has quit IRC
21:48:46 <SmatZ> well, the original diff is fine readable for me :p
21:48:53 <SmatZ> but ok
21:49:11 <SmatZ> and as I am colourblind
21:49:33 <SmatZ> the new version is actually harder to distinguish
21:49:52 <SmatZ> because the "removed" lines look the same as the "lines that ar not changed"
21:50:18 <SmatZ> red/green colourblind, about 10% of male population has that problem :p