Config
Log for #openttd on 29th June 2017:
Times are UTC Toggle Colours
00:16:29  *** Wolf01 has quit IRC
00:16:31  *** FLHerne has quit IRC
00:56:46  *** chomwitt has quit IRC
01:21:40  *** Flygon has joined #openttd
01:25:01  *** mindlesstux has quit IRC
01:25:37  *** mindlesstux has joined #openttd
01:47:58  *** glx has quit IRC
02:27:28  *** Supercheese has joined #openttd
03:33:18  *** sla_ro|master has joined #openttd
04:33:48  *** Hiddenfunstuff has joined #openttd
05:07:09  *** Cubey has quit IRC
05:15:36  *** chomwitt has joined #openttd
05:25:18  *** sla_ro|master has quit IRC
05:33:24  *** andythenorth has joined #openttd
05:48:52  *** Hiddenfunstuff has quit IRC
06:11:01  *** andythenorth has quit IRC
06:26:04  *** andythenorth has joined #openttd
06:52:34  *** andythenorth has quit IRC
06:54:29  *** sim-al2 has quit IRC
07:02:05  *** andythenorth has joined #openttd
07:04:19  *** FLHerne has joined #openttd
07:07:43  *** andythenorth has quit IRC
07:17:25  *** stupidkiller has joined #openttd
07:17:48  *** stupidkiller has quit IRC
07:18:14  *** andythenorth has joined #openttd
07:23:17  *** andythenorth has left #openttd
07:28:08  *** adf88 has joined #openttd
07:33:14  *** Supercheese has quit IRC
07:35:13  *** FLHerne has quit IRC
07:52:00  *** tycoondemon has joined #openttd
08:06:36  *** supermop has quit IRC
08:06:50  *** supermop has joined #openttd
08:07:09  *** Smedles has quit IRC
08:12:12  *** Smedles has joined #openttd
08:35:17  *** Wolf01 has joined #openttd
08:36:05  <Wolf01> o/
08:50:20  <Wolf01> Ads suggesting "speak italian like you've always wanted to", "5 reasons you should start learning italian now"
08:55:20  <Wolf01> http://steamcommunity.com/sharedfiles/filedetails/?id=958916138 XD "sneak increased to 100"
09:28:41  *** tycoondemon has quit IRC
09:31:44  *** tycoondemon has joined #openttd
09:41:16  <__ln__> i think you have a great potential to learn speak italian like you've always wanted to
09:47:37  *** FLHerne has joined #openttd
09:50:50  <Wolf01> Good, I finally managed to balance the energy consumption and production
09:51:27  <Wolf01> 828 solar panels and 507 accumulatora
09:51:39  <Wolf01> *accumulators
09:55:30  *** supermop_home has quit IRC
10:17:41  *** supermop_home has joined #openttd
10:35:32  *** JacobD88 has joined #openttd
10:43:42  *** TheMask96 has quit IRC
10:45:23  *** TheMask96 has joined #openttd
10:48:51  *** chomwitt has quit IRC
11:22:26  *** DDR has quit IRC
11:56:51  *** JacobD88 has quit IRC
12:12:11  *** sim-al2 has joined #openttd
12:14:23  *** Gja has joined #openttd
12:45:28  *** orudge has quit IRC
13:07:01  *** JacobD88 has joined #openttd
13:10:37  *** orudge has joined #openttd
13:14:14  *** Flygon has quit IRC
13:17:26  *** FR^2 has left #openttd
13:21:11  *** adf88 has quit IRC
13:31:28  <supermop> yo
13:33:55  *** JacobD88 has quit IRC
13:37:21  *** TheMask96 has quit IRC
13:41:43  *** TheMask96 has joined #openttd
13:44:46  *** FLHerne has quit IRC
13:49:25  *** sla_ro|master has joined #openttd
13:52:14  *** sim-al2 has quit IRC
14:06:00  *** FLHerne has joined #openttd
14:10:03  *** chomwitt has joined #openttd
14:19:47  *** jonty-comp has joined #openttd
14:20:58  *** Alberth has joined #openttd
14:20:58  *** ChanServ sets mode: +o Alberth
14:21:03  <Alberth> o/
14:21:36  <Wolf01> o/
14:22:52  <crem> o/
14:30:21  <supermop> so running cost factor cannot be more than 255
14:42:36  *** Cubey has joined #openttd
14:58:13  *** Wormnest has joined #openttd
15:16:16  *** Gja has quit IRC
15:22:22  *** Gja has joined #openttd
15:51:13  *** JacobD88 has joined #openttd
15:53:12  *** FLHerne has quit IRC
16:02:11  *** TheMask96 has quit IRC
16:06:00  *** TheMask96 has joined #openttd
16:15:24  *** Progman has joined #openttd
16:15:52  *** HerzogDeXtEr has joined #openttd
16:28:22  *** JacobD88 has quit IRC
16:42:01  <supermop> other than for the road trains, the costs seem to be pretty well balanced now though - i fear that if i scale everything downwards to get enough headroom for the road trains to be more expensive
16:42:36  <supermop> everything else will be trivially cheap and there won't be any meaningful distinction between diesel and electric trucks
16:44:38  *** Arveen has joined #openttd
16:48:34  *** Arveen2 has quit IRC
16:50:43  *** Arveen2 has joined #openttd
16:56:06  *** Arveen has quit IRC
16:56:13  *** Arveen has joined #openttd
17:01:32  *** Arveen2 has quit IRC
17:07:31  *** glx has joined #openttd
17:07:31  *** ChanServ sets mode: +v glx
17:11:49  *** FR^2 has joined #openttd
17:28:05  *** FLHerne has joined #openttd
17:37:46  *** frosch123 has joined #openttd
17:53:22  *** tokai|noir has joined #openttd
17:53:22  *** ChanServ sets mode: +v tokai|noir
17:55:11  *** andythenorth has joined #openttd
17:56:05  <andythenorth> hi
17:56:08  <andythenorth> such RL
17:58:54  <frosch123> hoi
18:00:11  *** tokai has quit IRC
18:00:48  <andythenorth> quak
18:13:00  *** gelignite has joined #openttd
18:35:26  <supermop> yo
18:41:57  *** chomwitt has quit IRC
18:42:34  <supermop> i think i will now make running costs convoluted and arcane
18:43:09  <supermop> because why not
18:46:18  <andythenorth> you have to try it
18:46:21  <andythenorth> so you learn not to
18:46:44  <andythenorth> I should finish fricking FIRS 3
18:46:51  <andythenorth> I would like it out of my head :P
18:47:19  <supermop> andythenorth: the problem is making things arcane in subtle ways so no one ever complains about it
18:47:30  <supermop> so then i will never learn not to
18:47:45  <supermop> i might put trams in a separate set. this one is too big
18:48:56  <supermop> also these 1910 roadtrains look stupid
18:50:07  <andythenorth> why?
18:50:10  <andythenorth> triples are fine http://www.hankstruckpictures.com/pix/trucks/goudy/humble_mack_ac_triples.jpg
18:50:22  <andythenorth> http://www.hankstruckpictures.com/kg_tankers.htm
18:52:53  <andythenorth> bet my laptop drops the connection in 2 mins
18:57:55  *** andythenorth has quit IRC
18:57:55  *** FLHerne has quit IRC
18:58:15  *** FLHerne has joined #openttd
18:59:21  *** andythenorth has joined #openttd
19:01:11  <supermop> andy, either they are too weak to use, or there is no point using anything else
19:01:22  <supermop> maybe i'll make them haul only
19:03:09  <andythenorth> what capacity are they?
19:04:18  *** Gja has quit IRC
19:09:45  *** andythenorth has quit IRC
19:11:45  *** andythenorth has joined #openttd
19:12:17  *** FLHerne has quit IRC
19:13:11  *** Gja has joined #openttd
19:16:47  *** andythenorth has quit IRC
19:24:01  *** andythenorth has joined #openttd
19:29:03  *** andythenorth has quit IRC
19:46:13  *** andythenorth has joined #openttd
19:47:06  <supermop> andy - 100t ish
19:47:27  <supermop> early ones are probably like 60 ish
19:47:45  <supermop> late ones like 120
19:48:35  *** sla_ro|master has quit IRC
19:51:04  *** FR^2 has left #openttd
19:51:40  <andythenorth> yeah that’s a lot
19:52:07  <andythenorth> but that’s the nature of the beast
19:54:54  <supermop> trying to figure out how to set run cost
20:00:14  <supermop> i liked the way the costs were, but there's no room to make triples cost even 1.5 times the equivalent semis
20:00:56  <andythenorth> you hit the top of the range?
20:00:57  <supermop> because last semi mineral truck is already like 240
20:01:02  <andythenorth> set the run cost multiplier
20:01:06  <andythenorth> and shift everything
20:01:23  <supermop> running_cost_factor: 240
20:01:28  <supermop> thats what i got
20:01:37  <andythenorth> http://dev.openttdcoop.org/projects/road-hog/repository/entry/src/templates/header.pynml#L36
20:01:38  <supermop> what is the multiplier
20:02:24  <andythenorth> https://newgrf-specs.tt-wiki.net/wiki/NML:Setting_base_costs
20:03:01  <supermop> does that affect all RVs or just the ones in this grf?
20:03:07  <andythenorth> the ones in the grf iirc
20:03:13  <supermop> ok
20:03:23  *** frosch123 has quit IRC
20:03:38  <supermop> because the point of the param was to balance against ogfx+/hog/egrvts
20:03:51  <andythenorth> bounce it to x2, and halve your current values
20:03:54  <andythenorth> or similar
20:04:03  <andythenorth> looks like I used 3
20:04:06  <supermop> yeah
20:05:03  <supermop> was thinking id figure out what the 4th gen triple costs then scale everything so that equals 250
20:07:02  *** Alberth has left #openttd
20:07:07  *** sim-al2 has joined #openttd
20:07:39  <andythenorth> yup
20:09:05  *** gelignite has quit IRC
20:09:56  *** chomwitt has joined #openttd
20:14:40  <supermop> im splitting running cost out into fuel, mechanical, staff, truck body
20:14:47  <supermop> just for the hell of it
20:16:01  <supermop> mostly so i can make ref. trucks cost more than box trucks or whatever
20:18:44  *** andythenorth has quit IRC
20:32:03  *** andythenorth has joined #openttd
20:39:25  <supermop> so your internet is messed up?
20:42:25  *** andythenorth is now known as Guest90
20:42:27  *** andythenorth has joined #openttd
20:43:27  <andythenorth> my laptop
20:43:36  <andythenorth> I can’t stop it going to sleep
20:46:21  *** Progman has quit IRC
20:47:18  <andythenorth> I should caffeinate it
20:50:01  *** Guest90 has quit IRC
20:51:06  *** FLHerne has joined #openttd
20:54:43  * andythenorth gave it amphetamine
20:54:54  <andythenorth> suprised Apple allowed that on the app store
20:54:55  <andythenorth> eh
20:55:08  <andythenorth> also bed
20:55:09  *** andythenorth has quit IRC
21:05:44  *** heffer has quit IRC
21:08:02  *** juzza1 is now known as Guest93
21:08:18  *** juzza1 has joined #openttd
21:12:54  *** Guest93 has quit IRC
21:16:07  *** DDR has joined #openttd
21:31:16  *** Gja has quit IRC
21:37:10  *** heffer has joined #openttd
21:51:46  *** HerzogDeXtEr has quit IRC
21:56:27  *** mindlesstux has quit IRC
21:56:57  *** mindlesstux has joined #openttd
22:14:30  *** FLHerne has quit IRC
22:18:13  <supermop> ugh
22:18:57  <supermop> no way to  return switch_a + switch_b as a result of switch_c
22:26:03  <Wolf01> :(
22:29:04  <Wolf01> Is it possible to have functions?
22:34:07  <supermop> i can't figure out how
22:34:27  <supermop> https://newgrf-specs.tt-wiki.net/wiki/NML:Switch
22:34:51  <Wolf01> I'm reading the docs, but I feel it a lot limited... it's like trying to do something with just JSON
22:37:48  *** mikegrb has quit IRC
22:38:10  <supermop> as a test
22:38:12  <supermop> switch (FEAT_ROADVEHS, SELF, switch_power_ht4, build_year ) {         0..2030: 220;         2031..2045: 225;         2046..2060: 230;         2061..5000000: (switch_power_ht1 + switch_power_ht2);         default: 220;
22:39:02  <supermop> nmlc gives an error "Binary operator requires both operands to be integers or floats"
22:39:24  <supermop> so it wont let you do math where the value is a switch
22:40:16  <Wolf01> Yeah, they are identifiers
22:40:40  <Wolf01> The switches must be evaluated first, that's why I asked for a function
22:41:57  <Wolf01> I don't think you can either store a value into a variable
22:42:10  <supermop> if i want a function x + y + z, idk how to have a switch set the value of x
22:43:54  <supermop> yeah, nor can i figure out a way to store the result of a switch as as store_temp
22:44:00  <Eddi|zuHause> it's not really possible in NML
22:44:03  <Wolf01> Uhm, STORE_TEMP?
22:44:52  <Wolf01> But you might need a lot of variables
22:45:10  <Wolf01> https://newgrf-specs.tt-wiki.net/wiki/NML:Builtin_functions
22:45:30  <Eddi|zuHause> https://newgrf-specs.tt-wiki.net/wiki/VariationalAction2#Variable  <-- you need Var 7E, but this is not implemented in NML
22:46:41  <Wolf01> Yeah, that's what I meant back when I talked about having closures in nml
22:46:43  *** Wormnest has quit IRC
22:47:57  <supermop> oh well
22:48:05  <Eddi|zuHause> i vaguely remember trying to implement this once, but i got stuck trying to convince the compiler that a switch is a valid number to use as parameter
22:51:43  <Wolf01> The compiler compiles nml into nfo?
22:53:59  <Eddi|zuHause> sort of
22:55:02  <Eddi|zuHause> nml is a "high level language", nfo is at the "assembler" stage, and there's a "machine code" level below that
22:55:21  <Eddi|zuHause> typically nmlc directly outputs this "machine code", but it can also generate nfo
22:56:28  <Wolf01> Mmh, the topic in the forum is pretty old
23:00:08  <Eddi|zuHause> well, it should be "simple", you "just" need var[0x7E, shift, mask, blah], and teach it to accept a switch as "blah" by resolving the switch id
23:00:43  <Wolf01> Yes, that's what I thought, but "how" (in the compiler)
23:00:50  <Eddi|zuHause> and then add syntax sugar by calling it "CALL(blah)"
23:01:33  <Wolf01> Or for shortness [blah]
23:03:32  <Eddi|zuHause> i have no idea how "complete" this was: https://paste.openttdcoop.org/pitysbpfe
23:04:22  <Eddi|zuHause> the value_function and param_function is what's missing
23:08:36  <Eddi|zuHause> i also found this "improved"(?) version https://paste.openttdcoop.org/pdwqozgkm
23:09:17  <Wolf01> I was about to suggest to use a lambda function
23:09:44  <Wolf01> But I'm not so used to python :P
23:10:47  <Eddi|zuHause> i have no idea whether this actually worked
23:14:55  <Wolf01> I use *a lot* of anonymous functions in my code, the are really convenient
23:17:03  <Wolf01> Like when you need to filter a list on different values, or to make something do something else you didn't think about in first place
23:17:14  <Wolf01> Oe event driven architecture :P
23:22:26  <Eddi|zuHause> yes, i do know how to use lambda :p
23:23:16  <Eddi|zuHause> my professor spent a lot of time teaching us pure lambda calculus :p
23:24:57  <Wolf01> I learned it on javascript at work :P
23:25:54  <Eddi|zuHause> that is totally crazy, you just have a basic syntax, and then start recreating peano arithmetics from scratch
23:39:57  *** mikegrb has joined #openttd
23:43:54  *** supermop has quit IRC
23:44:11  *** supermop has joined #openttd
23:57:38  *** Flygon has joined #openttd

Powered by YARRSTE version: svn-trunk