Config
Log for #openttd on 26th January 2018:
Times are UTC Toggle Colours
00:01:55  <Samu> and there's yet another lonely change, sec
00:02:52  <Samu> https://paste.openttdcoop.org/pgc6tqpj9
00:03:21  <Samu> looks minor, but helps a lot with pending replace
00:03:45  <Samu> everything together, makes sense
00:03:50  <Samu> everthing on its own... meh...
00:04:44  *** Biolunar has quit IRC
00:08:55  *** Flygon has joined #openttd
00:23:56  <Samu> well, i gotta go, cyas and thx for the help
00:24:31  *** Samu has quit IRC
00:27:14  *** FLHerne has quit IRC
00:36:09  *** chomwitt has quit IRC
01:31:49  *** Mahjong has quit IRC
01:32:02  *** Mahjong has joined #openttd
01:56:34  *** som89 has quit IRC
02:08:40  *** Gustavo6046 has quit IRC
02:32:33  *** Supercheese has quit IRC
03:30:55  *** Cubey has quit IRC
03:41:39  *** Chrill has joined #openttd
03:43:55  *** Chrill has quit IRC
04:03:12  *** Thedarkb1 has joined #openttd
04:07:00  *** glx has quit IRC
04:09:14  *** Thedarkb has quit IRC
05:13:15  *** Supercheese has joined #openttd
06:38:51  *** sim-al2 has quit IRC
06:55:30  *** roidal has joined #openttd
06:59:50  *** Supercheese has quit IRC
07:56:21  *** Biolunar has joined #openttd
08:37:38  *** Mahjong has quit IRC
08:38:05  *** Mahjong has joined #openttd
09:32:09  *** Biolunar has quit IRC
09:33:21  *** FLHerne has joined #openttd
10:07:30  *** tokai has joined #openttd
10:07:30  *** ChanServ sets mode: +v tokai
10:14:24  *** tokai|noir has quit IRC
11:28:59  *** iSoSyS has joined #openttd
12:11:42  *** roidal_ has joined #openttd
12:18:32  *** roidal has quit IRC
12:31:37  *** TheMask96 has quit IRC
12:32:52  *** TheMask96 has joined #openttd
12:32:56  *** Gja has joined #openttd
12:39:29  *** alluke has quit IRC
12:52:19  *** smoke_fumus has joined #openttd
12:57:00  *** Samu has joined #openttd
12:57:23  <Samu> hello
13:05:24  *** Gustavo6046 has joined #openttd
13:06:57  *** iSoSyS has quit IRC
13:09:20  *** Borg has joined #openttd
13:10:04  <Samu> const char _openttd_revision[] = "h77418634M-trunk";
13:10:05  *** Flygon has quit IRC
13:10:11  <Samu> is this intended?
13:10:35  <Samu> is it because I'm using mercurial?
13:11:02  <Samu> i was used to r12345M style
13:11:55  <Borg> boooom! an idea popped in..
13:11:58  <Borg> currently..
13:12:05  *** sim-al2 has joined #openttd
13:12:06  <Borg> Power Station is end industry.. it just eats coal..
13:12:30  <Borg> im thinking.. to have global power storage... and every industry.. that does production... eats power..
13:12:47  <peter1138> Samu, yes. You are not using svn so you don't get the svn revision.
13:12:59  <Borg> if there is not enough power.. industry stops producing.... you need to found new power station.. and supply coal to it..
13:13:02  <Borg> sounds great? :D
13:13:25  <Samu> ah ok thx
13:13:35  <peter1138> So when you start a game, with no power stations running, what happens?
13:13:43  <Borg> dead end..
13:14:01  <peter1138> Right before you begin? Doesn't sound useful.
13:14:04  <Borg> I will do it... doable in GRF since.. 1.2 GRF have persistent storage
13:14:25  <Borg> peter1138: well, u can try passangers runs.. to get cash to fund power station
13:14:32  <Borg> also.. power stations never vanish...
13:14:38  <Borg> so its not A big issue I think
13:14:54  <Borg> so.. I hope I will do it today :) and start testing..
13:17:26  <Samu> aww sh1337t
13:17:30  <Samu> i think i screwed up
13:18:19  <Samu> https://imgur.com/a/5hVtr look at the graph
13:18:40  <Samu> commits 11-12-13 should be linked to 10
13:18:44  <Samu> what can i do now?
13:19:56  <Borg> I dunno HG...
13:20:07  <Samu> LordAro: wake up, help :o
13:21:11  <Borg> nice descriptions btw.. Trunk 1... etc... very informative...
13:21:24  <Borg> go use SVN...
13:21:34  <Borg> especialy.. because OpenTTD use it.. internally..
13:22:00  <Samu> i thought svn couldn't do patch splitting
13:22:07  <Samu> commit or whatever the heck i'm doing
13:22:28  <Borg> well.. true.. but is that an issue to you?
13:22:36  <Borg> u barelly seems to know what are you doing..
13:22:41  <Borg> so SVN will be better imo
13:23:03  <Borg> do checkout.. make branch.. do commits.. one by one
13:23:07  <Samu> i am slicing my big patch into smaller pieces
13:23:14  <Borg> and you can send svn diff -c <rev>
13:23:24  <Borg> it will be hard..
13:25:15  <Samu> make branch?
13:25:31  <Samu> i got tortoisesvn installed
13:25:53  <Samu> there's a branch/tag  or tag/branch option but i never managed to make it work
13:29:04  <Samu> p
13:29:06  <Samu> Copy D:\OpenTTD\trunksvn to svn://svn.openttd.org/trunk, Revision 27967 Path '/trunk' already exists
13:29:21  <Samu> can't do branch/tag thing
13:30:19  <LordAro> Borg: he can't do branching
13:30:35  <LordAro> not without setting up a separate svn repo, which i was not prepared to walk him through
13:31:00  <LordAro> Samu: there are plenty of people here who can help you
13:31:05  *** john-aj has joined #openttd
13:31:29  <LordAro> Samu: but yes, get in the habit of giving these patches meaningful commit messages
13:31:49  <LordAro> so that you don't have to look at the diff to know what they're doing
13:32:10  <Samu> i can ammend yet, i believe
13:32:39  <Samu> the ammend lets me edit the commit message, right? at least I was counting on it
13:32:48  <LordAro> i expect so
13:33:10  <LordAro> Samu: http://thedustytome.com/2014/05/29/Mercurial-Rebase-with-TortoiseHg/ this looks useful to you
13:33:47  <Borg> LordAro: he cant do any VCS I think ;)
13:33:50  <Borg> so.. SVN will be best
13:33:58  <Borg> because its easiest..
13:34:12  <Borg> Samu: copy /trunk to /branch/samu
13:34:19  <Borg> in SVN.. and start commiting there
13:34:36  <Borg> use SVN repo relative structure.. not disk paths
13:34:54  <Borg> SVN is stupid in branching.. but...
13:35:05  <Borg> could be easier for you..
13:35:15  <LordAro> Borg: he cannot commit
13:35:22  <Borg> ah wait.. shit :D sorry
13:35:30  <Borg> I forgot. .how limited SVN is.. I use GIT mostly
13:35:33  <LordAro> ;)
13:35:40  <LordAro> you think i'd bother otherwise? :p
13:35:45  <Borg> ;)
13:36:56  *** iSoSyS has joined #openttd
13:37:45  <Borg> damn.. my Power Plant plan.. failed
13:37:57  <Borg> I need Global GRF storage.. not associated w/ any object
13:41:00  <Borg> something like Persistent Storage: 0x80 - 0xFF
13:41:04  <Borg> would be neat
14:05:14  *** synchris has joined #openttd
14:11:04  <Samu> reading the tutorial, i dunno what's a push
14:11:21  <Samu> i've seen that push button somewhere, but I've never clicked on it
14:12:52  <Samu> my commit 10 should be moved to the left, to be before 11
14:14:26  <Samu> don't tell me i've been doing this wrong from the beginning?
14:15:41  <LordAro> Samu: pushing is sending your commits to a remote location, you won't need it
14:19:03  *** Samu has quit IRC
14:29:06  <Gustavo6046> Why is it always so difficult to make profit with airplanes?
14:32:55  <debdog> hmm, usually using aircraft is like printing money
14:35:33  <Gustavo6046> Probably when duplicating the aircraft.
14:43:26  *** iSoSyS has quit IRC
14:52:05  *** sim-al2 has quit IRC
15:12:49  *** Samu has joined #openttd
15:13:32  <Samu> sorry, power was down for an hour
15:30:31  <peter1138> It was bliss.
15:31:07  *** john-aj has quit IRC
15:31:36  <Rubidium> you don't have a UIS? What kind of third world country is that?
15:31:38  *** chomwitt has joined #openttd
15:33:05  <Samu> Poortugal
15:35:31  *** Biolunar has joined #openttd
15:45:15  <Samu> i still don't know what I'm doing
15:48:04  <__ln__> https://www.dbregio.de/db_regio/view/zukunft/eco-de-me-train.shtml  <-- patch needed
15:49:48  <LordAro> Samu: fun faxt, when i first started i wrote diff files by hand
15:49:58  <LordAro> no one has any idea what they're doing when they first start
15:52:16  <Samu> i exported all patches into .patch files
15:52:32  <Samu> 22740.patch, 22741.patch, 22742.patch, etc...
15:53:01  <Samu> how would I share this to some one else interested
15:53:31  <Samu> do they know they have to apply each in correct order?
15:54:28  <Samu> apply 22740 against trunk, then 22741 against 22740, etc?
15:54:48  <Samu> it seems I'm missing the point
15:55:32  <LordAro> generally, patch files are numbered 01-description.patch, 02-description.patch...
15:55:41  <LordAro> i.e. in numerical order
15:56:23  <Samu> 22743 is vs trunk again
15:56:52  <LordAro> so it's the first patch in a separate "queue"
15:59:10  <Samu> 22740.patch becomes 01-apply vs trunk.patch
15:59:25  <Samu> 22741.patch becomes 02-apply vs 01.patch?
15:59:38  <LordAro> no, description of what the patch does
15:59:43  <LordAro> normally the commit message
15:59:53  <LordAro> (and without spaces, they're annoying)
16:00:44  <Samu> ok, i better start adding descriptions to all this, gonna experiment with Ammend
16:00:46  <Samu> amend
16:03:10  <Borg> well.. not a commit message maybe.. but short description... like:
16:03:22  <Borg> 01_pt_translation_fixes.patch
16:04:04  *** iSoSyS has joined #openttd
16:05:51  <Samu> i can't amend, or fail to undesrtand it's purpose
16:06:00  <Samu> damn me
16:06:17  <Borg> it doesnt matter... you are doing diffs..
16:06:31  <Borg> comment description is not part of diff.. so. dont waste time for it..
16:06:37  <Borg> just make patches is correct order..
16:07:24  <Borg> and also.. why did you choosed HG?
16:07:42  <Borg> GIT is more popular. shitloads of howtos and help sites
16:08:40  <LordAro> Borg: i figured it might be easier
16:08:51  <LordAro> could've been wrong, but there we go
16:09:14  <Borg> LordAro: I dunno HG.. but its less popular.. and it seems to mix SVN stuff w/ distrubuted VCS..
16:09:26  <Borg> also.. for Samu.. anything that SVN will be hard anyway
16:11:00  <LordAro> Borg: that's what i figured - marginally closer to what was already known
16:11:07  <LordAro> ¯\_(ツ)_/¯
16:11:08  <Samu> i can only ammend the last thing I've done, commit 13 :(
16:11:18  <Samu> amend*
16:11:42  <Samu> ok, back to doing diffs
16:15:05  *** HerzogDeXtEr has joined #openttd
16:18:36  <Samu> i'm nearly done with aircraft_cmd.cpp with stuff that doesn't require the large_aeroplane_on_short_runway setting yet
16:23:02  <Samu> oh boy, the branching tree is now split into 3, things are starting to complicate :)
16:33:30  <LordAro> Samu: https://mcmblog.azurewebsites.net/how-to-modify-history-in-tortoisehg/ will become interesting to you as well
16:34:16  <Samu> i have branches crossing each other now, i really hope this is fine and all, but it's getting quite messed up for me
16:37:30  <Samu> i reached that phase where I have to create a setting
16:37:37  <Samu> _settings_game.vehicle.large_plane_on_short_runway
16:39:50  <Samu> oh gosh...
16:40:08  <Samu> whoever thought piece by piece was a good idea :(
16:54:48  *** Cubey has joined #openttd
16:56:00  <Samu> order_cmd.cpp
17:01:29  *** TheMask96 has quit IRC
17:05:38  *** TheMask96 has joined #openttd
17:29:51  <Samu> hmm, how many commits for the addition of a game setting?
17:31:02  <Samu> i just feel like doing it all at once, but then i fail the main purpose of what i'm doing
17:34:19  <Samu> needs afterload conversion, needs savegame bump, needs 2 strings, needs a proc, needs to be added to gui...
17:34:55  <Samu> i was thinking of doing these steps all in 1 commit, what u say?
17:35:11  <Samu> there's more to be done afterwards
17:35:24  <Samu> to make the setting actually do anything in the game
17:40:19  *** Cadmus has quit IRC
17:44:01  <Samu> t.t
17:49:40  <LordAro> Samu: probably 1 commit then
17:52:10  *** john-aj has joined #openttd
18:10:57  *** iSoSyS has quit IRC
18:12:26  *** Mahjong has quit IRC
18:13:31  *** glx has joined #openttd
18:13:31  *** ChanServ sets mode: +v glx
18:14:09  <Samu> i'm confused
18:14:51  <Samu> i have the code changes ready for the addition of the setting
18:16:01  <Samu> now this is the continuation of commit 1
18:16:26  <Samu> the branching is becoming chaotic to look at
18:17:17  <Samu> i hate this tree system, doesn't make things clear at all
18:18:27  *** Wolf01 has joined #openttd
18:18:34  <Wolf01> o/
18:19:34  *** frosch123 has joined #openttd
18:20:00  <Samu> how do i make this commit to be applied when commit 1 and commit 17 are applied?
18:20:17  <Samu> are required
18:20:46  <Samu> i can only upgrade to 1 or 17, can't upgrade to both at the same time
18:20:50  <Samu> update*
18:21:10  <frosch123> hola
18:21:55  <Samu> hi
18:22:17  <Wolf01> Quak
18:22:58  <Samu> LordAro: am i screwed? :(
18:23:50  <LordAro> Samu: let's see the tree?
18:24:37  <Samu> k
18:25:36  <Samu> https://imgur.com/SPMBQzL
18:25:46  <Samu> unresolved conflict
18:25:58  <Samu> i'm doomed
18:26:15  <LordAro> no need to be dramatic
18:27:23  <LordAro> Samu: right, i'd recommend deleting 17, checking out 1, and remaking 17 & your new one
18:27:51  *** Progman has joined #openttd
18:28:31  <Samu> ok, deleting 17, sounds like a good idea
18:29:08  <Samu> how do i "delete 17" :( im so noob at this
18:32:41  <Samu> backout? revert all files?
18:37:08  <Samu> gonna try strip
18:38:48  <Samu> rip 17
18:47:44  *** Thedarkb1 has quit IRC
18:51:41  *** Mahjong has joined #openttd
18:54:37  *** FLHerne has quit IRC
18:56:40  *** andythenorth has joined #openttd
18:58:43  <Wolf01> o/
18:58:49  <__ln__> \o
19:01:04  <supermop_work> yo
19:01:34  *** Thedarkb1 has joined #openttd
19:12:57  <andythenorth> hi
19:24:26  <Wolf01> http://www.adnkronos.com/fatti/cronaca/2018/01/26/incidente-treno-scintille-fumo-prima-dell-impatto_CXZ4w4QQGkrJV4YKaZPy1O.html mmmh, I wonder what really happened there, some of the sources say it derailed because a fault on the rail, some others say the fault of the rail was a consequence...
19:31:47  <Wolf01> https://www.packtpub.com/packt/offers/free-learning andythenorth
19:32:31  <andythenorth> could teach me kids with it
19:32:34  <andythenorth> me / my /s
19:33:12  <Wolf01> I should start to learn it too
19:36:07  *** smoke_fumus has quit IRC
19:50:37  *** Thedarkb1 has quit IRC
19:54:04  <Samu> i'm approaching the end
19:54:10  <Samu> it's almost done
19:55:19  <Samu> these depot order fixes were part of bugs I found and fixed along the way, but I don't remember the exact details of reproducing one
19:55:35  <Samu> must trial and error to discover
19:56:48  <john-aj> cool!
19:59:33  *** Wormnest has joined #openttd
20:02:59  <Samu> ah, i remember
20:03:23  <Samu> it's about go to hangar in the order list
20:03:40  <Samu> order 1: go to hangar A
20:03:46  <Samu> order 2: go to hangar B
20:03:56  <Samu> the plane is currently executing order 1
20:04:09  <Samu> if you skip to order 2, the plane still goes to hangar A
20:04:21  <Samu> it's a bug in openttd itself
20:09:59  <Eddi|zuHause> Wolf01: in germany, there's usually a detailed report about half a year later tracing every step that lead to the crash
20:10:03  *** john-aj has quit IRC
20:13:52  <Samu> looks like there only 1 more commit to go
20:14:51  *** som89 has joined #openttd
20:15:45  <Samu> vehicle.cpp
20:20:46  <Samu> done
20:20:47  *** john-aj has joined #openttd
20:20:50  <Samu> 23 commits
20:21:07  <Samu> now I'm a bit lost, what do i do next?
20:24:06  <Samu> https://imgur.com/J54zihH the end result!
20:24:11  <Samu> not quite what I expected
20:24:44  <Samu> 10 and 11 should have been linked together, but i failed there
20:24:55  <Samu> not much of a problem, but meh
20:29:34  <Samu> LordAro: what now?
20:31:44  <Samu> is it supposed to look like that? feels disconnected~
20:32:00  *** Thedarkb1 has joined #openttd
20:38:59  *** john-aj has quit IRC
20:42:30  *** synchris has quit IRC
20:44:24  <Wolf01> https://www.youtube.com/watch?v=NitIxL7iLEY this reminds me something... like the video posted by andythenorth :P
20:45:06  <andythenorth> it's good eh :)
20:49:04  *** Borg has quit IRC
20:55:21  <frosch123> what cost more? the lego or the hall construction?
21:04:16  <andythenorth> both
21:08:11  *** happpy has joined #openttd
21:08:20  *** happpy has left #openttd
21:50:11  *** FLHerne has joined #openttd
21:50:33  *** Mahjong has quit IRC
21:54:32  *** Mahjong has joined #openttd
22:05:38  *** sim-al2 has joined #openttd
22:17:36  *** frosch123 has quit IRC
22:33:06  *** roidal_ has quit IRC
22:34:05  *** andythenorth has quit IRC
22:40:55  <Samu> 06 - RemoveOrderFromAllVehicles - prepare code to allow invalidation of go to hangar order while keeping go to airport order belonging to the same station.patch
22:41:03  <Samu> too long name?
22:44:17  <Samu> 07 - UpdateAirplanesOnNewStation - invalidade go to hangar orders when replacing an airport with a heliport.patch
22:44:58  <Samu> daed chat
22:45:07  <LordAro> yes too long
22:45:32  <LordAro> and replace spaces wirh - or _
22:46:35  <Samu> really? for any special reason?
22:46:46  <Samu> but ok i'll do it
22:47:34  <Samu> 01_FindNearestHangar__re-arrange_code_for_what's_to_come.patch
22:47:37  <Samu> something like this?
22:48:55  <LordAro> something like that
22:49:05  <LordAro> no apostrophes either
22:49:31  <LordAro> spaces and quotes tend to cause issues on commandlines
22:49:44  <Samu> oh, i see
22:50:19  <Samu> is it ok to use double _ ?
22:50:20  <Samu> __
22:51:28  <LordAro> sure, although it lengthens it further
22:51:42  <LordAro> keep it short, but descriptive
22:52:10  <LordAro> (also, "dead chat" after 4 minutes is silly, don't do that)
22:53:14  <Samu> 05_UpdateAirplanesOnNewStation__cancel_send_to_hangar_order_when_the_rebuilt_airport_doesnt_have_a_hangar_or_if_the_aircraft_cant_land_on_it.patch
22:53:41  <Samu> i wonder
22:54:51  <LordAro> wway too long
22:54:59  <LordAro> 80chars, ish
22:55:03  <Samu> how am i gonna short this while being descriptive enough
22:55:12  <Samu> i doomed myself
22:58:29  *** Progman has quit IRC
22:59:20  <LordAro> full description is what commit messages are for
23:00:43  <LordAro> 05_no_service_with_missing_hangar.patch
23:00:45  <LordAro> maybe
23:05:16  <Samu> can i still edit the commit message with a text editor?
23:05:28  <Samu> or am i gonna corrupt the patch?
23:07:31  <Samu> this feels like editing mp3 albums
23:08:37  <LordAro> probably
23:08:42  <LordAro> google will tell you
23:08:56  <LordAro> it's been years since i actually used hg, let alone tortoisehg
23:09:37  *** Flygon has joined #openttd
23:14:25  <Samu> oh man, this is so intense, no thx
23:14:26  <Samu> http://knowledgestockpile.blogspot.pt/2010/12/changing-commit-message-of-revision-in.html
23:20:59  <Samu> If a helicopter/airplane needs to be sent to a hangar during a service request, and there are no airports with hangars in the orders (travelling between heliports), or the airplane cannot land (runway too short), a nearby hangar outside the orders will be searched. If the distance to a found hangar is shorter than the distance to the helistation/airport the helicopter/airplane is headed to, the helicopter/airplane is sent to that hangar.
23:21:05  <Samu> must shorten this
23:21:06  <Samu> lol
23:22:41  <Samu> service aircraft at a hangar outside the orders
23:23:48  <Samu> try to service aircraft at a hangar outside the orders
23:24:23  *** Eddi|zuHause has quit IRC
23:24:27  <Samu> seems to fit
23:27:46  *** Eddi|zuHause has joined #openttd
23:28:11  <Wolf01> 'night
23:28:13  *** Wolf01 has quit IRC
23:30:15  *** Wormnest has quit IRC
23:41:38  *** sim-al2 is now known as Guest2819
23:41:39  *** sim-al2 has joined #openttd
23:41:43  *** Tharbakim has quit IRC
23:42:42  <Samu> 12_AircraftEventHandler_AtTerminal__check_at_terminal_if_an_aircraft_needs_automatic_servicing_or_has_a_pending_replace_and_send_it_to_hangar_before_sending_to_takeoff.patch
23:43:59  <Samu> i'll work on shortening file names at another time
23:44:15  <Samu> for now i rather describe them in full
23:45:37  *** Guest2819 has quit IRC
23:48:37  *** Supercheese has joined #openttd
23:50:54  *** Tharbakim has joined #openttd
23:52:11  *** sim-al2 is now known as Guest2820
23:52:12  *** sim-al2 has joined #openttd
23:55:07  *** Thedarkb1 has quit IRC
23:55:41  *** Guest2820 has quit IRC
23:55:50  <Samu> 13_AircraftEventHandler_HeliTakeOff__check if a_helicopter_has_a_pending_replace_and_send_it_to_a_hangar_if_it_just_departed_from_a_heliport.patch

Powered by YARRSTE version: svn-trunk