IRC logs for #openttd on OFTC at 2016-09-14
⏴ go to previous day
00:51:47 *** ChanServ sets mode: +v tokai
01:34:17 *** smoke_fumus has joined #openttd
03:26:02 *** supermop_ has joined #openttd
03:30:47 *** mindlesstux_ has joined #openttd
03:33:22 *** supermop__ has joined #openttd
03:36:17 *** mindlesstux_ is now known as mindlesstux
03:50:00 *** Supercheese has joined #openttd
04:31:03 *** Flygon_ has joined #openttd
06:11:42 *** Flygon_ has joined #openttd
07:33:22 *** sla_ro|master has joined #openttd
09:27:02 *** JacobD88 has joined #openttd
09:30:13 *** Biolunar has joined #openttd
09:30:53 *** Supercheese is now known as Guest335
09:30:58 *** Supercheese has joined #openttd
10:07:43 *** Progman has joined #openttd
10:13:00 *** JacobD88 has joined #openttd
10:51:10 *** tokai|noir has joined #openttd
10:51:10 *** ChanServ sets mode: +v tokai|noir
11:25:19 *** JacobD88 has joined #openttd
12:00:05 <argoneus> good morning train friends
12:02:10 *** supermop has joined #openttd
12:10:09 *** TheMask96 has joined #openttd
13:32:06 <Samu> my connection is failing lately
14:06:04 <Samu> querying tile info on a buoy placed on a canal, gets the wrong owner of the buoy
14:21:34 <Samu> okay, not really a bug, but a workaround due to a limitation
14:21:42 <Samu> but now it can be changed
14:31:31 *** ConductorCat has joined #openttd
14:37:13 *** Lejving has joined #openttd
14:55:30 <Samu> what is use of undefined type
14:55:32 <Samu> MakeStation(t, Station::Get(sid)->owner, sid, STATION_BUOY, 0, wc);
14:55:51 <V453000> Lejving: nice factorio mods :P
14:56:21 <V453000> next stop openttd newgrfs? :P
14:56:45 <Lejving> one totally fucking op armor, one 4 lines mod, one terrible "epic electric mimning drill" :D
14:57:13 <Lejving> no, next stop is to stop my game from crashing every 10min :D
14:57:48 <V453000> is it actually crashing?
14:59:16 <Lejving> sometimes it works a long time, but sometimes I crash every 10min
14:59:27 <V453000> did you bug report it?
14:59:43 <V453000> please do, I am sure guys will get on it quickly
15:00:04 <V453000> they are currently trying to fix all the bugs before work on 0.15 fully starts
15:00:49 <Lejving> it's an access violation
15:01:13 <V453000> ah recompiling newgrfs makes it crash?
15:01:22 <Lejving> no just regular playing
15:02:12 <Lejving> look my lastest pic of crash
15:02:27 <Lejving> sorry game for trying to place rail!
15:02:49 <V453000> that's pretty weird shit
15:03:47 <Lejving> in crash.log it says exception: c00000005 or what ever which is access violation afaik
15:04:19 <V453000> then don't violate it XD
15:04:48 <Lejving> openttd: LEJVING JUST VIOLATED ME
15:09:32 <Lejving> newgrfs are mostly graphics though V453000 isn't it
15:09:40 <Lejving> and I'm not much of a graphics guy =/
15:10:06 <V453000> there is a fuckload of possibilities to do
15:10:22 <V453000> but yeah graphics are vital, but you can borrow them from other open source projects :P
15:10:35 <V453000> I mean possibilities to do with code only
15:10:51 <V453000> don't think newgrfs or game scripts can touch UI
15:13:28 <Lejving> well I had this one idea that every player should start with one railyard
15:13:42 <Lejving> and they have to build out of that and spawn trains only there
15:13:59 <Lejving> to force one big rail network instead of many isolated ones
15:14:29 <Lejving> that should be possible I guess
15:15:17 <V453000> I wonder how, no clue :)
15:15:58 <Lejving> I'll have to dig into it later, first figure out how to not make the game crash all the time :
16:00:26 *** TheMask96 has joined #openttd
16:42:21 <Samu> buoys can have OWNER_WATER at the moment
16:43:05 <Samu> complicated case this is, with the buoy
16:44:20 <Samu> when doing savegame conversion, buoys cannot have OWNER_WATER at canals, i'm chaning their owner to OWNER_NONE
16:44:45 *** zwamkat has joined #openttd
16:44:45 <Samu> canals on the other hand, cannot have OWNER_WATER
16:56:21 *** Alberth has joined #openttd
16:56:21 *** ChanServ sets mode: +o Alberth
16:59:10 <Samu_> i got a small problem with buoy
16:59:34 <Samu_> on the minimap, owner of buoy will be none now
16:59:54 <Samu_> previously it was the owner of the water at the tile
17:00:17 <Samu_> if it was a canal, the buoy on minimal would show up with the company
17:01:19 <Samu_> buoy owner now takes precedence no matter who's the owner of the canal
17:01:28 <Samu_> it won't show on minimap
17:20:54 <Samu> what's a better owner for buoys?
17:21:40 <Samu> station stores OWNER_NONE, tile stores OWNER_WATER
17:22:57 <Samu> i'm inclined to make the tile store the same as the station
17:24:14 <Samu> if (IsBuoyTile(t) && GetWaterClass(t) != WATER_CLASS_CANAL && GetTileOwner(t) == OWNER_WATER) { SetTileOwner(t, OWNER_NONE); }
17:26:09 <Alberth> who can remove a buoy?
17:26:34 <Samu> everyone, as long as no ship uses it
17:27:57 <Samu> let me check remove buoy code
17:28:53 <Samu> /* XXX: strange stuff, allow clearing as invalid company when clearing landscape */
17:29:26 <Samu> if (!Company::IsValidID(_current_company) && !(flags & DC_BANKRUPT)) return_cmd_error(INVALID_STRING_ID);
17:29:30 <peter1138> Buoys don't have owners
17:31:54 <NGC3982> What kind of language is that?
17:33:43 <Alberth> but that explains why the minimap shows the canal owner
17:34:10 <Samu> MakeStation(t, GetTileOwner(t),, sid, STATION_BUOY, 0, wc);
17:36:18 <Samu> minimap needs to change a little bit
17:36:51 <Samu> won't have it use GetTileOwner on buoys
17:37:20 <Samu> is this possible? where is minimap code
17:43:19 <Samu> GetSmallMapOwnerPixels ?
17:43:34 <Samu> there is a FIXME notice here
17:46:41 <Alberth> we have 12 such lines
17:49:09 <Sacro> Anyone here play BRSet, I'm only getting 4 electric sets, nothing else
17:54:37 <Samu> Run-Time Check Failure #3 - The variable 'o' is being used without being initialized.
17:58:03 <Samu> ah, i think i understand
18:28:45 <Samu> buoy is done, gonna check oilrig station
18:30:44 <Samu> hmm to change oilrig station, i got to change industry tile type first
18:30:57 <Samu> touching industry tiles is scary
18:47:50 <Samu> _m[t].m1 &= 1 << 7; - does this do what I think it does?
18:49:10 <Samu> 7654 3210 - i want bit 7 to remain untouched, and all the others to be zero'ed
18:51:06 <Samu> bit 7 is to be inherited
18:51:51 <Samu> it's the canal on river flag thingy
18:56:18 *** FLHerne has joined #openttd
18:57:08 *** frosch123 has joined #openttd
19:08:11 *** andythenorth has joined #openttd
19:15:37 <Samu> industry tiles now have canal owners
19:15:45 <Samu> i wonder if this is gonna break newgrf stuff
19:16:30 <Alberth> making a canal of an industry-tile?
19:16:48 <Samu> build oil rig on canal tiles
19:17:05 <Samu> it stores the owner of the canal now
19:17:26 <Alberth> nobody is stupid enough to build a canal and then build an oil rig :p
19:17:37 <Alberth> it's much cheaper to have a land-based oil well :)
19:17:54 <Samu> it also stores the canal on river flag
19:18:16 <Samu> tile type industry has no more bits free
19:18:56 *** NoShlomo has joined #openttd
19:19:36 <supermop> Lejving: maybe a GS could do it
19:19:48 <supermop> still might need patching
19:26:40 <Samu> how does an industry die?
19:30:03 <Samu> Industry::~Industry() is this where an industry is removed from the world?
19:37:18 <Samu> but needs savegame conversion stuff
19:38:36 <Samu> else old canals would become part of company 1
20:10:17 <Samu> ah, industry description
20:19:48 <Samu> ChangeTileOwner_Industry i'm surprised this function already exists
20:29:42 <Samu> incomplete type is not allowed
20:31:59 <Samu> problem with Company::Get - it says incomplete type is not allowed, what can I do?
20:36:42 <Alberth> define Company, probably by adding an include file
20:37:34 <Alberth> ie it knows there is a thing called "Company", but you need to also give its members, so it can check the "get" exists
20:50:59 <Samu> industy tiles have no company owners
20:52:08 <Samu> Severity Code Description Project File Line Suppression State Error C2027 use of undefined type 'Company' openttd D:\OpenTTD\trunk\src\industry_cmd.cpp 922
20:57:31 <Samu> ah, think i got it, but... i'm uncertain
20:57:33 <Samu> #include "company_base.h"
21:24:15 <Samu> looks strange, canal owner when querying industries
21:24:34 <Samu> the canal can't be removed unless the industry closes
21:26:16 <Samu> company 1 is the owner of the canal of an oil rig, but the oil rig owner is n/a
21:27:00 <Samu> working as intended, though it's quite strange
21:31:16 <Samu> i need an oil rig to close itself, without magic bulldozer
21:31:28 <Samu> what's the best way to trigger it?
21:33:20 <Alberth> don't think oilrigs ever close
21:33:52 *** HerzogDeXtEr has joined #openttd
21:34:43 <Samu> they close, of that I'm sure
21:52:38 *** supermop_ has joined #openttd
22:40:08 *** sim-al2 has joined #openttd
22:42:34 *** gelignite has joined #openttd
23:46:05 *** CompuDesktop has joined #openttd
23:47:28 *** CompuDesktop is now known as Compu
continue to next day ⏵