IRC logs for #opendune on OFTC at 2011-08-29
⏴ go to previous day
00:19:20 *** Sonarpulse has joined #openDune
01:10:37 *** Sonarpulse has left #openDune
01:47:24 *** Sonarpulse has joined #openDune
01:50:15 *** Sonarpulse has joined #openDune
02:05:59 *** Sonarpulse has joined #openDune
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: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:35:46 <glx> would be nice to find a way to move Video_Tick out of timer
13:43:31 <DorpsGek> SVN: truebrain (r2414) -Add: named a lot of functions, removing emu_07D4.c in the process
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
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: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: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
18:44:17 <TrueBrain> SmatZ: didn;t you have this tool to autodetect which includes were still required?
18:51:25 <TrueBrain> wow, that is not small :P
18:52:35 <TrueBrain> that will be fun to try :D
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: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:11:26 <glx> IIRC some includes miss multi include protections
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:34:49 <DorpsGek> SVN: truebrain (r2424) -Fix: fix the vsnprintf warning on GCC, making it compile warning-free on GCC too
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:54 <TrueBrain> TCC works too again :D
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: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: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: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
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: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: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: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:13:07 <TrueBrain> I know I wrote most myself
20:17:47 <TrueBrain> omg, config.lib .. ugh ... I forgot ...
20:25:49 <TrueBrain> that is so wrong :(
20:27:28 <TrueBrain> this is not going to work :P
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 ...
21:02:50 <TrueBrain> for some reason depend fails totally
21:07:30 <TrueBrain> right, it starts to compile
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: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:37 <glx> strdup not declared tor depend
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: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:47:53 <glx> ok sdl LD_FLAGS is missing
21:48:05 <TrueBrain> what did ./configure return for that?
21:48:23 <TrueBrain> what did it say about SDL detection?
21:48:26 <TrueBrain> let me guess, skipped?
21:48:43 <glx> but openttd ignore libs for sdl
21:52:25 <TrueBrain> how did you solve the strdup?
21:55:44 <glx> [SRC] DEP CHECK (all files)
21:55:44 <glx> Could not open d:/developpement/opendune/trunk/src/codec for reading
22:00:06 <TrueBrain> owh, it is in the list .. weird...
22:01:29 <TrueBrain> lolz, the configure is not good enough to allow 2 SDKs for OSX
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: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:21:58 <DorpsGek> SVN: glx (r2437) -Fix (r2435): removed too much
22:22:44 <TrueBrain> guess I forgot to paste :D
22:24:00 <glx> hmm include dir could be moved I guess
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!
continue to next day ⏵