Back to Home / #openttd / 2018 / 08 / Prev Day | Next Day
#openttd IRC Logs for 2018-08-18

---Logopened Sat Aug 18 00:00:11 2018
00:48-!-HeyCitizen_ [~HeyCitize@ip-45-41-54-196.montreal.ca.northamericancoax.com] has joined #openttd
00:48-!-HeyCitizen_ is "Got ZNC?" on #openttd
00:53-!-HeyCitizen [~HeyCitize@ip-45-41-54-196.montreal.ca.northamericancoax.com] has quit [Ping timeout: 480 seconds]
00:54-!-Gustavo6056 [~Gustavo60@2804:14d:4cd8:81a4:15a2:bcfe:fa1a:564d] has joined #openttd
00:54-!-Gustavo6056 is "Non dico nomen." on #openttd
00:59-!-Gustavo6046 [~Gustavo60@189.6.234.29] has quit [Ping timeout: 480 seconds]
01:09-!-cHawk [chawk@160-3-236-93.cpe.cableone.net] has quit [Ping timeout: 480 seconds]
01:10-!-The_Saladman [~steviche@121.212.129.150] has quit [Quit: The_Saladman]
01:36-!-HeyCitizen [~HeyCitize@sttrpq3809w-lp130-05-69-156-204-156.dsl.bell.ca] has joined #openttd
01:36-!-HeyCitizen is "Got ZNC?" on #openttd
01:38-!-HeyCitiz- [~HeyCitize@ip-45-41-54-196.montreal.ca.northamericancoax.com] has joined #openttd
01:38-!-HeyCitiz- is "Got ZNC?" on #openttd
01:39-!-snail_UES_ [~snail_UES@cpe-98-14-137-148.nyc.res.rr.com] has quit [Quit: snail_UES_]
01:43-!-HeyCitizen_ [~HeyCitize@ip-45-41-54-196.montreal.ca.northamericancoax.com] has quit [Ping timeout: 480 seconds]
01:45-!-HeyCitizen [~HeyCitize@sttrpq3809w-lp130-05-69-156-204-156.dsl.bell.ca] has quit [Ping timeout: 480 seconds]
02:18-!-Gja [~Martin@93-167-84-102-static.dk.customer.tdc.net] has joined #openttd
02:18-!-Gja is "Martin" on #ceph #bcache #openttd
02:23-!-Gja [~Martin@93-167-84-102-static.dk.customer.tdc.net] has quit [Quit: Going offline, see ya! (www.adiirc.com)]
02:37-!-tokai [~tokai@00012860.user.oftc.net] has quit [Read error: Connection reset by peer]
02:38-!-tokai [~tokai@00012860.user.oftc.net] has joined #openttd
02:38-!-mode/#openttd [+v tokai] by ChanServ
02:38-!-tokai is "Christian Rosentreter" on +#openttd
02:50-!-Compu [~Compu@0001feeb.user.oftc.net] has joined #openttd
02:50-!-Compu is "Compu" on #help #openttd #openttdcoop.stable #openttdcoop #/r/openttd
02:50-!-Compu [~Compu@0001feeb.user.oftc.net] has quit [Remote host closed the connection]
02:55-!-andythenorth [~andytheno@cpc87219-aztw31-2-0-cust178.18-1.cable.virginm.net] has joined #openttd
02:55-!-andythenorth is "andythenorth" on #openttd
03:01-!-cHawk [chawk@160-3-236-93.cpe.cableone.net] has joined #openttd
03:01-!-cHawk is "realname" on #openttd
03:03<andythenorth>o/
03:21-!-sla_ro|master [~sla.ro@78.96.209.89] has joined #openttd
03:21-!-sla_ro|master is "slamaster" on #sla #openttd
03:41-!-HerzogDeXtEr [~farci@dslb-178-005-116-146.178.005.pools.vodafone-ip.de] has joined #openttd
03:41-!-HerzogDeXtEr is "purple" on #openttd
04:27-!-mocniak [~oftc-webi@31.135.192.16] has quit [Quit: Page closed]
04:34-!-sla_ro|master [~sla.ro@78.96.209.89] has quit []
04:39-!-keoz [~keikoz@2a01:e35:2fd5:51e0:d790:795d:2cc7:b53d] has joined #openttd
04:39-!-keoz is "Grmph" on #openttd
04:53-!-Stimrol [~Stimrol@89-160-153-213.du.xdsl.is] has quit [Read error: Connection reset by peer]
04:58-!-Wacko1976 [~IceChat9@027-161-128-083.dynamic.caiway.nl] has joined #openttd
04:58-!-Wacko1976 is "The Chat Cool People Use" on #openttd
05:00-!-Stimrol [~Stimrol@89-160-153-213.du.xdsl.is] has joined #openttd
05:00-!-Stimrol is "Stimrol" on #openttd
05:04-!-Thedarkb-T60 [~Thedarkb-@86-40-230-165-dynamic.agg3.kny.prp-wtd.eircom.net] has joined #openttd
05:04-!-Thedarkb-T60 is "realname" on #openttd
05:09-!-haudrauf [~haudrauf2@00021656.user.oftc.net] has quit [Ping timeout: 480 seconds]
05:13-!-haudrauf [~haudrauf2@p200300C35F3E7A007A901C101E5F1E0D.dip0.t-ipconnect.de] has joined #openttd
05:13-!-haudrauf is "Haudrauf" on #openttd #frickelplatz @#ffod @#ffnord @#ffki @#ffhl @#ffhh @#fffl #cryptoparty @#ccchh @#ccc.do
05:14-!-Progman [~progman@p4FD6621C.dip0.t-ipconnect.de] has joined #openttd
05:14-!-Progman is "Peter Henschel" on #openttdcoop.dev #openttdcoop #openttd
05:28-!-Wolf01 [~wolf01@0001288e.user.oftc.net] has joined #openttd
05:28-!-Wolf01 is "Wolf01" on #openttd
05:28<Wolf01>o/
05:33-!-Maraxus [~chatzilla@87-56-231-247-dynamic.dk.customer.tdc.net] has joined #openttd
05:33-!-Maraxus is "Maraxus" on #openttd #factoriocoop @#openttdcoop.stable @#openttdcoop
05:42-!-synchris [~synchris@139.138.202.72] has joined #openttd
05:42-!-synchris is "Synesios Christou" on #openttd
05:49-!-sla_ro|master [~sla.ro@78.96.209.89] has joined #openttd
05:49-!-sla_ro|master is "slamaster" on #sla #openttd
05:51-!-frosch123 [~frosch@00013ce7.user.oftc.net] has joined #openttd
05:51-!-frosch123 is "frosch" on #openttdcoop.devzone +#openttd.dev #openttd
07:01-!-agentw4b__ [~agentw4b@178.77.244.91] has joined #openttd
07:01-!-agentw4b__ is "KlubusL" on #openttd.dev #openttdcoop #openttd
07:02-!-Samu_ [~oftc-webi@pa4-84-91-142-34.netvisao.pt] has joined #openttd
07:02-!-Samu_ is "OFTC WebIRC Client" on #openttd
07:02<Samu_>hi
07:03<Samu_>I found a bug in WrightAI
07:03<Samu_>any chances it will be fixed?
07:04<LordAro>probably not
07:04<Samu_>the bug is at line 263 main.nut
07:05<Samu_>this.SellAirports(i);
07:05<Samu_>that i is expected to be a vehicleID
07:05<Samu_>but it's providing a stationID instead
07:06<Samu_>that will make wrightai unable to remove the airport, or even remove the wrong airport
07:10<Samu_>there is no vehicles at all at that point
07:10<Samu_>so, i'm not really sure how to handle this bug
07:11<Samu_>he found a station with no vehicles, and the only way to remove the airports is by providing a vehicleID
07:17<Samu_>this.route_1.GetValue(i)
07:17<Samu_>this brings up the tileindex of the airport
07:18<Samu_>i is the vehicle ID
07:18<Samu_>what if I don't have the vehicleID
07:18<Samu_>how do I retrieve the tileindex from this.route_1?
07:19<Samu_>this.route_1.HasValue
07:19<Samu_>does that exist?
07:20<Samu_>GetItemGivenValue?
07:22<Samu_>RemoveValue (int64 value)
07:23<Samu_>this might be it
07:26-!-Wormnest [~Wormnest@s5596abd2.adsl.online.nl] has joined #openttd
07:26-!-Wormnest is "Wormnest" on #openttd
07:26<Samu_>Wormnest: hi
07:26<Samu_>are you familiar with wrigthai?
07:26-!-keoz [~keikoz@2a01:e35:2fd5:51e0:d790:795d:2cc7:b53d] has quit []
07:27<Wormnest>Hi Samu
07:27<Wormnest>Well a little bit but it´s a long time ago
07:27<Samu_>have u come with a bug where it is trying to remove empty airports but it's using the wrong ID?
07:29<Wormnest>No idea, as I said it´s a long time ago
07:35<Samu_>how do I get the location of an airport if the airport is joined with another station (bus stop in this case)?
07:35-!-andythenorth [~andytheno@cpc87219-aztw31-2-0-cust178.18-1.cable.virginm.net] has quit [Quit: andythenorth]
07:35<Samu_>when I get the location of the station, I get the bus stop tile
07:35<Samu_>if I remove that tile, the airport isn't removed :/
07:35<Samu_>bah
07:41<Samu_>gonna try to grab it by the hangar
07:41<Samu_>brb
07:43<Samu_>nah, I need to know the exact top corner of the airport location
07:43<Samu_>can't use hangar location :(
07:44<Wormnest>Have you looked in SuperLib for a useful function
07:47<Samu_>doesn't use superlib :(
07:48<Wormnest>Well you can copy the function from Superlib:
07:48<Wormnest>function _SuperLib_Airport::GetAirportTile(station_id)
07:48<Wormnest>As long as the licenses are compatible that is of course
07:51<Samu_>no idea if they are
07:51<Samu_>ludiai says gpl 2.0
07:53<Wormnest>SuperLib is the same so that´s fine
07:55<Samu_>I found it in superlib
07:55<Samu_>nice, it needs a tilelist just to grab the top corner
08:20-!-andythenorth [~andytheno@cpc87219-aztw31-2-0-cust178.18-1.cable.virginm.net] has joined #openttd
08:20-!-andythenorth is "andythenorth" on #openttd
08:20<Samu_>thx Wormnest, this fixed it!
08:21<Samu_>this.route_1.RemoveValue(airport_tiles.Begin()); I hope this is doing what I think it does
08:21<Samu_>this.route_2.RemoveValue(airport_tiles.Begin()); I hope this is doing what I think it does
08:21<Samu_>1 and 2
08:23<Samu_>removes all items, in this case, all vehicleids that have the airport top corner tile as the value
08:30-!-keoz [~keikoz@2a01:e35:2fd5:51e0:d790:795d:2cc7:b53d] has joined #openttd
08:30-!-keoz is "Grmph" on #kernelnewbies #openttdcoop #openttd.dev #openttd
08:34<Samu_>LuDiAI vs LuDiAI AfterFix, that's how I called it
08:34<Samu_>let's see who wins
08:35-!-chomwitt is "chomwitt" on #debian #debian-games
08:35-!-chomwitt [~chomwitt@ppp-94-66-223-81.home.otenet.gr] has joined #openttd
08:37-!-Thedarkb-T60 [~Thedarkb-@86-40-230-165-dynamic.agg3.kny.prp-wtd.eircom.net] has quit [Ping timeout: 480 seconds]
08:41<Samu_>strange, LuDiAI is still doing better
08:44<Samu_>I see why
08:45<Samu_>LuDiAI stops at 500 road vehicles, doesn't have to manage that many road vehicles
08:46<Samu_>more time for handling aircraft
09:09-!-Thedarkb-T60 [~Thedarkb-@86-40-230-165-dynamic.agg3.kny.prp-wtd.eircom.net] has joined #openttd
09:09-!-Thedarkb-T60 is "realname" on #openttd
09:16-!-Maraxus [~chatzilla@87-56-231-247-dynamic.dk.customer.tdc.net] has quit [Quit: ChatZilla 0.9.93 [Firefox 56.0.2/20171024165158]]
09:22<Samu_>https://imgur.com/Nlq4mjA
09:23<Samu_>overtook it for the first time
09:27<Samu_>it's unfair, LuDiAI builds airports that doesn't use them
09:28<Samu_>there's less room for airports for the fixed version
09:28<Samu_>interesting paradigm
09:29<LordAro>well of course if you run them both at the same time it's not a fair test
09:29<LordAro>they're competing for the same resources
09:31<Samu_>maybe the map needs to be really big
09:31<Samu_>gonna try 2k map
09:31<LordAro>why would that help?
09:31<LordAro>they use the same logic for deciding where to build
09:31<Samu_>because LuDiAI leaves airports behind, unused, so i need more towns
09:32<Samu_>not sure if this would fix anything, but...
09:32<LordAro>well why are you trying it then?
09:32<Samu_>solve*
09:32<LordAro>the new version will try to build airports at exactly the same town
09:38<Samu_>something else I find it weird
09:38<Samu_>LuDiAI uses big planes on small airports, causing many crashes
09:38<Samu_>my fixed version only uses small planes on small airports, with much much less crashes
09:39<Samu_>and still... by brute force, the big planes win
09:40<Samu_>LuDiAI doesn't sell / renew old planes
09:40<Eddi|zuHause>that's how evil corporations work. lost profits not outweighing the cost of crashes?
09:41<Samu_>my fixed version sells old vehicles, doesn't exactly renew though
09:41-!-sim-al2 [~sim-al2@c-75-65-196-171.hsd1.tn.comcast.net] has quit [Ping timeout: 480 seconds]
09:41<Eddi|zuHause>just use autorenew
09:41<Samu_>if it sold the last vehicle on that route, it also sells the airports
09:42<Samu_>i'm unsure i can use autorenew, because the road part of the code is already renewing manually
09:43<Samu_>it's handling road vehicles pretty different than air vehicles
09:44<Samu_>LuDiAI crashed, the index len does not exist?
09:45<Samu_>must investigate
09:46<Samu_> for(local i = 0; i < m_townRouteArray.len(); ++i) {
09:56<Samu_>what is len supposed to be?
09:57<LordAro>something for determining the length of an array, i imagine
09:57<Samu_>isn't that Count()?
09:57<LordAro>usually
09:59<Samu_> constructor() { m_townRouteArray = [];
09:59-!-Thedarkb-T60 [~Thedarkb-@86-40-230-165-dynamic.agg3.kny.prp-wtd.eircom.net] has quit [Ping timeout: 480 seconds]
10:01<Wolf01>Bye
10:01-!-Wolf01 [~wolf01@0001288e.user.oftc.net] has quit [Quit: Once again the world is quick to bury me.]
10:04<Samu_>i'm unsure how to fix this, will need help
10:04<Samu_>https://paste.openttdcoop.org/pyxd59mk8
10:04<Samu_>the crash happened at line 65
10:05<LordAro>oh ok, it's not an AIList, so it is supposed to be using len()
10:09<Samu_>i'm looking at line 22, return null, and I'm wondering if it should be return 0?
10:09<LordAro>it is a bit unusual to return 2 different types
10:10-!-Sacro [~ben@000127ee.user.oftc.net] has quit [Ping timeout: 480 seconds]
10:10<LordAro>but i don't know what value it should actually return
10:10<Samu_> if (routeResult) {
10:11<Samu_>essentially if (1) {
10:11<Samu_>or if (null) {
10:11<LordAro>null is usually falsy, 1 is usually truthy
10:13<Samu_>darn, i should have used restart command
10:13<Samu_>now i dunno if i'm able to replicate the crash
10:15<Wormnest>If it crashed at line 65 then m_townRouteArray must have been null I think
10:16<Samu_>ah, i got a crash report posted about this same problem https://www.tt-forums.net/viewtopic.php?f=65&t=82685&sid=f2c236839d44d16a88d26f5e4298945b
10:16<Samu_>nice of me
10:19-!-snail_UES_ [~snail_UES@cpe-98-14-137-148.nyc.res.rr.com] has joined #openttd
10:19-!-snail_UES_ is "Jacopo Coletto" on #openttd
10:30-!-keoz [~keikoz@2a01:e35:2fd5:51e0:d790:795d:2cc7:b53d] has quit []
10:32-!-Thedarkb-T60 [~Thedarkb-@86-40-230-165-dynamic.agg3.kny.prp-wtd.eircom.net] has joined #openttd
10:32-!-Thedarkb-T60 is "realname" on #openttd
10:35<Samu_>can't reproduce the darn crash :(
10:56-!-Gja [~Martin@93-167-84-102-static.dk.customer.tdc.net] has joined #openttd
10:56-!-Gja is "Martin" on #ceph #bcache #openttd
10:57-!-Gja [~Martin@93-167-84-102-static.dk.customer.tdc.net] has quit []
10:57<Samu_>ok, i think i know where the crash originates
10:58<Samu_>when ludiai gets 501 road vehicles, which is over his max of 500
10:59<Samu_> if(MAX_TOWN_VEHICLES == routeManager.getRoadVehicleCount() - 1) { routeManager.m_townRouteArray[i].sendLowProfitVehiclesToDepot(); }
10:59<Samu_>MAX_TOWN_VEHICLES is 500
10:59<Samu_>if (500 == 501 - 1)
10:59<Samu_>he wants to maintain is max of 500 vehicles
11:00<Samu_>and not exceed it
11:01<Samu_>this crash is probably unable to happen on my version because I raised MAX_TOWN_VEHICLES to 5000
11:01<Samu_>as long as openttd max road vehicles is 5000, the ai would never get 5001 road vehicles
11:03<Samu_>but i'd still like to know how to fix it
11:05-!-Thedarkb-T60 [~Thedarkb-@86-40-230-165-dynamic.agg3.kny.prp-wtd.eircom.net] has quit [Ping timeout: 480 seconds]
11:05<LordAro>i imagine it wants a >= somewhere
11:09<Samu_> (AIVehicle.GetProfitLastYear(vehicle) < (highestProfitLastYear() / 6))) {
11:09<Samu_>problem seems to be highestProfitLastYear()
11:10<Samu_>it should be m_townRouteArray[i].highestProfitLastYear()
11:10<Samu_>if I'm reading this correctly
11:10-!-snail_UES_ [~snail_UES@cpe-98-14-137-148.nyc.res.rr.com] has quit [Quit: snail_UES_]
11:12<Samu_>or maybe not :(
11:12<LordAro>what is the error message?
11:13<LordAro>the error message should be pointing you at where the problem is
11:13<Samu_>routeManager.highestProfitLastYear() perhaps
11:14<Samu_>the error is https://www.tt-forums.net/viewtopic.php?f=65&t=82685&sid=f2c236839d44d16a88d26f5e4298945b
11:15<LordAro>right, so it's very clear what the error message is
11:15<LordAro>well, not very clear
11:15<LordAro>but clear enough
11:15<LordAro>i.e. the object that calls 'len' does not have that method attached to it
11:16<LordAro>since we've already determined that len must exist on a list object, it can't actually be a list object
11:16<LordAro>why that is is what you've got to work out
11:17<Samu_>replace highestProfitLastYear() with routeManager.highestProfitLastYear()
11:17<Samu_>is that it?
11:17<Samu_>(AIVehicle.GetProfitLastYear(vehicle) < (highestProfitLastYear() / 6))) {
11:17<Samu_>at here
11:17<LordAro>i feel like you didn't read a single word of what i just said
11:17<LordAro>try again
11:17<Samu_>eh ok let me try
11:22<Samu_>the object that calls len
11:23<Samu_>highestProfitLastYear() is the object?
11:23<Samu_>or is it m_townRouteArray
11:23<Eddi|zuHause>that's why i have an ignore list, to protect my sanity
11:23<LordAro>the latter
11:24<LordAro>highestProfitLastYear is a function
11:24<LordAro>(or a function call, depending on context)
11:24<Samu_>doesn't have that method attached to
11:25<Samu_>must attach a method?
11:26<LordAro>that's a bit of a bad explanation, i'll give you that one
11:26<Samu_>routeManager.highestProfitLastyear() - there I attached it :o
11:27<LordAro>right, so highestProfitLastYear is a function method "attached" to routeManager
11:27-!-KouDy [~koudy@ip4-83-240-28-102.cust.nbox.cz] has quit [Remote host closed the connection]
11:27<LordAro>so what is len?
11:28<LordAro>(i want you to answer this, so show that you're actually learning something)
11:28<LordAro>to show*
11:28<Gustavo6056>Hey, bros! Who remember me?
11:28<Gustavo6056>remembers*
11:30<Samu_>len, i'm not sure, it keeps track of the built routes .
11:30<Samu_> function buildRoute(buildManager, cityFrom, cityTo, cargoClass)
11:30<Samu_>local route = buildManager.buildRoute(cityFrom, cityTo, cargoClass);
11:30<LordAro>stop pasting code and think about it
11:30<Samu_>m_townRouteArray.append(route);
11:30<Samu_>is the number of routes it has appended?
11:31<LordAro>i was speaking in a more general sense, but close enough!"
11:31<LordAro>-"
11:31<Samu_>if you say it's using null
11:31<Samu_>it would mean m_townRouteArray = null;
11:31<Samu_>it can't be null
11:31<Samu_>they exist already
11:32<LordAro>are you sure about that?
11:32<Samu_>yes
11:32<Samu_>or no?
11:32<LordAro>what happens if highestProfitLastYear is called before the constructor?
11:32-!-smoke_fumus [~smoke_fum@188.35.176.90] has joined #openttd
11:32-!-smoke_fumus is "KVIrc 4.2.0 Equilibrium http://kvirc.net/" on #qemu #oolite #openttd
11:34<Samu_>m_town_RouteArray = null?
11:34<Samu_>m_townRouteArray = null
11:34<Samu_>there is no len?
11:34<LordAro>:)
11:36<Samu_>but they exist already, ludiai is now trying to remove the least profit vehicles from his routes
11:36<LordAro>if i'm remembering my squirrel correctly, you can call methods with and without the class instance
11:36<LordAro>which is rather confusing
11:38-!-Sacro [~ben@ns364742.ip-94-23-0.eu] has joined #openttd
11:38-!-Sacro is "Ben Woodward" on #openttd #tycoon #simsig
11:43<Samu_>here's the other function https://paste.openttdcoop.org/pyzhscwft
11:43<Samu_>line 23
11:44<LordAro>not sure i can help you significantly further, play around, add some debug print statements, see what you find
11:44<Samu_>it's a function on Route.nut calling another from RouteManager.nut
11:45<Samu_>im trying now to replicate the crash, but not sure how to make it trigger
11:46<Samu_>just know that it got to get 501 vehicles
11:46<Samu_>and be running that part of the code in that exact moment
11:49<Samu_>the sum of the cargo waiting must also be more than 150
11:51<Samu_>the vehicle must also be older than 2 years
11:53<Samu_>very hard conditions to get it to trigger
11:53<Samu_>must have not sold a vehicle in the last 2 months
11:56-!-KouDy [~koudy@ip4-83-240-28-102.cust.nbox.cz] has joined #openttd
11:56-!-KouDy is "KouDy" on #openttd
11:58<Samu_>routeManager.m_townRouteArray[i].sendLowProfitVehiclesToDepot();
11:58<Samu_>the array exists!
12:00<Samu_>gonna try increase the chances by creating BIIIG CITIES on start up
12:02<Samu_>oh crap, the cpu usage deal
12:07<Samu_>reduced the max vehicles to 150, let's see if i can make it happen
12:07<Samu_>quckly
12:08<Wormnest>I would add a check for m_townRouteArray == null and if it is write a debug msg
12:09<Samu_>aha, got a crash!
12:10<Samu_>mister white got 151 vehicles and crashed
12:10<Samu_>meanwhile I found some other with 152 and didn't crash, then again the function requires an exact match of 151
12:10<Samu_>this seems more buggy than I first thought
12:14<Samu_>(AIVehicle.GetProfitLastYear(vehicle) < (routeManager.highestProfitLastYear() / 6))) {
12:14<Samu_>restesting with this change
12:18<Samu_>the index routeManager does not exist :(
12:18<Samu_>became worse
12:22<Samu_>LuDiAIAfterFix.routeManager.highestProfitLastYear()
12:22<Samu_>i have to pass the darn routeManager around
12:22<Samu_>just dunnot how, yet
12:25<Samu_> routeManager = RouteManager();
12:25<Samu_>so I see
12:25-!-agentw4b_ [~agentw4b@178.77.244.91] has joined #openttd
12:25-!-agentw4b_ is "KlubusL" on #openttd.dev #openttdcoop #openttd
12:27<Samu_>sorry :( doesnt work
12:28<Samu_>I'll never learn
12:31<LordAro>not if you refuse to learn the basics
12:32-!-agentw4b__ [~agentw4b@178.77.244.91] has quit [Ping timeout: 480 seconds]
12:38-!-agentw4b__ [~agentw4b@178.77.244.91] has joined #openttd
12:38-!-agentw4b__ is "KlubusL" on #openttd.dev #openttdcoop #openttd
12:39-!-agentw4b___ [~agentw4b@178.77.244.91] has joined #openttd
12:39-!-agentw4b___ is "KlubusL" on #openttd.dev #openttdcoop #openttd
12:40<Samu_>trying something else
12:40<Samu_> for(local i = 0; i < routeManager.m_townRouteArray.len(); ++i) {
12:44<Samu_>the index routeManager doesn't exist :(
12:45<Samu_>fake news
12:45<Samu_>it exists :(
12:45-!-agentw4b____ [~agentw4b@178.77.244.91] has joined #openttd
12:45-!-agentw4b____ is "KlubusL" on #openttd.dev #openttdcoop #openttd
12:45<LordAro>routeManager is not the same as RouteManager
12:46-!-agentw4b_ [~agentw4b@178.77.244.91] has quit [Ping timeout: 480 seconds]
12:46-!-agentw4b__ [~agentw4b@178.77.244.91] has quit [Ping timeout: 480 seconds]
12:47-!-agentw4b_ [~agentw4b@178.77.244.91] has joined #openttd
12:47-!-agentw4b_ is "KlubusL" on #openttd.dev #openttdcoop #openttd
12:48<Samu_>there is a constructor in main.nut with routeManager = RouteManager();
12:48<Samu_>I want to get it
12:49<Samu_>there can be only 1
12:50<Samu_>all route operations are being done into 'routeManager'
12:50<Samu_>so it's on this one i got to get the array from
12:50<Samu_>but I can't seem to reach it
12:52-!-agentw4b___ [~agentw4b@178.77.244.91] has quit [Ping timeout: 480 seconds]
12:53-!-agentw4b____ [~agentw4b@178.77.244.91] has quit [Ping timeout: 480 seconds]
12:59-!-Gja [~Martin@93-167-84-102-static.dk.customer.tdc.net] has joined #openttd
12:59-!-Gja is "Martin" on #ceph #bcache #openttd
13:00-!-Thedarkb-T60 [~Thedarkb-@86-44-183-192-dynamic.agg2.kny.prp-wtd.eircom.net] has joined #openttd
13:00-!-Thedarkb-T60 is "realname" on #openttd
13:14-!-Thedarkb-T60 [~Thedarkb-@86-44-183-192-dynamic.agg2.kny.prp-wtd.eircom.net] has quit [Ping timeout: 480 seconds]
13:30-!-Thedarkb-T60 [~Thedarkb-@86-44-183-192-dynamic.agg2.kny.prp-wtd.eircom.net] has joined #openttd
13:30-!-Thedarkb-T60 is "realname" on #openttd
13:33-!-glx [~glx@000128ec.user.oftc.net] has joined #openttd
13:33-!-mode/#openttd [+v glx] by ChanServ
13:33-!-glx is "Loïc GUILLOUX" on +#openttd
13:47<Samu_>i managed to do it
13:48<Samu_>not with the best approach though, but will suffice for now
13:51-!-Gja [~Martin@93-167-84-102-static.dk.customer.tdc.net] has quit [Quit: Going offline, see ya! (www.adiirc.com)]
14:05-!-tokai|noir [~tokai@00012860.user.oftc.net] has joined #openttd
14:05-!-mode/#openttd [+v tokai|noir] by ChanServ
14:05-!-tokai|noir is "Christian Rosentreter" on +#openttd
14:12-!-tokai [~tokai@00012860.user.oftc.net] has quit [Ping timeout: 480 seconds]
14:17<Samu_>routeManager.m_townRouteArray[i].sendLowProfitVehiclesToDepot(routeManager);
14:17<Samu_> (AIVehicle.GetProfitLastYear(vehicle) < (highestProfitLastYear(routeManager) / 6))) {
14:18<Samu_> for(local i = 0; i < routeManager.m_townRouteArray.len(); ++i) {
14:18<Samu_>and thus, the routeManager was passed around
14:18<Samu_>:)
14:19<Samu_>because I don't know how to do it the right way
14:21<@peter1138>ew at "for("
14:23<Samu_>I would prefer to access it directly
14:24<Samu_>but nevermind. it works, it's what matters for now
14:46-!-gelignite [~gelignite@55d4e55a.access.ecotel.net] has joined #openttd
14:46-!-gelignite is "gelignite" on #openttd
14:54-!-Maraxus [~chatzilla@87-56-231-247-dynamic.dk.customer.tdc.net] has joined #openttd
14:54-!-Maraxus is "Maraxus" on #openttd #factoriocoop @#openttdcoop.stable @#openttdcoop
14:57-!-andythenorth [~andytheno@cpc87219-aztw31-2-0-cust178.18-1.cable.virginm.net] has quit [Quit: andythenorth]
15:10-!-andythenorth [~andytheno@cpc87219-aztw31-2-0-cust178.18-1.cable.virginm.net] has joined #openttd
15:10-!-andythenorth is "andythenorth" on #openttd
15:14-!-Thedarkb-T60 [~Thedarkb-@86-44-183-192-dynamic.agg2.kny.prp-wtd.eircom.net] has quit [Ping timeout: 480 seconds]
15:15-!-KouDy [~koudy@ip4-83-240-28-102.cust.nbox.cz] has quit [Remote host closed the connection]
15:18-!-iSoSyS [~iSoSyS@150.ip-54-37-154.eu] has joined #openttd
15:18-!-iSoSyS is "realname" on #openttd
15:20-!-sla_ro|master [~sla.ro@78.96.209.89] has quit [Ping timeout: 480 seconds]
15:49-!-KouDy [~koudy@ip4-83-240-28-102.cust.nbox.cz] has joined #openttd
15:49-!-KouDy is "KouDy" on #openttd
16:12-!-andythenorth [~andytheno@cpc87219-aztw31-2-0-cust178.18-1.cable.virginm.net] has left #openttd []
16:23-!-sim-al2 [~sim-al2@c-75-65-196-171.hsd1.tn.comcast.net] has joined #openttd
16:23-!-sim-al2 is "sim-al2" on #openttd
16:38-!-Maraxus [~chatzilla@87-56-231-247-dynamic.dk.customer.tdc.net] has quit [Quit: ChatZilla 0.9.93 [Firefox 56.0.2/20171024165158]]
16:39-!-frosch123 [~frosch@00013ce7.user.oftc.net] has quit [Quit: be yourself, except: if you have the opportunity to be a unicorn, then be a unicorn]
16:39-!-gelignite [~gelignite@55d4e55a.access.ecotel.net] has quit [Quit: Match found!]
16:56-!-synchris [~synchris@139.138.202.72] has quit [Quit: yeeha!]
16:58-!-agentw4b__ [~agentw4b@178.77.244.91] has joined #openttd
16:58-!-agentw4b__ is "KlubusL" on #openttd.dev #openttdcoop #openttd
17:02-!-agentw4b_ [~agentw4b@178.77.244.91] has quit [Ping timeout: 480 seconds]
17:14-!-Thedarkb-T60 [~Thedarkb-@86-44-183-192-dynamic.agg2.kny.prp-wtd.eircom.net] has joined #openttd
17:14-!-Thedarkb-T60 is "realname" on #openttd
17:41-!-smoke_fumus [~smoke_fum@188.35.176.90] has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
18:30-!-Wacko1976 [~IceChat9@027-161-128-083.dynamic.caiway.nl] has quit [Ping timeout: 480 seconds]
18:42-!-ToBeFree [uid51591@id-51591.tooting.irccloud.com] has joined #openttd
18:42-!-ToBeFree is "ToBeFree" on #openttd #oolite-ger #oolite-dev #oolite #linux #https-everywhere @#freiwuppertal @#InfiniteAdventures
18:43-!-ToBeFree [uid51591@00019d36.user.oftc.net] has quit []
18:51-!-Wacko1976 [~IceChat9@027-161-128-083.dynamic.caiway.nl] has joined #openttd
18:51-!-Wacko1976 is "The Chat Cool People Use" on #openttd
18:52-!-Wacko1976 [~IceChat9@027-161-128-083.dynamic.caiway.nl] has quit []
18:52-!-Wormnest [~Wormnest@s5596abd2.adsl.online.nl] has quit [Quit: Leaving]
19:01-!-HerzogDeXtEr [~farci@dslb-178-005-116-146.178.005.pools.vodafone-ip.de] has quit [Read error: Connection reset by peer]
19:43-!-chomwitt [~chomwitt@ppp-94-66-223-81.home.otenet.gr] has quit [Ping timeout: 480 seconds]
19:49-!-Progman [~progman@p4FD6621C.dip0.t-ipconnect.de] has quit [Remote host closed the connection]
20:14-!-Thedarkb1-T60 [~Thedarkb-@51-171-110-84-dynamic.agg2.kny.prp-wtd.eircom.net] has joined #openttd
20:14-!-Thedarkb1-T60 is "realname" on #openttd
20:21-!-Thedarkb-T60 [~Thedarkb-@86-44-183-192-dynamic.agg2.kny.prp-wtd.eircom.net] has quit [Ping timeout: 480 seconds]
20:42-!-sim-al2 [~sim-al2@c-75-65-196-171.hsd1.tn.comcast.net] has quit [Ping timeout: 480 seconds]
21:21-!-Thedarkb2-T60 [~Thedarkb-@51-171-110-84-dynamic.agg2.kny.prp-wtd.eircom.net] has joined #openttd
21:21-!-Thedarkb2-T60 is "realname" on #openttd
21:22-!-snail_UES_ [~snail_UES@cpe-98-14-137-148.nyc.res.rr.com] has joined #openttd
21:22-!-snail_UES_ is "Jacopo Coletto" on #openttd
21:25-!-KouDy [~koudy@ip4-83-240-28-102.cust.nbox.cz] has quit [Remote host closed the connection]
21:26-!-Thedarkb1-T60 [~Thedarkb-@51-171-110-84-dynamic.agg2.kny.prp-wtd.eircom.net] has quit [Ping timeout: 480 seconds]
21:33-!-KouDy [~koudy@ip4-83-240-28-102.cust.nbox.cz] has joined #openttd
21:33-!-KouDy is "KouDy" on #openttd
21:44-!-Samu_ [~oftc-webi@pa4-84-91-142-34.netvisao.pt] has quit [Quit: Page closed]
22:01-!-glx [~glx@000128ec.user.oftc.net] has quit [Quit: Bye]
22:10-!-Mahjong1 [~qq@2a00:23c5:6507:1a00:4c86:ef42:3f13:fb3a] has joined #openttd
22:10-!-Mahjong1 is "realname" on #ohnx #openttd
22:13-!-Thedarkb1-T60 [~Thedarkb-@51-171-110-84-dynamic.agg2.kny.prp-wtd.eircom.net] has joined #openttd
22:13-!-Thedarkb1-T60 is "realname" on #openttd
22:16-!-Thedarkb2-T60 [~Thedarkb-@51-171-110-84-dynamic.agg2.kny.prp-wtd.eircom.net] has quit [Ping timeout: 480 seconds]
22:16-!-Mahjong [~qq@2a00:23c5:6507:1a00:4c86:ef42:3f13:fb3a] has quit [Ping timeout: 480 seconds]
22:52-!-Supercheese [~Superchee@cpe-98-146-230-183.natnow.res.rr.com] has joined #openttd
22:52-!-Supercheese is "Supercheese" on #openttd
22:58-!-Flygon [~Flygon@124-149-153-142.dyn.iinet.net.au] has joined #openttd
22:58-!-Flygon is "Flygon" on #openttd
23:16-!-KouDy [~koudy@ip4-83-240-28-102.cust.nbox.cz] has quit [Remote host closed the connection]
23:35-!-iSoSyS [~iSoSyS@150.ip-54-37-154.eu] has quit [Ping timeout: 480 seconds]
23:50-!-KouDy [~koudy@ip4-83-240-28-102.cust.nbox.cz] has joined #openttd
23:50-!-KouDy is "KouDy" on #openttd
23:52-!-sim-al2 [~sim-al2@c-75-65-196-171.hsd1.tn.comcast.net] has joined #openttd
23:52-!-sim-al2 is "sim-al2" on #openttd
---Logclosed Sun Aug 19 00:00:08 2018