IRC logs for #openttd on OFTC at 2015-07-12
⏴ go to previous day
00:02:22 *** Progman has joined #openttd
00:09:24 *** JacobD88 has joined #openttd
01:16:18 *** Supercheese has joined #openttd
02:15:51 *** glx is now known as Guest4744
02:37:13 *** Hiddenfunstuff has quit IRC
03:50:11 *** Myhorta has joined #openttd
03:50:48 <Supercheese> Pikka... Pokka... Pekka?
03:51:19 *** Pokka is now known as Pikka
03:53:32 <Supercheese> Perhaps I should stop changing vowels lest I accidentally write something obscene in a foreign language
03:54:22 <Sylf> "Pakka" gives me an idea.
03:55:50 <Supercheese> Hopefully not the wrong kind of idea...
03:57:48 <Sylf> nothing bad. just a very innocent onomatopoeia in Japanese. perfect for my animal kingdom town names
04:42:13 *** smoke_fumus has joined #openttd
06:56:18 *** Eddi|zuHause has joined #openttd
08:24:49 *** andythenorth has joined #openttd
08:30:53 *** sla_ro|master has joined #openttd
08:53:53 *** Alberth has joined #openttd
08:53:53 *** ChanServ sets mode: +o Alberth
08:54:19 <Alberth> Eddi|zuHause: The proper jargon term for NML is "declarative"
09:17:18 *** andythenorth has joined #openttd
09:23:33 <Alberth> only if you're in a big hurry?
09:24:06 <Alberth> hmm, maybe for coal and other heavy stuff, it's useful to have it sooner
09:26:07 * andythenorth yields computer to 5 year old :(
09:26:16 <andythenorth> he’s drawn thomas and put it in the game
09:37:01 <Supercheese> I'm honestly very surprised no complete Thomas set has ever emerged for OTTD
09:38:59 <Alberth> copyright troubles, mostly
09:39:33 <Alberth> doesn't tilt rotate the wagons into corners, for better stability?
09:40:34 *** Pokka is now known as Pikka
09:40:49 <Pikka> andythenorth, it makes trains slow down less on corners
09:43:19 <Alberth> I wonder why they don't tilt the tracks themselves?
09:50:47 <andythenorth> there is an aborted Sodor set somewhere
09:50:53 <andythenorth> and Dan wants to do one
09:53:00 <andythenorth> should I tilt something?
09:53:10 * andythenorth needs to do a horse update anyway
09:53:15 <andythenorth> tilting narrow gauge? o_O
09:55:20 <andythenorth> livery overrides
09:55:32 <andythenorth> Iron Horse must to use all these things?
09:55:41 <andythenorth> seems I am not using the spec properly
10:01:42 <Supercheese> eh I think there is some default the game uses when you don't specify air drag
10:01:48 <Supercheese> which should be "good enough"
10:08:27 *** Progman has joined #openttd
10:30:39 <andythenorth> Alberth: CreateChallenge() is the place to add ‘goal already fulfilled’ checks?
10:32:07 <andythenorth> or maybe FindChallenge()
10:32:50 <andythenorth> ah this might have potential
10:32:51 <andythenorth> if (cdata != null && cdata.HasGoal(cargo.cid, accept)) continue; // Prevent duplicates.
10:33:17 <andythenorth> cdata.HasGoal could be cdata.HasGoalEver
10:33:19 <Alberth> that's current goal check
10:33:33 <andythenorth> or history.HasGoal
10:34:33 <Alberth> you may want to keep both concepts separate, in case we want to tweak either one in the future
10:35:40 <andythenorth> the history has to be per-company
10:35:49 <andythenorth> eh, what happens if a company is purchased? o_O
10:36:32 <Supercheese> fast food, apparently
10:38:01 <andythenorth> copy HasGoal() and call it HasHadGoal()
10:40:08 <andythenorth> HasHadAndWonGoal() is actually what’s needed
10:40:13 <andythenorth> failed goals can be re-issued
10:41:06 <andythenorth> Alberth: I’m not missing a really obvious list of goals won?
10:41:16 <andythenorth> I don’t expect one and can’t see one
10:41:32 <Alberth> expectations match reality :)
10:41:40 <andythenorth> UpdateDelivered() seemed the place to look
10:42:10 <Alberth> nah, that's for handling cargo that has been delivered for running goals
10:42:41 <Alberth> I don't keep track of things done in the past
10:42:58 <andythenorth> I can’t see where won goals are cleared from active_goals
10:43:40 <Alberth> it's done indirectly iirc
10:44:27 <andythenorth> CheckAndFinishGoals
10:45:01 <andythenorth> that would be the place to move the goal to won_goals
10:46:01 <Alberth> line 420 return {cmon=cmon, finished_goals=finished}; I think
10:46:53 <Alberth> ah, indeed, you are correct
10:47:13 <andythenorth> stopped clock, twice a day
10:48:30 <Alberth> doesn't a 'running clock' stop every second?
10:48:57 <Alberth> line 515 company.nut this.active_goals[num] = null; kills the goal
10:52:14 <andythenorth> looks like there are a *lot* of cases to handle cleaning up save / load
10:52:34 <andythenorth> I guess won_goals would need to be handled the same
11:03:41 *** HerzogDeXtEr has joined #openttd
11:05:19 <Alberth> you just keep some set-like thing, and add it to save/load?
11:05:52 <Alberth> not sure what you mean by "a lot of cases"
11:08:28 <andythenorth> LoadCompany() and such
11:08:32 <andythenorth> not that many actually
11:10:21 * andythenorth just doesn’t know what he doesn’t know
11:10:29 <andythenorth> and what might go wrong :P
11:15:10 *** Pensacola has joined #openttd
11:15:47 <Alberth> at worst, script may die :)
11:16:25 <Alberth> you may want to increment the version, so old savegames are not loadable any more
11:16:47 <Alberth> unless you deal with optional existence of your set of old goals
11:17:49 <andythenorth> can probably fail silently
11:18:12 <andythenorth> don’t think it matters much
11:18:19 <andythenorth> create won_goals if it doesn’t exist
11:19:04 <Alberth> iirc you get the version number of the loaded game, you can check that for deciding whether the list exists
11:30:11 * andythenorth has stuff to do, but will come back to this later
11:30:19 <andythenorth> ideal single-feature project :)
11:38:05 * andythenorth is super-bored of making newgrf
11:38:11 <andythenorth> and needs something different
11:41:10 <andythenorth> GS will do the job
11:46:46 *** tycoondemon has joined #openttd
11:59:12 *** frosch123 has joined #openttd
11:59:43 *** Wormnest has joined #openttd
12:20:24 *** Wormnest_ has joined #openttd
12:35:37 *** Hiddenfunstuff has joined #openttd
13:31:53 *** Supercheese is now known as Guest4781
13:31:58 *** Supercheese has joined #openttd
13:44:58 *** andythenorth has joined #openttd
13:49:24 *** jottyfan has joined #openttd
13:55:23 <Alberth> hi jottyfan, Bee Reward has an issue with step sizes, can you please have a look at it?
14:18:16 *** Myhorta has joined #openttd
14:36:25 *** fjb is now known as Guest4785
14:44:04 * andythenorth mumbles and waves
14:44:22 <andythenorth> something about “people should try snakebite FIRS, it’s much better than old FIRS”
14:46:19 <andythenorth> about 400 commits better :P
14:50:43 <andythenorth> you want fruit store delivery? :P
14:53:02 <Alberth> oh, "people" was just random persons in this channel? :)
14:58:05 <andythenorth> even Baldy’s Boos
15:08:36 <Alberth> jottyfan: please push ?
15:09:39 <Alberth> I was bored with my current game anyway, so yeah, I can play a bit
15:13:34 <jottyfan> @Alberth: sorry, thought I still did
15:13:46 <Alberth> yeah, common mistake :)
15:22:35 <Alberth> jottyfan: bananas doesn't like me as author of the project, so it'll take a little longer
16:16:59 *** gelignite has joined #openttd
16:37:43 *** HerzogDeXtEr1 has joined #openttd
16:41:50 *** sla_ro|master has joined #openttd
17:12:18 *** smoke_fumus has joined #openttd
17:21:09 *** HerzogDeXtEr has joined #openttd
17:43:22 *** andythenorth has left #openttd
18:15:32 *** zeknurn has joined #openttd
18:33:18 <Eddi|zuHause> frosch123: did that ancient report/fix that i dug out help in any way?
18:33:55 <frosch123> no, yapf looks entirely different these days
18:43:41 <Alberth> I wonder if we should keep the #define as well, or debugging yapf gets messy with all the desync output?
18:44:10 <frosch123> desync only gets messy starting with level 3 :)
18:44:49 <frosch123> at level 2 it's all about checking caches
18:45:00 <frosch123> which "should" never print anything
18:47:27 <frosch123> hmm, ok, it also prints commands, but that should not be much either
18:47:52 <frosch123> anyway, when attaching it to multiple conditions, i do not know what "stream" to assign it to
18:48:03 <frosch123> "desync" stream goes to commands-out.log
18:48:06 <frosch123> the other ones go to console
19:06:09 <DorpsGek> Commit by frosch :: r27332 trunk/src/pathfinder/yapf/yapf_rail.cpp (2015-07-12 19:06:02 +0200 )
19:06:10 <DorpsGek> -Change: Enable YAPF cache debugging with desync debug level 2.
19:09:12 *** Progman has joined #openttd
19:14:25 *** Goddesen has joined #openttd
19:53:42 *** HerzogDeXtEr has joined #openttd
20:01:51 *** HerzogDeXtEr has joined #openttd
20:07:30 *** Wormnest has joined #openttd
22:42:03 *** Wormnest has joined #openttd
continue to next day ⏵