IRC logs for #openttd on OFTC at 2017-03-01
⏴ go to previous day
00:18:51 <Samu> @calc ((1920) - 1) / 4 - ((1920) - 1) / 100 + ((1920) - 1) / 400 + 1)
00:18:51 <DorpsGek> Samu: Error: unexpected EOF while parsing (<string>, line 1)
00:21:07 <Samu> @calc 1919/4-1919/100+1919/401
00:23:41 *** HerzogDeXtEr1 has joined #openttd
00:53:49 <Samu> Wolf01: did you see that?
00:54:17 <Samu> running cost based on wagon weight
01:12:15 *** markasoftware has joined #openttd
01:27:41 <Wolf01> Bah... I just completed the 5th seasonal chapter and I think that if I play diablo 3 again in a week I'll puke... there are 8 seasonal chapters :(
01:30:00 <Wolf01> Samu, how much high are those running costs compared to other vehicles running costs?
01:36:14 <Wolf01> That pax car running cost is a bit more than 1/4 of its purchase price, how much are running costs of engines?
01:37:26 <Wolf01> Just to be sure it is reasonable, you won't buy a new wagon every 4 years
01:40:00 <Wolf01> So it's 4% of the price while pax car is 26%
01:41:48 <Samu> i'm not sure how to divide it
01:42:11 <Samu> it doesn't accept a simple "/ 10 "
01:43:16 <Samu> ah, i can change it on the cost_factor
01:52:33 <Samu> weird math, I divided by 10 and i get £49
01:53:32 <Samu> ah, i get it, i did this wrong
01:53:45 <Samu> what i did was 25 / 10 = 2
01:54:17 <Samu> cost_factor is based on weight and 25 is such a small number grrr
02:04:39 <Samu> hmm, can only divide by 2, 4, 8, 16, etc....
02:07:45 <Samu> getting £76/yr on maglev
02:13:21 <Samu> to be honest, considering that trains are too good, £615 would be better
02:15:45 <Samu> there is no consensus regarding this
02:16:14 <Wolf01> In fact, it's just a problem of yours
02:16:54 <Samu> I have trouble leaving it as is
02:17:31 <Samu> something must be done, but i don't know what
02:18:02 <Wolf01> Something already was done, is called newgrf
02:19:30 <Samu> i tried with exorbitant running costs earlier today, and I was still not happy about it
02:20:26 <Samu> guess it's time for me to give up on this
02:20:47 <Samu> I'm not sure what to do, so I better stop trying
02:23:35 <Samu> alright, time to go sleep, cyas, take care
02:56:04 *** mescalito has joined #openttd
04:24:13 *** supermop has joined #openttd
07:24:58 *** Alberth has joined #openttd
07:24:58 *** ChanServ sets mode: +o Alberth
07:30:06 *** sla_ro|master has joined #openttd
07:32:46 *** Supercheese has joined #openttd
07:49:21 *** supermop has joined #openttd
08:07:46 <Supercheese> Yes, we have no bananas
08:10:20 *** sla_ro|master2 has joined #openttd
08:30:08 <Supercheese> We have no bananas today
08:31:37 <Alberth> site works for me, so I am guessing you're talking about local physical somewhat bent entities :)
08:32:45 <Alberth> no shop nearby to get some new replacements?
08:37:02 *** ChanServ sets mode: +v tokai
08:37:37 <Supercheese> But we do, however, have lots of Kerbals
08:37:43 * Supercheese is on a KSP binge
08:54:35 *** HerzogDeXtEr has joined #openttd
09:01:39 *** Eddi|zuHause has joined #openttd
09:08:37 *** michi_cc has joined #openttd
09:08:37 *** ChanServ sets mode: +v michi_cc
09:09:20 <Samu> it's incomplete, and i'm not too happy about it, so i'm gonna do something else
09:50:33 *** Stimrol has joined #openttd
10:08:10 *** FLHerne has joined #openttd
10:11:49 *** supermop has joined #openttd
10:20:20 *** supermop_home has joined #openttd
10:40:41 <Samu> are there only 3 aircraft subtypes?
10:41:03 <Samu> or could newgrf add more subtypes?
10:55:58 <Alberth> I think it would need extending openttd at least
10:56:35 <Alberth> however, what would be useful new subtypes?
10:57:24 <Alberth> I think current types mostly cover all that flies, at the detail level of openttd
10:58:23 <Alberth> ie "something that lands vertically", "something that can land anywhere", and "something that needs a long runway"
10:58:38 <Alberth> what else useful subtype is there?
10:59:27 <crem> ballistic trajectory "aircrafts"
10:59:50 <__ln__> crem: pls, the plural of "aircraft" is "aircraft"
11:00:04 <__ln__> unless you work in the aviation industry
11:00:11 <crem> is it? wow, so it's not only sheep.
11:01:56 <crem> What if I work in sheep industry? :)
11:04:12 <__ln__> that is unknown, gotta ask a sheep farmer
11:05:49 <Alberth> paper and wood have that proprty too
11:07:17 <crem> I think paper and wood are diferent as they don't have plural at all, and with sheep and aircraft they do have plural, but it's written as singular.
11:07:18 <Samu> Alberth: just wanted to make sure there weren't any more
11:07:37 <Samu> adding the Aircraft Type line into it
11:09:21 <Samu> I'm considering adding "aircraft type" into the sort by criteria
11:09:27 <Samu> must figure it out how to do it
11:11:46 <Alberth> displaying the type would also be useful, imho
11:12:23 <Alberth> not sure if it is displayed anywhere
11:13:30 *** JacobD88 has joined #openttd
11:13:59 <crem> It would be indeed. Every time I play openttd (1-2 times per year), I happen to buy an airplane incompartible with the airport.
11:25:11 <Samu> av8 will be displaying aircraft type twice
11:28:08 <Samu> darn strings, always missing
11:29:45 <Samu> adding an item to the dropdown menu affects a great deal of openttd
11:32:28 <Samu> well, the sorter puts helis first, then small planes next, and large planes last
11:32:56 <Samu> i was expecting small, then large, then heli
11:52:22 <Samu> looks like i need to come up with a vehicle type sorter
11:52:47 <Samu> one that englobes all vehicles, ships, trains, etc...
11:54:07 <Samu> company aircraft list should have aircraft type sorter
11:54:47 <Samu> but here, the list of criterias must apply to all vehicle types
11:56:05 <Samu> how would you sort the type of trains that currently exist
11:56:12 <Samu> the type of road vehicles
11:56:31 *** sla_ro|master2 has quit IRC
11:58:26 <Alberth> you may want a filter instead of a sort
11:58:47 <Alberth> eg only display helis
12:00:34 <Alberth> showing a warning that you bought an incompatible aircraft would be helpful too, apparently
12:01:10 <Samu> no, that's not what i mean
12:01:48 <Samu> for example, when listing my trains, and if there was a sort by type, how would it work?
12:02:03 <Samu> because if I add a sort by type
12:02:15 <Samu> i have to do it as well for the other vehicle types
12:03:12 <Samu> currently the sort by aircraft type is only for purchasing aircraft sorter
12:03:30 <Samu> but not on the other windowses
12:04:14 *** orudge` has joined #openttd
12:04:15 *** ChanServ sets mode: +o orudge`
12:10:34 <Samu> ugh, feels incomplete, but i'm gonna post it
12:12:46 <Samu> but for trains it would be weird
12:13:25 <Samu> i can mix a steam with a diesel engine
12:13:40 <Samu> what would be the type of this train'
12:15:23 <Samu> for road vehicles, the types are bus and lorry
12:16:51 <Samu> for ship vehicles, the types are passenger ferry and freight ship
12:17:11 <Samu> for aircraft, the types are helicopter, small aeroplane and large aeroplane
12:20:00 <Wolf01> Trains are consists. The engine has a type, not the train
12:21:12 <Samu> what if you sort the trains of a company by type? how would it sort like?
12:21:43 <Samu> there is no "sort by type" at the moment, but imagine that there is
12:27:32 <Alberth> you can sort by model
12:28:08 <Alberth> maybe your problems sorting on type are the reason the option doesn't exist?
12:31:19 <Samu> there is no PROP_AIRCRAFT_TYPE damn it
12:31:30 <Samu> what the heck is a callback 36
12:34:08 <Samu> i can't use GetEngineProperty because there is no PROP_AIRCRAFT_TYPE
12:35:08 <Samu> do i really have to relly on GetEngineProperty function?
12:57:00 *** supermop_home has joined #openttd
13:04:31 <Samu> aircraft type and sort by aircraft type in the purhase aircraft window -> thttps://paste.openttdcoop.org/prdlwkqhb
13:05:14 <Samu> aboud the coding, that is
13:05:40 <__ln__> i assume line 13 is too long
13:06:02 <Wolf01> A switch for a single case...
13:06:40 <Wolf01> Just put an assert(this->type == VEH_AIRCRAFT)
13:09:13 <Samu> btw I am re-using the strings that are on liveries
13:09:53 <Samu> is that ok? or should i create 3 strings that would say exactly the same thign?
13:10:56 *** JacobD88 has joined #openttd
13:15:12 <Samu> the assert isn't needed, apparently
13:15:32 <Samu> at the time that function is called, it already knows it's working with aircraft
13:16:21 <crem> That is exactly what assert is for.
13:16:52 <Samu> GetRange doesn't use assert, it uses switch for a single case too
13:17:11 <crem> To check (and show for one who will read the code) the assumption about parameters.
13:17:39 <Samu> uint16 Engine::GetRange() const { switch (this->type) { case VEH_AIRCRAFT: return GetEngineProperty(this->index, PROP_AIRCRAFT_RANGE, this->u.air.max_range); default: NOT_REACHED(); } }
13:21:28 *** supermop_home has joined #openttd
13:26:51 <Samu> some newgrfs are now displaying this information twice
13:38:35 <Samu> oops, lower case problem
13:53:17 <Wolf01> <Samu> the assert isn't needed, apparently <- as crem said, it is to ensure you call it for aircrafts only
13:54:32 <Wolf01> <Samu> GetRange doesn't use assert, it uses switch for a single case too .. <Samu> so i just copied <- not everything is perfect, and it might depend on its usage
14:02:14 <Samu> what can be done about this?
14:02:29 <Samu> blame it on the NewGRF? blame it on me?
14:04:24 <Samu> i see a whole lot of callback stuff code
14:05:15 <Samu> openttd is reading those lines from the NewGRF, but the code is confusing for me to follow
14:05:44 <Samu> resolve callback scope ...
14:17:33 *** Alberth has joined #openttd
14:17:33 *** ChanServ sets mode: +o Alberth
14:27:30 *** chomwitt has joined #openttd
14:39:28 *** maciozo has joined #openttd
14:46:29 <__ln__> congratulations on your reboot
14:50:52 <SpComb> took about three minutes
14:53:03 <Wolf01> 30s to reconnect + some tries I did with another software (before deciding if it needed another reboot to remove the driver it installed)
14:53:33 <Samu> Aircraft Type is repeated
14:54:29 <Wolf01> Usually a full reboot takes 1m, while a normal boot is around 35s where 12.45s are cause bios slowness
14:58:26 <Alberth> samu where does it come from?
15:10:15 *** matt11235 has joined #openttd
15:31:33 <Samu> av8 Aviators Aircraft Set version 2.21
15:31:57 <Samu> sorry for taking long to respond, was away
15:39:11 <Alberth> my guess is, if the type gets printed by openttd itself, the newgrf code will change to not display that information any more
15:39:24 <Alberth> so newer versions won't have that problem
15:40:35 <Samu> does that mean i have to edit av8 newgrf code or is the openttd newgrf code that I have to edit?
15:42:53 <Alberth> someone is maintaining av8
15:43:12 <Alberth> he/she can make the change after it gets added to openttd
15:44:58 <supermop> ok should have time to get roadtypes with trolleybus wire out today
15:45:22 <supermop> at a loss as to how to set the costs though
15:51:18 *** JacobD88 has joined #openttd
15:51:22 <supermop> will need people to playtest for balance
16:40:38 <Samu> wow, there was a stupid noob bug with v1 of pause running costs patch
16:47:12 <Samu> sorry for whoever downloaded v1, it's bugged
16:47:37 <Samu> v2 is working the way I want, apparently, i'm checking it
17:05:45 <DorpsGek> Samu: 0.910286026102
17:06:29 <supermop> i don't really understand what i need for sidewalks etc
17:08:51 <Samu> about 9.85% better profit
17:10:54 <crem> Profit is something one stops caring about 15 minutes after starting a game.
17:26:24 <supermop> like how do i say "these are the underlays for ROAD with sidewalks" and "these are the underlays for ROAD without sidewalks"
17:45:48 *** HerzogDeXtEr has joined #openttd
17:52:07 *** TheMask96 has joined #openttd
18:04:29 <Samu> how do I rename a string?
18:04:54 <Samu> let me explain the situation
18:05:00 <Samu> I got this STR_ENGINE_PREVIEW_COST_MAX_SPEED_RANGE_CAPACITY_CAPACITY_RUNCOST
18:05:19 <Samu> I want to put the aircraft type into it
18:05:39 <Samu> i would re-use the same string, but given how it was named
18:05:51 <Samu> logic would tell me the string itself needs a new name
18:06:01 <Samu> STR_ENGINE_PREVIEW_COST_MAX_SPEED_RANGE_CAPACITY_CAPACITY_RUNCOST_TYPE
18:19:03 *** Progman has joined #openttd
18:25:23 <supermop> Wolf01: do roadtypes define sidewalks yet?
18:27:51 <supermop> so if i drew sidewalks on my underlay sprites, they are going to show up everywhere?
18:33:25 *** orudge` has joined #openttd
18:33:25 *** ChanServ sets mode: +o orudge`
18:40:36 <supermop> maybe i'll just name asphalt road 'asphalt street' and leave the sidewalk on
18:44:56 <supermop> if i don't set an introdate, the road will just appear with the first vehicle that uses it?
19:00:16 *** sla_ro|master has joined #openttd
19:10:27 *** chomwitt has joined #openttd
19:12:52 <Samu> moar aircraft information coming
19:34:46 *** frosch123 has joined #openttd
19:45:47 <DorpsGek> Commit by translators :: r27763 /trunk/src/lang (3 files in 2 dirs) (2017-03-01 19:45:37 +0100 )
19:45:50 <DorpsGek> korean: 6 changes by telk5093
19:45:51 <DorpsGek> frisian: 2 changes by Fopper
19:45:52 <DorpsGek> russian: 5 changes by Lone_Wolf
19:48:38 <Wolf01> <supermop> if i don't set an introdate, the road will just appear with the first vehicle that uses it? <- no, it's always available afaik
19:48:58 <Wolf01> Quak frosch123, maybe you can be more precise
19:51:12 <Wolf01> Oh, yes, and I was even working on that -_-'''
19:52:12 <Wolf01> Who knows why I understood a different thing...
19:59:40 <Wolf01> supermop: minecart tram, single minecarts for 1t cargo and high speed
20:00:29 <Wolf01> Maybe even with traps and rolling boulders integrated in the track as overlay... but this is a pony :P
20:00:55 <Samu> are there more places where displaying Aircraft Type would be useful?
20:03:11 *** andythenorth has joined #openttd
20:09:12 *** supermop_ has joined #openttd
20:21:55 <supermop_> is there a gpl tramway grf with nice looking sleepers on the rails?
20:22:52 <frosch123> tramway with visible sleepers? isn't that troublesome for the cars?
20:23:13 <supermop_> hah ok sleepers under the rails
20:23:21 <supermop_> 'ties' for us americans
20:23:53 <supermop_> frosch123: for when the light rail is not on the road
20:25:31 <frosch123> i would look into narrow gauge stuff
20:25:37 <frosch123> maybe some of that can be used
20:26:00 <supermop_> yeah, but would require redrawing the curves and Us
20:26:08 <supermop_> so might as well draw my own
20:26:28 <supermop_> which will probably push compiling the grf outside of this afternoon
20:28:42 <andythenorth> supermop_: most of the better tramways don’t show sleepers at all
20:29:00 <supermop_> andythenorth: i need a crappy tramway
20:30:01 <supermop_> hmm CS tramtracks have red brick when on road, but green grass when off road
20:30:18 <supermop_> how can a tramway specify a different overlay when on road?
20:47:55 *** supermop has joined #openttd
20:52:53 <Wolf01> But it's already evening here :o
20:53:11 <Wolf01> We can't play this afternoon :D
20:55:49 *** FLHerne has joined #openttd
21:09:31 *** supermop has joined #openttd
21:16:56 <frosch123> evening is the second afternoon
21:17:14 <frosch123> how else could you have a second dinner?
21:27:07 *** HerzogDeXtEr has joined #openttd
21:28:33 *** matt11235 has joined #openttd
21:30:10 <supermop_> i am just adjusting the brown tram ballast to light grey in photoshop
21:31:55 *** HerzogDeXtEr has joined #openttd
21:33:36 *** smoke_fumus has joined #openttd
21:34:42 *** chomwitt has joined #openttd
21:35:37 *** maciozo has joined #openttd
21:35:42 <supermop_> if tramway is on its own, no road, is the tram overlay drawn?
21:36:07 <frosch123> overlay is always drawn, on all tiles in all cases
21:37:19 <frosch123> we could probably add some information in var10 about the context or something
21:37:37 <Samu> HALP, give me suggestions
21:39:28 <supermop_> frosch123: CS tram track manages this in trunk:
21:39:50 <supermop_> tram is providing that red overlay only when on road
21:40:31 <frosch123> it breaks bridges, doesn't it?
21:42:20 <supermop_> sort of, but only because the overlay is kinda wide
21:42:59 <Wolf01> One more thing to try to not break
21:43:08 <supermop_> if the red stopped at the edge of the rails i think it would not 'break'
21:43:42 <supermop_> because the green one looks fine- even if it is a bit odd to plant grass on a bridge
21:44:41 *** Wormnest has joined #openttd
21:46:21 *** FLHerne_ has joined #openttd
21:55:56 <frosch123> but they need more thought
22:00:57 *** chomwitt has joined #openttd
22:04:44 *** Progman has joined #openttd
22:05:56 <supermop_> i guess being able to have a graphic switch based on town zone could be useful too?
22:06:10 <frosch123> that already exists
22:07:56 <Samu> hmm channel is busy i see
22:47:55 *** gelignite has joined #openttd
22:49:57 <supermop_> 'rough tramway' or 'rough light railway' as name
22:49:57 *** sim-al2 has joined #openttd
22:59:25 *** ChanServ sets mode: +v tokai
23:09:31 *** ChanServ sets mode: +v tokai
23:55:23 *** supermop_ has joined #openttd
continue to next day ⏵