IRC logs for #opendune on OFTC at 2011-08-29
            
00:19:20 *** Sonarpulse has joined #openDune
01:10:37 *** Sonarpulse has left #openDune
01:45:33 *** glx has quit IRC
01:47:24 *** Sonarpulse has joined #openDune
01:49:33 *** Sonarpulse has quit IRC
01:50:15 *** Sonarpulse has joined #openDune
02:04:22 *** Sonarpulse has quit IRC
02:05:59 *** Sonarpulse has joined #openDune
03:00:10 *** Sonarpulse has quit IRC
12:23:26 *** glx has joined #openDune
12:23:27 *** ChanServ sets mode: +o glx
12:23:52 <glx> hello
12:24:11 <TrueBrain> morning
13:04:32 <DorpsGek> SVN: truebrain (r2411) -Move: moved mouse.[ch] to input/
13:10:53 <DorpsGek> SVN: truebrain (r2412) -Move: move all audio related files to src/audio/
13:11:02 <TrueBrain> long overdue :D
13:19:08 <glx> hmm no trace of projects in svn up output
13:25:17 <TrueBrain> that might be very true, yes
13:25:27 <TrueBrain> I left that as exercise for you? :D
13:26:09 <DorpsGek> SVN: glx (r2413) -Fix (r2411, r2412): MSVC project
13:26:14 <TrueBrain> :D Tnx
13:33:16 <Xaroth|Work> lol
13:35:46 <glx> would be nice to find a way to move Video_Tick out of timer
13:39:42 *** tneo has quit IRC
13:43:31 <DorpsGek> SVN: truebrain (r2414) -Add: named a lot of functions, removing emu_07D4.c in the process
13:43:37 *** planetmaker has quit IRC
13:43:47 *** SmatZ has quit IRC
13:43:48 *** Yexo has quit IRC
13:43:53 *** Osai has quit IRC
13:57:57 <DorpsGek> SVN: truebrain (r2415) -Add: named last unknown function with the name GUI_SetPaletteAnimated()
13:58:35 *** planetmaker has joined #openDune
13:58:35 *** ChanServ sets mode: +v planetmaker
13:59:05 *** tneo has joined #openDune
14:00:06 *** SmatZ has joined #openDune
14:01:04 *** Osai has joined #openDune
14:01:41 *** Yexo has joined #openDune
14:01:42 *** ChanServ sets mode: +v Yexo
14:01:57 <DorpsGek> SVN: glx (r2416) -Fix (r2415): removed dir was somehow not removed from project file
14:02:10 <TrueBrain> huh?
14:02:13 <TrueBrain> I ran generate :(
14:02:21 <TrueBrain> owh, yeah, subversion keeps the dir till after the commit :D
14:02:42 <TrueBrain> so that was not my fault :D
14:24:24 <DorpsGek> SVN: truebrain (r2417) -Add: named some more Unit functions, most noticable: Unit_Remove()
14:24:44 <TrueBrain> no clue how we could not have named thatone earlier :P
14:56:30 <DorpsGek> SVN: truebrain (r2418) -Add: some more naming of functions and making a function more readable
15:10:34 <DorpsGek> SVN: truebrain (r2419) -Add: some more naming of Unit functions
15:12:08 <TrueBrain> only 1 left, no clue how to name it, or what it really does :p
15:12:10 <TrueBrain> (for unit.c)
15:23:31 <DorpsGek> SVN: truebrain (r2420) -Add: named most Unit script functions
15:24:23 <DorpsGek> SVN: truebrain (r2421) -Add: named a single structure script function
15:37:21 <DorpsGek> SVN: truebrain (r2422) -Add: named most general script functions
15:37:27 <TrueBrain> right, enough naming for one day
15:45:39 <TrueBrain> some script functions really only should be called by carryalls
15:45:41 <TrueBrain> it is funny
18:44:17 <TrueBrain> SmatZ: didn;t you have this tool to autodetect which includes were still required?
18:46:26 *** fjb has joined #openDune
18:47:52 <fjb> Moin
18:49:04 <SmatZ> TrueBrain: http://devs.openttd.org/~smatz/inctest/ but it's somehow designated for openttd :)
18:51:25 <TrueBrain> wow, that is not small :P
18:51:26 * fjb is not mobile today.
18:52:35 <TrueBrain> that will be fun to try :D
18:52:55 <TrueBrain> tnx SmatZ!
18:57:18 <TrueBrain> very impressive what you wrote SmatZ ..
18:58:09 <TrueBrain> I only had to add -Werror for it to work with OpenDUNE it seems :)
19:00:50 <fjb> Nice scripts.
19:03:50 * TrueBrain hacks some minor stuff in it ... save.c includes save.h, while it doesnt need it ... but it is a good thing if he keeps it :D
19:07:04 <TrueBrain> nice protections :D Hihi :) Much more mature than I could have hoped for :D
19:08:15 * fjb can learn a lot from SmatZ.
19:10:03 <TrueBrain> 125 includes removed
19:10:04 <TrueBrain> lolz
19:11:26 <glx> IIRC some includes miss multi include protections
19:16:12 <glx> I was wrong
19:17:16 <TrueBrain> http://devs.opendune.org/~truebrain/temp.patch
19:17:18 <TrueBrain> does MSVC like that?
19:19:20 <TrueBrain> I wonder mostly about timer.c :D
19:25:50 <glx> no the problem is strings.h
19:27:11 <DorpsGek> SVN: truebrain (r2423) -Codechange: remove ~100-ish unneeded includes (tnx to SmatZ for this tools)
19:27:19 <TrueBrain> yeah, I fixed thatone already :D
19:27:28 <TrueBrain> the above should work on MSVC
19:27:55 <TrueBrain> well, that was a nice cleanup :D
19:28:13 <glx> works
19:33:44 <TrueBrain> great :) Tnx glx!
19:34:49 <DorpsGek> SVN: truebrain (r2424) -Fix: fix the vsnprintf warning on GCC, making it compile warning-free on GCC too
19:34:51 <TrueBrain> long overdue
19:36:46 <DorpsGek> SVN: truebrain (r2425) -Fix: TCC has __USE_BSD defined, so avoid warnings of redefining
19:37:47 <DorpsGek> SVN: truebrain (r2426) -Codechange: unused label
19:38:22 <DorpsGek> SVN: truebrain (r2427) -Fix: GCC is allowed to warn for unused labels again (we shouldn't have any labels, but enfin)
19:38:28 <TrueBrain> right
19:38:54 <TrueBrain> TCC works too again :D
19:38:56 <TrueBrain> nice nice
19:39:21 <TrueBrain> 50k lines of code
19:39:22 <TrueBrain> not bad
19:44:51 <SmatZ> :-)
19:47:01 <Xaroth|Work> nice
19:49:40 <SmatZ> http://devs.openttd.org/~smatz/warn.log some warnings given by gcc 4.7
19:50:15 <SmatZ> *all warnings given by gcc 4.7 ;)
19:50:52 <glx> SmatZ: ignore gui.c, it's the ugly DrawSprite function ;)
19:51:11 <SmatZ> :)
19:51:27 <DorpsGek> Bugs: http://bugs.opendune.org/view.php?id=86 :: Bug Created :: Losing credits when save/load before refinery
19:52:05 <glx> nice bug
19:53:16 <TrueBrain> http://devs.opendune.org/~truebrain/temp.patch
19:53:19 <TrueBrain> glx: why ignore the gui.c?
19:53:42 <glx> the function needs a full rewrite
19:53:50 <TrueBrain> true; but we can at least mute the warnings, not?
19:54:12 <SmatZ> src/unit.c:171:10: warning: variable 'h' set but not used [-Wunused-but-set-variable]
19:54:15 <SmatZ> TrueBrain: ^^^ that one remains
19:54:34 <SmatZ> actually, it's new :)
19:54:36 <TrueBrain> patch updated
19:54:40 <TrueBrain> it is new yes, because of hi :)
19:55:06 <SmatZ> TrueBrain: works fine :)
19:55:30 <DorpsGek> SVN: truebrain (r2428) -Codechange: remove some dead code (write-only) (tnx SmatZ)
19:55:44 <SmatZ> :)
19:56:06 <DorpsGek> Bugs: http://bugs.opendune.org/view.php?id=86 :: New Status: new (open)
19:57:58 <glx> hmm I should check mingw warnings
19:59:16 <glx> src/audio/mpu_none.c:30:0: warning: ISO C forbids an empty translation unit
19:59:17 <glx> silly
20:00:24 <SmatZ> yup
20:07:05 <DorpsGek> SVN: truebrain (r2429) -Add (#86): ENHANCEMENT: structure which are being built also count towards spice storage / power production / power consumption. This is silly at best, and sometimes causes you to lose all your credits when loading a savegame in very early stages of the game
20:07:12 <DorpsGek> Bugs: http://bugs.opendune.org/view.php?id=86 :: New Status: closed (fixed)
20:07:17 <DorpsGek> SVN: glx (r2430) -Fix (r2423): mingw warnings
20:08:24 <glx> btw I have the ISO warning for crashlog_none.c too
20:09:27 <TrueBrain> #86 was really silly :)
20:10:10 <TrueBrain> glx: ugh, yes, of course it warns .. hmm ..
20:10:29 <glx> of course the file is "empty"
20:10:37 <glx> but why warn about that
20:10:43 <TrueBrain> because it is not allowed
20:11:03 <TrueBrain> we should make a configure like OpenTTD and not try to compile it
20:11:05 <TrueBrain> but meh
20:11:28 <TrueBrain> I could just copy/paste it ...
20:11:39 <TrueBrain> would be nice to have some real SDL detection etc
20:12:01 <glx> and remove need for WIN32:=1 too ;)
20:12:44 <TrueBrain> do you know how ugly the configure is :P
20:12:52 <glx> very
20:13:07 <TrueBrain> I know I wrote most myself
20:13:09 <TrueBrain> but UGH
20:13:21 <glx> but autoconf is worse ;)
20:17:47 <TrueBrain> omg, config.lib .. ugh ... I forgot ...
20:22:25 <SmatZ> :)
20:25:46 <TrueBrain> cpu-type: 32bits
20:25:48 <TrueBrain> ugh
20:25:49 <TrueBrain> that is so wrong :(
20:27:28 <TrueBrain> this is not going to work :P
20:27:35 <SmatZ> :)
20:27:43 <TrueBrain> too much of a mess ......
20:27:48 <TrueBrain> and it never got unified :p
20:48:23 <TrueBrain> ugh, was happy I could remove all CXX references ... forgot we used OpenTTD's makedepend ... ugh ...
20:48:56 <glx> a nice tool ;)
21:02:50 <TrueBrain> for some reason depend fails totally
21:02:51 <TrueBrain> meh
21:07:30 <TrueBrain> right, it starts to compile
21:27:49 <TrueBrain> http://devs.opendune.org/~truebrain/temp.patch
21:27:52 <TrueBrain> want to give it a try?
21:29:00 <TrueBrain> I kept some stuff, removed a lot of other stuff ..
21:29:10 <TrueBrain> I really want to rewrite this, but it is a start I guess
21:29:42 <glx> missing source.list
21:29:51 <TrueBrain> updated
21:32:53 <glx> depends compilation fails
21:33:03 <TrueBrain> gives 2 warnings here, that is all
21:33:12 <glx> and I get a findversion.sh not found too
21:33:27 <TrueBrain> owh, forgot that file
21:33:36 <TrueBrain> updated
21:33:37 <glx> strdup not declared tor depend
21:34:24 <TrueBrain> wuth?
21:34:27 <TrueBrain> weird
21:34:31 <TrueBrain> very weird
21:36:09 <glx> and 2 comma at end of enumerator list
21:36:19 <TrueBrain> the latter I have too, yes
21:36:22 <TrueBrain> because of -ansi I guess
21:37:35 <TrueBrain> OSX is acting a bit weird ..
21:37:51 <TrueBrain> it includes all files 4 times ..
21:39:17 <TrueBrain> lolz
21:39:21 <TrueBrain> helps to remove source.list when reapplying
21:39:55 <TrueBrain> that at least works
21:42:23 <TrueBrain> new patch, should solve depend issue
21:42:30 <TrueBrain> well, not the strdup, as I have no clue about that
21:45:35 <glx> oh opendune doesn't link
21:45:46 <glx> let me try the new patch
21:47:53 <glx> ok sdl LD_FLAGS is missing
21:48:05 <TrueBrain> what did ./configure return for that?
21:48:14 <glx> nothing :)
21:48:23 <TrueBrain> what did it say about SDL detection?
21:48:26 <TrueBrain> let me guess, skipped?
21:48:31 <glx> SDL found
21:48:43 <glx> but openttd ignore libs for sdl
21:48:44 <TrueBrain> then I dont know
21:48:46 <TrueBrain> check config.log
21:48:59 <glx> dynamic loading
21:49:04 <TrueBrain> ah
21:49:05 <TrueBrain> euh
21:49:07 <TrueBrain> yeah
21:49:24 <TrueBrain> new version
21:51:38 <glx> linked
21:52:25 <TrueBrain> how did you solve the strdup?
21:52:28 <glx> depend compiled too
21:52:31 <glx> dunno
21:55:44 <glx> [SRC] DEP CHECK (all files)
21:55:44 <glx> Could not open d:/developpement/opendune/trunk/src/codec for reading
21:55:48 <glx> weird
21:59:50 <TrueBrain> very
22:00:06 <TrueBrain> owh, it is in the list .. weird...
22:00:11 <TrueBrain> ah, ends with a c
22:00:13 <TrueBrain> lolz
22:01:29 <TrueBrain> lolz, the configure is not good enough to allow 2 SDKs for OSX
22:01:33 <TrueBrain> oopsssiieee
22:01:35 <TrueBrain> owh well
22:03:57 <glx> removed codec from source.list
22:04:51 <TrueBrain> universal compile works
22:05:02 <TrueBrain> now what to do about some of these targets ...
22:06:20 <TrueBrain> I should also add Makefile.bundle I guess
22:06:24 <TrueBrain> maybe some later time
22:07:18 <DorpsGek> SVN: truebrain (r2431) -Add: introducing a configure system. Kindly stolen from OpenTTD.
22:08:40 <TrueBrain> right, that makes a lot of things a lot of easier
22:09:17 <TrueBrain> make run etc now doesn't work
22:09:21 <TrueBrain> as things are in the wrong map
22:10:19 <DorpsGek> SVN: truebrain (r2432) -Change: moved data to bin/, as the binary ends up there now too
22:13:43 <DorpsGek> SVN: truebrain (r2433) -Fix: forgot to give SVN properties to the new files
22:13:56 <TrueBrain> 'oops'
22:14:27 <DorpsGek> SVN: glx (r2434) -Fix (r2432): update MSVC default working dir too
22:14:45 <TrueBrain> and you might want to change the generate file again to use source.list?
22:15:10 <DorpsGek> SVN: truebrain (r2435) -Codechange: no longer needed to use #ifdefs to exlude files when we are not compiling them
22:16:24 <glx> hmm I'll need to steal openttd generate scripts ;)
22:17:43 <DorpsGek> SVN: truebrain (r2436) -Fix: yes, we should handle fwrites() that do not return the correct amount of units we wrote .. but really?
22:17:54 <TrueBrain> 2436 removes a warning
22:18:13 <TrueBrain> right ... I should add TCC support in the configure too I guess ... 'soon' :D
22:18:16 <TrueBrain> first, bedtime
22:18:17 <TrueBrain> nn
22:21:58 <DorpsGek> SVN: glx (r2437) -Fix (r2435): removed too much
22:22:28 <TrueBrain> I did? :(
22:22:39 <TrueBrain> hmm
22:22:40 <TrueBrain> I did copy it
22:22:44 <TrueBrain> guess I forgot to paste :D
22:24:00 <glx> hmm include dir could be moved I guess
22:24:06 <glx> contains only 1 file
22:24:32 <TrueBrain> removed?
22:24:38 <TrueBrain> the types.h is like stdafx.h
22:24:47 <TrueBrain> but I kinda like it being there in its unique position, where -Iinclude/ is done
22:25:00 <TrueBrain> all files should always include it, like stdio :)
22:25:07 <TrueBrain> (well, you don't have to include stdio of course :P)
22:25:22 <TrueBrain> made a post about the configure system
22:25:29 <TrueBrain> as I am sure not everyone knows the OpenTTD one. And it is kinda special :D
22:25:59 <glx> I guess you'll get suggestions for autoconf ;)
22:26:52 <TrueBrain> I wrote a clear statement about that :D
22:27:33 <TrueBrain> but yeah, I can see arguments to move includes/types.h to src/types.h
22:27:37 <TrueBrain> I don't really care tbh
22:27:41 <TrueBrain> both are fine by me :)
22:27:45 <TrueBrain> I am off to bed now; night!
22:27:49 <TrueBrain> (for real :P)