IRC logs for #openttd on OFTC at 2010-11-21
⏴ go to previous day
00:04:52 <Samu> When removing a rail station, do not leave track under non-station tiles (r20990)
00:13:28 <Samu> google sucks, I look for r20990 and I don't get what I want
00:13:35 <Samu> I don't know why everyone likes google
00:14:57 <Rubidium> Eddi|zuHause: didn't you mean literally?
00:16:06 <Eddi|zuHause> Rubidium: no, i certainly did not mean "person aged 14 or younger"
00:16:25 <Samu> i just removed a station tile, the track remained there
00:16:39 <Samu> so I tried to look for 20990 and I can't find it
00:17:38 <DorpsGek> Eddi|zuHause: Commit by smatz :: r20990 trunk/src/station_cmd.cpp (2010-10-18 17:06:20 UTC)
00:17:39 <DorpsGek> Eddi|zuHause: -Fix: when removing a rail station, don't leave track under non-station tiles
00:18:28 <SmatZ> Samu: how did you know you should be looking for r20990?
00:21:11 *** HerzogDeXtEr has joined #openttd
00:23:56 <glx> non-station being station where train can't run
00:25:25 <Samu> then i click the bulldozer
00:25:34 <Samu> and i click on a station tile
00:25:42 <Samu> and I see the rail track
00:25:49 <Samu> the station tile is gone
00:26:08 <glx> the rail was visible before removing the station ?
00:26:43 <glx> rail is removed only if the rail was not visible
00:27:50 <Samu> you mean I can remove track from a station but keep the station?
00:28:14 <glx> I mean there are station tiles with no rail visible
00:31:19 <Samu> tar xz bundles, does that mean all bananas content will come compressed?
00:31:45 <glx> they already come compressed
00:34:28 *** ChanServ sets mode: +v tokai
00:38:23 <Rubidium> 8 times as much as a Kib
00:38:58 <Samu> download size for NoCAB 2.1.2 - 92,2 KiB
00:39:24 <Samu> but on my computer it says 440 KB
00:39:45 <Samu> does the file come compressed and then is decompressed?
00:41:13 <Rubidium> bah... the UTC CET difference is too small
00:41:44 <Eddi|zuHause> you mean one hour is not enough?
00:42:21 <Rubidium> it makes noticing you're looking at a UTC clock harder
00:42:51 <Rubidium> e.g. if the UTC clock would be saying 13:42, it'd be quite obvious for me it's UTC and not local time
00:53:51 <Samu> winrar won at compressing NoCAB
00:54:20 *** welshdragon has left #openttd
00:54:58 <Samu> bananas is using gzip from what I can tell
00:58:09 <Samu> there's 3 1.0.5 servers, I joined the italian one
01:00:33 *** welshdragon has joined #openttd
01:36:57 *** glevans2 has joined #openttd
02:37:54 *** Cwo_caRi_tmen has joined #openttd
02:37:55 *** Cwo_caRi_tmen has left #openttd
02:46:13 <Samu> how do I send money to a company if there's no one playing it atm?
02:46:30 *** fjb is now known as Guest74
02:46:59 <Samu> I'm exploiting 3 companies
02:47:33 <SmatZ> server admins won't like you
02:47:54 <Samu> they were unprotected and no one in there
02:48:13 <SmatZ> if you think what you do is nice and fair, it's fine
02:48:20 <SmatZ> but it doesn't sound so
02:48:27 *** TheDoleKing has joined #openttd
02:48:40 <Samu> and completed 2 routes that seemed incomplete
02:49:09 <Samu> i wanted to pay each others loan
02:49:09 <TheDoleKing> Whats added in the new update 1.0.5
02:49:52 <SmatZ> TheDoleKing: minor versions are mostly bugfixes
02:50:26 <TheDoleKing> Ahhh a friend just got me playing like a week ago
02:50:56 <Samu> i bought 75% shares of the richest company which is not mine
02:51:15 <Samu> this shares thing is messed up
02:51:47 <TheDoleKing> how do I make it so there are companys?
02:52:06 <Samu> doelking, are you in the italian server?
02:52:45 <Samu> that server is full, it has 4 AI's doing nothing
02:52:47 <TheDoleKing> No not that I am aware of
02:53:25 <TheDoleKing> Whats a good server
02:57:36 <Samu> I could take all company slots on a server
02:58:00 <TheDoleKing> Well you did and its the smallest map I have ever seen
02:58:54 <Samu> now no one can make a company
02:59:22 <Samu> I can only take password out
03:00:45 <TheDoleKing> Every thing on the maps taken any way
03:57:35 *** supermop has joined #openttd
03:59:16 <Samu> I found a way to give money
03:59:48 <Samu> im giving money to my own companies
04:00:29 <avdg> oh, I thought the same companies
04:01:51 <svip> avdg: How about that sleep?
04:02:18 <avdg> well, its 5 am here and I didn't sleep for 48 houres
04:02:54 <svip> Imagine lying down. Quiet. And every possible image filling your mind.
04:03:29 <svip> Then when you wake up, the world becomes more appealling.
04:03:34 <svip> And OpenTTD easier to play.
04:04:17 <Samu> I'm giving money to a company that's going to buy shares to the company that gave it money
04:04:45 <svip> Or how the finacial crisis started.
04:04:52 <svip> Samu: Free market simulator.
04:05:37 <svip> avdg: By the way, speaking of sleep, I really should get some too.
04:05:37 <Samu> lol it's becoming cheaper to buy 25% shares
04:07:51 <avdg> shares must be more controllable by the player imo
04:08:23 <avdg> but I bet no1 is caring about the sharing system
04:09:09 <avdg> and what next, 1 more implementation to care for? :p
04:09:24 <avdg> I'm taking already too much jobs :p
04:09:51 <avdg> no discussion, no need ;-)
04:10:13 <svip> But I am too tired to care at the moment.
04:10:29 <svip> Nah, I have assignments and whatnot ...
04:10:58 <avdg> I can only offer boring questions :(
04:11:16 <Samu> lol, now I sold 25% shares
04:11:31 <Samu> and bought 50% afterwards
04:17:22 <Samu> finally, I paid everyone's loan
04:18:18 <Samu> all 3 stole from the big one, which isn't mine
04:19:55 * avdg wonders if maintaining multiple companies was allowed there
04:21:18 <Samu> selling everyone's shares and going to bed
04:23:21 <Samu> there is seriously a big flaw somewhere
04:25:40 <Samu> money that wouldn't be possible for me to win
04:26:06 <Samu> and now all 3 companies together are worth more than the big one
04:26:24 <Samu> some kind of chain share selling
04:27:05 <avdg> you mean sharing from eachother in a loop?
04:28:42 <Samu> the money multiplicated somewhere
04:28:59 <avdg> donno, I didn't read that part of the source
04:29:55 <avdg> should be this if I'm right
04:30:28 <avdg> at least for costs actions
04:30:37 <Samu> big company is worth 4,3 million, and my 3 companies are worth 1,7m 2,9m and 2,4m when they were worth of about 100k each
04:31:20 <avdg> its not the only problem, now I remember
04:31:53 <avdg> an ai abuses the company value by building busstations I thought
04:33:57 <avdg> beh, I think I'm getting tired now
04:36:59 *** Rubidium_ has joined #openttd
04:37:45 *** b_jonas_ has joined #openttd
05:31:24 *** azaghal_ has joined #openttd
05:41:33 *** azaghal has joined #openttd
05:56:18 *** Eddi|zuHause has joined #openttd
06:06:54 *** Anjie^34 has joined #openttd
06:10:01 *** Anjie^34 has joined #openttd
06:10:17 *** Anjie^34 has joined #openttd
06:26:21 *** Anjie^34 has joined #openttd
06:33:08 *** Anjie^34 has joined #openttd
06:41:55 *** Anjie^34 has joined #openttd
06:49:02 *** Anjie^34 has joined #openttd
06:58:29 *** Anjie^34 has joined #openttd
07:09:29 *** Rubidium_ is now known as Rubidium
07:21:55 *** andythenorth has joined #openttd
08:02:08 *** glevans2 has joined #openttd
08:06:11 *** Kurimus has joined #openttd
08:27:11 <xiong> The population of Whitemarsh is just a tad over 4500. Yet more than 6000 pax wait at its stations. Explain?
08:27:55 <xiong> BTW, the town has only one link to another town, which is very small and is not sending many pax on the return leg.
09:04:29 *** Alberth has joined #openttd
09:04:29 *** ChanServ sets mode: +o Alberth
09:06:09 <Zuu> xiong: Someone didn't tought them that if you have > 1 trip per month, you can't be on several trips at the same time :-p
09:07:03 <Zuu> Althrough, if you coun't return trips as well you should remove the return trips from the other town.
09:28:09 *** green-devil has joined #openttd
09:39:16 *** Cybertinus has joined #openttd
09:40:40 *** andythenorth has joined #openttd
09:46:44 *** Progman has joined #openttd
09:58:57 *** azaghal has joined #openttd
09:59:34 <Alberth> looking at the toyland openttdcoop game #195, can someone explain why the trains have only two wagons?
10:00:26 <planetmaker> train length was decided to be two tiles
10:01:19 <planetmaker> and double-headed engines as far as I see. So two wagons only
10:02:16 <planetmaker> and definitely no other reason than "the winning plan required train length two" :-)
10:02:45 <planetmaker> exactly two tiles length
10:03:02 <Alberth> is that a normal length?
10:03:11 <Terkhen> it seems too small to me
10:03:33 <Alberth> Terkhen: it makes that you need a lot of trains :)
10:03:36 <Zuu> 3-5 is probably more normal at #openttdcoop.
10:03:49 <Zuu> But generally you won't see very long trains there.
10:03:52 <planetmaker> it's a very short one, yes. but sometimes one does it different, just because ;-)
10:04:08 <Alberth> that's a good reason :)
10:04:11 <planetmaker> Playing with 5-tile trains every game is boring :-)
10:04:36 <planetmaker> Short has also the advantage that you can build very sharp curves
10:04:55 <planetmaker> And 'many trains' can be an advantage, too :-P
10:05:08 <Zuu> That the game ends quicker?
10:05:18 <Alberth> I must try this too one day
10:06:20 <planetmaker> Zuu: also that. And cargo gets hauled quicker, thus better support for small stations etc
10:06:30 <planetmaker> But mostly it's a matter of 'just because' :-)
10:07:11 <planetmaker> In general I think these very short trains make sense as feeders from a small primary station to a nearby, much bigger pickup station
10:07:16 <planetmaker> also in 'normal' games
10:31:55 <V453000> when you focus on building the network in its stucture, you basically do not care how many trains you need ... you "just fill" the network with trains, no matter how many, how long
10:32:29 <V453000> therefore we can use basically any reasonable TL and call it a success, because we do not care if we connect 100 or 10 mines, we care about a full network
10:32:39 <perk11> but on some stage you will find that your network is very slow
10:32:46 <V453000> and building the hubs and stuff is WAY better with TL3-ish
10:32:51 <V453000> why would it be slow?
10:33:21 <perk11> because you didn't care about trains length and number
10:33:35 <Ammler> 1.0.5 doesn't use lzma?
10:33:48 <Alberth> perk11: they DO care about train length :)
10:34:05 <V453000> well, I just said that it does not matter which TL we pick
10:34:59 <V453000> it only changes building of stuff, curve lengths, waiting space requirements, and such
10:35:12 <Alberth> Ammler: readme.txt: - liblzma: (de)compressing of savegames (1.1.0 and later)
10:35:14 <V453000> but we do not care how much do we transport in most games
10:35:25 <V453000> therefore, long trains have basically no advantage
10:35:56 <Alberth> your network constructs just get longer and take more room
10:36:47 <V453000> but the point about low TLs having not enough capacity is completely irrelevant, that is important to not
10:39:13 <V453000> just to the psg 195 you asked about ... TL2 puts building possibilities to a super great level - for example Sbend of 1 tile is very comfortable, besides the CL2
10:39:42 <V453000> these are aspects that affect how we build it :) look at the roundabout there was ... without the curve length it would be impossible
10:40:18 <Alberth> yeah I can see that a short train length makes building much easier and more fun
10:40:35 <V453000> you also use more space with lower TLs
10:40:43 <V453000> so it looks more like MAD
10:41:21 <Alberth> I normally use 4 or 5 tiles length trains, never considered using shorter trains could be more fun
10:42:04 <V453000> when I played alone, I also used to play with 5
10:42:29 <V453000> but when I started building more intensive stuff, 3 tiles are universally best imo
10:42:38 <V453000> ofc I have a game with TL1 :D :P
10:44:06 <Alberth> 3 tiles seems like a nice length to try
10:44:57 <Alberth> how do you scale stations? I now have a platform for each train at a line, but that obviously does not scale well
10:45:22 <Ammler> an issue with TL1 is that you can't have signal gap smaller than 2
10:45:26 <V453000> its nice to make it in a large variety :p
10:46:20 <Alberth> that's one crazy network, it looks like total chaos to me :)
10:46:40 <V453000> thats the point :D :P
10:49:12 <Ammler> Alberth: it is just interesting how openttd 1.0.5 can read lzma saves without the lib :-)
10:50:22 <Alberth> sure? do 'ldd openttd' to see what libraries it links
10:51:19 <Ammler> well, loading might be too much, it does complain about too new save game format
10:52:09 <Ammler> changelog: - Change: Make OpenTTD aware of XZ/LZMA compressed savegames so loading those gives a proper error message (r21047) <-- r21057 is not very helpful, shouldn't that be the trunk rev?
10:53:54 *** michi_cc has joined #openttd
10:53:54 *** ChanServ sets mode: +v michi_cc
10:54:44 <Rubidium> Ammler: and then you read the trunk rev and think... hey, xz compressed savegames are supported
10:55:28 <Ammler> I see, you did hide the patch in the backport
10:55:56 <Ammler> the usual hg parent doesn't show additional comment lines
10:56:35 *** zachanima has joined #openttd
10:56:44 <Ammler> well, it's not a backport, so bad "backporter" ;-)
10:56:58 <Rubidium> it's not listed as backport
10:57:22 <Ammler> it is part of backport from trunk changeset
10:58:38 <Rubidium> part of the changeset is backport
10:58:55 <Ammler> well, doesn't matter, I might not get it anyway...
11:00:17 <Rubidium> yes, you won't get xz savegames in 1.0.x
11:05:53 <Ammler> nothing really worth to mention in the distro changelog (except maybe the CVE)
11:29:45 *** green-devil has joined #openttd
11:42:22 *** KenjiE20 has joined #openttd
11:47:40 *** asnoehu has joined #openttd
11:53:37 *** asnoehu has joined #openttd
12:03:13 *** azaghal has joined #openttd
12:08:18 *** Devroush has joined #openttd
12:12:47 <CIA-1> OpenTTD: alberth * r21281 /trunk/src/saveload/ (saveload.cpp saveload.h): -Doc: Add doxygen comments to saveload code.
12:20:20 *** fonsinchen has joined #openttd
12:31:31 <CIA-1> OpenTTD: alberth * r21282 /trunk/src/saveload/ (6 files): -Codechange: Rename CheckSavegameVersionOldStyle() to IsSavegameVersionBefore().
12:32:31 *** frosch123 has joined #openttd
12:38:31 <CIA-1> OpenTTD: alberth * r21283 /trunk/src/saveload/saveload.h: -Codechange: Allow minor argument IsSavegameVersionBefore() to be optional.
12:41:24 <Hirundo> "minor > 0 && _sl_version == major && _sl_minor_version < minor" <- minor>0 check is bogus?
12:44:55 <Rubidium> might spoil the compiler saying "comparing to 0 is pointless"
12:47:16 <CIA-1> OpenTTD: alberth * r21284 /trunk/src/ (20 files in 2 dirs): -Codechange: Rename CheckSavegameVersion() to IsSavegameVersionBefore().
12:49:08 <Alberth> it is better to be explicit
12:51:29 <V453000> is there any option in config file to allow editing newGRF settings while the game is loaded? :O I just noticed that it was disabled in the later nightlies :O
12:51:51 <V453000> is that because of stupid people changing stuff, breaking their games, not knowing what they are doing, complaining to devs? :(
12:52:06 <frosch123> yes, and there is such a setting
12:52:22 <V453000> could I know it please? :)
12:52:42 <Rubidium> obviously something like scenario developer
12:52:47 <frosch123> i don't know what name it got in the end :p
12:53:15 <Alberth> frosch123: keep it that way :)
12:54:10 <V453000> Rubidium: awesome, thanks :)
12:54:46 <planetmaker> hehe... thank me, V453000 ;-)
12:54:47 <V453000> it wasnt that obvious to me :)
12:55:09 <planetmaker> stupid people must not mess with that :-P
12:55:36 <V453000> I think the word stupid is way too subtle here :p
13:03:45 <planetmaker> hm, which industry set has lumber? FIRS?
13:04:02 <b_jonas_> planetmaker: the original one, in the sub-tropical climate
13:04:28 *** theholyduck has joined #openttd
13:07:02 <planetmaker> then I guess the flatbed wagon should carry lumber
13:09:57 <Terkhen> hmm... the flatbed truck carries it
13:11:28 <frosch123> dv is spamming the release topic :p
13:24:12 <fonsinchen> planes don't respect "full load any", but instead do a "full load all" if they can load pax and mail.
13:24:16 <fonsinchen> Is that by design?
13:25:00 <SmatZ> it was sure discussed at least once
13:25:06 <frosch123> "full load any" is not triggered by mail
13:25:14 <frosch123> that is intentional
13:25:28 <planetmaker> hm, why actually?
13:25:29 <frosch123> "full load all" waits for both, so they are not the same
13:25:35 <planetmaker> hm.. train engines?
13:25:46 <frosch123> planetmaker: because the primary cargo has usually a far higher capacity
13:26:11 <planetmaker> parasitic mail cargo ;-)
13:26:18 <frosch123> planes shall start when the passengers are loaded, and not wait for 5 bags of mail
13:26:29 <frosch123> but planes shall not fly with 5 bags of mail and no passengers :p
13:50:19 <Eddi|zuHause> that's what i meant ;)
13:54:19 <b_jonas_> how many lorries fit in a lorry station? two or three?
13:54:35 <Eddi|zuHause> two standard vehicles
13:54:52 <Eddi|zuHause> or four, if you count both directions of a drive through stop
13:55:12 <Eddi|zuHause> NewGRFs may provide shorter or longer vehicles.
13:55:16 <frosch123> or 32, if you have very short vehicles :p
13:56:41 *** b_jonas_ is now known as b_jonas
13:57:18 * b_jonas adds new lorry stops to the stations
13:58:13 <Wolf01> I would love to have state-machine road infrastructures for various uses for example a larger bus station with 4-10 bays and realistic junction as road waypoints without having to build up crossings with bridges/tunnels and one way roads
13:59:13 * Eddi|zuHause has a feeling Belugas is getting out of hand...
13:59:26 <planetmaker> make them newgrf-able first, Wolf01 ;-)
13:59:44 <Eddi|zuHause> "realism" might not be a reason to introduce a feature, but likewise it's not a reason to decline features either...
14:00:46 <b_jonas> hmm... I can't make the smoke of this power station disappear even if I make industries transparent, turn off full detail and full animation
14:00:51 <Wolf01> with realistic I mean like the ones of sim city 3
14:01:07 <Wolf01> just for eje candy and to take less space
14:01:19 <b_jonas> is this supposed to be some environmentalist lession?
14:01:24 <b_jonas> I can't see becasue of the smoke
14:01:25 <Eddi|zuHause> b_jonas: stable or nightly?
14:01:56 <b_jonas> sub-arctic with some extra grfs
14:02:20 <Eddi|zuHause> hm... yeah, i see...
14:02:34 <Eddi|zuHause> you should probably report it
14:02:56 <Alberth> default industries have that too
14:03:23 <Eddi|zuHause> on bugs.openttd.org
14:03:23 <Hirundo> Not creating smoke could lead to a desync,as smoke effects use the vehicle pool
14:03:45 <Eddi|zuHause> Hirundo: the power station smoke is not a vehicle, afaik
14:03:59 <Eddi|zuHause> it's industry animation
14:04:08 <Eddi|zuHause> and this is about making transparent...
14:04:37 <b_jonas> plus, the smoke shouldn't be there when the power station doesn't get any coal
14:05:05 <Eddi|zuHause> that's probably not going to be fixed...
14:05:10 <Eddi|zuHause> you can do a newgrf, though ;)
14:05:25 <b_jonas> didn't some of ttd or locomotion have that feature for some industries?
14:07:00 <planetmaker> b_jonas: it's just that you don't provide coal ;-)
14:07:12 <planetmaker> They have their secret coal storage, though.
14:12:38 <Hirundo> Eddi|zuHause: The smoke is a single vehicle, that persists for the life of the industry tile
14:29:42 <Eddi|zuHause> anyway, my point is, even if it's a vehicle, that isn't obvious to the user, and the interface must be adapted to the users intuition
14:31:35 *** robotboy has joined #openttd
14:31:37 <Alberth> we'll get flying buses out of the chimney
14:43:04 <b_jonas> you can have _freight trams_? that's cool!
14:45:12 *** AveiMil has joined #openttd
15:02:40 <b_jonas> I'm trying to experiment with more non-train vehicles than usual now
15:05:17 *** asnoehu has joined #openttd
15:09:02 <Terkhen> b_jonas: you will probably like HEQS and FISH
15:11:10 <b_jonas> Terkhen: what are those?
15:11:52 <Alberth> heavy equipment set , and fish is ships
15:11:54 <Terkhen> HEQS is a road vehicle set centered on heavy trucks, FISH is a ship set
15:12:38 <b_jonas> I might check them out
15:12:53 <b_jonas> I would like alternate road vehicles and ships
15:13:08 <b_jonas> I won't put them in this game though
15:15:14 *** fonsinchen has joined #openttd
15:23:01 *** Eddi|zuHause has joined #openttd
15:35:04 *** andythenorth has joined #openttd
16:30:25 *** Brianetta has joined #openttd
16:33:17 <CIA-1> OpenTTD: smatz * r21285 /trunk/src/network/core/tcp_admin.h: -Codechange: prevent ICC warning
16:34:31 <CIA-1> OpenTTD: smatz * r21286 /trunk/config.lib: -Codechange: enable more warnings for ICC
16:35:48 *** Biolunar has joined #openttd
16:36:11 <CIA-1> OpenTTD: smatz * r21287 /trunk/readme.txt: -Document: update information about supported compilers
16:39:37 <DorpsGek> __ln___: Sacro was last seen in #openttd 2 weeks, 6 days, 22 hours, 18 minutes, and 13 seconds ago: <Sacro> night Terkhen
16:44:04 <b_jonas> does planting trees to farm squares help town authority ratings?
16:48:46 <andythenorth> b_jonas: does the wiki not say?
16:51:35 <andythenorth> FIRS industries have been discarding cargo for a long time it seems
16:51:55 <andythenorth> a side effect of "input cargo / 8" in the production code
16:52:26 * andythenorth wonders whether to care :|
16:56:56 <planetmaker> andythenorth: it'd be nice to not totally neglect very low amounts. It doesn't matter for higher ones
16:57:24 <planetmaker> Doing a thing like output=max(normal,1) if there's some cargo to process is fine
16:58:13 *** fonsinchen has joined #openttd
16:58:24 <andythenorth> planetmaker: I've done that
16:58:37 <andythenorth> there's still some loss, due to different cause
16:58:55 <andythenorth> production ratios are n/8
16:59:20 <andythenorth> I could do "(cargo * production ratio) / 8" ....which might overflow
16:59:48 <andythenorth> or "(cargo / 8) * production ratio" ....which discards some cargo due to not being able to handle float values
17:00:30 <andythenorth> I chose the latter originally :)
17:04:54 <planetmaker> well. Just use the latter. But make sure you return 1, if cargo > 0
17:05:18 *** perk111 has joined #openttd
17:05:32 <planetmaker> i.e. just add further processing afther (cargo/8)*prod_ratio
17:05:35 <CIA-1> OpenTTD: frosch * r21288 /trunk/src/ (landscape.cpp object_base.h object_cmd.cpp): -Codechange: Add helper function to find entries in _cleared_object_areas.
17:05:54 <andythenorth> planetmaker: that's done already :)
17:06:00 <andythenorth> there were certain....oversights.
17:06:03 <planetmaker> max(min(1,cargo),cargo/8*prod_ratio)
17:06:22 <andythenorth> hence why some industries were producing with no input :P
17:06:44 <planetmaker> not the worst thing ;-)
17:06:54 <planetmaker> you could even call it feature ;-)
17:07:06 <andythenorth> it's not classic
17:08:12 <andythenorth> so in current model, if production ratio is 8, and you deliver 20 tons cargo, you only get 16 tons out
17:08:20 <andythenorth> 'natural wastage' :P
17:09:54 <andythenorth> 20 / 8 = 2.5...but floats are rounded
17:10:04 <Alberth> room for improvement of the production :p
17:10:31 <andythenorth> room for improvement of the game engine? :P
17:11:02 <andythenorth> I could tackle doing it the other way and try to prevent overflow, but I don't fancy it
17:11:23 * andythenorth is embarrassed about releasing a very broken FIRS 0.5.4
17:11:31 <andythenorth> anyone help me test 0.5.5 candidate?
17:11:38 *** Prof_Frink has joined #openttd
17:12:10 *** Keyboard_Warrior has joined #openttd
17:12:56 <b_jonas> shouldn't that depend on the industry? a sawmill should produce less goods than it gets wood, whereas a food processing plant should produce a larger mass of goods than it gets grain or livestock, because it adds a considerable amount of water
17:13:36 *** Lantizia has joined #openttd
17:13:48 <Lantizia> Hey can anyone help me work out why openttd keeps freezing?
17:14:04 <Rubidium> b_jonas: but delivering 8 tonnes of grain shouldn't produce the same amount of end product as 15 tonnes of grain
17:14:21 <Lantizia> I'm using 1.0.5 with original graphics/sounds full screen on ubuntu 10.04 trying to do a multiplayer game
17:14:36 <Lantizia> the music continues and you can hear others building but the cursor stops moving and the screen doesn't update
17:14:44 <Lantizia> i have to killall -9 openttd timidity
17:15:24 <Rubidium> so OpenTTD basically runs fine, you just get no screen updates?
17:16:21 <SmatZ> Lantizia: did you readme.txt ?
17:17:21 <Lantizia> SmatZ, I thought I would - but I've no idea where the .deb package extracts that to
17:17:30 <Rubidium> SmatZ: I can't remember such a bug, so it's probably not documented in the readme.txt even though it would be more likely to be in known-bugs.txt
17:18:08 <Rubidium> Lantizia: in /usr/share/doc/<package name>/
17:18:24 <Terkhen> andythenorth: what needs testing?
17:18:36 <Rubidium> although I've seen some effort on Ubuntu's side to not install that anymore by default as "nobody" reads it
17:18:36 <andythenorth> industry production
17:18:51 <Terkhen> with small amounts of cargo?
17:19:00 <andythenorth> Terkhen: the commit log for last couple of commits should indicate the issues fixed :)
17:19:07 <andythenorth> production was totally broken in two ways
17:19:20 <Terkhen> okay, once I finish fixing the partial refit patch I'll start a testing game :)
17:19:24 <andythenorth> (1) secondary industries were producing with no input
17:19:41 <andythenorth> (2) industry production was not related in any way to correct production ratios
17:19:47 <andythenorth> both should be fixed
17:19:49 <Terkhen> oh, I thought I saw (1) yesterday but couldn't find the industry
17:20:01 <andythenorth> any industry with two outputs
17:20:03 <Rubidium> Lantizia: I think the problem you have is with libsdl and not OpenTTD though
17:20:39 <Rubidium> Lantizia: it doesn't happen when you're not in full screen, right?
17:20:48 <Lantizia> Rubidium, not tried - will try now
17:21:38 <planetmaker> playing not in full-screen allows to chat concurrently on IRC, too ;-)
17:23:51 <Zuu> Indeed, that's a good reason :-)
17:24:47 <Lantizia> Rubidium, does it when it's not fullscreen too
17:26:53 <Rubidium> so fullscreen isn't an issue
17:27:33 <Rubidium> the game still runs fine as you can hear others building stuff, so OpenTTD didn't hang somewhere
17:27:50 <Lantizia> yeah for example is just froze but I could still hear the end of year sound
17:28:36 <Rubidium> it seems quite easy to reproduce it, so if it's in OpenTTD's drawing code it should've been seen by many people already
17:29:13 <Rubidium> so it "has" to be something lower down the graphics library "chain"
17:31:16 <Rubidium> Lantizia: did you compile OpenTTD yourself?
17:31:57 <Lantizia> Rubidium, no it's openttd-1.0.5-linux-ubuntu-lucid-i386.deb from the site
17:32:52 <Rubidium> hmm, that makes trying other stuff to figure out what causes the problem harder
17:33:24 <Rubidium> as I reckon you wouldn't have a clue what to do when I ask you to compile OpenTTD with allegro instead of sdl
17:34:08 <Rubidium> and I can't (easily) build those binaries for you
17:34:32 <Rubidium> which means I can't really help you much more than blaming sdl or your video card driver
17:38:44 <andythenorth> can we have rv-wagons for christmas? :P
17:40:00 <Wolf01> You missed "Dear Santa..."
17:40:36 <Terkhen> it would need Santa Claus himself for coding, because it would be a miracle :P
17:40:54 <andythenorth> what if there were some elves also?
17:41:35 <Terkhen> realistic acceleration for road vehicles took me 3 months, and I had all the specs and code examples I needed already in trains (and it is easier)
17:41:46 <Terkhen> hmm... I could use some helpers to do my work
17:42:22 <Terkhen> Fred should code this
17:42:34 <andythenorth> we have someone called fred?
17:42:42 <CIA-1> OpenTTD: frosch * r21289 /trunk/src/ (terraform_cmd.cpp tunnelbridge_cmd.cpp): -Fix [FS#4133]: Make terraforming and tunnel-excavation handle DC_AUTO-clearable multitile objects.
17:44:51 <Rubidium> woohoo... bye FS#4133... we'll won't miss you on the bug tracker's not fixed yet list :)
17:52:33 <planetmaker> as it's now CPP leaves a space betwen the variable and what follows. But that's not what I want
17:54:20 <Terkhen> hmmm... I remember something about concatenating strings to variables in the preprocessor, let me see
17:55:24 <b_jonas> does "F" in FIRS stand for something?
17:55:47 <Terkhen> yes, it seems that ## is what I remembered
17:56:06 <Terkhen> I did not remember that it left spaces by default
17:56:17 <Terkhen> b_jonas: the F in FIRS stands for FIRS
17:56:30 <planetmaker> ha, that's also what works :-) Thanks Sp
17:56:45 <planetmaker> tab completion fail -.-
17:56:50 <b_jonas> Terkhen: yeah, I was wondering if it's a recursive acronym, or a dirty word, or something whose meaning is lost in time like the "f" in "fvwm"
17:57:36 <Terkhen> planetmaker: that's a great idea, I'll copy it for ogfx-rv :)
17:58:09 <planetmaker> feel free as you like
17:59:59 <planetmaker> I decided to use the different wagons first in order to differenciate the building year
18:00:11 <SpComb> it's C++, a modern language, shouldn't ancient things like CPP macros be ruled out in the code guidelines!
18:01:34 <planetmaker> newgrfs are not written in C++ though ;-)
18:01:40 <planetmaker> I just use its preprocessor :-P
18:02:28 <SpComb> right, didn't look so close
18:02:38 <SpComb> obviously NML needs a little more meta
18:04:06 *** Keyboard_Warrior has quit IRC
18:04:25 <planetmaker> It doesn't need. But it saves me writing many lines now :-)
18:05:34 <andythenorth> b_jonas: it's the FIRS Industry Replacement Set
18:16:03 *** Chillosophy has joined #openttd
18:19:12 <Prof_Frink> andythenorth: Will the second version be FIRS Industry Replacement Set Two?
18:20:53 *** glevans2 has joined #openttd
18:21:21 <Alberth> planetmaker: GNU only says what it is not
18:22:34 *** theholyduck has joined #openttd
18:28:00 <andythenorth> I guess it has to be
18:30:30 *** openttd has joined #openttd
18:30:40 *** openttd has joined #openttd
18:31:37 *** mrruben5 has joined #openttd
18:32:07 <mrruben5> guess what: having trouble compiling openTTD again
18:34:26 <mrruben5> Yup, but it's not a lib that I am missing atm
18:35:14 <mrruben5> I was trying to see how the guys at ottdcoop were doing :)
18:35:45 <Terkhen> did you apply a patch?
18:35:59 <Zuu> mrruben5: They use nightly versions, so you can get a binary from openttd.org.
18:37:26 <mrruben5> Think I should go and chat at #openttdcoop
18:38:19 <andythenorth> mrruben5: it doesn't look like an OS X specific issue
18:38:25 <andythenorth> far as I can see anyway
18:38:58 <CIA-1> OpenTTD: frosch * r21290 /trunk/src/ (object_cmd.cpp water_cmd.cpp water_map.h waypoint_cmd.cpp): -Codechange: Add HasTileWaterGround() to deduplicate some tests.
18:39:03 <Terkhen> it seems like either an outdated patch or source code not updated correctly
18:39:24 <CIA-1> OpenTTD: frosch * r21291 /trunk/src/ (station_cmd.cpp town_cmd.cpp tunnelbridge_cmd.cpp): -Fix: Treat objects on water like water in more cases.
18:42:21 <andythenorth> mrruben5: can you build a clean version of latest revision (no patches)
18:42:52 <mrruben5> andythenorth: will try
18:42:58 <andythenorth> I built r21243 on 10.5.8 recently
18:45:36 <CIA-1> OpenTTD: translators * r21292 /trunk/src/lang/ (6 files): (log message trimmed)
18:45:36 <CIA-1> OpenTTD: -Update from WebTranslator v3.0:
18:45:36 <CIA-1> OpenTTD: croatian - 2 changes by VoyagerOne
18:45:36 <CIA-1> OpenTTD: esperanto - 7 changes by Christopher
18:45:36 <CIA-1> OpenTTD: hungarian - 3 changes by IPG
18:45:37 <CIA-1> OpenTTD: portuguese - 4 changes by JayCity
18:45:37 <CIA-1> OpenTTD: ukrainian - 10 changes by Fixer
18:47:21 <CIA-1> OpenTTD: rubidium * r21293 /trunk/src/lang/croatian.txt: -Fix: failure of WT3 to properly validate some string...
18:50:48 <mrruben5> andythenorth: the wiki talks about running ./make however ./configure spits out makefile. running ./makefile run gives me "permission denied"
18:51:10 *** HerzogDeXtEr1 has joined #openttd
18:53:15 <andythenorth> mrruben5: I just do (when needed) ./configure
18:53:38 <planetmaker> ./configure && make
18:54:16 <mrruben5> after running ./configure nothing like ./make exists for me
18:54:23 <planetmaker> bin/openttd & ;-)
18:54:36 <planetmaker> mrruben5: note in my command the absence of "./" before make
18:54:37 <Zuu> mrruben5: Its "make" not "./make"
18:55:00 <Zuu> make is a command that you need to have installed.
18:55:55 <planetmaker> give that you have at least at one point in time successfully used autostart, you'll have make installed
18:57:46 <planetmaker> [19:53] <Zuu> && cd bin && ./openttd <-- then rather ./configure && make run
19:26:56 <b_jonas> wow, bridges are expensive
19:28:00 <Alberth> are they? perhaps with a bridge newgrf and/or a lot of terraforming
19:28:27 <b_jonas> earliy in the game only
19:28:44 <b_jonas> no, there's no bridge newgrf loaded
19:28:55 <b_jonas> my company is just not rich yet
19:29:11 <b_jonas> I might still buy this one
19:41:00 <AveiMil> Is there any way to increase the Landbuy cost, or just disable that functionality?
19:48:21 <Samu> lol i just terraformed a whole world
19:48:42 <Terkhen> AveiMil: IIRC it is now handled as an object, but I'm not sure if you can change their cost via newgrf
19:49:09 <Terkhen> anyways, building diagonal tracks can be used to block land too
19:50:19 <Samu> is there a way to allow local authority to deny terraforming?
19:50:58 *** green-devil has joined #openttd
19:56:11 <b_jonas> they already do that, sort of: if you have very bad rating, you can't demolish the town's buildings or roads, and so you can't terraform in a way that would require that
20:01:37 <Samu> :) join the italian server
20:01:43 <Samu> I terraformed the whole world
20:02:03 <planetmaker> I'd kban you from that server, if I were the admin.
20:09:23 *** Devroush has joined #openttd
20:09:56 <Wolf01> [21:01:44] <Samu> I terraformed the whole world <- terrorist
20:10:50 <Samu> yesterday I bought and sold shares from each other
20:11:01 <Samu> while giving money at the same time
20:14:47 <Samu> zuu, have you found the problem with shares?
20:15:02 <Wolf01> Not at all... it's working its way. You can play OTTD making billions also by purchasing and selling shares like in the Wall, just purchase shares as soon as possibles and sell them when your competitor is at its top
20:16:04 <Samu> I ended up with more money than the company I was stealing from
20:16:05 <Wolf01> you only need a little activity just to don't go bankrupt
20:17:34 <Samu> I was in control of 3 companies, and there was a big company not controlled by me
20:17:50 <Samu> these 3 companies bought 25% of that big one
20:17:57 <Samu> but also bought 25% of each other
20:18:11 <Samu> sometimes at a cost of £1
20:18:33 <Samu> at the end I sold all shares
20:18:50 <Samu> and collected all money into only 1 company
20:18:59 <Samu> it was worthy more than the big one
20:20:48 *** perk111 has joined #openttd
20:21:27 <Wolf01> in the time you did this, the big company must had enough profit to make you gain from the sell of its shares
20:23:18 <Samu> the profit from these 3 companies together wasn't enough to beat the big one
20:24:57 <Wolf01> but they had shares of the big one
20:25:00 <Samu> no idea how the game calculates company value, but it seems the error must be there
20:25:26 <Samu> buying shares from a company decreases its value to £1
20:25:37 <Samu> then another company can buy shares from that one for £1
20:26:24 <Rubidium> shares are troublesome anyway
20:26:51 * andythenorth wants to be able to short sell
20:27:10 <Rubidium> if you add the X% of the company value of a company you've got shares in to your own company you'll end with an infinite loop if you take shares in eachothers company
20:27:17 <Rubidium> and thus infinite money
20:27:39 <Wolf01> the 1 value should be there when a company does have a loan and not enough money to repay it if I remember correctly
20:27:42 <frosch123> Samu: continue thinking, maybe you find that share trading is not rational in real world either
20:29:44 <andythenorth> it's rational as long as you think there's a bigger fool
20:29:50 <andythenorth> or some measure of real value
20:39:27 *** HerzogDeXtEr has joined #openttd
20:42:08 <andythenorth> Hirundo: did you have any more thoughts on smoke?
20:42:32 <Samu> have you tried setting company value to how it works right now + loan?
20:42:42 <Hirundo> Perhaps, some more smoke for diesel ships
20:43:09 <Samu> even if it's not being used
20:43:46 <frosch123> is there already some screenshot of smoking ships?
20:44:19 <frosch123> hmm, or do i only have to pull heqs and fish? :p
20:44:26 <andythenorth> frosch123: I can make a screenshot if you wish :P
20:44:33 <andythenorth> FISH has smoke for some ships
20:45:13 <andythenorth> it was a nice commit and deserved some newgrf to complement it :)
20:45:33 <frosch123> hmm, fish does not compile
20:45:47 <andythenorth> frosch123: update nforenum :P
20:46:17 <frosch123> damn, my nforenum does not compile due to local changes :p
20:47:07 * andythenorth has slow internet
20:48:10 <frosch123> 15000-20000 is quite constant
20:48:28 <Zuu> Rubidium: What does that graph show?
20:48:44 <frosch123> i would bet for revision number vs. time
20:48:57 <andythenorth> smaller commits :P
20:49:06 <Rubidium> frosch123: almost :)
20:49:07 <Zuu> Hmm sounds like a good bet
20:49:15 <Rubidium> revision number version nightly number
20:49:24 *** supermop has joined #openttd
20:49:36 <frosch123> ok, there were two days recently without nightly :)
20:49:41 <Rubidium> but... mapping against time would be interesting
20:49:58 *** andythenorth has joined #openttd
20:50:12 <Zuu> With a prediction of when the r30k party will be :-p
20:51:00 <Zuu> Hmm, there was a slowdown just before r10k as well as just before r20k.
20:51:25 <andythenorth> maybe it's nearly done
20:51:56 <frosch123> so, we are about 500 commits behind?
20:52:28 <frosch123> andythenorth: ship 5 looks okay, the other ones look kind of wrong
20:52:45 <andythenorth> we talked about a new prop for positioning smoke
20:52:52 <frosch123> ships need more smoke effects
20:52:55 *** IchGuckLive has joined #openttd
20:53:05 <frosch123> like two symmetrical diesel fumes or so
20:53:11 <Alberth> some ships look like they are on fire :)
20:53:12 <andythenorth> it would be useful to specify xyz offsets
20:53:19 <andythenorth> and also some kind of 'amount'
20:53:21 <IchGuckLive> Hi all: are there no trains in the Scenario editor available ?
20:53:34 <IchGuckLive> i woudt like to test somthing
20:53:45 <andythenorth> smoke 'amount' could be a simple binary switch: constant | only when accelerating
20:53:55 <Alberth> IchGuckLive: you cannot start a company in the SE
20:54:09 <andythenorth> I have an interesting challenge with ships that have more than one smoke stack
20:54:13 <Zuu> Thus, noone would own the tracks.
20:54:19 <frosch123> andythenorth: i guess that can be hardcoded per vehicle type
20:54:31 <IchGuckLive> Alberth: trains is all i need (and acity )
20:54:36 <andythenorth> we never sorted out 'types' for ships did we?
20:54:44 <andythenorth> we discussed labels and such
20:54:54 <Alberth> IchGuckLive: save the scenario, quit the editor, play the scenario :)
20:54:54 <frosch123> i doubt there are any differences between different trains, or between different ships
20:54:55 <Zuu> IchGuckLive: save the scenario and start a game.
20:55:12 <andythenorth> most conventional ships should show constant smoke
20:55:21 <andythenorth> but a hovercraft with constant smoke would look dumb
20:55:36 <andythenorth> I think it's because they are powered by different technology
20:55:47 <supermop> this sounds interesting, whatever it is that i am eavesdropping on here
20:55:47 <andythenorth> Samu: that's done already
20:56:16 <andythenorth> diesel ships use heavy fuel oil, I think hovercraft use kerosene
20:56:37 <frosch123> andythenorth: why should hovercraft not smoke constantly?
20:56:52 <andythenorth> also inland river boats probably use diesel. Heavy fuel oil is highly polluting :P
20:56:57 <Alberth> supermop: the usual techno-babble on extending a newgrf feature :p
20:57:01 <supermop> i thought hovercrafts used aviation fuel?
20:57:12 <andythenorth> supermop: go look up what aviation fuel is
20:57:13 <supermop> yep; soounds exciting
20:57:26 <andythenorth> I think you'll find it spelt k-e-r-o-s-e-n-e :P
20:57:31 <Samu> someone is talking to me with question marks
20:57:46 <andythenorth> ship types don't seem to be quite needed, but something similar
20:57:57 <supermop> doesnt kerosene ignite at too low a temperature for aviation use?
20:58:16 * andythenorth feels sidetracked
20:58:31 <andythenorth> frosch123: can you remember anything of debate about ship types / labels / whatever?
20:58:34 <supermop> i'll fade into the background again
20:58:40 <andythenorth> it was originally about liveries
20:58:45 <andythenorth> then it got confusing
20:58:58 <Terkhen> I think I'm going to drop the partial refit fixes for today and start the test game
20:59:07 <frosch123> andythenorth: it was messed up with railtypes, and then with general grouping :p
20:59:39 * planetmaker ponders some more opengfx+trains re-writing
21:00:02 <andythenorth> frosch123: it's more concrete now there's actual smoke :)
21:00:13 <andythenorth> smoke is about as valid as any other reason to have 'types'
21:00:31 <Samu> this is cool, I can use AIs to persuade users to join my game, they think it's an active server
21:00:40 * andythenorth is unreasonably excited about ship smoke :D
21:00:50 <supermop> i think it is exciting
21:01:13 <supermop> i would dived by engine type rather than fuel
21:01:27 <supermop> internal combustion vs boiler
21:01:34 <Terkhen> hmm... something like steam/diesel/hovercraft?
21:01:43 <andythenorth> but then there were complications
21:01:58 <andythenorth> sail / hydrofoil / ekranoplan / nuclear
21:01:59 <supermop> steam/internal combustion (oil or diesel)/sail
21:02:06 <Samu> a maglev hovercraft, using ionized water
21:02:21 <andythenorth> can we uncomplicate it? Maybe, like...now?
21:02:40 <Alberth> white smoke, brown smoke, and no smoke, temporary smoke, constant smoke
21:02:40 <Samu> only needs water to power itself
21:02:42 <frosch123> andythenorth: just come up with a sane solution for railtypes
21:02:48 <Prof_Frink> andythenorth: Chain?
21:02:58 <andythenorth> frosch123: what's the insane part?
21:03:12 * andythenorth thinks Alberth nailed smoke
21:03:24 <frosch123> hmm, wait, are we only discussing visual effect, or also liveries?
21:03:27 <Terkhen> I had to google some of those strange ship types :P
21:03:35 <andythenorth> I got bored of that :(
21:03:38 <Alberth> no, it escaped out of my hands! :p
21:04:00 <Rubidium> yay.. openoffice fails to properly render the date graph to a pdf...
21:04:01 <andythenorth> the train nerds made me sad with all their bizarre requests for micro-managing everything to build a 1:1 model of reality
21:04:28 <frosch123> well, ships need multiple spawn points for smoke, or we need articulated ships :p
21:04:35 <Alberth> andythenorth: point them to the nearest train sim :)
21:04:50 <andythenorth> a big new train sim just got released
21:04:55 <andythenorth> so they'll be happy
21:04:59 <andythenorth> frosch123: can we store cargo in the smoke?
21:05:12 <Rubidium> ah well, it looks pretty much like the previous graph
21:05:32 <andythenorth> ship wagons would be pretty
21:05:44 <andythenorth> but not needed :)
21:05:57 <andythenorth> ^ the smoke got alberth
21:06:57 <andythenorth> trains combine smoke + visual effect in one power 'type' ?
21:07:05 <andythenorth> but it can be over-ridden
21:07:07 <planetmaker> it can be done separately
21:07:17 <andythenorth> livery + visual effect I means
21:07:58 <andythenorth> an often-fired cb for smoke is overkill?
21:09:03 <Samu> one of the AIs manager is named D.J. Adams
21:11:48 <andythenorth> extending smoke would involve creating things like VE_TYPE_FOOBAR
21:12:04 <Terkhen> extending it in which way?
21:12:11 <Prof_Frink> Samu: Shame it's not D.N.
21:12:34 <andythenorth> Terkhen: extending types of available smoke
21:12:43 <andythenorth> so e.g. same sprites as diesel smoke, but constant
21:12:46 <frosch123> they are all effect vehicles
21:12:51 <andythenorth> not using an acceleration formula
21:13:05 <andythenorth> what else do effect vehicles do?
21:13:24 <frosch123> the ship creates them, so you have to change the ship, not the smoke
21:15:04 <andythenorth> frosch123: I am trying understand the lines from 1975-2024 in vehicle.cpp
21:16:00 <frosch123> oh, then i confused some stuff :)
21:16:42 <andythenorth> I was thinking if constant smoke was needed....a new formula would be needed there
21:16:47 <andythenorth> which implies a new case?
21:17:23 <frosch123> rather add some properties to influence the existing formulas
21:17:30 * andythenorth always feels stupid when reading src
21:17:38 <supermop> do ships in game really accelerate?
21:17:56 <supermop> they seem to reach their top speed at about the sae rate
21:18:01 <frosch123> like "smoke at start", "smoke per speed" (signed), and "smoke per acceleration" or so
21:18:31 <andythenorth> how about just two values
21:18:43 <andythenorth> amount at min, amount at max
21:18:49 <Terkhen> supermop: their speed increases by a fixed value each tick IIRC
21:19:19 <supermop> and this is the same for all types of ship?
21:19:42 <andythenorth> far as I can see
21:20:35 <Terkhen> shall we have another realistic acceleration for ships discussion? :)
21:21:04 * andythenorth hopes to get a nice answer to ship smoke, and not ten new problems :P
21:21:22 <andythenorth> perfect == enemy of good :(
21:21:37 <Terkhen> that's impossible, in my experience every small, harmless suggestion unearths a big pile of problems
21:21:51 <supermop> i dont want to cause any trouble
21:22:02 <planetmaker> that's what she said
21:22:41 <Terkhen> supermop: don't worry, we are just joking :)
21:22:57 <Terkhen> IIRC aircrafts have an "acceleration" property
21:23:30 <andythenorth> for ships with multiple funnels...
21:23:51 <andythenorth> could the effect vehicle be created at a location which is drawn from a list on a round-robin basis?
21:23:57 <andythenorth> e.g. pos 1, pos 2, pos 3
21:24:33 <andythenorth> might make a nice puff-puff effect
21:24:59 <frosch123> i guess synchronised would look better
21:25:48 <andythenorth> so in that case, loop to create n effect vehicles, at positions from a list?
21:28:33 <andythenorth> three lots of smoke looks awesome :D
21:30:16 <andythenorth> the offsets are calculated relative to map, not vehicle
21:30:31 * andythenorth feels deja vu for flash games
21:31:21 <andythenorth> so what, I get the vehicle angle and do trigonometry?
21:37:14 <supermop> that is alot of smoke
21:37:23 <frosch123> hmm, actually, if the smoke is generated synchronously... the only thing we need is to allow the ship to define its own smoke sprites
21:37:36 <frosch123> then you can put as many fumes at whatever positions into it
21:37:58 <andythenorth> so the newgrf provides the smoke?
21:38:22 <frosch123> not sure, whether that would actually work
21:38:42 <andythenorth> I like the 'define number of effect vehicle to provide' route :)
21:38:50 <andythenorth> drawing smoke scares me :O
21:39:09 <andythenorth> how do I get the vehicle angle?
21:39:20 <andythenorth> or is trigonometry the wrong approach?
21:39:44 <frosch123> andythenorth: sin and cos if not needed for 45 degree steps :p
21:40:48 <andythenorth> this->direction returns what?
21:40:59 <andythenorth> degrees? radians?
21:41:34 <frosch123> take a look at _vehicle_smoke_pos
21:42:10 <frosch123> int x = _vehicle_smoke_pos[v->direction] * effect_offset;
21:42:12 <frosch123> int y = _vehicle_smoke_pos[(v->direction + 2) % 8] * effect_offset;
21:43:31 <__ln___> Has Revell changed their colour numbering since the 80's?
21:46:40 <frosch123> int x = _vehicle_smoke_pos[v->direction] * effect_offset_along + _vehicle_smoke_pos[(v->direction + 2) % 8] * effect_offset_lateral;
21:46:42 <frosch123> int y = _vehicle_smoke_pos[v->direction] * effect_offset_lateral + _vehicle_smoke_pos[(v->direction + 2) % 8] * effect_offset_along;
21:46:45 <frosch123> use something like that
21:46:53 <frosch123> and then fill effect_offset_xxx with somethnig useful
21:56:08 <andythenorth> frosch123: I failed :|
22:07:38 *** welshdragon has left #openttd
22:18:19 <supermop> hmm, all of the interesting smoke-talk has stopped
22:18:47 <supermop> i guess i should get back to coding my grf
22:20:44 <andythenorth> supermop: I have smoke appearing in random positions near ships
22:20:56 <andythenorth> but without frosch I can't figure out what's wrong :P
22:21:08 <andythenorth> and it's bedtime
22:21:10 <planetmaker> probably terrorists.
22:21:40 <planetmaker> andythenorth: you know that you can explicitly place the smoke?
22:21:56 <supermop> you are more responsible than I
22:22:06 <andythenorth> planetmaker: I am trying to patch for various smoke enhancements
22:22:15 <andythenorth> such as the n-funnel problem
22:22:21 <planetmaker> openttd or your grf?
22:23:14 <planetmaker> too tired for that meanwhile for today, sorry :-)
22:23:18 <andythenorth> I am currently figuring out how to rotate the offsets
22:23:21 <andythenorth> but it's bedtime
22:23:41 <Terkhen> good night andythenorth
22:23:46 *** andythenorth has left #openttd
22:30:11 *** theholyduck has joined #openttd
22:34:20 *** Bluelight has joined #openttd
22:53:05 <supermop> hey, here is a stupid question:
22:53:34 <supermop> if i want a station tile to have 16 possible sprite layouts, depending on callback
22:53:52 <supermop> so i set up 32 layouts in action 0?
22:54:14 <supermop> 2 directions for each of the 16 possibilities
23:02:12 <Eddi|zuHause> no. the callback is the layout. not the callback result
23:02:28 <Eddi|zuHause> so you have 2 layouts.
23:04:03 <supermop> i am not sure a follow
23:06:12 <Eddi|zuHause> you can't have more than 8 sprite layouts.
23:06:35 <Eddi|zuHause> platform, house, roof left, roof right
23:07:06 <Eddi|zuHause> so in order to have more than these, you pick one layout, e.g. platform
23:07:29 <Eddi|zuHause> and you define this to be a callback, so depending on other variables, you get different loking platforms
23:07:52 <Eddi|zuHause> but to the game they are all the sprite layout platform
23:08:47 <Eddi|zuHause> (or maybe i misunderstood the entire thing)
23:09:24 <supermop> and it can have or not have aany of the 4 sprites
23:09:38 <supermop> that is, draw o not draw
23:09:56 <supermop> to acheive that, i need 16 action 2s
23:10:27 <supermop> to account for the 16 possible combinations of those 4 sprites
23:11:16 <supermop> now i just need to specify whic sprites get drawn by each action 2
23:12:09 <supermop> so i though i would put 0B 02 in the action 0
23:12:58 <supermop> to set up both views for each of the 16 possibilities
23:14:21 *** fonsinchen has joined #openttd
23:14:53 <Eddi|zuHause> hm... i don't fully understand the specs in a quick skim... you might be right
23:15:07 <Eddi|zuHause> but you should better ask the station set authors...
23:29:12 <supermop> i wonder if a call back is actually what i need to assign sprites to the action 2s
23:34:27 *** welshdragon has joined #openttd
23:52:28 * SmatZ wonders why "grep -v" is so much slower than "grep -e"
continue to next day ⏵