IRC logs for #opendune on OFTC at 2009-09-22
⏴ go to previous day
08:10:10 *** Xaroth has joined #openDune
08:10:10 *** ChanServ sets mode: +o Xaroth
09:49:30 <Xaroth> TrueBrain: installed the source integration plugin for mantis
09:50:17 <Xaroth> but i THINK it allows for auto-resolving of tickets as well
09:52:25 <Xaroth> ah, I -THINK- it requires creating a local copy of the repository.. how.. silly?
10:00:41 <Xaroth> but apparently there's a different way as well
10:28:40 <TrueBrain> Xaroth: can you btw look at svn.opendune.org .. in trunk/decompiled it doesn't sort by name :s
11:03:06 <Xaroth> TrueBrain: I think it's got something to do with changes made
11:08:25 <TrueBrain> btw, the WebSVN was very useful for me during classes :p
11:08:38 <TrueBrain> opened the file with the input shit and figured out the first function :p
11:08:45 <TrueBrain> was kind of a nice distraction :)
11:10:58 <Xaroth> we need a post-commit hook for mantis as well
11:11:04 <Xaroth> trying to fix the regex so it matches everything
11:14:17 <Xaroth> annoying preg_match_all
11:14:25 <Xaroth> want it to match more than 1 occurance
11:23:19 <Xaroth> against "-Fix #1, #2 #4 5 7: Testing fix command"
11:23:38 <TrueBrain> I never understood regexp :(
11:24:02 <Xaroth> er, regexp /-(?:fix|add)? #?(\d+)(?:,? ?#?(\d+))+/i
11:24:08 <Xaroth> silly / making irssi want to parse it :P
11:24:43 <TrueBrain> I am looking at it, but all I see is a void
11:24:53 <TrueBrain> worst part: today the class was regexp and finite states :p
11:32:42 <nsz> you don't understand because it's not a regexp
11:33:20 <nsz> regexp can match a regular language in linear time as was intended by ken thompson when he invented it
11:34:27 <nsz> these are horrid extensions (python, perl,..) which make regexps unreliable, unreadable and occasionally exponential runtime complexity
11:35:41 <TrueBrain> I believe someone has an annoyance regarding a certain subject ;)
11:36:17 <nsz> well many actually many subjects.. but yes
11:36:34 <TrueBrain> you have been hanging around igor2 too much, or the other way around? :p
11:37:48 <nsz> we don't always agree with igor
11:37:56 <TrueBrain> either way, I completely agree with you. Regexp got out of hand :(
11:38:05 <nsz> probably we disagree in more things than we agree
11:38:21 <nsz> he is a practical guy, i;m a theoretical
11:39:00 <TrueBrain> a lot of new series aired yesterday night .... I should start to do something useful instead of watching them :)
11:40:44 <Xaroth> nsz: that really doesn't fix my issue though :P
11:41:17 <TrueBrain> oh, you were looking for that? :p
11:42:13 <Xaroth> : /\bissue [#]{0,1}(\d+)\b/i matches -Fix Issue #1, Issue #2 Issue #4 Issue 5 Issue 7: Testing fix command
11:42:27 <Xaroth> would be useful if i had a look at the default setting
11:45:03 <Xaroth> now to change (\b#?(\d+)(?: ?,? ?)\b) so that it only looks before the : and after -Fix / -Add
12:02:16 <TrueBrain> "Condoms are not 100% protective if you do not take them out of your purse"
12:03:50 <Xaroth> not going to mess around with regexp
12:03:53 <Xaroth> if i can just change the code
12:05:10 <Xaroth> /-(?:fix|add)([^:]*):/i
12:05:15 <Xaroth> MUCH easier to understand
12:05:57 <Xaroth> and then a /\b(\d+)\b/i to filter out the , and #
12:06:59 <Xaroth> now to figure out if i can filter out r<something>
12:11:50 <Xaroth> it turns #1, #2 #4 r5, $7 into issues 1, 2, 4 and 7
12:12:01 <Xaroth> seeing 5 uses a restricted prefix :)
12:14:56 <TrueBrain> and: -Fix (#1, r12)?
12:17:06 <Xaroth> even -Fix [#1, r12]): now...
12:17:14 <Xaroth> /-(?:fix|add) \(?\[?([^:\)\]]*)\]?\)?:/i
12:38:51 <Xaroth> -Fix #4, r55: Test! << only matches 4 now
12:39:12 <Xaroth> "-Fix (#4, r55, 7): Test!" << matches, 4, 7
12:42:29 <Xaroth> Xaroth (r87) - -Add (#1, #2, r4): Testing the -Add (#issuenumber): description functionality...
12:42:47 <Xaroth> that shows up as the last comment
12:43:17 <Xaroth> so now something that calls php /var/www/bugs.opendune.org/htdocs/scripts/opendune_checkin.php with those args
12:43:38 <TrueBrain> in /var/repos/svn/opendune/hooks/post-commit add a post-mantis.sh call
12:43:44 <TrueBrain> and in there, call php <thatfile> ;)
12:49:13 <Xaroth> doing 5000 things at the same time again
12:50:08 <TrueBrain> no rush :) You asked, I answered ;)
13:03:00 <DorpsGek> SVN: commit (r88) by truebrain - -Fix: Add $Id$ tags to all files
13:06:34 *** ChanServ sets mode: +v Yexo_
13:06:45 *** Yexo is now known as Guest3300
13:16:54 <DorpsGek> SVN: commit (r89) by truebrain - -Add: gave all hardware interrupt calls a nice name
13:21:04 <DorpsGek> SVN: commit (r90) by truebrain - -Fix: a few comments were misleading
13:27:07 <Xaroth> TrueBrain: why use svn log when svnlook log gives already formatted output?
13:27:20 <Xaroth> svnlook log -r $REV $REPOS
13:27:27 <Xaroth> and svnlook author -r $REV $REPOS
13:27:53 <TrueBrain> Xaroth: svnlook requires local repos access, so I am not used (at all) to the command
13:27:59 <TrueBrain> feel free to alter ;)
13:29:33 <DorpsGek> SVN: commit (r87) by -
13:30:19 <DorpsGek> SVN: commit (r87) by truebrain - -Add: add a struct for the MouseData; use that instead of direct memory access
13:30:35 <TrueBrain> maybe fix the stupid - in themiddle while at it :p
13:31:03 <DorpsGek> SVN: commit (r87) by truebrain -Add: add a struct for the MouseData; use that instead of direct memory access
13:31:12 <TrueBrain> maybe a | or something?
13:31:30 <nsz> 'Add: add' looks stupid as well
13:31:53 <nsz> i usually use '+foo, -bar, fix quux'
13:31:56 <TrueBrain> that has to do with a prefix which tells the type of commit, and the text which works on its own
13:32:07 <TrueBrain> not a commit-style I would approve on :)
13:35:53 <DorpsGek> SVN: truebrain (r87) -Add: add a struct for the MouseData; use that instead of direct memory access
13:36:30 <Xaroth> that looks better..ish
13:36:49 <TrueBrain> it just misses how many files and that shit
13:36:51 <Xaroth> there, adjusted mantis thing to be identical
13:36:53 <TrueBrain> but that is kind of complex ;)
13:37:06 <TrueBrain> can Mantis also report information over something like this?
13:37:16 <Xaroth> report information as in?
13:37:17 <TrueBrain> that when you post a bug, it is reported here?
13:37:38 <TrueBrain> although for both a #opendune.notice would be better of course :)
13:37:52 <Xaroth> it's php script so you can use sys_exec or something dodgy like that
13:38:51 *** TrueBrain changes topic to "teaser-2 released || Domains *.opendune.org: web, forum, bugs, wiki, svn"
13:39:33 <Xaroth> er, for phpbb you can use rss :o
13:39:41 *** TrueBrain changes topic to "teaser-2 released || Websites *.opendune.org: www, forum, bugs, wiki, svn"
13:39:52 <TrueBrain> I don't have an rss reader :p
13:40:26 <TrueBrain> well, I do, but I check that once a day :p
13:42:09 <Xaroth> what bugs me (pun intended) that you can't 'view' the entire bug list on mantis o_O
13:51:12 <Xaroth> $g_allow_anonymous_login = OFF;
14:05:48 <TrueBrain> and again identified several variables :)
14:09:05 <DorpsGek> SVN: truebrain (r91) -Add: figured out the last few mouse-related functions (or the ones in the mouse segment anyway)
14:09:41 <TrueBrain> there, no more crashes in 29A3 segment :p
14:14:15 <TrueBrain> found a plce where a very small loop was waiting for a subprocess to finish .. added an usleep() there now, but I am not too happy about that solution
14:14:18 <TrueBrain> locking will be tricky
14:16:34 <TrueBrain> maybe we should just add real locking
14:33:10 <TrueBrain> k, a bit sick of input handling .. lets pick a random function :p
14:37:48 <TrueBrain> endless call of the same function with very small variation
14:42:47 <TrueBrain> I like this puzzle ... guess the goal of this function :P
14:51:20 <DorpsGek> SVN: truebrain (r92) -Fix: forgot to declare a function in the header
14:53:08 <TrueBrain> sometimes the "Construction complete" text keeps on popping up :p
14:53:13 <TrueBrain> I believe something is not completely correct :p
17:27:06 <TrueBrain> Xaroth: do you think it is possible to get the forum and mantis to report to DorpsGek?
17:32:03 <TrueBrain> and give me a function I should be working on next :p
17:32:06 <TrueBrain> pick a random one :)
17:32:11 <TrueBrain> by name or by address, I don't care :p
17:33:32 <Xaroth> er, didn't look at filesize :P
17:33:54 <TrueBrain> okay, I really shouldn't be asking that .. so better: a function :)
17:34:04 <TrueBrain> main menu .. mouse handling ..
17:35:12 <Xaroth> forum will be a bit nasty
17:35:21 <TrueBrain> in the meantime looked up where the input is handled :p
17:35:27 <TrueBrain> if I can find an entry point :)
17:35:35 <Xaroth> seeing it'll require a lot of ACL-ing
17:35:53 <TrueBrain> okay, so I will just do it via RSS reading or something
17:36:14 <TrueBrain> can it trigger an email on any post?
17:36:25 <TrueBrain> if I would be to watch the whole forum or what ever?
17:36:42 <TrueBrain> so that would be even easier ;)
17:37:25 <TrueBrain> that, or hijack the code :p
17:37:34 <TrueBrain> isn't there some plugin for XMMS or what ever? :p
17:37:38 <TrueBrain> well .. I will look into this :)
17:38:01 <Xaroth> well if you can use virtual mailboxes you can use mantis' mail functions to intercept those as well
17:38:16 <TrueBrain> worth considering, I guess
17:38:26 <TrueBrain> via the MTA you can trigger a script on receiving an email
17:38:30 <TrueBrain> all we care is 'From' address
17:39:24 <Xaroth> set the forum to use forum@opendune.org
17:41:13 <Xaroth> and bugs.opendune.org uses bugs@opendune.org
17:44:37 <Xaroth> but keep in mind both also are used to send other stuff :P
17:46:31 <TrueBrain> like? All mail which should not expect reply should be noreply@opendune.org
17:46:46 <TrueBrain> non-existing accounts should never be used :)
17:47:11 <TrueBrain> OpenDUNE Bugs <noreply@opendune.org> I used I believe :p
17:47:40 <TrueBrain> added both, to be sure :p
17:47:55 <Xaroth> I added version 0.0.0 Pre-Aplha to mantis btw
17:48:10 <Xaroth> -sucky spelling +correct spelling
17:49:01 <TrueBrain> I am going to look for the menu
17:49:04 <TrueBrain> hmm .. where would it be
18:58:00 <TrueBrain> I don't really have a plan to find it :p
18:58:55 <Xaroth> then a file at index /dev/urandom :P
18:59:18 <TrueBrain> I guess I should just do things I know a tiny bit what they do :p
18:59:23 <TrueBrain> like we now have this g_mouse variables
18:59:37 <Xaroth> that's for making me listen to that song yesterday :P
18:59:50 <TrueBrain> btw, if you like, you can work on those pieces too
18:59:58 <TrueBrain> for example g_mouse->mode, is the mode of the mouse
19:00:04 <TrueBrain> those functions should be relative easy to decypher
19:00:14 <TrueBrain> (as they either go to the main screen, or switch to the game screen, stuff like that)
19:00:57 <TrueBrain> hmm ... the var is only read
19:01:26 <TrueBrain> what the ..... lol :) I think it is default lib or something, which they used
19:01:52 <TrueBrain> input handling in general, I guess
19:02:06 <TrueBrain> maybe it will show in the feature, places where the mouse mode is changed
19:02:09 <TrueBrain> but so far it is only read :p
19:05:15 <Xaroth> trying to figure out how to do the roadmap thing on mantis
19:08:13 <Xaroth> By setting the target version of an issue to a version that is not yet released, the issue shows up on the project roadmap, providing user with information about when to expect the issues to be resolved.
19:09:58 <Xaroth> so, time to make a 0.0.1 Alpha version?
19:10:11 <TrueBrain> just leave off the 'alpha' part I suggest
19:10:19 <TrueBrain> as our first target version
19:10:35 <TrueBrain> I think 0.1 as our first target
19:10:40 <TrueBrain> after which the next is 0.2, etc etc
19:12:01 <Xaroth> same as ottd, major releases each their own number
19:12:09 <Xaroth> 0.1, 0.1.1 as a minor release
19:12:20 <TrueBrain> well, major.minor.subrelease is the most common, not?
19:12:35 <TrueBrain> and I think we are not ready for major=1
19:13:13 <Xaroth> so we're going straight for 0.1.0 then :)
19:13:23 <TrueBrain> 0.1, I would say, but yes :)
19:13:31 <TrueBrain> we don't say how playable it will be :p
19:13:47 <Xaroth> I'd still say 0.1.0, to keep the format of versions
19:14:39 <TrueBrain> for 0.1 that might be silly :p
19:14:43 <TrueBrain> but as target we run 0.1.0 for now
19:15:03 <TrueBrain> I think the initial release depends on how long it takes to make something sane out of this, that works on Windows too
19:15:10 <TrueBrain> and then I suggest to start the release cycles
19:15:17 <Xaroth> on mantis it's Manage -> Manage Projects -> Edit project -> scroll down to Versions
19:15:42 <Xaroth> oh, small note on that, the account 'svn' -needs- to have developer+ access to the project
19:15:46 <Xaroth> else the hooks won't work
19:16:22 <Xaroth> I -could- edit the script to use -OUR- usernames
19:16:39 <Xaroth> aka, you submit, updates made show under your account
19:16:42 <Xaroth> but that might be unwanted
19:16:52 <TrueBrain> what you think looks best ;) I am not that good in such things :p
19:18:58 <TrueBrain> okay, I lowered the response of the game and the mouse handling, but it removes unwanted clicks and stuff
19:19:48 <DorpsGek> SVN: truebrain (r85) -Fix: update @name tags too
19:22:28 <Xaroth> /([^\s]+) \(r(?:[\d]+)\)/i
19:23:53 <Xaroth> /^([^\s]+) \(r(?:[\d]+)\)/i
19:23:59 <Xaroth> else it might match strange stuff :P
19:28:43 <DorpsGek> SVN: truebrain (r93) [LibEMU] -Fix: no longer do any keyboard/mouse update when interrupts are disabled. This solves tons of race-conditions, but in return the game is deadslow on certain dialogs (infinite-loops locking the interrupt, waiting for keyboard actions)
19:32:57 <TrueBrain> glx: this might solve a few Windows issues too :)
19:35:01 <Xaroth> they be all private comments though
19:39:35 <Xaroth> set the control notes view status to PUBLIC
19:39:48 <Xaroth> This sets whether the note added will be public or private (VS_PUBLIC or VS_PRIVATE). For open source projects it is expected that the notes be public, however, for non-open source it will probably be VS_PRIVATE. The default is VS_PRIVATE.
19:56:27 <TrueBrain> finally I can play bug-free :p
19:59:05 <Xaroth> g:\opendune\trunk\src\input\mouse.c(4) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory
19:59:37 <TrueBrain> oh, MSVC and usleep
20:00:36 <DorpsGek> SVN: truebrain (r94) -Fix: MSVC of course doesn't know unistd.h ... grr ;)
20:03:25 <glx> Xaroth: you'll have more problems :)
20:03:36 <Xaroth> glx: one step at a time :)
20:03:39 <glx> like missing files in vcproj
20:05:14 <Xaroth> not going to install all that crap ;?
20:05:47 <glx> no need to install, just download MSVC binaries for SDL, extract and add paths to MSVC
20:06:24 <glx> and put SDL.dll somewhere in your path
20:11:21 <Xaroth> :o actually got it to build
20:12:04 <Xaroth> 1>main.obj : error LNK2019: unresolved external symbol "void __cdecl Interrupt_Timer(void)" (?Interrupt_Timer@@YAXXZ) referenced in function _main
20:12:36 <glx> (and .h too but less important)
20:13:37 <glx> and I just svn up without trying to build using msvc :)
20:16:30 <Xaroth> [EMU] [ INT21:3D ] Requesting mode '20' which is not completely supported.
20:16:30 <Xaroth> [EMU] [ INT21:3D ] Requesting mode '20' which is not completely supported.
20:16:42 <Xaroth> I even bothered putting the files in /data
20:17:33 <glx> move the mouse over the window to animate the palette :)
20:17:54 <Xaroth> that's a bit hard when it crashes right as it starts :P
20:18:14 <Xaroth> i'll try building release
20:19:20 <Xaroth> the animation starts by itself now
20:19:48 <Xaroth> not moved mouse in the window, the "DUNE II" thingie just scrolled in
20:20:22 <glx> well until "evil harkonen" I guess
20:21:03 <Xaroth> bit funny, listening to the dune audiobook, while watching this intro
20:21:49 <Xaroth> hanging at harkonnen now
20:22:19 <glx> then it will close by itself
20:22:34 <Xaroth> not had that happen, closed it after half a minute
20:24:59 <glx> still doesn't animate here
20:27:59 <Xaroth> (CPU 1) Intel Pentium III Xeon processor (6144KB L2 Cache, LGA 775) @ 3000MHz (333MHz FSB), 2% load (CPU 2) Intel Pentium III Xeon processor (6144KB L2 Cache, LGA 775) @ 3000MHz (333MHz FSB), 8% load
20:28:23 <Xaroth> (RAM module 1) 2GB, form factor: DIMM (RAM module 2) 2GB, form factor: DIMM (RAM module 3) 2GB, form factor: DIMM (RAM module 4) 2GB, form factor: DIMM
20:28:33 <Xaroth> (Video controller 1) ATI Radeon HD 4800 Series (Processor: ATI Radeon Graphics Processor (0x9440)), 1GB, 1920x1200x32, 60Hz, driver version: 6.14.10.6869
20:28:41 <Xaroth> (Operating system) Microsoft(R) Windows(R) XP Professional x64 Edition (SP2) , version 5.2.3790 (73 processes running, 5.35GB free RAM, installed 50w 2d 22h 37m 56s ago, 2d 11h 6m 1s uptime, 1w 5d 10h 2m 25s uptime record)
20:29:25 <glx> unless you use vc express
20:30:01 <Xaroth> Visual C++ 2008 Express Edition ; Version 9.0.30729
20:30:57 <glx> I have the same (9.0.30729.1 SP)
20:31:20 <Xaroth> not got winSDK I think
20:31:47 <Xaroth> if that's what came with VC express
20:32:52 <Xaroth> right, time to race some
20:32:54 <glx> hmm maybe I should try with 6.0A then
20:38:13 <glx> still no animation, so it's not related to SDK
20:39:08 <glx> hmm but I need to check I properly changed the sdk
20:39:24 <glx> (openttd should fail to build with 6.0A)
21:01:58 <glx> hmm strange, openttd used to fail to build with 6.0A but now it works
21:41:28 <TrueBrain> so for Xaroth it 'runs', and for glx it does not? This is getting weirder every day :p
21:43:00 <TrueBrain> oh well, sleepy time
21:46:34 <Xaroth> and yes, it ran for me :P
continue to next day ⏵