IRC logs for #openttd on OFTC at 2012-05-22
⏴ go to previous day
02:06:12 *** Zeknurn has joined #openttd
03:51:27 *** Maarten has joined #openttd
03:53:22 *** Maarten has joined #openttd
04:37:06 *** telanus has joined #openttd
04:56:24 *** Eddi|zuHause has joined #openttd
04:59:08 *** telanus1 has joined #openttd
06:04:06 *** valhallasw has joined #openttd
06:16:07 *** sla_ro|master has joined #openttd
06:25:07 *** LordPixaII has joined #openttd
06:41:17 *** LordPixaII has joined #openttd
06:45:14 *** TWerkhoven[l] has joined #openttd
06:55:40 *** LordPixaII has joined #openttd
07:28:39 *** Nat_AFK has joined #openttd
07:29:15 *** Nat_AFK is now known as Nat_aS
07:30:18 <Elukka> new try on the falcon 9 launch
07:51:14 <planetmaker> I'd say 'congratulations'. Seems to have worked :-)
08:10:22 <Elukka> i love how genuinely excited they were
08:14:50 *** brambles has joined #openttd
08:22:22 *** Firartix has joined #openttd
08:25:19 *** frosch123 has joined #openttd
08:42:56 *** AD is now known as Guest952
08:53:24 *** Hazzard is now known as Hazzard_AFK
09:08:37 *** FlyingFoX has joined #openttd
09:14:34 *** George is now known as Guest955
09:17:35 *** FLHerne has joined #openttd
09:27:26 *** Nat_aS is now known as Nat_AFK
09:27:56 *** Devroush has joined #openttd
10:04:48 *** Hazzard has joined #openttd
10:24:36 *** KenjiE20 has joined #openttd
10:37:02 *** Hazzard has joined #openttd
10:45:19 <krinn> is there a way to read an event without poping the event itself or poping it but a way to reinsert it after
10:47:15 <frosch123> i doubt that, but you can ofc maintain your own queue
10:49:28 <krinn> couldn't catch it as this will remove it
10:49:54 <krinn> i'm a lib, if i catch it, my "hosting" script will not catch it and it might need it
10:50:36 <frosch123> ah, well, then i guess you can only offer some interface function which the host script has to pass all events to
11:02:13 *** Rhamphoryncus has joined #openttd
11:21:34 <rails> krinn: cant you catch the event then pop it yourself?
11:21:59 <rails> catch event, then call the even again, pushing it back out
11:24:40 <krinn> once pop, i can't push it back
11:25:01 <krinn> and if i pop it, my hosting script will not get it
11:26:16 <krinn> the first that pop it remove it, so me or the hoster will not get it
11:38:56 <krinn> frosch123, if i hookup EventController to my own function (that will of course return back the event), should works no ?
11:40:27 <frosch123> you could do that :)
11:40:36 <frosch123> just overwrite it with your own one
11:41:00 <krinn> yep just overwrite EventController.GetNextEvent, grab the value and return value
11:43:16 <krinn> frosch123, converting the event instance discard the event or the event is distroy by GetNextEvent ?
11:44:19 <frosch123> the event is available as long as there is an AIEvent instance referring to it
11:45:22 <Eddi|zuHause> why is it, whenever i have the choice between typing "quit" or "exit" in a program, i always try the wrong one first? :p
11:45:48 <krinn> so i could event1=AIEventController.GetNextEvent(); event2=event1; event1 convert/read/use the event and return event2 so the hoster won't see a difference?
11:46:26 <krinn> eheh nice, if it work, it will solve my problem
11:53:38 *** tokai|mdlx has joined #openttd
12:02:13 <NGC3982> i have completely forgot everything i learned in the nml tutorial
12:15:26 *** AD is now known as Guest965
12:21:40 <planetmaker> nml is a programming language for NewGRFs
12:29:43 *** Hazzard has joined #openttd
12:37:52 *** Miguelzinho has joined #openttd
12:46:15 *** Biolunar has joined #openttd
13:00:30 *** Chris_Booth has joined #openttd
13:19:57 *** TGYoshi has joined #openttd
14:18:38 *** HerzogDeXtEr has joined #openttd
14:50:14 *** tokai|noir has joined #openttd
14:50:14 *** ChanServ sets mode: +v tokai|noir
15:02:17 *** TWerkhoven[l] has joined #openttd
15:12:59 <krinn> i have success hook GSEventController.GetNextEvent() to another function but i'm hitting a loop while trying to fetch the result from the function inside mine
15:13:34 <krinn> i was thinking ::GSEventController.GetNextEvent() would call the real function and not mine
15:14:47 *** CornishPasty has joined #openttd
15:23:01 <frosch123> krinn: you need to do something like "_GetNextEvent <- GetNextEvent" before defining the new function
15:23:11 <frosch123> take a look at the compatibility scripts. they do such stuff a lot
15:24:25 <krinn> looking at it, thank you frosch123
15:26:02 <krinn> ok got the picture, trying
15:31:21 <krinn> nope it fail, it restore the main function
15:37:31 *** sla_ro|master has joined #openttd
15:41:33 *** Djohaal has joined #openttd
15:43:10 <krinn> oh wait, looks like it works, need to reload the GS twice time :)
15:43:41 <krinn> ahah yes, working, thank you frosch123 :)
15:47:18 *** Progman has joined #openttd
15:56:06 *** andythenorth has joined #openttd
15:56:16 <krinn> now the lib can process events and pass them back and the hosting script didn't even notice it
15:57:23 <andythenorth> cb3A - industry window text
15:57:31 <andythenorth> can it be fixed?
15:57:46 <andythenorth> or if I fix it, can I have a commit?
16:06:50 <andythenorth> cb3A isn't broken, it's incomplete
16:06:57 <andythenorth> the production cb is broken
16:07:09 <andythenorth> it causes the industry window to show possibly useless extra text
16:07:18 <andythenorth> cb3A is one option for fixing that
16:07:24 <andythenorth> maybe it's a sticking plaster, dunno
16:09:24 <andythenorth> allowing cb3A to set a bit that cleared all text from the industry window might be useful
16:09:39 <andythenorth> or setting a flag on industry, or on production cb
16:14:38 <andythenorth> I don't mind writing my own industry window text to handle things like 'accepted cargo'
16:14:59 <andythenorth> but I do not like much this silly 'cargo waiting to be processed' stuff
16:19:05 *** Nat_AFK is now known as Nat_aS
16:19:08 <planetmaker> but that's not related to the industry text callback at all, andythenorth
16:20:06 <planetmaker> it's, as you note, added by the prod. callback
16:23:27 <andythenorth> so the question is which is the more useful fix?
16:23:52 <andythenorth> stop the production cb breaking things, or make cb 3A more powerful and use it to overcome the breakage ?
16:24:30 <andythenorth> or do nothing, which is also valid and useful
16:29:37 <planetmaker> I could imagine to simply add a misc_flag
16:32:24 <planetmaker> or maybe add the last of the CB flags in prop. 22
16:33:12 <planetmaker> hm, nooo.... not prop 22. Feels wrong
16:33:52 <andythenorth> although I can see why you suggested it
16:34:07 <andythenorth> prop 1A would do
16:34:18 <planetmaker> was my 2nd thought. Maybe yes
16:34:22 <andythenorth> the strange thing is that setting this flag without enabling cb 3A is nonsense
16:35:02 <planetmaker> yup. But there's no way to return the callback with a special bit set. afaik
16:35:11 <planetmaker> as it would break some return values
16:43:48 <andythenorth> frosch123: seems plausible
16:43:59 <andythenorth> I could test a patch with FIRS
16:44:05 <frosch123> though it make no obvious decision whether the headling "cargo to be processed" shall be displayed
16:45:24 <planetmaker> Sth like that, yes
16:45:26 <andythenorth> returning 0800 also clears that?
16:45:38 <frosch123> i guess it would be displayed whenever all input cargos return 401
16:45:59 <frosch123> andythenorth: 0800 means draw text D000
16:46:07 <frosch123> which will result at least in an empty line
16:46:17 <frosch123> 401 means skip line
16:48:48 <andythenorth> so what can I return to clear all the boilerplate text?
16:48:52 <andythenorth> and provide my own?
16:51:41 <frosch123> that cb is called once for each input and each output cargo
16:51:54 <frosch123> you can hide some, or all, or display your own text while still using the headlines
16:52:37 <frosch123> it would need checking how useful a complete custom text actually is while still using the same headline
16:53:03 <frosch123> but then, i do not know your original problem with the default text :p
16:54:52 <planetmaker> frosch123: the "problem" is that the text "cargo remaining to be processed: ..." is pointless with FIRS
16:55:08 <planetmaker> but it uses the CB which triggers that line
16:55:51 <frosch123> what's pointless about it?
16:56:02 <planetmaker> it will always be 0
16:56:39 <frosch123> ah, so one use case would be to return 401 for all cargos which are processed immedatiely
17:28:26 *** FLHerne has joined #openttd
17:30:52 *** Nat_aS is now known as Nat_AFK
17:34:32 *** Nat_AFK is now known as Nat_aS
17:40:54 <Nat_aS> hey, is there a conditonal order jump that depends on if a specific cargo is avalable at a specific station?
17:41:16 <Nat_aS> like could you have a food train on an island with a food plant but no factories, that gets goods imported by boat about once a year
17:41:59 <Nat_aS> it would not be worth it to have a goods train on that island, but could you set the food train to check to see if goods are avalable at the port, and refit itself to goods untill they are all distributed, then go back to carrying food?
17:45:34 <CIA-1> OpenTTD: translators * r24266 /trunk/src/lang/ (latvian.txt swedish.txt):
17:45:34 <CIA-1> OpenTTD: -Update from WebTranslator v3.0:
17:45:34 <CIA-1> OpenTTD: latvian - 5 changes by Parastais
17:45:34 <CIA-1> OpenTTD: slovenian - 2 changes by
17:45:34 <CIA-1> OpenTTD: swedish - 17 changes by Joel_A
17:50:28 * andythenorth is beaten by the svn log
17:50:36 <andythenorth> I know I have r 6860
17:50:54 <andythenorth> but I can't figure out how to show the commit for r6860
17:51:23 <andythenorth> it seems I have to be in a specific directory?
17:51:32 <andythenorth> but I don't know which directory the commit changed
17:51:45 <frosch123> the use the toplevel svn url
17:52:02 <andythenorth> I'll have to go look that up :)
17:52:02 <frosch123> svn diff -c6860 svn://svn.openttd.org
17:52:17 <andythenorth> this isn't openttd, but the principles will be the same
17:52:35 <NGC3982> life is baking bread in your underwear, watching top gear and play on a oh so slow ttd server.
17:52:58 <frosch123> andythenorth: svn is more than half as old as cvs, so what do you expect? :p
17:53:07 <andythenorth> I expect to rtfm ;)
17:53:14 <andythenorth> which hasn't yet produced the answer
17:54:08 <andythenorth> apparently the commit messages are "------------------------------------------------------------------------"
17:56:30 <andythenorth> I can get the diff ok for these revs
17:59:32 <andythenorth> suggestion from frosch solved it ;)
18:05:46 <andythenorth> live axle with coil springs, or unsprung swing axles?
18:06:03 *** Chris_Booth has joined #openttd
18:06:39 <Terkhen> wine has been improved a lot
18:06:56 *** Zeknurn has joined #openttd
18:06:58 <Terkhen> I'm surprised at how efficient it is now
18:08:08 * FLHerne needs to try it again sometime
18:08:29 <FLHerne> I spent a long time trying to use it before, and gave up in frustration :-(
18:08:56 <Terkhen> two years ago I was barely able to open Team Fortress 2 in directx 8 mode and everything set to low, now I can easily run Portal 2 with default settings
18:11:19 <Terkhen> (with the same computer of course)
18:15:29 <FLHerne> Mmm. Age of Empires II?
18:19:27 *** Progman has joined #openttd
18:23:43 <Terkhen> if I can run a game from last year you should have no problems with running older games
18:26:37 * NGC3982 hands bread to the channel
18:26:46 <NGC3982> code, you peasants! code!
18:29:30 <planetmaker> void moo() { print("moo!"); } <-- your code ;-)
18:30:04 *** mahmoud has joined #openttd
18:33:00 *** NataS is now known as Nat_AFK
18:34:16 *** Nat_AFK is now known as NataS
18:38:31 *** Biolunar has joined #openttd
18:39:44 *** Alberth has joined #openttd
18:39:44 *** ChanServ sets mode: +o Alberth
19:07:26 *** TWerkhoven has joined #openttd
19:32:11 *** Firartix has joined #openttd
20:03:26 * FLHerne finds the lack of KPovModeler development worrying
20:07:59 <FLHerne> Yeah, but GUIs are easier to learn :D
20:10:06 <Alberth> did you try blender? :D
20:11:36 <andythenorth> I could never model with meshes
20:11:43 * FLHerne doesn't like meshes at all
20:11:47 <andythenorth> I end up with polys stuck everywhere
20:11:58 <andythenorth> I used to draw splines in illustrator, then extrude
20:11:58 <FLHerne> Also, KPM takes ages to compile
20:12:08 <andythenorth> extruding splines along splines :P
20:18:04 <andythenorth> is this patch any good?
20:18:08 <andythenorth> I am not competent to read it
20:18:15 <andythenorth> but I think it will fail with industry newgrfs
20:18:58 <Alberth> no idea about the latter, but the former is not convincing imho
20:20:59 <Alberth> it allocates a few uints and frees them again for every delivery, if you look at use of 'smallest' and 'largest' functions defined at the top, you will notice they can easily be combined, and the case of 1 industry is not done in a smart way
20:21:28 <Alberth> the latter is not entirely clear, but I'd think you'd have a special case to drop the balancing code there
20:21:48 <Alberth> and that case seems to be missing :)
20:22:24 <Alberth> oh, and the usual breaches of coding style rules :)
20:22:51 <Alberth> how do you think it will fail?
20:23:44 <andythenorth> it will create a positive feedback loop
20:23:53 <andythenorth> if I've understood his idea correctly
20:24:10 <andythenorth> supplying 1 unit of cargo to industry won't guarantee any output
20:24:26 <andythenorth> I didn't read the patch though :P
20:25:00 <Alberth> oh, good point, I didn't consider the global idea, but you could be right.
20:25:42 <Alberth> I didn't read it either, more globally glanced over it, it seems to be very lengthy for some reason I don't understand
20:26:14 <Alberth> I am also not convinced it's a good idea
20:26:26 <andythenorth> I would like the issue solved
20:26:35 <andythenorth> but not sure how it can be done well
20:26:43 <andythenorth> I thought round-robin would be fairest
20:26:45 <andythenorth> no complexity :P
20:27:26 <Alberth> it happens so often to have several industries with the same cargo near each other?
20:27:51 <Alberth> I thought it mostly happens for people building mega dump stations
20:28:12 <andythenorth> happens to me :)
20:29:10 <andythenorth> but YACD is unsolved in other respects :P
20:29:11 <Alberth> lower the number of industries :)
20:29:42 * Alberth made a note about looking at the patch
20:30:29 <andythenorth> store a list of industries that can currently accept cargo
20:30:35 <andythenorth> pop the first one
20:30:40 <andythenorth> stick it back on the end of the list
20:30:45 <andythenorth> deliver cargo to that one
20:31:00 <andythenorth> next tick, next industry
20:31:08 <andythenorth> repeat ad-infinitum
20:31:09 <Alberth> quite doable if you have 1 station :p
20:31:27 <andythenorth> dunno what to do when industry acceptance changes frequently
20:31:37 <andythenorth> that would make the list quite variable
20:32:13 <Alberth> don't make such industries :p
20:32:30 <Alberth> ok, gtg, good night andy
20:37:32 * FLHerne needs multi-station acceptance for FIRS supplies
20:38:00 <andythenorth> overlapping farms?
20:38:57 <FLHerne> Also, would a 'shipyard' industry work in combination with a gamescript?
20:39:18 <FLHerne> It could magic up random ships, based on the production level :P
20:39:41 <FLHerne> Or not, seeing as gamescripts probably can't do that...
20:47:43 <andythenorth> gamescripts can't do that :P
20:47:47 <andythenorth> it's not a bad idea though
20:48:00 <CornishPasty> Make it happen andythenorth
20:48:05 <FLHerne> They should be able to then :P
20:48:06 <andythenorth> in games like Railroad Tycoon, unlocking vehicles via cargo delivery challenges is valid
20:48:20 <andythenorth> I am the wrong person for GS
20:48:26 <andythenorth> I have no idea how it works at all
21:30:01 *** ratastas has joined #openttd
21:30:30 <ratastas> tu puedes ablar español
21:31:32 <ratastas> you can ablate Spanish
21:31:44 <ratastas> you can speak Spanish
21:32:30 <ratastas> alguien abla español
21:32:35 <ratastas> you can speak Spanish
21:34:27 <NGC3982> ratastas: muy poco espanol aqui.
21:34:53 <NGC3982> ingles es el idioma admitido.
21:35:05 <planetmaker> well. Please take the Spanish to private conversation
21:35:15 <__ln__> no hablamos español aquí. solamente inglés.
21:35:16 <NGC3982> as i said, english is the allowed language.
21:50:15 *** NataS is now known as Nat_AFK
22:12:15 *** Hazzard has joined #openttd
22:16:54 *** Prof_Frink has joined #openttd
continue to next day ⏵