Log for #openttd on 4th June 2012:
Times are UTC Toggle Colours
00:00:45  *** Pixa [~pixa@] has quit [Ping timeout: 480 seconds]
00:08:09  *** guru3 [] has quit [Ping timeout: 480 seconds]
00:09:37  *** mal2__ [] has quit [Ping timeout: 480 seconds]
00:12:44  *** guru3 [] has joined #openttd
00:32:16  *** KritiK [] has quit [Quit: Leaving]
00:34:31  *** Nat_aS is now known as Nat_AFK
00:37:41  *** Rhamphoryncus [] has quit [Quit: Rhamphoryncus]
00:46:47  *** KouDy1 [~KouDy@] has quit [Quit: Leaving.]
01:17:11  *** pugi [] has quit []
01:34:55  *** cyph3r [] has quit [Quit: Miranda IM! Smaller, Faster, Easier.]
02:05:23  *** Knogle [] has quit [Read error: Connection reset by peer]
02:06:24  *** Knogle [] has joined #openttd
02:16:56  *** Nat_AFK is now known as Nat_aS
02:18:42  *** glx [glx@2a01:e35:2f59:c7c0:7163:5957:446b:b67e] has quit [Quit: bye]
02:30:23  *** Netsplit <-> quits: tparker, Nat_aS, DabuYu, Eddi|zuHause, @Belugas, @orudge, George, jonty-comp, mikegrb, CIA-1,  (+21 more, use /NETSPLIT to show all of them)
02:31:49  *** Netsplit over, joins: HootzMcToke, DDR, kkimlabs, +tokai|noir, Elukka, Eddi|zuHause, Nat_aS, George, @Belugas, CIA-1 (+21 more)
02:32:35  *** mode/#openttd [+v DorpsGek] by ChanServ
03:01:10  *** Elukka [] has quit []
04:34:35  *** telanus [] has joined #openttd
04:36:24  *** Zuu [] has joined #openttd
04:47:32  *** Eddi|zuHause [] has quit []
04:47:47  *** Eddi|zuHause [] has joined #openttd
04:59:15  *** Zuu [] has quit [Ping timeout: 480 seconds]
05:09:08  *** KouDy [~KouDy@] has joined #openttd
05:12:56  *** kkimlabs [~kkimlabs@NYUFGA-WLESSAUTHCLIENTS-01.NATPOOL.NYU.EDU] has quit [Ping timeout: 480 seconds]
05:20:34  *** andythenorth [] has joined #openttd
05:22:56  *** kkimlabs [] has joined #openttd
05:23:36  <andythenorth> buenas dias
05:42:29  *** sla_ro|master [slaco@] has joined #openttd
06:04:23  *** andythenorth [] has quit [Quit: andythenorth]
06:14:24  *** TGYoshi [~TGYoshi@] has joined #openttd
06:51:57  *** LordAro [] has joined #openttd
07:06:33  *** TWerkhoven [] has joined #openttd
07:07:37  *** andythenorth [] has joined #openttd
07:07:49  <andythenorth> how about this for a filename?
07:07:50  <andythenorth> truck-hackler_R-chassis-tandem-7_8-cab-cc1-2_8-body_flat-cc1-5_8-cargo_coils-grey_metal.png
07:11:42  <Eddi|zuHause> there used to be times whent the whole path couldn't exceed 64 characters
07:12:56  <Eddi|zuHause> i remember a parody about a new DOS version that said: "sensation.txt : filenames can now be 9 letters"
07:15:02  *** mal2__ [] has joined #openttd
07:36:10  <andythenorth> meh
07:36:30  * andythenorth dislikes having to passing objects around between simple function calls
07:36:36  <andythenorth> I'd rather they were lazily in scope :P
07:38:35  *** Nat_aS is now known as Nat_AFK
07:43:08  <andythenorth> Eddi|zuHause: FIRS won't be doing dynamic acceptance
07:43:49  *** telanus1 [] has joined #openttd
07:43:58  <andythenorth> the furthest I'm going is randomised cargo production on construction of the Recycling Plant
07:47:35  *** Stimrol [] has quit [Ping timeout: 480 seconds]
07:48:39  *** telanus [] has quit [Ping timeout: 480 seconds]
07:49:01  *** Stimrol [] has joined #openttd
08:13:53  *** roadt [~roadt@] has joined #openttd
08:24:47  *** TGYoshi [~TGYoshi@] has quit [Read error: Connection reset by peer]
08:28:14  *** TGYoshi [~TGYoshi@] has joined #openttd
08:33:51  *** DDR [] has quit [Ping timeout: 480 seconds]
08:42:37  *** perk11 [~perk11@] has joined #openttd
08:43:47  * andythenorth considers a pixel generator for ISO containers
08:48:19  *** mal2__ [] has quit [Remote host closed the connection]
08:59:07  *** andythenorth [] has quit [Quit: andythenorth]
09:23:26  *** Lord_Aro [] has joined #openttd
09:23:57  *** FLHerne [] has joined #openttd
09:29:48  *** LordAro [] has quit [Ping timeout: 480 seconds]
09:30:19  *** LordAro_ [] has joined #openttd
09:33:40  *** frosch123 [] has joined #openttd
09:36:32  *** Lord_Aro [] has quit [Ping timeout: 480 seconds]
09:49:38  *** cyph3r [] has joined #openttd
09:50:21  *** perk11 [~perk11@] has quit [Quit: Miranda IM! Smaller, Faster, Easier.]
09:53:03  *** LordAro_ is now known as lordaro
10:06:33  *** Devroush [] has joined #openttd
10:24:02  *** lordaro [] has quit [Remote host closed the connection]
10:24:15  *** Rhamphoryncus [] has joined #openttd
10:33:14  *** Stimrol [] has quit [Ping timeout: 480 seconds]
10:35:01  *** Stimrol [] has joined #openttd
10:38:05  *** Rhamphoryncus [] has quit [Ping timeout: 480 seconds]
10:46:04  *** Chris_Booth [] has joined #openttd
10:48:24  *** Rhamphoryncus [] has joined #openttd
10:54:17  *** andythenorth [] has joined #openttd
10:54:30  *** LordAro [] has joined #openttd
11:00:02  * andythenorth ponders
11:00:03  <andythenorth> pikk
11:00:07  <andythenorth> nope
11:01:31  <lugo> nice work on CHIPS andythenorth :)
11:01:46  <andythenorth> thanks
11:01:49  <andythenorth> it's nearly done
11:02:01  <andythenorth> v1.0 will not be many months away
11:08:28  <lugo> good to hear that, any hints on what's going to be added?
11:08:54  <andythenorth>
11:08:59  <andythenorth> only 3 open tickets
11:09:23  <andythenorth> CHIPS is intended to be simple, but I'm happy to discuss suggestions
11:15:24  *** Pixa [~pixa@] has joined #openttd
11:15:24  *** LordPixaII [~pixa@] has quit [Remote host closed the connection]
11:16:39  <NGC3982> evening.
11:23:36  * andythenorth wonders if anyone understands stations nfo :P
11:23:54  <NGC3982> nfo? the wiki entry?
11:24:10  <NGC3982> oh, nfo as in the old programming language
11:24:39  <andythenorth> nfo is the only way to do stations afaik
11:25:24  <NGC3982> nfo code is afaik kept in nuclear storage fascilities, deep underground.
11:25:53  <andythenorth> nfo is fine
11:26:02  <NGC3982> or at least that is the feeling that occurs when i read it :-)
11:26:16  <andythenorth> the only problem is that stations work like nothing else, and the newgrf spec is written by someone who either understands it too well, or hardly at all :P
11:26:38  <NGC3982> oh
11:26:50  <NGC3982> how un-quaint.
11:27:13  <NGC3982> how do you rebuild stations then? patch?
11:29:42  <andythenorth> I use the nfo code yexo wrote for me
11:29:49  <andythenorth> and occasionally bang my head on extending it
11:45:27  *** Firartix [~artixds@] has joined #openttd
11:49:30  <NGC3982> ah, i see.
12:25:28  *** glx [glx@2a01:e35:2f59:c7c0:e0e0:a2d0:c714:d301] has joined #openttd
12:25:31  *** mode/#openttd [+v glx] by ChanServ
12:26:52  *** mal2 [] has joined #openttd
12:36:41  <Knogle> Anyone knows how to check if a string contains a certain word in NoGo/squirrel?
12:37:37  * andythenorth looks up squirrel docs
12:38:08  <Knogle> the squirrel docs I can find, isn't of much help :|
12:38:52  <andythenorth> nothing like this?
12:39:07  <andythenorth> if 'a' in mystring: blah
12:39:20  <andythenorth> or if mystring.find('a') != -1: blah
12:39:49  <andythenorth> here you go
12:39:50  <andythenorth>
12:39:57  <andythenorth> it's find()
12:40:06  <andythenorth> returns first index
12:40:13  <andythenorth> that's not a pattern I've seen before
12:41:18  <andythenorth> depending on your context, you might want to consider calling tolower() on the string before searching
12:41:50  <Knogle> thanks a lot :)
12:41:58  <andythenorth> let me know if it worked ;)
12:46:11  <Knogle> find(substr,[startidx])
12:46:31  <Knogle> shouldn't it be find(string,substring,[startidx]) ?
12:46:50  <Knogle> it makes no sense to me
12:48:25  *** mal2 [] has quit [Ping timeout: 480 seconds]
12:48:55  <andythenorth> I've never done any squirrel
12:49:07  <andythenorth> what does string.find(substr) get you?
12:49:19  <Knogle> Oh well, thanks anyway, I'll play around with it.
12:49:23  <Knogle> :)
12:49:23  <andythenorth> string is the object I'm guessing
12:49:31  <andythenorth> object.method(params)
12:49:37  <andythenorth> I could be wrong though
13:00:02  *** Firartix [~artixds@] has quit [Remote host closed the connection]
13:04:11  *** roadt [~roadt@] has quit [Ping timeout: 480 seconds]
13:05:19  *** perk11 [~perk11@] has joined #openttd
13:05:53  *** mal2 [] has joined #openttd
13:06:24  *** |Jeroen| [] has joined #openttd
13:08:12  <Belugas> hello
13:10:50  <andythenorth> lo Belugas
13:14:40  <Belugas> sir andythenorth :)  Saluting you
13:14:51  * andythenorth pixel generates a salute
13:20:00  *** mal2 [] has quit [Ping timeout: 480 seconds]
13:26:36  *** roadt [~roadt@] has joined #openttd
13:32:35  *** andythenorth is now known as Guest2677
13:32:36  *** andythenorth_ [] has joined #openttd
13:32:36  *** andythenorth_ is now known as andythenorth
13:34:22  *** Guest2677 [] has quit [Ping timeout: 480 seconds]
13:34:22  *** LordAro [] has quit [Read error: Connection reset by peer]
13:39:59  <NGC3982> :-O
13:40:47  *** andythenorth [] has quit [Ping timeout: 480 seconds]
13:43:33  *** Elukka [] has joined #openttd
13:43:45  *** andythenorth [] has joined #openttd
13:49:59  *** mal2 [] has joined #openttd
13:52:48  *** Mazur [] has joined #openttd
13:59:02  *** |Jeroen| [] has quit [Quit: oO]
14:01:56  *** Mazur [] has quit [Ping timeout: 480 seconds]
14:03:48  *** mal2 [] has quit [Ping timeout: 480 seconds]
14:05:11  *** perk111 [~perk11@] has joined #openttd
14:05:12  *** Knogle [] has quit [Read error: Connection reset by peer]
14:06:21  *** Knogle [] has joined #openttd
14:08:47  <andythenorth> how did BANDIT get to r524 with no release :o
14:09:21  *** perk11 [~perk11@] has quit [Ping timeout: 480 seconds]
14:09:47  *** HerzogDeXtEr [~Flex@] has joined #openttd
14:10:11  <TinoDidriksen> Commit early, commit often.
14:13:19  *** Mazur [] has joined #openttd
14:13:40  *** pugi [] has joined #openttd
14:16:48  *** HerzogDeXtEr1 [~Flex@] has quit [Ping timeout: 480 seconds]
14:18:45  <NGC3982> can a NewGRF communicate with != openttd software during gameplay?
14:18:56  * NGC3982 has this neat statistics app he wants to implement.
14:19:03  *** perk11 [~perk11@] has joined #openttd
14:19:12  *** perk111 [~perk11@] has quit [Ping timeout: 480 seconds]
14:19:35  *** andythenorth [] has quit [Ping timeout: 480 seconds]
14:21:13  *** andythenorth [] has joined #openttd
14:29:04  <frosch123> gamescripts can communicate with external stuff via the admin port
14:29:38  <andythenorth> can a game script set off a USB victory bell when you win?
14:31:30  <frosch123> yes, it can tell dorpsgek to kick you, which might ring a bell at your side
14:37:13  <andythenorth> "the more I code, the less I understand the code, and the more I grep"
14:54:11  *** Firartix [] has joined #openttd
15:05:03  *** lobster [~lobster@] has joined #openttd
15:06:14  *** perk11 [~perk11@] has quit [Read error: Connection reset by peer]
15:12:10  *** roadt [~roadt@] has quit [Ping timeout: 480 seconds]
15:21:15  <CIA-1> OpenTTD: frosch * r24323 /trunk/ (11 files in 3 dirs): -Codechange: Split Textbuf and associated functions to separate files.
15:21:58  <CIA-1> OpenTTD: frosch * r24324 /trunk/src/ (14 files in 3 dirs): -Codechange: Turn functions dealing with Textbufs into member functions.
15:37:50  * andythenorth does evil
15:38:00  * andythenorth hopes no-one introduces a cargo with label 'DFLT'
15:38:01  <andythenorth> :P
15:39:03  * frosch123 introduces cargo "ANDY"
15:39:16  <andythenorth> I should have used 'BNDT'
15:39:21  <andythenorth> or something
15:39:33  <andythenorth> or '0000'
15:39:51  <frosch123> it's processed into "PXLS"
15:40:19  *** mal2 [] has joined #openttd
15:53:33  *** flaa [~flaa@] has joined #openttd
15:57:47  *** Netsplit <-> quits: Rhamphoryncus, Eddi|zuHause, devilsadvocate, ccfreak2k, Nat_AFK, George, @orudge
15:58:18  *** Netsplit over, joins: @orudge, George, Rhamphoryncus, Eddi|zuHause, Nat_AFK, devilsadvocate, ccfreak2k
15:58:24  *** mode/#openttd [+v orudge] by ChanServ
16:02:59  *** LordAro [] has joined #openttd
16:08:08  *** Progman [] has joined #openttd
16:13:11  *** einKarl [] has joined #openttd
16:20:05  *** Elukka [] has quit []
16:21:48  *** pugi [] has quit []
16:23:05  *** andythenorth [] has quit [Ping timeout: 480 seconds]
16:31:00  *** Elukka [] has joined #openttd
16:38:47  *** tokai|mdlx [] has joined #openttd
16:39:45  *** Nat_AFK is now known as Nat_aS
16:39:47  *** Biolunar [] has joined #openttd
16:44:22  *** tokai|noir [] has quit [Ping timeout: 480 seconds]
16:54:14  *** andythenorth [] has joined #openttd
17:00:22  *** Nat_aS is now known as Nat_AFK
17:05:20  *** Firartix [] has quit [Ping timeout: 480 seconds]
17:06:17  *** supermop [] has joined #openttd
17:06:20  <supermop> hi dudes
17:07:59  <telanus1> hi
17:13:19  <supermop> how's it going?
17:14:31  *** ful-jonas [] has joined #openttd
17:15:46  *** Wolf01 [~wolf01@] has joined #openttd
17:15:58  <Wolf01> hello
17:16:22  <supermop> hi
17:20:46  *** Nat_AFK is now known as Nat_aS
17:21:52  <andythenorth> bonkers
17:21:54  <andythenorth> it works :P
17:23:30  <supermop> trucks work? or stations? or boats?
17:23:47  <supermop> or legos?
17:24:01  <andythenorth> BANDIT pixel generation + insertion into the grf
17:24:12  <andythenorth> I am compositing trucks from cab + chassis + body
17:24:33  <andythenorth> the code has just gone from 'not done' to 'nearly done'
17:24:51  <supermop> on some level i wonder if all that is really less work than doing a grf the straightforward way
17:25:04  <supermop> it does sound more interesting though
17:25:17  <Nat_aS> what kind of trucks will bandit have?
17:25:19  <supermop> and a grf that becomes dull to work on dies
17:25:34  <Nat_aS> and how come HEQS has a logging truck, shouldn't that be in BANDIT?
17:25:43  <Nat_aS> it's a truck not a tractor
17:27:18  *** einKarl [] has quit []
17:28:09  *** ful-jonas [] has quit [Remote host closed the connection]
17:28:33  <Terkhen> hello :)
17:28:58  <Nat_aS> jo
17:37:07  <CIA-1> OpenTTD: translators * r24325 /trunk/src/lang/ (6 files): (log message trimmed)
17:37:07  <CIA-1> OpenTTD: -Update from WebTranslator v3.0:
17:37:07  <CIA-1> OpenTTD: dutch - 26 changes by habell
17:37:07  <CIA-1> OpenTTD: german - 22 changes by Jogio
17:37:07  <CIA-1> OpenTTD: latvian - 11 changes by Parastais
17:37:09  <CIA-1> OpenTTD: lithuanian - 1 changes by RunisLabs
17:37:09  <CIA-1> OpenTTD: polish - 2 changes by wojteks86
17:40:50  *** andythenorth is now known as Guest2703
17:40:51  *** andythenorth [] has joined #openttd
17:40:55  *** Guest2703 [] has quit [Read error: Connection reset by peer]
17:49:40  <andythenorth> Nat_aS: ok, I'll remove the logging trucks
17:49:40  <andythenorth> and the mining trucks
17:49:40  <andythenorth> and the trams can also go, because they're not tractors
17:51:58  <andythenorth> supermop: wrt amount of work.  BANDIT is definitely more complex.
17:52:23  <andythenorth> it has layers of abstraction, which add up to 'complex'
17:52:23  <andythenorth> it's not more work
17:55:25  *** Zeknurn [] has quit [Remote host closed the connection]
17:56:07  *** Zeknurn [] has joined #openttd
17:57:13  <andythenorth> why would I give trucks more than three trailers?
17:57:18  <andythenorth> are there good cases for it?
17:57:30  <andythenorth>
18:00:44  <telanus1> andythenorth: I've only seen trucks with 2 trailers here, regularly, the max is 3 trailers, but they only move short distances
18:01:09  <andythenorth> which continent?
18:01:18  <Nat_aS> the mining trucks fit in HEQS, but the logging trucks could be transfered into BANDIT
18:01:25  <andythenorth> Nat_aS: why?
18:01:40  <Nat_aS> because they are semitrailer tucks,
18:02:32  * Nat_aS shrugs
18:02:48  <telanus1> andy: I'm in Africa Near the bottom
18:03:15  <Nat_aS> if the destinction is "can operate on highway." then logging trucks defiantly belong in Bandit.
18:03:27  <telanus1> I think so tooo
18:04:29  <andythenorth> the mining trucks should also be moved to BANDIT then
18:05:16  <Nat_aS> the mining trucks cannot be on a highway
18:05:26  <Nat_aS> at least not to my knowledge.
18:05:40  <Nat_aS> but logging trucks can and do run on highways.
18:06:42  <andythenorth> not ones with 16 foot wide log bunks and grossing over 120t
18:06:46  <andythenorth>
18:06:59  <andythenorth>
18:07:07  <Nat_aS> well shit
18:07:14  <andythenorth> these are not piddly matchstick loggers
18:07:27  <Nat_aS> to me, they looked like the kind of logging trucks that ruin our highways in pac northwest
18:07:50  <andythenorth> they're the next size up
18:08:07  <Nat_aS> would a smaller/faster version be in BANDIT then?
18:08:10  <supermop> i would also say that in the ideal world of tt, if it ruins highways, it shouldn't drive on them
18:08:49  <Nat_aS> it's the tire chains that ruin the highways
18:09:07  <Nat_aS> our highways are rough because logging trucks with tie chains in the winter run over them
18:10:12  <andythenorth> this is your usual on-highway logger
18:10:26  <andythenorth> and this is the HEQS edition
18:10:58  <andythenorth> this one is...interesting
18:12:27  <telanus1> our small logging trucks:
18:12:34  *** Firartix [] has joined #openttd
18:16:45  *** Chris_Booth [] has quit [Ping timeout: 480 seconds]
18:17:17  <Nat_aS> lol @ tiny tractor
18:20:26  *** LordPixaII [~pixa@] has joined #openttd
18:25:40  *** Pixa [~pixa@] has quit [Ping timeout: 480 seconds]
18:25:53  <telanus1> I think this is the Biggest our logging trucks go:
18:26:10  <telanus1> beyound that they use rail
18:27:21  <Nat_aS> >Abnormal load
18:27:27  <NGC3982> abnormal
18:27:28  <NGC3982> :D
18:27:28  <Nat_aS> abnormaly pathetic
18:27:33  <NGC3982> <3.
18:27:44  <NGC3982> i want a truck that sais "fabulous load"
18:27:53  <NGC3982> and id have george takei drive it
18:28:09  <Nat_aS> Hmm, land trains are intresting
18:28:24  <Nat_aS> I imagine they aren't that good up hills compared to large dumpers
18:28:50  <Nat_aS> and I only really use mining trucks to get to mines up in the mountains
18:28:58  <Nat_aS> and then transfer to a train
18:30:08  <andythenorth> this is correct
18:30:20  <Nat_aS> faster on level ground though
18:30:23  <Nat_aS> and lower running cost.
18:30:31  <andythenorth>  the really fast big mining truck can be used for longer hauls
18:31:05  <Nat_aS> If you have infrastructure maintenance cost on. You'd use it instead of a train.
18:31:18  <Nat_aS> but if that's disabled, trains are probably more cost effective.
18:31:27  *** Pixa [] has joined #openttd
18:32:01  <ccfreak2k> telanus1, what an adorable truck cab
18:32:09  <ccfreak2k> I bet it has an equally adorable engine inside.
18:32:43  <telanus1> the small one?
18:32:52  <Nat_aS> also, Bandit wont have busses will it
18:32:59  <Knogle> meh, squirrel lacks documentation
18:34:02  <Nat_aS> actualy, will three newgrfs use more resources than 1 newgrf with three times as many vehicles?
18:34:06  <Nat_aS> CPU and memory wise?
18:34:23  <Stimrol> hello, is it possible to use like crontab to change the max_client to 0 at serden hours of the day?
18:34:57  <ccfreak2k> Why not just shut off the server
18:35:17  <Stimrol> maybe to prevent password reset forexample
18:36:31  *** LordPixaII [~pixa@] has quit [Ping timeout: 480 seconds]
18:38:12  <Stimrol> I think this is not possible
18:40:30  *** LordPixaII [] has joined #openttd
18:42:16  *** Chris_Booth [] has joined #openttd
18:42:18  *** Zuu_ [] has joined #openttd
18:43:34  <Nat_aS> what about my question
18:43:36  <Zuu_> You can for sure use a crontab to control the server. You just need to do some work to get it done.
18:44:41  <Knogle> andythenorth: I can't get find(substring,[index]) to work, FYI.
18:44:42  *** mal2 [] has quit [Read error: Connection reset by peer]
18:44:49  <andythenorth> Knogle: :(
18:45:06  <andythenorth> I don't have a squirrel interpreter installed, so I can't test
18:45:21  <Zuu_> Admin port is one opion. Another option is to use a autopilot that listens on a pipe for commands. Or just program the autopilot in first place to time a command.
18:45:30  *** Pixa [] has quit [Ping timeout: 480 seconds]
18:45:36  <Knogle> And googling for squirrel help, returns help for SquirrelSQL and SquirrelMail, but not so much for Squirrel scripting :P
18:45:43  <andythenorth> Knogle: Zuu_ writes a lot of squirrel :)  Maybe he can help
18:45:54  <andythenorth> paste your code:
18:46:03  * andythenorth volunteers Zuu_ sorry :P
18:46:09  <Knogle> Zuu_: Do you know how to search a certain word in a string? :P
18:46:21  *** mal2 [] has joined #openttd
18:46:28  <Zuu_> Google on squirrel documentation
18:46:48  <Knogle> I did read the squirrel documentation, over and over.
18:47:03  <Zuu_> Or use the link in our wiki. :)
18:47:14  <Zuu_> Ok
18:47:52  <Zuu_> Check TileLabels. I think it does some string processing.
18:48:01  <andythenorth> Knogle: paste your code...
18:48:08  <andythenorth> whatever you tried so far
18:48:11  <Knogle> andythenorth: There is no code.
18:48:14  <Stimrol> thanks Zuu_ I will look at it
18:48:30  <Zuu_> Also SuperLib.DataStore might contain some code of interest.
18:48:44  <Knogle> thanks taking a look, Zuu
18:49:00  <Stimrol> autopillot and admin port is that something I have to compile into the game?
18:50:07  <Zuu_> TutorialAI contains code to split a string at spaces so that a message can get line breaked nicely if printed on signs.
18:50:39  <Zuu_> Stimrol: no and no
18:51:17  * andythenorth can't believe that find() is complicated
18:51:25  <andythenorth> it's trivial in every language I've encountered
18:51:34  <Knogle> What I really need is to read a sign at a certain tile, but afaik thats no possible, so I have to loop through the signlist and find one that contains a specific word.
18:51:34  <andythenorth> but you have to know what return values you expect
18:51:40  <andythenorth> you also have to account for case
18:51:58  <Zuu_> Check the wiki and or google. I need to go in A minute or two.
18:52:43  *** telanus1 [] has left #openttd [QUIT :Leaving.]
18:53:31  <Zuu_> Knoogle, when looping you can check the location of signs. Eg SCP only regard sigs on one predefined tile.
18:54:06  <Knogle> hm, yes.
18:54:39  <Knogle> it would be easier with a ReadSign(tile) :P
18:54:42  <Knogle> hehe
18:55:00  <Zuu_> Although mind that a tile can hold unlimited amunt of signs ontop of each other.
18:55:16  <Knogle> ew
18:55:40  <Knogle> I guess that'll be impossible to do then.
18:56:07  <Zuu_> Which is why I have SuperLib.Helper.SetSign or so.
18:56:11  <andythenorth> list of signs on the tile?
18:56:16  <andythenorth> loop over that list?
18:56:27  <andythenorth> ReadSigns(tile)
18:57:04  <Zuu_> It enforces that the AI/GS only place one sign at the tile.
18:57:10  <andythenorth> if find('mystring') in ReadSigns(tile) > 0: stuff :P
18:57:12  <Knogle> well, if one tile can contain multiple signs, I'd rather like to be able to list all matching a certain word.
18:57:15  * andythenorth is thinking in python
18:58:46  *** pugi [] has joined #openttd
18:58:59  <Knogle> andythenorth: I tested it with: string = "This is a string"; .. string.find("This",1);
18:59:33  <andythenorth> is string a reserved keyword?
18:59:38  <Knogle> I just get: the index 'string' does not exist
18:59:52  <andythenorth> try starting at 0 btw
19:00:12  <Knogle> same
19:00:25  <Knogle> I tried changing the name to knogle too :P
19:00:28  <andythenorth> and I'd guess you need to do something like
19:00:43  <andythenorth> 'if string.find('substr', 0) != null: stuff'
19:00:52  <andythenorth> or however squirrel syntax goes
19:01:06  * andythenorth has no idea, but it looks like JS / ActionScript to me
19:01:48  <Knogle> well, I still get  the index 'string' does not exist
19:02:00  <Knogle> or whatever name I use
19:02:00  <andythenorth> ach
19:02:20  <Knogle> so it's probably the wrong syntax,
19:02:24  <andythenorth> squirrel is not a google-friendly language name
19:02:31  <Knogle> indeed not!
19:02:42  <Knogle> I've been googling for hours :P
19:02:43  <andythenorth> does openttd use squirrel 2 or 3?
19:02:59  <Knogle> not sure
19:03:31  <andythenorth> meh, macports can't install it
19:05:12  * andythenorth needs a 'getting started with squirrel' doc
19:05:20  <andythenorth> how do I get an interpreter?
19:05:56  <andythenorth> ./bin/sq apparently
19:06:11  * Knogle has no idea
19:07:07  *** cyph3r [] has quit [Quit: Miranda IM! Smaller, Faster, Easier.]
19:09:05  <Terkhen> :P
19:09:13  <Terkhen> andythenorth: just check the AI/GS docs
19:09:28  <Terkhen> besides, OpenTTD source already includes the version of squirrel it uses
19:10:23  *** George [~George@] has quit [Read error: Connection reset by peer]
19:10:44  <andythenorth> gah
19:10:48  <andythenorth> I have to scope vars and crap
19:14:38  <Terkhen> :D
19:15:02  <Sacro> \o/
19:15:09  *** Zuu [] has joined #openttd
19:16:34  *** mahmoud [] has joined #openttd
19:17:47  *** George [~George@] has joined #openttd
19:19:03  *** KritiK [] has joined #openttd
19:19:26  <Zuu> Knogle: local a = "This is my string"; a.find("This", 1)
19:19:30  <Zuu> Does that work?
19:19:54  <Knogle> nope
19:20:00  *** Zuu_ [] has quit [Quit: Zuu_]
19:20:17  *** Zuu_ [] has joined #openttd
19:21:39  *** Zuu_ [] has quit []
19:21:45  *** DOUK [] has quit [Ping timeout: 480 seconds]
19:22:18  <Zuu> hmm, 1 should be 0 for it to work, but I guess you still get a syntax error?
19:22:50  <Zuu> or you can just omitt starting index
19:23:25  <Zuu> remeber that first char is char number 0.
19:26:23  <Knogle> hm, it works, but not as I wanted it to
19:26:29  <Knogle> it returns a number
19:26:55  <Zuu> "returns the index of its first occurrence" (manual)
19:27:01  <Knogle> oh doh.
19:28:02  <Zuu> The documentation is actually not that bad. But it is very consize so you have to read every word of it as the same thing is not told from different angles.
19:28:53  <Knogle> Well, I have a sign that says "Knogle Transport's Town" (and other similar signs), so I have to seach for "Town" and pull "Knogle Transport" from it.
19:29:48  <Knogle> search*
19:32:47  <Zuu> Did your GS place the sign?
19:32:51  <Knogle> yes
19:33:08  <Zuu> In that case, you could just store the information in-memory.
19:33:36  <Zuu> No need to go via signs that some player might remove. Unless its a DiIETY sign, which players can't remove.
19:33:50  <Knogle> it is
19:34:35  <andythenorth> Knogle: declare the substr separately I think
19:34:39  <andythenorth> let me test a bit further
19:36:38  <andythenorth> gah, squirrel's output to stdout lacks linebreaks
19:36:40  <andythenorth> lame
19:36:55  <andythenorth> [probably a good design for reasons I don't understand] :P
19:38:39  <Zuu> Make multiple calls to [AI/GS]Log.Info
19:38:55  <Zuu> Or make a wrapper that detect \n and make multiple calls.
19:39:25  *** DDR [] has joined #openttd
19:39:29  <Knogle> yeah, i just use GSLog.Info and reads the ingame script debugger.
19:40:10  <Zuu> andythenorth: So you are trying to make a GS? Or just playing around?
19:40:46  <andythenorth> Knogle:
19:40:47  *** Firartix [] has quit [Ping timeout: 480 seconds]
19:40:51  <andythenorth> ^ example
19:41:12  <Zuu> andythenorth: print(..) is depricated
19:41:17  <andythenorth> meh
19:41:22  <andythenorth> is that what ::print is for?
19:41:37  <Zuu> GSLog.Info() is what you are supposed to use
19:41:49  <andythenorth> Knogle: bear in mind that is the only squirrel I've ever written :P
19:41:58  <Zuu> and GSLog.Warning() for warnings and GSLog.Error() for errors.
19:42:13  <Zuu> Warings get yellow and errors red in the in-game debugger.
19:42:24  <andythenorth> does that work in my local squirrel interpreter?
19:42:34  <Zuu> No
19:42:35  <andythenorth> can I import GSLog as a module?
19:42:41  <Zuu> I don't think so
19:42:55  <Zuu> OpenTTD uses a patched version of Squirrel 2.2
19:43:28  <Zuu> Not sure if all fixes has been pushed down? (up?) stream to squirrel.
19:45:05  <Zuu> For example there used to be a bug that instances were not guaranteed to be freed exactly at the moment the last reference ran out of scope. As this is critical for eg GSCompanyMode, and other similar classe used in AIs, that was fixed quite some time ago.
19:45:21  <Knogle> Thanks a lot for your help andythenorth and Zuu.
19:45:41  <Knogle> I'll ask my next stupid question tomorrow :P
19:45:49  <Zuu> Knogle: I'm glad I could pass along some knowledge. :-)
19:53:13  <__ln__>
19:53:51  *** valhallasw [] has joined #openttd
19:55:24  <FLHerne> Is there a way to area-convert signals from semaphore to colour-light?
19:55:42  *** Zeknurn [] has quit [Remote host closed the connection]
19:56:23  *** Zeknurn [] has joined #openttd
20:04:45  *** Chris_Booth [] has quit [Ping timeout: 480 seconds]
20:13:41  <Wolf01> 'night
20:13:48  *** Wolf01 [~wolf01@] has quit [Quit: Once again the world is quick to bury me.]
20:21:44  * FLHerne tries asking again :-(
20:25:31  <Zuu> The AI/GS does not appear to be able to choose between semaphore or colour-light. But apart from that there is GSRail.RemoveSignal(tile, front) and GSRail.BuildSignal(tile, front, signal)
20:26:13  <Zuu> No convert signal function what I can see, so one should probably use GSVehicleList to check if if a train is nearby before attempting to do it.
20:27:03  <Zuu> Then implement a way to set two corners of the rectangle to convert via signs.
20:28:07  <Zuu> Additionally, in order for it to work you probably have to set the modern signals date to a year before current date in advanced settings.
20:29:48  *** Progman [] has quit [Remote host closed the connection]
20:47:49  *** Biolunar [] has quit [Quit: All your IRC are belong to us]
20:50:22  * andythenorth thinks sleep time
20:50:27  *** mal2 [] has quit [Read error: Connection reset by peer]
20:50:31  <NGC3982> :o
21:02:52  <frosch123> night
21:02:55  *** frosch123 [] has quit [Remote host closed the connection]
21:07:34  <NGC3982> i just noticed the bird tweets
21:08:50  *** andythenorth [] has quit [Ping timeout: 480 seconds]
21:11:45  <NGC3982> and the profit dings
21:13:21  * FLHerne wonders where to suggest changes to UKRS2/FIRS cargo compatibility
21:13:25  *** mahmoud [] has quit [Quit: Quitte]
21:13:51  <supermop> birds?
21:14:07  <FLHerne> Presflos should definitely take Building Materials, given they're cement tanks in reality :-(
21:18:25  <NGC3982> supermop: yes, the in-game bird sounds.
21:31:29  *** kais58 [] has joined #openttd
21:36:27  <Terkhen> good night
21:36:54  *** mal2 [] has joined #openttd
21:38:27  *** valhallasw [] has quit [Quit: leaving]
21:39:10  *** Nat_aS is now known as Nat_AFK
21:39:11  <NGC3982> planetmaker: i know this might be right up your alley, though unrelated to ottd. i recently read an article about nasa predictions regarding possible star collisions when andromeda and the milky way collide. the article stated that (loosely quoted) "1-4 stars may collide".
21:39:27  <NGC3982> the number of stars in the milky way is afaik around 3-400 billion
21:40:06  *** flaa [~flaa@] has quit [Quit: leaving]
21:40:13  <NGC3982> it surely tells us alot about how empty galaxies are.
21:40:30  *** sla_ro|master [slaco@] has quit [Quit: DANGER is OFFLINE DANGER]
21:45:28  <Eddi|zuHause> i'm thinking someone should provide a "Brocken Scenario", just for the fun of everybody complaining :p
21:46:20  <Eddi|zuHause> (with "Brocken" being the highest mountain in the "Harz" mountain range, the northernmost mountain range in germany)
21:49:13  *** TGYoshi [~TGYoshi@] has quit [Quit: Popidopidopido]
21:51:39  *** TWerkhoven [] has quit [Quit: He who can look into the future, has a brighter future to look into]
21:54:27  *** mal2 [] has quit [Ping timeout: 480 seconds]
21:55:16  <Eddi|zuHause> (see also
21:59:49  <supermop> i never knew the game had ambient sounds
22:02:14  *** cyph3r [] has joined #openttd
22:02:58  <supermop> i always play with sound off due to level crossings
22:04:16  <supermop> in europe, do trains use their horn when passing a platform at speed?
22:09:44  *** HootzMcToke [] has quit [Remote host closed the connection]
22:09:53  *** HootzMcToke [] has joined #openttd
22:12:22  *** Chris_Booth [] has joined #openttd
22:13:33  <NGC3982> in sweden, they only use the horn at unattended crossings
22:13:41  <NGC3982> crossings without moving bars, that is.
22:13:49  *** FLHerne [] has left #openttd []
22:13:58  <NGC3982> usually country-side
22:28:06  <Mazur> NGC3982, here in hte Netherlands only in specific places, or their horns would overheat and explode.
22:28:58  <Rubidium> what is "at speed" anyway?
22:29:17  <Rubidium> > 150 km/h?
22:30:40  <supermop> i was just thinking about train sounds
22:31:25  <supermop> typically you'd hear the horn at level crossings, which gets annoying in game, or in certain rare cases (workers on the line) that never occur in game
22:31:50  <Rubidium> nah, then someone is blowing his/her whistle
22:32:53  <supermop> on the subway here you only hear it in work zones, or when a train passes a station platform without stopping (also rare, as an express would be on a separate track)
22:33:53  <supermop> some mainline trains ring a bell when pulling into or out of a station they stop at
22:35:17  <supermop> i'd like to only rarely hear a horn if i played the game with sound on
22:35:34  *** adamkex_ [] has quit [Ping timeout: 480 seconds]
22:37:07  <Mazur> Rubidium, I thought it was 135 km/h.
22:37:43  <Rubidium> Mazur: same idea ;)
22:38:51  <Rubidium> no platforms can/may be passed at 135 km/h
22:39:50  <Mazur> They'll prolly slow down to a crawling 100.
22:39:51  *** adamkex [] has joined #openttd
22:40:11  <Rubidium> well, most max track speeds are 130 km/h
22:40:38  <supermop> 100 kmh would still be fast for a subway train
22:40:41  <Rubidium> except e.g. Amsterdam Bijlmer - Utrecht, though the platforms are connected to the dedicated "stop train" track
22:40:52  <Rubidium> and the through track has no platforms
22:41:06  <supermop> Rubidium: that is the most common case here
22:41:10  <Rubidium> the HSL has no stations/platforms/stops
22:41:39  <Zuu> At my local station they removed the through track in order to gain wider plattforms to be able to host all people getting on/off cummuting trains.
22:41:41  <Rubidium> and the Hanzelijn has sort of sidings, but without high speed swithes, so max speed there would be 80 km/h
22:41:51  <supermop> the main commuter and subway lines are all 4-tracked
22:42:06  <supermop> with local platforms only on the local tracks
22:42:17  <Rubidium> the NL barely has subways
22:42:49  <Rubidium> and if they do, they're crappy "tram under ground" kind of subways instead of proper ones where a significant speed can be reached
22:43:35  <supermop> out in the long distance amtrack lines its just one track, and no local/express distinction
22:43:53  <supermop> for political reasons those trains often stop at every station
22:45:50  *** pugi [] has quit []
22:46:03  <Mazur> From my misspent youth in seem to remember trains passing platforms at something like 50 km/h, I'd guess.  A fair clip, but much the same range as cars in the city.
22:46:26  <Rubidium> Mazur: what station?
22:46:40  <Mazur> Den Haag Mariahoeve.
22:46:42  <Rubidium> as there are plenty of stations where the local track speed is limited to 40 km/h
22:46:54  *** Zuu [] has quit [Quit: Leaving]
22:47:27  <Mazur> s/in/I/ in the second to last of my sentences.
22:48:43  <Mazur> Rubidium, over here no city is big enough to warrant proper subways.
22:48:53  <Rubidium> that smells like a place where 40 km/h might be enough
22:49:10  <Rubidium> Mazur: but what is a proper subway?
22:49:20  <Mazur> Paris, for instance.
22:49:24  <Mazur> ?
22:49:39  <Rubidium> there the subway is totally separated from the rest
22:49:56  <Rubidium> in Japan the subway is just a normal train running underground
22:50:09  <Rubidium> some are "express" or "rapid express"
22:50:18  <Rubidium> imo that's the better solution
22:50:49  <Rubidium> so you get a "rapid express" from Utrecht to Zaandam that stops at Bijlmer and Centraal
22:51:00  <Mazur> Den Haag Mariahoeve is/was on hte line from Rotterdam through the Hague to Amsterdam, with international traffic.  So speed was of the essence even back in the seventies.
22:51:14  <Rubidium> a "express" that stops at Bijlmer, Muiderpoort, Centraal, .... (the current stop train)
22:51:38  <Rubidium> and the normal subway that starts from Gein or so and goes to the other side of Amsterdam
22:52:08  <Rubidium> *that* would make things more useful
22:52:16  *** Devroush [] has quit []
22:52:42  <Rubidium> and can remove those massive dikes through cities with rail on top of them
22:54:46  <Mazur> Noone can remove massive dikes is they don't want to.
22:54:56  <Mazur> s/is/if/
22:57:35  *** supermop [] has quit [Quit: supermop]
23:02:19  *** Firartix [] has joined #openttd
23:23:07  *** LordAro [] has quit [Quit: Leaving]
23:29:53  <Eddi|zuHause> in Bitterfeld station, trains pass at >200km/h speed
23:30:03  <Eddi|zuHause> and they don't blow their horns
23:30:48  <Eddi|zuHause> speed may temporarily be lowered to 160km/h currently, but i'm not entirely up to date
23:32:51  *** Chris_Booth [] has quit [Quit: ChatZilla [Firefox 13.0/20120531155942]]
23:45:28  *** Nat_AFK is now known as Nat_aS

Powered by YARRSTE version: svn-trunk