IRC logs for #openttd on OFTC at 2010-02-07
⏴ go to previous day
00:04:23 *** Rubix`` has joined #openttd
00:24:27 <PeterT> Wow, NekoMaster is very annoying
00:24:39 <PeterT> he made his own topic for his Windows/Linux builds
00:24:53 <PeterT> and then he uploads a patch created by ME and didn't give any credit
00:25:08 <PeterT> I mean, if you're going to be lazy, at least credit the person doing all the work
00:32:06 <Ammler> hmm, is tt-forums Eddi Eddi|zuHause?
00:33:24 *** Eddi|zuHause has joined #openttd
00:39:12 <sparr> there is a high frequency whine in the steam engine sound effects. can anyone verify that?
00:57:44 *** welshdragon has joined #openttd
01:14:55 <peter1138> sparr, in which sound set?
01:29:01 <Eddi|zuHause> Ammler: how many years have you been here now?
01:31:40 <Ammler> sorry Eddi|zuHause :-)
01:35:53 <sparr> peter1138: opensfx. can GRFs have sounds?
01:36:08 <SpComb^> why is Eddi|zuHause not Eddi?
01:36:16 <Ammler> no, but sample.cat can
01:36:45 <Ammler> SpComb^: weil er zu Hause ist ;-)
01:36:49 <sparr> i'm pretty sure i'm using opensfx
01:37:00 <sparr> and the whining is definitely only present with the steam puff sounds
01:37:04 <sparr> acceleration and constant motion
01:37:38 <Eddi|zuHause> SpComb^: the name "Eddi" is frequently taken on IRC networks, hence the addition...
01:37:55 <glx> sparr: opensfx is a sample.cat replacement
01:38:09 <glx> maybe you are using UKRS too
01:38:25 <Eddi|zuHause> of course GRFs can have sounds, too
01:38:56 <thomas001> Eddi|zuHause, but you are the eddi which seems to be in every 2nd irc channel i visit ;)
01:39:25 <sparr> ok, well, the sound problem i have is with the GRF set currently in use on Jonty's IS 2.1.1 server
01:39:28 <Eddi|zuHause> i'm only in like 5 channels...
01:39:40 <sparr> I'd be happy to try to narrow down the source of the sound if I knew how
01:40:23 <Eddi|zuHause> UKRS is the only set i know that contains sounds, but maybe that has changed
01:41:51 *** KenjiE20|LT has joined #openttd
01:42:55 <Ammler> sparr: start a game without, create streams
01:43:10 <Ammler> then load ukrs and check stream
01:44:03 <sparr> ok will do, later. will return with more info.
01:46:10 *** mib_oa3wic has joined #openttd
01:56:17 *** Eddi|zuHause has joined #openttd
02:09:19 *** Phoenix_the_II has quit IRC
02:24:54 *** Rubix`` has joined #openttd
02:26:51 *** Coco-Banana-Man has quit IRC
02:55:43 *** sunk is now known as sunkan
03:07:43 *** Rubix`` has joined #openttd
03:51:50 *** Rubix`` has joined #openttd
04:07:51 *** Phoenix_the_II has joined #openttd
04:20:12 *** Rhamphoryncus has joined #openttd
04:20:12 *** Belugas has joined #openttd
04:20:12 *** lobstar has joined #openttd
04:20:12 *** TrueBrain has joined #openttd
04:20:12 *** Kovensky has joined #openttd
04:20:12 *** mikegrb has joined #openttd
04:20:12 *** resistance.oftc.net sets mode: +o Belugas
04:20:26 *** ChanServ sets mode: +v Belugas
04:25:30 *** Rhamphoryncus has joined #openttd
04:25:30 *** Belugas has joined #openttd
04:25:30 *** lobstar has joined #openttd
04:25:30 *** TrueBrain has joined #openttd
04:25:30 *** Kovensky has joined #openttd
04:25:30 *** mikegrb has joined #openttd
04:25:30 *** resistance.oftc.net sets mode: +o Belugas
04:25:46 *** ChanServ sets mode: +v Belugas
04:45:39 *** Phoenix_the_II has quit IRC
06:35:25 *** roboboy has joined #openttd
07:16:01 *** DaleStan has joined #openttd
07:21:55 *** Terkhen has joined #openttd
07:37:17 <ccfreak2k> Well, I found where sdl-config probably should go.
07:37:25 <ccfreak2k> I just need to make configure look for it there.
07:53:03 *** roboboy has joined #openttd
07:53:39 <peter1138> ccfreak2k, --with-sdl=/path/to/sdl-config?
07:53:58 <ccfreak2k> Yeah I'm doing that, but there's also png-config and whatever in $PORTLIBS/bin.
07:54:14 <ccfreak2k> And the base_rules makefile sets up the paths, so I'll need to import that.
07:58:29 <ccfreak2k> What I'll do is set Makefile.src.in to assume the presence of libz and whatever else, since they're all available in this setup.
08:04:52 <ccfreak2k> I bumped the OpenTTD Wii thread with some relevant information.
08:11:53 *** ChanServ sets mode: +v tokai
08:20:39 *** HerzogDeXtEr1 has joined #openttd
08:53:58 *** Alberth has joined #openttd
09:21:11 *** |Jeroen| has joined #openttd
09:25:41 *** Hackykid has joined #openttd
09:27:30 *** Polygon has joined #openttd
09:39:04 *** Progman has joined #openttd
09:41:06 *** Grelouk has joined #openttd
09:47:04 *** frosch123 has joined #openttd
09:53:02 *** Biolunar has joined #openttd
10:11:00 <kd5pbo> So, I just wrote an IRC wrapper.
10:11:09 <kd5pbo> Where would be the appropriate place to post it?
10:11:28 *** Cybertinus has joined #openttd
10:11:57 *** valhallasw has joined #openttd
10:12:06 *** Coco-Banana-Man has joined #openttd
10:14:15 <kd5pbo> I just put it together tonight, though.
10:14:22 <kd5pbo> Probably could use some testing.
10:14:37 <kd5pbo> Any reason not to put it on google code?
10:22:31 <Ammler> kd5pbo: I am looking forward to checkout ;-)
10:22:44 *** Hackykid has joined #openttd
10:23:55 <Ammler> morning andythenorth :-)
10:24:33 * andythenorth wonders where newgrf properties for industry tiles are in src (searching)
10:24:41 <kd5pbo> Ammler: I'm documenting at the moment.
10:25:03 <Eddi|zuHause> andythenorth: what about newgrf_industrytiles.cpp
10:27:02 * andythenorth that would be the obvious place to look....I need more tea clearly
10:32:46 <kd5pbo> Anybody have any experience with svn vs mercurial?
10:32:51 <kd5pbo> I've only used svn in the past.
10:35:43 <Ammler> python script? python vcs :-)
10:35:56 <andythenorth> kd5pbo: the difference is mostly sociological
10:36:09 <kd5pbo> andythenorth: What do you mean?
10:36:21 <andythenorth> svn is better for large collaboration projects as it encourages more frequent small commits that can be peer reviewed by other developer
10:36:35 <Ammler> andythenorth: not svn <-> hg
10:36:59 <frosch123> [11:26] * andythenorth wonders where newgrf properties for industry tiles are in src (searching) <- newgrf.cpp
10:37:44 <kd5pbo> Too many licenses to choose from.
10:38:07 <kd5pbo> I need one that's four lines long and says something like "If you make any money off of this, I get a cut."
10:38:13 <andythenorth> frosch123: win, thanks
10:41:09 <andythenorth> kd5pbo: ummm.....just use the GPL and don't worry about it?
10:41:24 <kd5pbo> Yeah, but then I'd have to go and read through it all.
10:42:23 <frosch123> andythenorth: rename it to special_flags, introduce an enum for the existing value and post that to flyspray :)
10:43:00 <frosch123> then add your own item to the enum
10:43:31 <Ammler> kd5pbo: don't think google hosts a "nc" license
10:43:59 <kd5pbo> I'll go with MIT and add a clause.
10:44:06 <andythenorth> frosch123: rename which part to special_flags? animation_special_flags?
10:44:42 <frosch123> uint16 callback_res = GetIndustryTileCallback(CBID_INDTILE_ANIM_NEXT_FRAME, HasBit(itspec->animation_special_flags, 0) ? Random() : 0, 0, gfx, ind, tile); <- there is currently only one place using it. and that one uses "0" instead of an enum
10:44:50 <kd5pbo> I doubt there'll be anybody wanting to steal something I put together in five hours, anyways.
10:45:36 <Ammler> if you need to aks, which license to take, writing your own license is a bad idea.
10:46:14 <Rubidium> writing your own license is a bad idea in almost all cases, if not all cases
10:52:11 <ccfreak2k> Just make it public domain.
10:52:45 *** oskari89 has joined #openttd
10:53:04 <andythenorth> public domain is bollocks, it doesn't ensure code is reusable....but it's an old argument. search the forums....you'll find about 5 threads of the same argument :o
10:55:20 <kd5pbo> Well, it works so far, anyways.
10:56:24 <kd5pbo> I'll put it in the forums as soon as I have a wiki and a better description and such.
10:56:35 *** Nite_Owl has joined #openttd
11:03:59 *** [com]buster has joined #openttd
11:09:43 <frosch123> oh, too bad, it is dividable by 400.
11:10:07 <frosch123> usually we reject every fourth, except every 100th, but every 400th again
11:11:00 <andythenorth> all I did was change the variable name and a comment, I can't figure the rest out yet, so I'm going one step at a time
11:18:29 *** roboboy has joined #openttd
11:29:47 *** DorpsGek has joined #openttd
11:29:47 *** ChanServ sets mode: +o DorpsGek
11:37:59 <Eddi|zuHause> so it's a leap bug :p
11:58:58 <CIA-1> OpenTTD: alberth * r19052 /trunk/src/smallmap_gui.cpp: -Codechange: Remove the _smallmap_draw_procs array.
12:02:12 *** KenjiE20 has joined #openttd
12:04:57 <CIA-1> OpenTTD: frosch * r19053 /trunk/src/ (4 files in 2 dirs): -Codechange: Add an enum for the special flags of industry tiles. (based on andythenorth' work)
12:13:51 <andythenorth> frosch123: ^^ thanks. Think I can see how to extend that. Have to do chores first though :\
12:15:23 *** DJGummikuh has joined #openttd
12:16:52 *** mib_3jai7h has joined #openttd
12:43:14 *** roboboy has joined #openttd
13:22:59 *** Phoenix_the_II has joined #openttd
13:33:49 *** ajmiles has joined #openttd
13:52:18 <_Dusin> hey to all.. can any1 help me with makeing own server for multi game ? pls
13:53:00 <SirSquidness> what OS are you running?
13:53:21 <_Dusin> win 7 , and friend has XP
13:56:00 <SirSquidness> But for just playing with a friend, the first link is best
13:56:12 <_Dusin> i dont know what is it :)
13:56:22 <_Dusin> ok.. i will try the first link :)
13:56:39 <SirSquidness> The first link will run what's called a "Listen Server" - you play the game and host a server at the same time
13:57:05 <SirSquidness> The second link is for a "Dedicated server", where the server is seperate from the game
13:59:34 <_Dusin> i made it.. but my friend cant see my game
13:59:56 <SirSquidness> Are you trying to play over LAN or over the internet?
14:00:41 <SirSquidness> You will need to forward some ports from your modem/router to play
14:01:23 <SirSquidness> Find the model of your modem or router there
14:02:07 <SirSquidness> You need to forward port 3979 (both TCP and UDP ) to yourPC's local IP address (the portforward.com site explains how to do all of this)
14:04:08 <ccfreak2k> Do the doxygen html files for openttd 0.7.6 happen to be hosted anywhere?
14:05:14 <ccfreak2k> I guessed at whatever version have.
14:05:48 <ccfreak2k> It appears to be 0.7.5.
14:10:26 *** welshdragon has joined #openttd
14:10:45 *** Rubix`` has joined #openttd
14:10:52 *** blathijs has joined #openttd
14:17:41 <Ammler> ccfreak2k: bundle *-doc*
14:20:50 <PeterT> Does it violate licscene if the bundle only has COPYING, openttd.exe, and lang files?
14:22:09 <Ammler> why distribute a "half" package?
14:22:34 <PeterT> yet again, they are being dicks about bandwidth
14:22:38 <Muxy> And Goulp is old enough to ask the question
14:23:11 <PeterT> and the package doesn't work, either
14:24:34 <Ammler> if you add the exe and the lang files, the package isn't really smaller.
14:24:53 <PeterT> i know, the rest of the things really don't take up that much space
14:25:13 <PeterT> with all my cargodist builds, fully bundled, the rar is ~3MB
14:25:25 <PeterT> that is with 'best' compression and a solid archeive
14:29:20 <PeterT> good compression, gui is bulky and unneccesarry
14:29:41 * SpComb^ usually just uses the context menu for 7zip
14:30:10 <ccfreak2k> WinRAR can extract 7zip anyway.
14:31:19 *** ajmiles has joined #openttd
14:44:00 <Noldo> what has GUI to do with archive format?
14:48:45 <Rubidium> but... why use rar if the problem with 7zip is that not everyone has 7zip, not everyone has rar either
14:50:22 <Rubidium> yes, rars are bigger than 7z
14:50:47 <Rubidium> and for what it's worth, I don't have rar
14:52:38 <PeterT> Rubidium: Aren't you on Linux?
14:53:26 <Rubidium> what does the OS have to do with the archiver?
14:53:32 <Shapeshifter> So I don't understand this. Everything is running smoothly, all my services are very good and stuff. But here's a fruit plantage which doesn't want to grow. Service is very good to a food processing plant, but the production constantly dropped and is now at 0. For some time, I made the service even excellent, using superfast and many trains, but the production never went above 16 even after years of unlucrative excellent transport
14:53:39 <jonty-comp> I have Windows, and I don't have rar!
14:53:51 <Shapeshifter> Also, how can I fund new fruit plantages or maize farms?
14:54:48 <Rubidium> Shapeshifter: a N% chance of increase and a M% chance of decrease still mean there is a chance there will only be decreases
14:55:14 <Rubidium> actually, with perfect servicing a industry can die and with no servicing an industry can reach the highest production raters
14:55:15 <Shapeshifter> Rubidium: so this was down to bad luck?
14:56:00 <Shapeshifter> also, that doesn't make too much sense :| Anyway, happy with that. But how can I possibly make a new farm?
14:56:10 <Shapeshifter> I only seem to be able to fund factories and such.
14:56:51 <Rubidium> then change the setting that only allows building secondary industries
14:57:10 <Shapeshifter> is that a difficulty setting?
14:57:10 <Rubidium> don't know exactly what it's called
14:57:44 <Shapeshifter> nevermind, found it
14:58:25 <Shapeshifter> I mean, at some point if there's only one farm and one food processing plant, there would be no food left for things to grow. Would I normally just need to wait until a new fruit plantage pops up by chance?
14:59:14 *** Chillosophy has joined #openttd
14:59:34 <Shapeshifter> what does "prospecting" mean, for the "funding of primary industries" option?
15:03:13 *** DaleStan_ has joined #openttd
15:03:13 *** DaleStan is now known as Guest1143
15:03:14 *** DaleStan_ is now known as DaleStan
15:12:48 *** Grelouk_ has joined #openttd
15:25:00 <PeterT> Rubidium: Sorry to bug you, but I was very close to a solution, but never found one
15:25:23 <Alberth> Eoin: Shapeshifter: it may or may not build one (ie the 'ground survey' may indicate there is no supply).
15:40:03 *** Grelouk has joined #openttd
15:48:03 <Shapeshifter> So I want to upgrade some rails from rail to monorail. I've sent all trains that usually drive on these tracks to their depots. But if I use the tool it says "Can't convert railway type here, no suitable railway track
15:48:16 <Shapeshifter> I read the wiki on upgrading rails and it doesn't say anything else.
15:49:07 <[Jako]> you have to sell the trains
15:49:19 <[Jako]> then convert and buy new trains
15:50:29 <Shapeshifter> [Jako]: that's only about the depots I think. Also, I just did that, and it doesn't change anything.
15:50:37 <SpComb^> upgrading from rail to monorail in-place is silly anyways :(
15:51:23 <Shapeshifter> SpComb^: what do you mean "in-place"? I just tried making a new rail somewhere on an empty tile, and then upgrade it.
15:51:37 <Shapeshifter> am I missing something? Can I build monorail right away?
15:52:07 <SpComb^> dunno, I don't think I've ever built any monorail track in OpenTTD
15:53:01 <Shapeshifter> longclick on the rail button shows a menu, need to click on monorail there
15:53:37 <SpComb^> oh yes, it's an "upgrade track to..." button :)
15:53:52 <Shapeshifter> yep ^^ from there it works
15:58:22 <Alberth> yep, you have to select the rail-type you want to upgrade to first
16:04:00 <[Jako]> and you cant convert or upgrade trains so you have to sell them first
16:04:17 <PeterT> not without a patch, you can't
16:04:27 <[Jako]> there is a patch for it?
16:09:01 <[Jako]> do you know will this work with the new beta?
16:18:33 *** thingwath has joined #openttd
16:38:00 *** Bluelight has joined #openttd
17:03:52 *** welshdragon has joined #openttd
17:22:34 *** Coco-Banana-Man has quit IRC
17:31:25 <PeterT> did you get that from crash.dmp?
17:31:47 <Muxy> and you forget to mention what command you sent to the server
17:34:45 <glx> Muxy: we know that from the dmp :)
17:35:23 <glx> he did "rcon kban himself"
17:36:11 <PeterT> but "himself" isn't a client-id
17:36:13 <glx> and the server tried to send him back the console output
17:36:18 <PeterT> and "kban" isn't a cmomand either
17:36:23 *** rhaeder has joined #openttd
17:56:26 <andythenorth> frosch123: I'm not sure what's appropriate in terms of number of changes a diff contains?
17:57:10 <andythenorth> If I add a flag, then new code to use the flag, seems like two diffs to me...but they are dependent on each other, so could be one.
17:57:34 <frosch123> sounds like one diff for me :)
17:57:45 <andythenorth> I'd better write the second half then
18:08:23 * andythenorth compiles and crosses fingers :o
18:09:00 * andythenorth broke the compile :(
18:09:33 <andythenorth> ummm a bizarre comment from PeterT
18:10:39 <andythenorth> I modified line 4. itspec is currently out of scope, I'm not surprised, but I don't know how / where to declare it
18:10:55 <andythenorth> I'm 'hacking by copy, paste, modify'
18:11:24 <frosch123> "svn diff" would be easier :)
18:11:50 <frosch123> anyway, the HasBit is too much
18:12:18 <PeterT> What are you trying to do now andythenorth?
18:12:48 <andythenorth> frosch123: I can post a diff to flyspray...
18:13:33 <frosch123> i meant instead of "i modified line 3"
18:14:21 <frosch123> i do know the code good enough to do the diff myself :p
18:15:29 <andythenorth> the idea for HasBit was lifted from code that uses the industry cb mask
18:15:43 <frosch123> well, either HasBit or &
18:15:58 <frosch123> the formet for bit numbers, the latter for bit masks
18:16:09 <andythenorth> ok, bad copy and paste
18:17:06 <andythenorth> ummm...action 0 flags are usually bit mask, correct?
18:18:50 <frosch123> he, you can always test bits by either bit number of bit mask. HasBit(x, 4) is just the same as (x & 0x10) in boolean context
18:19:18 <frosch123> resp. look up the declaration of HasBit :I)
18:19:18 <andythenorth> but trying to do both is dumb, right?
18:21:02 <andythenorth> I still have itspec out of scope....would this help with that:
18:21:08 <andythenorth> const IndustryTileSpec *itspec = GetIndustryTileSpec(cur_gfx);
18:23:18 <frosch123> and i need more cola tankers :/
18:23:50 <andythenorth> either you're playing toyland, or my questions make you thirsty? Slightly strange either way :D
18:24:44 <frosch123> since ogfx toyland is no longer strange, but the climate with most detailed animated industries
18:25:27 <andythenorth> oh my, that reminds me how much animation I have to add to FIRS :o
18:25:37 <andythenorth> so much to do....I'd better learn C++ faster
18:26:43 <PeterT> andythenorth: The programmer of many hats.
18:27:12 <andythenorth> meh. pixels, nfo, website, and now bloody C++
18:27:36 * andythenorth compiles and crosses fingers
18:27:37 <PeterT> I would count HTML and Java seperately
18:27:51 * PeterT broked andy's compile!
18:28:21 <CIA-1> OpenTTD: rubidium * r19054 /trunk/src/network/core/tcp_game.cpp: -Fix [FS#3598]: when banning yourself via rcon do not send the 'command response' to the client as the connection has already been terminated
18:28:55 * andythenorth omg compile worked
18:32:46 *** DaleStan_ has joined #openttd
18:32:46 *** DaleStan is now known as Guest1182
18:32:46 *** DaleStan_ is now known as DaleStan
18:34:41 *** DaleStan_ has joined #openttd
18:34:41 *** DaleStan is now known as Guest1184
18:34:41 *** DaleStan_ is now known as DaleStan
18:36:53 <andythenorth> ^^ not divisible by 400 far as I can see. Not if you want an int as the result anyway.
18:37:19 <Rubidium> sorry, DorpsGek says it can divide it by 400
18:37:53 * andythenorth has been coding for 15 years, but clearly has misunderstood what an int is
18:37:57 <peter1138> is it a leap bug then?
18:38:47 * andythenorth is strangely pleased by looking at a bunch of industries with tiles horribly missing
18:45:31 <CIA-1> OpenTTD: translators * r19055 /trunk/src/lang/ (6 files in 2 dirs): (log message trimmed)
18:45:31 <CIA-1> OpenTTD: -Update from WebTranslator v3.0:
18:45:31 <CIA-1> OpenTTD: basque - 8 changes by Thadah
18:45:31 <CIA-1> OpenTTD: danish - 22 changes by beruic
18:45:31 <CIA-1> OpenTTD: esperanto - 15 changes by Ailanto
18:45:33 <CIA-1> OpenTTD: hungarian - 1 changes by alyr
18:45:33 <CIA-1> OpenTTD: japanese - 15 changes by PouncingAnt
18:45:56 <Bluelight> I can do Norwegian..
18:46:04 <Bluelight> Found some errors in there..
18:47:03 <Bluelight> Ohh.. Web? Never mind..
18:54:06 *** Wizzleby has joined #openttd
18:59:59 <andythenorth> frosch123: I've looked for clues to how tile 0xFF can be signed....can't see how this is done, but will keep looking.
19:06:22 * andythenorth thinks negative offsets for tile 0xFF are handled as a special case in newgrf.cpp
19:06:40 <frosch123> around newgrf.cpp::2333
19:07:23 <frosch123> otoh, i am not sure why it is unsigned by default as values > 16 would also cause trouble afaik
19:10:39 <Shapeshifter> So I didn't care about a small town near two bigger ones and now I can't build a new trainstation because they don't like me at all. I tried rebuilding forrests and campaigns, and there's one bus station already standing from the beginning of the game I am now again servicing with "very good" rating. I would supply them food, but I can't build any lorry stations either
19:10:47 <Shapeshifter> how do I make them happy?
19:11:35 <Zuu> Do you have any stations in that town?
19:11:45 <Shapeshifter> just this one bus station I am now servicing with "very good"
19:11:50 <Zuu> Apart from that, just wait.
19:12:13 <Zuu> Don't destroy any trees :-)
19:13:44 <kd5pbo> Shapeshifter: Bribe them.
19:16:09 <Zuu> IIRC you have a chance/risk of 1/30 of getting caught when briding.
19:16:39 <kd5pbo> Shapeshifter: Bribe them less than 30 times.
19:18:29 *** Rhamphoryncus has joined #openttd
19:26:28 <frosch123> no idea either :) i am even not sure whether the industrytile properties are already available at that point
19:27:46 <andythenorth> hmmm....good point
19:28:49 <Shapeshifter> But, I'd also like to build them a water tower but it says "cant build this industry type here, can only build in towns"
19:29:01 <Shapeshifter> butr I'm placing it like 4 blocks away from the town name, as close as possible
19:29:59 <Eddi|zuHause> you must build it on top of a house
19:31:16 * andythenorth assumes that IndustryTileOverrideManager must be worth looking at
19:43:07 *** DaleStan_ has joined #openttd
19:43:08 *** DaleStan is now known as Guest1194
19:43:08 *** DaleStan_ is now known as DaleStan
19:51:08 * andythenorth is way way out of his depth
19:51:55 *** lewymati has joined #openttd
19:52:00 <PeterT> SmatZ: Do you have a copy of the diff for logging DoCommands? Is that log only available for a server running on Autopilot/ap+?
20:01:59 *** Progman has joined #openttd
20:03:06 *** JVassie has joined #openttd
20:04:08 *** JVassie^ has joined #openttd
20:14:56 <Shapeshifter> Eddi|zuHause: oh okay thanks
20:23:05 *** jbeseitigen has joined #openttd
20:24:17 <jbeseitigen> ich bin ein Problem
20:26:32 <Eddi|zuHause> SmatZ: how right he was :p
20:27:03 *** roboboy has joined #openttd
20:27:04 <PeterT> so it logs the DoCommands in console, or via autopilot?
20:27:34 <Eddi|zuHause> autopilot does _nothing_ else than read the console...
20:39:35 <andythenorth> frosch123: my guess is that indsutrytile properties are *not* available when layouts are copied
20:43:13 <frosch123> well, i guess the offsets should always be interpreted signed in newgrf.cpp, however later they should be validated for correct range
20:46:00 *** DaleStan_ has joined #openttd
20:46:00 *** DaleStan is now known as Guest1201
20:46:00 *** DaleStan_ is now known as DaleStan
20:46:16 * andythenorth wishes he'd studied computer science instead of politics & philosophy.
20:47:24 <andythenorth> frosch123, practically, what would I need to change in newgrf.cpp to deal with signed ints? Currently a tile with signed ints *is* treated as invalid (or at least, the layout isn't built in game)
20:49:09 <Shapeshifter> I can't find a way to see an overview of how all my stations are performing. I've got quite many of them and it's starting to be a bother to click on everyone and then on "rating". same for how many goods are being stored.
20:51:10 <frosch123> you could try moving the int8 case further to the top
20:51:30 <Eddi|zuHause> Shapeshifter: there's a button for station list in the main toolbar
20:51:39 <Eddi|zuHause> Shapeshifter: there you can sort on performance, afaik
20:51:50 <frosch123> but why do you want to study computer science? are you the only one in class who can install windows?
20:52:25 <Shapeshifter> Eddi|zuHause: okay thanks
20:52:35 <Eddi|zuHause> i think andythenorth is a little old to have a "class" ;)
20:52:39 <andythenorth> frosch123 I might not be playing catchup conceptually if I'd done a degree in this stuff.
20:52:47 <andythenorth> Eddi|zuHause: at least 10 years too old
20:52:55 <andythenorth> never too old to learn though :o
20:54:45 <Eddi|zuHause> hm... when was it removed that you can right-click to get rid of error messages?
20:55:58 <Eddi|zuHause> why doesn't it work then?
20:56:07 <frosch123> or do you mean the "annoy the stupid user"-fatal error messages which have no timeout, are not closed by right-click, and maybe not even by "del"
20:56:35 <Eddi|zuHause> frosch123: the message "newgrf was disabled because it's fucked up"
20:57:11 <frosch123> likely that is one of those do-not-let-the-stupid-user-click-them-away-in-a-hurry-messages
20:58:26 <Eddi|zuHause> why does each vehicle have its own tick counter?
20:58:42 <Eddi|zuHause> and why is this codepath only run every 5 ticks?
20:59:10 <frosch123> isn't it incremented when the vehicle is moving? i.e. depending on vehicle speed?
21:01:08 <Eddi|zuHause> i have two code paths where trains with red signal are handled, one is around train_cmd.cpp:3390-ish "/* In front of a red signal */" in TrainController() and one around 4000-ish "/* Handle stuck trains. */" in TrainLocoHandler()
21:01:24 <Eddi|zuHause> the latter one is touched every tick, the former only every 5 ticks, and i don't see why...
21:02:34 <andythenorth> I have no idea if this is good, but it appears to permit setting negative offsets on tiles
21:02:46 <andythenorth> industry destruction doesn't appear to crap out either
21:04:02 <Eddi|zuHause> the vehicle tick counter is increased in Train::Tick()
21:05:19 <Eddi|zuHause> that is also where TrainLocoHandler is called
21:05:40 <Eddi|zuHause> TrainController seems to be dependent on speed
21:06:54 * andythenorth wonders where else I might need to handle industrytile signed offsets?
21:06:59 <andythenorth> probable when placing a tile
21:09:40 <Eddi|zuHause> try it and look where it crashes :)
21:10:20 <andythenorth> well so far it didn't crash ;)
21:11:04 * andythenorth thinks of ways to crash it
21:13:56 <andythenorth> nah it's all fine, lets ship it :)
21:20:23 <Alberth> andythenorth: what is the type of 'itt[k].ti.x' ?
21:20:45 <Alberth> (and the '.y' as well, it seems)
21:20:58 * andythenorth is embrassed by having no idea
21:22:28 <andythenorth> itt[k].ti.x comes from reading a byte...
21:23:25 <andythenorth> Alberth: doing this appears to allow signed offsets to work fine:
21:23:26 <andythenorth> itt[k].ti.x = (int8)GB(itt[k].ti.x, 0, 8);
21:23:26 <andythenorth> itt[k].ti.y = (int8)GB(itt[k].ti.y, 0, 8);
21:23:45 <andythenorth> I can't find a way to make it fail. Industry builds, industry can be destroyed, tiles appear to be cleaned up
21:24:11 * andythenorth admits that he's better at drawing than code :)
21:24:23 <Alberth> yes, but it looks weird. there has to be a better way to express that :p
21:24:43 <andythenorth> it's copy and paste from the lines below :)
21:25:05 * andythenorth is happy to learn...
21:25:26 <Alberth> hmm, our code is that weird, apparently :)
21:26:13 <Alberth> I'd write itt[k].ti.x = (int8)(itt[k].ti.x & 0xFF);
21:26:53 <Alberth> I'll test whether that actually works :)
21:27:24 <andythenorth> I can tell you in a minute....
21:28:19 <Eddi|zuHause> why would "&0xFF" be better than GB(.,0,8)?
21:28:38 <andythenorth> Alberth: it works. I have industrytiles getting built with negative offsets
21:29:31 <andythenorth> so...which is the better style :P
21:30:36 <andythenorth> Alberth: your version looks to me like it's anding with 0xFF, I would have *no idea* what the other one is doing
21:30:45 <Alberth> I guess the current code, since it is already used. However, you never know for sure with OpenTTD source code, too many people have been enhancing it.
21:31:04 <andythenorth> well I'll post a diff with the current code then
21:33:42 <Alberth> line 32 of file src/core/bitmath_func.hpp
21:35:12 <andythenorth> Rubidium: you explained yesterday why industry tiles can't have signed offsets....but it doesn't actually seem to cause a problem. Where should I look in the code to understand more?
21:36:28 <Rubidium> andythenorth: if you add -1,-1 then OpenTTD will tell, later on that what you described as 0,0 is 1,1
21:37:10 <andythenorth> ok, I think I can see why my test newgrf wouldn't show that problem
21:37:17 <andythenorth> I'll test some more
21:37:57 <Rubidium> e.g. var60 and var61 of industries
21:38:55 <frosch123> andythenorth: did you try removing an industry with tiles with negative positions?
21:39:30 <Rubidium> frosch123: that works since I use TileArea for industries, i.e. it probably doesn't in 0.7.5
21:39:30 <andythenorth> but the industry I'm using won't show errors with var 60 or 61, I need to do some more work to test that :)
21:39:33 <dih> PeterT, next time you have a question and are looking for either Osai or me, just ask your question...!
21:39:49 <dih> it's annoying to just see lines like "are you here?"
21:40:00 <Rubidium> dih: next time just ignore him till he actually asks the question
21:40:04 <dih> ask - and we can get back to you with an answer rather than... i am now :-P
21:40:07 <Rubidium> (or just generally ignore him)
21:40:11 <PeterT> sorry, I would've stayed, but I had switched OSs
21:40:19 <dih> Rubidium, i like being helpful :-P
21:41:07 *** Grelouk_ has joined #openttd
21:41:16 <Rubidium> dih: but what if someone doesn't want to learn to fish? Should I catch for him?
21:41:38 <TrueBrain> I am hungry, can you hurry too?
21:41:49 <Rubidium> TrueBrain: you're welcome here :)
21:41:57 <Rubidium> I'll make some meatballs for you
21:42:14 <TrueBrain> k .. I will be there in 3 hours
21:42:42 <jonty-comp> you can learn to fish using a Wii
21:43:09 <Shapeshifter> uhm. for some reason I can't build any old-fashioned rail type-of engines anymore...
21:43:31 <Shapeshifter> is this just because its 2015?
21:43:40 <Rubidium> TrueBrain: you can still make it, if you can be within 17 minutes at Leiden CS or 14 at Leiden Lammenschans
21:43:40 <Shapeshifter> they're just gone from the menu
21:44:06 <Rubidium> then only you have to walk a hell of a lot cause the busses ain't going anymore
21:44:25 <TrueBrain> hmm .. lets not do that
21:44:26 <andythenorth> Rubidium yup, negative offsets break var 60 / 61
21:44:41 <TrueBrain> 14 min to Lammerschans is easy doable
21:44:45 <TrueBrain> just the walking .. not so much fun
21:44:45 * andythenorth stares sadly at some badly screwed up industries :P
21:45:22 <andythenorth> so the answer must be "don't build a tile if offsets are negative"
21:45:44 * andythenorth wonders how to check that
21:47:54 *** DaleStan_ has joined #openttd
21:47:54 *** DaleStan_ is now known as DaleStan
21:47:59 <andythenorth> ha, this offset problem could be fixed in the TTDP wiki: "do not use negative industry tile offsets unless prop 12 bit 1is set"
21:48:06 <andythenorth> problem solved, no?
21:48:52 *** kd5pbo is now known as eliza
21:48:55 *** eliza is now known as Eliza
21:49:00 *** Eliza is now known as kd5pbo
21:49:31 <Shapeshifter> does anyone know why I can't build any diesel trains anymore?
21:50:06 <andythenorth> Rubidium I have a solution ^^ :D
21:51:48 <dih> Rubidium, perhaps someone thought "fishing" means, standing at the edge of the river and yelling "Here, Fishy fish fish!"
21:55:09 * andythenorth finds dih's comment strangely hypnotic
21:55:35 *** Dreamxtreme has joined #openttd
21:56:24 <pod> anyone here compile under MinGW?
21:58:47 <dih> Shapeshifter, google, search the forums, search the wiki
21:58:52 <frosch123> Shapeshifter: choose a different railtype, (maybe there are electric engines, or other), or enable "never expire engines" and type "resetengines" afterwards in the console
21:59:14 <frosch123> [22:42] <dih> sometimes :-P <- :)
21:59:30 <andythenorth> so how do I check ti.x is not negative?
21:59:43 <dih> frosch123, if you read up - you'll notice we were also talking about "teaching how to fish"
21:59:52 <frosch123> andythenorth: is question is "where to check" :)
22:00:10 <andythenorth> frosch123: what's the easiest way to explain? paste or line number in a file?
22:02:22 <frosch123> andythenorth: the problem is, that both industry layouts and your tile property 12 are processed during "activation stage". that is you can only use property 12 during the spritelayout reading if setting it appears earlier in the grf. which is stupid as requirement
22:03:05 <andythenorth> frosch123: I think I'm close to a solution, I just need to check offsets when the tile is acutally built
22:03:08 <frosch123> so instead you have to always allow negative offsets in IndustriesChangeInfo, but later check the validity of layouts
22:03:33 <frosch123> well, what do you want to do during building? just skip the tile?
22:03:45 <frosch123> without error message?
22:04:04 <Eddi|zuHause> how about, check this condition at the end of the activation phase?
22:04:13 <Eddi|zuHause> and disable the grf if it fails?
22:04:20 <frosch123> and showing error messages during world generation is likely "very troublesome" due to multithreading
22:04:38 * andythenorth hasn't thought about error messages
22:04:54 <frosch123> so, as eddi just said, you might check the industry layouts in something like AfterLoadGRFs()
22:05:14 <frosch123> but you cannot disable grfs there anymore, but you can still disable the single broken industries
22:05:41 <frosch123> andythenorth: >= might be more useful :p
22:06:33 *** Brianetta has joined #openttd
22:07:21 <Shapeshifter> frosch123: okay thanks
22:07:27 <frosch123> anyway, i think you have to move lines 20-22 before the loop
22:08:12 <andythenorth> I'm not really sure what those do...
22:08:36 <frosch123> they handle overriding old industry tiles
22:09:05 <andythenorth> line 3 in the paste would then be redundant?
22:09:24 <frosch123> though overriding an old industry tile with a do-not-build-tile is weird :p
22:09:42 <frosch123> hehe, yes, line 3 is redundant then
22:13:28 <andythenorth> frosch123: yup moving those lines appears to work. I'm not exactly sure of how to test if that broke anything
22:15:45 * Eddi|zuHause hands frosch123 the title "Blitzquitter vom Dienst"
22:17:14 *** Rubix`` has joined #openttd
22:19:05 * andythenorth compiles and crosses fingers
22:23:06 <CIA-1> OpenTTD: peter1138 * r19056 /trunk/ (14 files in 3 dirs): -Add: [NewGRF] Action 3/2/1 (i.e. new graphics) support for rail types. (To be documented...)
22:23:26 <andythenorth> tiles with negative offsets now aren't built :D
22:23:50 *** Fauxdem is now known as FauxFaux
22:31:21 <andythenorth> enough. good night :)
22:32:07 *** andythenorth has left #openttd
22:32:10 <Eddi|zuHause> good news: emails should soon cost 20 cent shipping
22:32:37 <Eddi|zuHause> (in a monopolised state provider)
22:33:11 <kd5pbo> Eddi|zuHause: Should cut down on spam.
22:35:23 <Eddi|zuHause> hm... tonight is superbowl...
22:35:49 <Rubidium> you mean crappy TV in the US tonight?
22:36:00 <kd5pbo> The commercials are typically funny.
22:36:12 <PeterT> Rubidium: Have you ever seen football?
22:36:31 <Eddi|zuHause> Rubidium: yes, except for one episode after the superbowl
22:37:18 <Eddi|zuHause> but tradittionally they push one show
22:37:41 <Eddi|zuHause> by specially programming it right after the superbowl
22:39:26 <Rubidium> so probably something totally useless
22:40:36 <Eddi|zuHause> i wouldn't get my hopes up either ;)
23:15:13 *** Alpraaz has joined #openttd
23:29:19 <Eddi|zuHause> gr... i totally hate when people ask the exact same thing as question that i explained only one line before...
23:29:39 <Rubidium> Eddi|zuHause: what do you totally hate?
23:29:45 <PeterT> where is this, forum or irc?
23:30:10 <Bluelight> I know that feeling..
23:30:17 <Bluelight> My mother does that all the time..
23:30:22 <Eddi|zuHause> Rubidium: no, more like "so do you hate people that ask the same thing you just said?"
23:31:40 <Bluelight> Good night all.. :)
continue to next day ⏵