IRC logs for #openttd on OFTC at 2007-04-09
⏴ go to previous day
00:57:54 *** Osai is now known as Osai^zZz
01:08:15 <CIA-2> OpenTTD: belugas * r9577 /trunk/src/ (industry.h table/build_industry.h):
01:08:15 <CIA-2> OpenTTD: -Codechange: Add notion and data for industry map colour, used in the smallmap_gui. Not used yet.
01:08:15 <CIA-2> OpenTTD: -Move the check proc array, in order to make it more useful latter.
01:08:15 <CIA-2> OpenTTD: -Add basic newGRF stuff on the industry spec. Not used yet.
01:14:45 <CIA-2> OpenTTD: belugas * r9578 /trunk/src/smallmap_gui.cpp: -Codechange: Cleanup of industry_cmd (Step-10). Use industry's spec map_colour for smallmap industry color code drawing
01:43:33 <CIA-2> OpenTTD: belugas * r9579 /trunk/src/ (industry_cmd.cpp table/build_industry.h): -Codechange: Cleanup of industry_cmd (Step-11). Use industry's spec appear_creation during random map creation.
02:31:21 *** Eddi|zuHause3 has joined #openttd
05:06:55 *** setrodox has joined #openttd
07:30:50 *** Osai^zZz has joined #openttd
07:52:25 *** KUDr_wrk has joined #openttd
08:28:00 *** Osai^zZz is now known as Osai
08:43:43 *** XeryusTC has joined #openttd
09:00:45 *** Progman has joined #openttd
09:26:53 *** mikk36[EST] is now known as mikk36
09:33:53 *** DJ_Mirage has joined #openttd
09:40:20 *** green-devil has joined #openttd
09:45:52 *** antichaos has joined #openttd
09:48:29 *** green-devil has joined #openttd
09:56:43 *** setrodox_ has joined #openttd
10:02:23 *** Rens2Sea has joined #openttd
10:13:15 *** PandaMojo_ has joined #openttd
10:16:42 <Wolf01> i built a station, sent some trains, as soon the first train with iron ore is arrived, it is disappeared
10:18:26 <TrueBrain> it is the magic "look, now it disappeared" trick
10:18:42 *** PandaMojo_ is now known as PandaMojo
10:20:07 <Wolf01> yes i like it, specially on 2048 map with low industries
10:25:29 <Wolf01> let's try with another steel mill... 500 tiles away
10:41:27 *** green-devil has joined #openttd
10:49:32 *** green-devil has joined #openttd
11:28:18 *** GoneWacko has joined #openttd
11:53:30 *** Thomas[NL] has joined #openttd
11:54:15 <Thomas[NL]> I compiled openttd 0.5, is there a way to remove all the source files? make clean doesn't work :(
11:55:13 <Wolf01> make clean removes the .o files only
11:55:37 <Wolf01> you can always delete the source folder by hand
12:04:25 <Eddi|zuHause3> 0.5 does not use the new folder structure
12:04:55 <Eddi|zuHause3> so it's not as easy to get rid of all source files
12:06:03 <Wolf01> before the makefile rewrite i used to have a folder called trunk where i put all the sources, and a folder called game where make install put the compiled game
12:06:05 <Ammler> Eddi|zuHause3: why not use the new structure with 5.1?
12:06:28 <Wolf01> who knows what 5.1 will use?
12:06:33 <Eddi|zuHause3> because it is too much of a change... new features oly in 0.6
12:09:06 <Ammler> Really? Was that difficult to change?
12:10:47 <Ammler> Wolf01: how to change the bin directory?
12:11:25 <Wolf01> with pre-makefile rewrite?
12:11:39 <Ammler> I supposed with configure?
12:12:42 <Ammler> how did you the splic concret?
12:13:29 <Wolf01> with pre-makefile i changed the makefile directly, now i use the default
13:06:21 *** Eddi|zuHause has joined #openttd
13:09:34 *** PandaMojo_ has joined #openttd
13:14:32 *** PandaMojo_ is now known as PandaMojo
13:23:01 *** Frostregen has joined #openttd
13:23:06 <Belugas> Wolf01, i worked on your previous patch. Just one little correction needed, codewise
13:24:09 <Belugas> i think i will change all the calls to AddSortableSpriteToDraw to be conform all around the code
13:25:07 <Belugas> AddSortableSpriteToDraw(SPR_STATUE_COMPANY, PLAYER_SPRITE_COLOR(GetTileOwner(ti->tile)), ti->x, ti->y, 16, 16, 25, ti->z, HASBIT(_transparent_opt, TO_STRUCTURES));
13:25:35 <Belugas> AddSortableSpriteToDraw(
13:25:35 <Belugas> dtus->image, PAL_NONE, ti->x | dtus->subcoord_x, ti->y | dtus->subcoord_y,
13:25:35 <Belugas> dtus->width, dtus->height, dtus->z_size, ti->z,
13:25:35 <Belugas> HASBIT(_transparent_opt, TO_STRUCTURES)
13:25:58 <Belugas> the stuff i corrected was
13:26:17 <Belugas> + v->sprite_width, v->sprite_height, v->z_height, v->z_pos, v->vehstatus & VS_SHADOW);
13:26:31 <Belugas> + v->sprite_width, v->sprite_height, v->z_height, v->z_pos, (v->vehstatus & VS_SHADOW) != 0);
13:26:40 <Belugas> since the parameter is bool
13:26:44 <Wolf01> the last parameter is optional
13:26:50 <Belugas> msvc does not like it
13:27:08 *** PandaMojo_ has joined #openttd
13:27:09 <Belugas> so, making it a boolean result pleases him
13:27:27 <Belugas> as for the rest, it was fine :)
13:27:40 <Belugas> from a quick glance, that is...
13:28:11 <Wolf01> any idea of when the patch with the fixes will be applied?
13:29:12 <Wolf01> some of the bug present in trunk vanify half of the work
13:30:43 <Maedhros> btw, will this fix the station signs changing colour when making the station transparent but not the sign background?
13:31:18 <Belugas> soon, Wolf01. Give me 2-3 days
13:31:34 *** PandaMojo_ is now known as PandaMojo
13:31:49 <Belugas> unless someone has more free time than me ;)
13:32:20 <Belugas> and Smoky555 found the same problem as me, but did not find the sulution ;)
14:16:06 *** setrodox has joined #openttd
15:02:16 *** Sacro_ is now known as Sacro
15:02:23 <Cipri> Where can I post feature requests? On the bugs.openttd.com site?
15:03:19 <Sacro> Cipri: can do, or in here
15:05:14 <Cipri> It's such a tiny tiny thing. Could the password-dialog on network games /please/ be centered? ^.^ I got a huge screen, and it's always way way up in a corner somewhere :)
15:06:32 <CIA-2> OpenTTD: belugas * r9580 /trunk/src/ (viewport.cpp win32.cpp window.cpp): -Documentation: Correction of doxygen function declarations
15:08:19 <Eddi|zuHause> Cipri: the gui system does not like such things ;)
15:08:44 <Sacro> the gui system is a mess
15:09:02 <Cipri> 12 year old code's a bitch, eh? ;)
15:09:40 <Eddi|zuHause> it's probably worse than 'just' 12 year old code
15:10:28 <Eddi|zuHause> there was an attempt to rewrite it, but i don't know how far that got
15:11:14 <Cipri> Darn. Would it then be possible to have te password get specified on the command line instead?
15:11:56 <Sacro> Cipri: personally, i wouldn't want people pressing up, enter, to access my passworded game
15:12:49 <Sacro> Maedhros: i didn't think of that
16:03:21 *** mggrant has joined #openttd
16:24:46 *** ChanServ sets mode: +v tokai
16:34:44 *** TronBSD has joined #openttd
16:54:35 *** Wolf01 is now known as Wolf01|AWAY
17:15:41 *** setrodox_ has joined #openttd
17:57:16 *** boekabart has joined #openttd
18:18:29 *** egladil has joined #openttd
18:22:34 *** Commie_Si has joined #openttd
18:27:03 *** valhallasw has joined #openttd
18:27:38 *** valhallasw has left #openttd
18:28:43 *** valhallasw has joined #openttd
18:36:27 *** GoneWacko has joined #openttd
18:52:05 *** egladil has joined #openttd
19:12:00 *** GoneWacko has joined #openttd
19:15:52 *** Wolf01|AWAY is now known as Wolf01
19:28:19 *** willister has joined #openttd
19:28:48 <Ailure> the climate selection in main menu is very reduant ;)
19:29:36 <willister> Anyone able to help with a quick programming question?
19:29:55 <Wolf01> i made a new gui without climate selection and divided the buttons by their job
19:30:47 <willister> I'm wanting to find out who the local authority is, for a perticular tile. Can't seen to find a function to tell me
19:31:52 <willister> :) I mean within the source
19:32:17 <Wolf01> see the ? tool code :D
19:34:12 <willister> :-P Another hard one to find
19:34:27 <willister> There is a lot of code to get to grips with
19:36:19 <Wolf01> are you trying to code an AI?
19:37:24 <willister> I've got a search for the ends of roads in a town going, but its recursive.
19:37:41 <Eddi|zuHause> Wolf01: i think the decision was to not remove the climate buttons, because they make up a characteristic look
19:38:03 <willister> if i dont know if a tile is owned by the town, it keeps searching along all connected roads :D
19:38:10 <willister> causes a few problems, that does
19:38:13 <Wolf01> i didn't remove them, just disabled :D
19:38:31 <Wolf01> and moved to a different location
19:42:13 <Belugas> willister : try tile.h:76 -> GetTileOwner
19:42:33 <MiHaMiX> Wolf01: i don't like it, too :-(
19:43:01 <Wolf01> don't bother, is for my personal use :P
19:43:22 <ln-> Wolf01: me neither, sorry.. it's somehow as elegant as a soviet truck from the 70's.
19:43:43 <willister> reading the infomation, I'd thought that was just for player owners, does it also return local authority?
19:43:54 <Belugas> local authority is town ;)
19:44:27 <willister> Ta, I'll test out that.
19:49:21 *** willisterman has joined #openttd
19:50:36 *** Ammller has joined #openttd
19:54:58 <Belugas> willisterman, sorry, i gave you false information...
19:55:25 <willisterman> mhm, testing now. the owner changes if i demolish and rebuild the road
19:55:42 <willisterman> but using the tool, the local authority does
19:56:15 <Belugas> you have to look for town_map.h:17 GetTownIndex once you know that the tile is a road...
19:56:34 <Rubidium> Belugas: that won't work either
19:56:36 <Belugas> but all in all, it will point out to the right information
19:58:01 <Rubidium> ClosestTownFromTile(<tile>, _patches.dist_local_authority) is what he looks for
19:59:17 <Rubidium> one note: that function is O(number of towns)
19:59:39 *** Thomas[NL] has joined #openttd
20:00:21 <willisterman> ah, it was in town
20:00:31 <willisterman> expected map or tile
20:05:31 *** Ammlller has joined #openttd
20:05:37 *** willister has joined #openttd
20:06:00 <willister> so if there is a super metropolis, that would return the correct owner, for all parts of the town?
20:06:42 <willister> looking at the code, if there were a small town beside it, wouldnt some of the metropolis be classed as the small town?
20:07:56 <Rubidium> for empty ground that could be, but in that case the empty ground belongs to the authority of the small town even when it is enclosed by buildings of the metropolis
20:08:51 <willister> :) thats good enough for my needs. Thanks
20:08:55 <Rubidium> that function is used to determine the local authority when doing the local authority checks
20:15:43 <Belugas> the one who does not follow
20:15:58 <Belugas> you are right Rubidium
20:17:20 *** Ammlller is now known as Ammler
20:17:41 *** willister has joined #openttd
20:23:39 *** willisterman has joined #openttd
20:25:16 *** antichaos has joined #openttd
20:27:08 *** willisterman has left #openttd
20:36:59 <peter1138> and the bulge in my big big big big big ...
20:45:03 *** Nigel_ is now known as Nigel
20:59:22 <Wolf01> tomorrow back to work, night guys
21:06:14 *** Thomas[NL] has joined #openttd
21:21:36 *** PandaMojo_ has joined #openttd
21:27:32 *** PandaMojo_ is now known as PandaMojo
21:28:00 *** setrodox has joined #openttd
21:35:32 *** PandaMojo_ has joined #openttd
21:40:30 *** PandaMojo_ is now known as PandaMojo
22:03:46 *** dihedral has joined #openttd
22:05:52 <dihedral> hoppy easter to you all
22:06:00 <dihedral> i shall hit the rack
22:06:27 <dihedral> do you know when he is back?
22:07:04 <dihedral> i shall send him an email - that should do the trick :-)
22:13:54 *** Ammller has joined #openttd
22:26:57 *** Ammller is now known as Ammler_away
continue to next day ⏵