Config
Log for #openttd on 31st December 2018:
Times are UTC Toggle Colours
00:01:35  *** Progman has joined #openttd
00:12:58  *** wodencafe has quit IRC
00:14:26  *** wodencafe has joined #openttd
00:51:32  *** Thedarkb-T60 has quit IRC
00:58:02  *** Flygon has joined #openttd
01:01:59  <DorpsGek_II> [OpenTTD/OpenTTD] glx22 opened pull request #7002: Add: [Win32] regression testing with MSVC https://git.io/fhLHR
01:04:53  *** Wolf01 has quit IRC
01:27:08  *** Thedarkb-T60 has joined #openttd
01:28:41  <peter1138> Process 'msbuild.exe' exited with code '1'.
01:28:42  <peter1138> ;/
01:46:58  <DorpsGek_II> [OpenTTD/OpenTTD] glx22 updated pull request #7002: Add: [Win32] regression testing with MSVC https://git.io/fhLHR
01:47:45  <glx> msbuild didn't like the configuration names
01:49:15  <glx> now if everything works as intended it should fail at regression test due to missing grfs
01:55:19  *** Progman has quit IRC
02:02:15  <glx> and of course it doesn't start the build
02:08:42  <DorpsGek_II> [OpenTTD/OpenTTD] glx22 commented on pull request #7002: Add: [Win32] regression testing with MSVC https://git.io/fhLQF
03:48:04  *** glx has quit IRC
04:26:04  *** Mahjong has quit IRC
04:26:23  *** Mahjong has joined #openttd
04:32:18  *** HerzogDeXtEr1 has joined #openttd
04:38:59  *** HerzogDeXtEr has quit IRC
05:08:32  *** erratic has quit IRC
05:11:11  *** HerzogDeXtEr1 has quit IRC
05:33:24  *** tycoondemon has quit IRC
05:43:48  <DorpsGek_II> [OpenTTD/OpenTTD] gregcarlin opened pull request #7003: Feature #6918: Add option to adjust font size separately from GUI size. https://git.io/fhLFX
05:58:10  *** HeyCitizen has joined #openttd
06:03:24  *** HeyCitizen_ has quit IRC
06:22:59  *** erratic has joined #openttd
07:30:38  *** nielsm has joined #openttd
07:49:15  *** andythenorth has joined #openttd
07:57:26  <andythenorth> o/
08:01:51  <nielsm> morning
08:54:23  <nielsm> I can't figure out how to specify what tile graphics to use for an industry tile...
08:54:56  <andythenorth> you want your own, or reuse original?
08:55:26  <nielsm> later my own, for now really just reuse original
08:56:32  <nielsm> something with making a spritelayout, then referencing it in a graphics{} block inside the item?
08:57:24  *** wodencafe has quit IRC
08:57:43  *** wodencafe has joined #openttd
08:58:26  <nielsm> also, is it possible to remap base graphics? i.e. remap the above-snowline landscape tiles into the toyland base tiles?
08:58:38  <andythenorth> kinda
08:59:00  <andythenorth> spriteset is action1 realsprites
08:59:07  <andythenorth> spritelayout is action2 iirc
08:59:21  <andythenorth> then the graphics block maps via the layout to the realsprites
08:59:44  <andythenorth> I have to go out for a few hours, ogfx+ industries might be a help
09:00:37  <andythenorth> hmm it has CPP in it
09:00:49  <andythenorth> and FIRS graphics chains are....seriously complex :|
09:00:57  <andythenorth> BBL
09:00:57  *** andythenorth has left #openttd
09:34:46  *** sla_ro|master has joined #openttd
09:43:12  *** sla_ro|master has quit IRC
09:44:35  *** Wolf01 has joined #openttd
09:45:26  <Wolf01> o/
09:50:31  <nielsm> hmm nml years_available prop for houses doesn't accept the MAX_YEAR value used for built-in houses
10:14:57  <TrueBrain> okay, this is weird .. Azure Pipelines only started to work when I got on their page .. I read something about that .. you need to regular visit their page for them to process your CI ..
10:15:00  <TrueBrain> that is kinda useless :s
10:16:48  <peter1138> o_O
10:19:02  <peter1138> Can you make a pipeline that "visits" their page regularly? :p
10:19:20  <LordAro> oh dear
10:19:33  <TrueBrain> `Someone must view a page in your organization regularly for CI and scheduled builds to run. It can be any page, including, for example, Azure Pipelines.`
10:19:49  <nielsm> how often is that
10:19:51  <TrueBrain> what is that for a bullshit
10:19:53  <peter1138> That's somewhat annoying.
10:20:06  <TrueBrain> `Your organization goes dormant five minutes after the last user signed out of Azure DevOps.`
10:20:10  <TrueBrain> what is "signed out" ..
10:20:36  <TrueBrain> they also wrote it down like it is the most normal thing in the world
10:20:56  <nielsm> "if someone makes a commit, and nobody is around to observe it, can it build?"
10:21:15  *** Progman has joined #openttd
10:21:54  <TrueBrain> guess we are just going to make a crontab that fetches a page every hour :P
10:22:03  <TrueBrain> I mean, wtf, seriously, what is this for a bullshit :o
10:22:06  <peter1138> I guess they've misunderstood what the C in CI means.
10:22:26  <peter1138> Like it's setup to work when you're logged in checking the results.
10:23:44  <nielsm> getting weirder... https://0x0.st/s5_2.png
10:24:14  <peter1138> That needs a NSFE warning.
10:24:20  <nielsm> :D
10:26:11  <DorpsGek_II> [OpenTTD/OpenTTD] TrueBrain commented on pull request #7002: Add: [Win32] regression testing with MSVC https://git.io/fhLhP
10:26:33  <Eddi|zuHause> not safe for eyes?
10:26:50  <TrueBrain> hmm .. odd, another CI did run .. I am confused
10:27:02  <TrueBrain> might be that it doesn't run if you change the azure-pipelines.yaml until you login?
10:27:16  <TrueBrain> we will give it some time, see how things go
10:29:40  <Eddi|zuHause> so you need to hire someone that presses F5 on a browser for the automatted system to work?
10:31:17  <peter1138> Eddi|zuHause, yes, eyes.
10:32:11  <peter1138> It'll run once after log out, apparently. I guess log out is not the same as closing the page.
10:37:23  <DorpsGek_II> [OpenTTD/OpenTTD] btzy opened issue #7004: Cargo flow legend does not get redrawn in additional area when zoomed out https://git.io/fhLjv
10:45:26  *** wodencafe has quit IRC
10:46:40  <TrueBrain> ugh, moving repositories to OpenTTD is more annoying than I expected .. lot of moving parts :D
10:48:53  <DorpsGek_II> [OpenTTD/website] TrueBrain merged pull request #4: Add: dorpsgek configuration for IRC notification https://git.io/fhLjC
10:48:59  <TrueBrain> there we go
10:49:14  *** wodencafe has joined #openttd
11:01:01  <TrueBrain> every Saturday the website now automatically updates with the latest software updates
11:01:02  <nielsm> okay it's not possible to remap baseset sprites to different baseset sprites I guess, the replacement sprites have to come from the newgrf
11:03:05  <Eddi|zuHause> i don't know how, but the alpine set somehow reused existing house sprites and only added snowy roofs
11:08:37  *** sla_ro|master has joined #openttd
11:27:16  <peter1138> Weird, rebooted a VM and its status on the host changed to "paused" o_O
11:34:04  <peter1138> Eddi|zuHause, probably included the original graphics in it.
11:34:24  <Eddi|zuHause> not as far as i could see
11:38:59  *** gelignite has joined #openttd
12:06:37  *** Progman_ has joined #openttd
12:11:42  *** Progman has quit IRC
12:17:15  *** Borg has joined #openttd
12:18:12  <nielsm> copy-pasting some graphics from opengfx... https://0x0.st/s5Lc.png
12:18:15  <nielsm> looking better now :P
12:19:27  *** Thedarkb-T60 has quit IRC
12:19:49  *** Thedarkb-T60 has joined #openttd
12:30:32  *** Wacko1976 has joined #openttd
12:50:52  *** Wacko1976 has quit IRC
12:50:55  <DorpsGek_II> [OpenTTD/OpenTTD] btzy commented on issue #7004: Cargo flow legend does not get redrawn in additional area when zoomed out https://git.io/fhtf5
13:01:22  *** Thedarkb-T60 has quit IRC
13:12:38  *** Thedarkb-T60 has joined #openttd
13:25:36  *** HerzogDeXtEr has joined #openttd
13:27:51  <DorpsGek_II> [OpenTTD/OpenTTD] btzy opened pull request #7005: Fix #7004: Redraw linkgraph overlay correctly after zoom https://git.io/fhtUO
13:30:42  *** nielsm has quit IRC
13:56:10  *** andythenorth has joined #openttd
13:58:08  <andythenorth> yo
14:01:52  <andythenorth> but should I make 4/8 engines?
14:02:24  <Eddi|zuHause> no
14:02:33  <andythenorth> because...?
14:03:12  <Eddi|zuHause> not enough time to explain right now, happy end of the year...
14:03:34  <TrueBrain> andythenorth: I moved the website repository: https://github.com/OpenTTD/website
14:03:53  <andythenorth> TrueBrain: \o/
14:03:58  <andythenorth> eddi is being enigmatic :)
14:12:44  *** Thedarkb-T60 has quit IRC
14:45:21  *** Thedarkb-T60 has joined #openttd
14:59:29  *** Progman_ is now known as Progman
15:03:51  *** glx has joined #openttd
15:03:51  *** ChanServ sets mode: +v glx
15:10:39  *** Flygon has quit IRC
15:13:51  <andythenorth> o_O https://dev.openttdcoop.org/attachments/download/9234/4_8_diesels.png
15:14:11  <andythenorth> top one is 6/8, rest are 4/8
15:15:34  <Borg> top one looks good.. others are too short
15:20:17  <andythenorth> o_O
15:21:59  <andythenorth> probably a 'nope' eh? https://dev.openttdcoop.org/attachments/download/9235/4_8_diesels_2.png
15:23:38  <Borg> yep... 6/8 looks good.. as u can see
15:24:07  <Borg> but.. its just me..
15:24:32  <andythenorth> nah
15:24:39  <andythenorth> every 6 months I try 4/8 and reject it
15:24:59  <andythenorth> the \ / views are even worse, just 8 pixels to draw with
15:26:12  <andythenorth> I try it because of the MJS 250 in the tropic base set
15:26:35  <Borg> yeah.. I never use it.. looks bad... works bad.. ;P
15:27:48  <Borg> andythenorth: btw... basic cargo's do overlap or not? I mean between climates?
15:28:24  <andythenorth> ?
15:28:37  <Borg> ok.. nevermind.. it might be bad idea anyway..
15:29:58  <Borg> anyway.. any players today? I want to start new server....
15:32:22  *** Thedarkb-T60 has quit IRC
15:32:43  *** Thedarkb-T60 has joined #openttd
15:33:06  <planetmaker> https://newgrf-specs.tt-wiki.net/wiki/CargoTypes#Cargo_Labels <-- does that answer your question partially @ Borg?
15:35:18  <Borg> no its not..
15:35:22  <Borg> lets dig futher...
15:37:35  <Borg> https://newgrf-specs.tt-wiki.net/index.php?title=CargoTypes&oldid=2861
15:37:39  <Borg> this answer my question
15:38:04  *** Progman has quit IRC
15:38:12  <Borg> so they do overlap..
15:44:54  *** Wormnest has joined #openttd
16:00:30  <DorpsGek_II> [OpenTTD/OpenTTD] glx22 updated pull request #7002: Add: [Win32] regression testing with MSVC https://git.io/fhLHR
16:01:29  *** wodencafe has quit IRC
16:04:06  <DorpsGek_II> [OpenTTD/OpenTTD] glx22 commented on pull request #7002: Add: [Win32] regression testing with MSVC https://git.io/fhtY9
16:04:32  *** wodencafe has joined #openttd
16:06:30  *** Alberth has joined #openttd
16:06:30  *** ChanServ sets mode: +o Alberth
16:06:36  <Alberth> moin
16:12:01  *** Progman has joined #openttd
16:20:49  *** andythenorth has quit IRC
16:23:18  *** andythenorth has joined #openttd
16:25:28  <DorpsGek_II> [OpenTTD/OpenTTD] glx22 updated pull request #7002: Add: [Win32] regression testing with MSVC https://git.io/fhLHR
16:27:57  <andythenorth> hi Alberth
16:28:06  <andythenorth> so...NRT merge? :D
16:28:49  <Alberth> :o could be
16:29:35  <Alberth> you got a report about a missing diamond mine in firs 3.0.10, I tried it too and it worked for me
16:30:00  <Alberth> got a few NRT links  ?
16:30:44  <Alberth> he did have a few other newgrfs, although nothing industry-ish at first sight
16:31:14  <andythenorth> most recent rebase by peter https://github.com/PeterN/OpenTTD/tree/nrt-block-rebased
16:31:25  <LordAro> i'm guessing it's too much to ask for 1.9.0-beta1 for tomorrow? :p
16:31:27  <andythenorth> conflicts with current master
16:31:38  *** Samu has joined #openttd
16:31:56  <Alberth> hai lord aro, asking is always possible, getting is the tricky bit :p
16:32:07  <Samu> hello
16:32:14  <Alberth> hai samu
16:33:09  <Samu> webchat.oftc.net isn't working
16:33:27  <Samu> trying kiwi irc
16:33:47  <Alberth> proper irc client is so much better imho :)
16:35:03  <andythenorth> Alberth: even a partial rebase would be a step forward :)
16:35:19  <andythenorth> it's a PITA due to docs and sprite conflicts
16:36:44  <DorpsGek_II> [OpenTTD/OpenTTD] glx22 updated pull request #7002: Add: [Win32] regression testing with MSVC https://git.io/fhLHR
16:38:47  <DorpsGek_II> [OpenTTD/OpenTTD] LordAro commented on pull request #7002: Add: [Win32] regression testing with MSVC https://git.io/fht3M
16:39:10  <DorpsGek_II> [OpenTTD/OpenTTD] LordAro commented on pull request #7002: Add: [Win32] regression testing with MSVC https://git.io/fht39
16:40:10  <Wolf01> Starting to build the new lego robotic arm moc killed me .-.
16:40:26  <Alberth> :(  dead wolf
16:40:40  <LordAro> rip
16:41:20  <Alberth> LordAro: you got a notification on a freerct enhancement too?
16:42:05  <LordAro> er
16:42:25  <LordAro> ah yes
16:42:37  <Wolf01> Now I have more or less an idea of what it will come out at the end, and it's only a bit bigger than the old one, but 6dof instead of 4
16:42:46  <LordAro> Alberth: do you still remember where anything goes?
16:42:48  <LordAro> :p
16:43:05  <Alberth> mot really :p
16:43:44  <Alberth> the guy would be better off just forking and going hiw own direction perhaps
16:44:44  <Alberth> wolf survived, phew!
16:47:04  <LordAro> Alberth: or give them commit writes :p
16:47:15  <LordAro> rights*
16:49:38  <DorpsGek_II> [OpenTTD/OpenTTD] glx22 commented on pull request #7002: Add: [Win32] regression testing with MSVC https://git.io/fhtsZ
16:53:57  <Heiki> https://wiki.openttd.org/Openttd_(x11)_screensaver_howto wow, I just found this (although I was looking for the opposite, i.e. how to force OpenTTD not to inhibit screensaving)
16:55:57  <DorpsGek_II> [OpenTTD/OpenTTD] glx22 commented on pull request #7002: Add: [Win32] regression testing with MSVC https://git.io/fhtsr
16:56:05  <Borg> Heiki: what do you mean? not to inhibit SS?
17:02:49  *** Thedarkb-T60 has quit IRC
17:03:01  <Heiki> Borg: when OpenTTD is running (other than with -D), my screen won’t blank (I’m using Xfce and light-locker, but presumably it would be the same for any X window manager and screensaver)
17:04:56  <Heiki> “xset dpms force off” does blank the screen, but only for a second or so
17:05:30  <andythenorth> these small freight engines didn't convince me http://bundles.openttdcoop.org/iron-horse/push/v6938-2883/docs/html/trains.html#saxon
17:05:33  <Heiki> (yes, this is somewhat Linux-specific (:)
17:05:37  <andythenorth> redrawn them :P http://bundles.openttdcoop.org/iron-horse/push/LATEST/docs/html/trains.html#saxon
17:05:51  <andythenorth> Goliath cab + steps needs more tweaks :P
17:06:39  <TrueBrain> LordAro: releases will not be done via azure-pipelines-ci.yml .. as the name.might suggest :p
17:07:05  <TrueBrain> so glx can go nuts with where to place gfx
17:07:08  <LordAro> TrueBrain: very good :)
17:07:35  <glx> anyway it still doesn't work :(
17:09:55  <glx> the batch works fine when started via the project in VS, or from VS2017 command window
17:10:44  <glx> but on the azure pipelines VS tools are only available for VS tasks it seems
17:12:34  <Borg> Heiki: ah.. Linux... cant help then
17:12:59  <Borg> in windows there is function to handle that..
17:32:48  *** Mahjong1 has joined #openttd
17:36:03  <Borg> any NoGO experts here? is this valid?
17:36:08  <Borg> tab=list.GetValue(i); tab.var=0;
17:36:12  <Borg> will that update list tab var? I mean those are references? or I need to do SetValue(i,tab) again?
17:40:04  *** Mahjong has quit IRC
17:44:22  <Samu> i am na expert, sort of, lol
17:45:01  <Samu> it's tab.GetValue(i) i think
17:45:29  <Samu> damn the auto correction is kicking in in kiwi irc
17:45:33  <Samu> how do i disable it
17:47:04  <Samu> what is the name of the setting that correct my words?
17:47:09  <Samu> on edge
17:47:11  <Samu> browser
17:47:43  <Samu> ah, think i got it
17:48:54  <Samu> nop, i didn't
17:50:39  <Borg> Samu: no you dont get it.. :)
17:51:03  <Borg> earlier I did this: tab={}; tab.val <- 1; list.AddItem(tab);
17:51:29  <Borg> now I need to modify it.. and if GetValue returns reference.. that would be cool.. because tab.. is table.. not scalar
17:56:07  *** Progman has quit IRC
17:56:31  *** Progman has joined #openttd
17:56:59  <Samu> i guess i'm a noob
17:59:15  <Samu> let me copy paste some of my code, maybe it's what you're looking for
18:00:08  <Samu> wow, really?
18:00:12  <Samu> can't paste on kiwi irc
18:00:47  <Samu> check it on paste.openttdcoop.org
18:00:55  <Samu> should be the first
18:01:47  <LordAro> i'd be very surprised if you couldn't paste into kiwiirc
18:01:55  *** Thedarkb-T60 has joined #openttd
18:05:51  <DorpsGek_II> [OpenTTD/OpenTTD] glx22 updated pull request #7002: Add: [Win32] regression testing with MSVC https://git.io/fhLHR
18:07:02  <Samu> looks like im gonna get mirc
18:07:07  <Samu> not copy pasting annoys me
18:07:54  <Samu> this auto spelling correction is also annoying me
18:07:56  <LordAro> mirc? has anyone used that in the last 20 years?
18:08:07  <LordAro> hexchat is the usual windows irc client
18:08:36  <Samu> hexchat? let me check that one
18:09:05  <peter1138> putty + tmux + irssi ;)
18:09:20  <LordAro> Samu: https://en.wikipedia.org/wiki/Comparison_of_Internet_Relay_Chat_clients ;)
18:09:22  <TrueBrain> wait, people still use IRC?!
18:09:48  <Borg> peter1138: no need for putty :) u can get irssi on windows too
18:09:49  <Samu> hexchat €9,99, really?
18:09:52  <Samu> no thx
18:09:56  <LordAro> ...what
18:10:21  <Borg> Samu: just get console based irssi... and IRC like a real man.. ;D
18:10:23  <Samu> the download for windows 10
18:10:31  <Samu> is na app
18:10:35  <Samu> costs €9,99
18:10:48  <LordAro> "NOTE: This application is free the purchase is optional."
18:11:03  <LordAro> (alternatively just download the installer, not via MS store)
18:13:54  <Samu> screw hexchat, can't find a windows 10 installer
18:15:07  <LordAro> https://hexchat.github.io/downloads.html it's literally right there
18:16:01  <LordAro> though if you're confused about the Win7 installer...
18:16:42  <LordAro> that is '"Win 7+" installer', rather than "Win 7 + installer"
18:17:44  <Samu> brb
18:17:46  *** Samu has quit IRC
18:18:00  *** Samu has joined #openttd
18:18:04  <Samu> test
18:18:09  <Samu> ok this is mIRC
18:19:23  <DorpsGek_II> [OpenTTD/OpenTTD] glx22 updated pull request #7002: Add: [Win32] regression testing with MSVC https://git.io/fhLHR
18:20:42  *** sla_ro|master has quit IRC
18:20:51  <glx> building release is so slow, just to see it still fails at the end
18:21:19  <LordAro> setting up CI does tend to be that way
18:22:39  <glx> at least I know the regression script properly set the failure status of regression :)
18:22:50  <Samu> https://paste.openttdcoop.org/pe2m5s2o1?/pe2m5s2o1
18:22:56  <Samu> yes, copy paste works
18:23:12  <LordAro> glx: :)
18:23:38  <glx> but it's not for the good reason
18:25:51  <Samu> what is the Font used in paste.openttdcoop.org? mirc lets me chose from a big list of fonts
18:26:04  <Samu> i like the one in paste side
18:26:12  <Samu> site
18:26:25  <LordAro> Samu: inspect element
18:26:35  <LordAro> (on paste.ottdc.org)
18:26:46  <glx> looks like a monospace font
18:26:54  <LordAro> indeed it is
18:27:52  <glx> victory \o/
18:27:57  <LordAro> :o
18:28:02  <LordAro> \o/
18:28:24  <LordAro> Samu: the site just asks for a generic "monospace" font, so it'll be dependent on your system
18:29:01  <glx> I personally use arial unicode (so it can display almost anything)
18:29:10  <glx> but it's not a monospace font
18:29:26  <Samu> "Helvetica Neue",Helvetica,Arial,sans-serif
18:29:30  <Samu> let me try
18:29:49  <glx> helvetica is not monospace
18:30:43  <Samu> i dont have helvetica, wtf
18:30:47  <Samu> bah doesn't matter
18:34:45  <Samu> got it!
18:34:52  <Samu> It was "Consolas"
18:35:26  <Borg> localization.. the root of all evil on earth.. ;)
18:36:52  <Samu> oh, Borg, was that of any help?
18:39:55  <Wolf01> Meh, social interactions, I'll return later :P
18:40:53  *** andythenorth has quit IRC
18:41:04  <Samu> looks like with mirc i can connect to multiple servers at the same time
18:41:18  <Samu> ST2 what is your mirc server thing?
18:41:20  <Samu> irc
18:41:39  <ST2> I like AdiIRC
18:42:18  <Samu> no, i mean your btpro channels, how do i reach them, which server
18:42:43  <ST2> http://openttd.btpro.nl/index.php/contact-us/contact
18:43:06  <Samu> ah, boxor
18:58:32  <Borg> Samu: what?
19:00:17  <Samu> https://paste.openttdcoop.org/pe2m5s2o1?/pe2m5s2o1
19:01:51  <Borg> Samu: I think not.. but nevermind...  I will test it live.. one day ;)
19:04:35  *** Thedarkb1-T60 has joined #openttd
19:04:56  *** Wacko1976 has joined #openttd
19:10:32  *** Thedarkb-T60 has quit IRC
19:13:10  <Borg> fuuuck...
19:13:20  <Borg> GS crashed on AddItem(i,tab)
19:13:33  <Borg> tab is table . yet addItem complains its null
19:15:49  *** andythenorth has joined #openttd
19:15:51  <Borg> because GSList doesnt support anything else.. dammit
19:15:55  <Borg> time to use tables
19:31:42  <Samu> if the table is null
19:32:07  *** andythenorth has left #openttd
19:33:36  <Samu> AddList is for GSList()
19:34:00  <Samu> lists can't accept tables, only ints, i think
19:34:09  <Samu> AddItem*
19:34:55  <Samu> brb checking log
19:35:02  <Samu> forgot what was the question
19:36:11  <Samu> <Borg> earlier I did this: tab={}; tab.val <- 1; list.AddItem(tab);
19:36:44  <Samu> meh, im confused
19:37:39  <Samu> i have this.companies = {};
19:39:22  <Samu> for each c_id, this.companies[c_id] <- null; this.companies[c_id] = {goal_id = null, inauguration_date = null};
19:39:26  <Samu> in your case
19:40:14  <Samu> you want to add a table to '1' ??
19:41:17  <Samu> meh, i'm a noob trying to help :(
19:42:45  <Samu> list.AddItem(tab.val); ?
19:44:24  <Samu> 17:36:03  <Borg> any NoGO experts here? is this valid?
19:44:24  <Samu> 17:36:08  <Borg> tab=list.GetValue(i); tab.var=0;
19:44:24  <Samu> 17:36:12  <Borg> will that update list tab var? I mean those are references? or I need to do SetValue(i,tab) again?
19:45:42  <Borg> Samu: yep.. Lists can only accept int64..
19:45:58  <Borg> Samu: dont worry, I already solved it using tables.. instead of GSList()
19:46:07  <Samu> oh, cool
19:48:12  *** Thedarkb1-T60 has quit IRC
19:48:43  *** Thedarkb1-T60 has joined #openttd
19:49:42  *** Wacko1976 has quit IRC
19:50:44  <Borg> hmm
19:50:50  <Borg> time to do RTFS..
19:54:40  <Borg> CMD_STR_CTRL <- can anyone explain that?
19:54:47  <Borg> is that {...} control? or escape codes?
19:55:07  <Borg> im trying to use some codes in GSTown.SetText(). but w/ GSText
19:55:10  <Borg> but w/o I mean
19:59:11  <Samu> meanwhile i'm having crashes on my AI, because autorenew is still screwing me
20:00:51  <Samu> on a list that was supposedly meant to be only for aircraft, I get a road vehicle in it...
20:02:49  <Samu> https://imgur.com/poc2mus - look at veh_name :(
20:03:12  <Samu> damn u autorenew, i wanna use it, but u making it very hard to use
20:31:12  <Borg> well. fuck it.. nothing work.. nor escape codes for GRF.. or CTRL codes from GSText()
20:42:29  *** Wacko1976 has joined #openttd
20:49:53  <planetmaker> CMD_STR_CTRL
20:49:54  <planetmaker> the command's string may contain control strings  <-- that means it is a property which allows certain strings to contain control strings. It certainly doesn't apply vehicle names
21:00:44  *** Wormnest has quit IRC
21:02:56  <Borg> planetmaker: and what are those control strings? is it {...} ?
21:13:38  *** Thedarkb1-T60 has quit IRC
21:18:55  *** Thedarkb1-T60 has joined #openttd
21:21:21  <Alberth> http://bundles.openttdcoop.org/eints/nightlies/LATEST/docs/string_commands.html#non-positional-gamescript-string-commands
21:21:54  <Alberth> http://bundles.openttdcoop.org/eints/nightlies/LATEST/docs/string_commands.html#positional-gamescript-string-commands
21:25:18  <Borg> ok.. they do NOT work.. when used directly on GSTown.SetText() via string..
21:25:42  <Alberth> nope, they dont
21:26:04  <Alberth> just wrap a string around it
21:26:24  <Borg> what do you mean wrap?
21:27:02  <Alberth> STR_THING : {BLUE}{STRING}     then print STR_THING  with parameter the text
21:27:23  <Borg> ahh yeah this I wanted to avoid :)
21:28:18  <Alberth> translators will be so happy with your hard-coded strings all wrong then
21:28:39  <Borg> yeah yeah.. it just internal test GS..
21:29:27  <Alberth> juist print {blue}  as text then
21:30:13  <Borg> I tried {BLUE} and it displayed exacly this... didnt made it colored blue
21:30:17  <Borg> case matters?
21:30:59  <Borg> anyway.. it was just experiment.. nothing to worry about :)
21:31:05  <Alberth> it matters, but wont work, the command processor is in strgen, which handles language files only
21:31:25  <Borg> ah.. ok
21:36:38  <Alberth> ugh, 5 line diff over one assert statement, too complicated for now
21:41:15  <Borg> 32 ticks in GS is around one sec?
21:43:01  <Alberth> sorry, no idea
21:43:44  <planetmaker> there probably is somewhere a constant which defines how many ticks a GS can consume. They're not tied to RL time
21:44:00  <planetmaker> IIRC. I might be wrong :)
21:44:32  <Alberth> speed relative toopenttd day seems more useful to me
21:44:50  <Borg> lets see
21:44:55  *** Wacko1976 has quit IRC
21:45:16  <planetmaker> well, yes. GS ticks per game tick. Or somewhat like that
21:46:07  <Samu> with autorenew, this can't be done, or i just can't figure a way that wouldn't make it slower than it should
21:46:48  <Samu> i thought i would be safe with using groups
21:46:51  <Samu> but nope
21:47:18  <Samu> when looping over tons of vehicles, like about 4000+ atm
21:47:40  <Samu> some of the vehicles on the list can be autorenewed, getting new id's
21:47:44  <Borg> static const int DAY_TICKS         =  74; ///< ticks per day
21:47:46  <Samu> that breaks the ai
21:47:50  <Borg> so.. one game day is 74 ticks..
21:47:58  <Borg> good..
21:48:09  <Borg> 148 ticks 2 days..
21:48:23  <Samu> the list becomes automatically outdated
21:49:07  <Samu> autorenew needs rework
21:49:20  <Borg> so going lower that 128 is not much sence.. for checks..
21:49:23  <Samu> it works for humans, it sucks for ais
21:49:31  <Borg> and less that 32 for interactive.. is too intense.. ok..
21:53:23  <Samu> so much work for nothing, i'm losing motivation
21:53:46  *** Wormnest has joined #openttd
21:54:13  <Samu> hello Wormnest
21:54:44  <Borg> Samu: you are AI fan? :) try Grobots ;)
21:54:50  <Samu> do you use autorenew/autoreplace? how do u keep track of vehicle id?
21:55:33  <Samu> the autorenew kicks in during my loop of sending 4000+ vehicles to depots
21:56:12  <Samu> i have no idea how to deal with this
21:56:22  <Samu> keep renewing the list?
21:56:42  <Samu> inside a for loop? that's impossible
21:57:52  <Wormnest> Samu: I think I turned off autorenew but it´s a long time ago I looked at it.
21:58:07  <Samu> ok let me go test worm ai
21:59:20  <Samu> nop
21:59:24  <Samu> wormai doesn't use autorenew
21:59:51  <Samu> autorenew breaks ais, why is the feature even allowed
21:59:57  <Samu> just remove it
22:00:55  <Alberth> lol
22:01:16  <Samu> allowed on AI's, that is
22:01:28  <Wormnest> Just work around it
22:01:54  <Samu> must check which AIs use autorenew
22:01:56  <Samu> brb
22:02:01  <Alberth> why is id important at all?
22:02:07  <Wormnest> Other AI´s can handle it so you should be able to too
22:02:32  <Borg> Alberth: probably because of vehicle[id] ? :)
22:02:40  <planetmaker> autorenew... doesn't it mean that the game renews vehicles for you? So what's the gist?
22:02:57  <Samu> it makes my lists useless
22:03:11  <Alberth> planetmaker: the id of the vehicle changes
22:03:19  <Alberth> samu why?
22:03:34  <planetmaker> handle vehicle groups and worry less about the single vehicle then
22:03:38  <Samu> a list i created on jan, is useless if im still looping it on march
22:04:07  <Samu> but to get a list of vehicles in a group, i also need a "list"
22:04:27  <Wormnest> You need to assume that a vehicle id can become invalid at any time
22:04:47  <planetmaker> so just check for its validty before you do sth
22:05:03  <planetmaker> and new vehicles... they should be ok and are considered the next time.
22:08:39  <Samu> https://imgur.com/poc2mus
22:09:55  <Samu> this was looping a list of about 4000+ aircraft, with also about 3000+ road vehicles
22:10:06  <Samu> changes of autorenewing happening during the loop is high
22:10:32  <Samu> veh_name indicates I wasn't working with an aircraft
22:10:40  <Samu> and that list was created with only aircraft
22:11:22  <Samu> chances*
22:12:05  <Samu> autorenew should be reworked in order to maintain the id imo
22:12:21  <Samu> but i see that may not be possible
22:12:35  <Samu> some aircraft use 3 ids, some use 2
22:12:43  <Samu> rotors and shadow and whatever
22:16:00  <Samu> the list was generated directly from a group
22:16:03  *** Thedarkb1-T60 has quit IRC
22:16:10  <Samu> an aircraft group
22:16:26  <Samu> the group of aircraft that are heading to a depot
22:16:51  <Samu> groups aren't helping either, which I initially thought they would
22:17:14  <Samu> i still need to generate a list of vehicles on that group
22:20:15  <Samu> must think what to do
22:30:11  <Samu> sentToRenewAirGroup = AIVehicleList_Group(vehicle_to_depot[1]);
22:30:22  <Samu> gonna try refreshing the list more often
22:30:38  <Samu> will probably slow down management, something I wanted to speed up t.t
22:42:22  <planetmaker> Samu, only refresh it, once you iterated over the whole list. And when processing one entry check it for its validity (existing and correct vehicle type)
22:42:33  <planetmaker> Ignore it, if it fails that check
22:42:46  <planetmaker> And refresh the list only once you're completely through it
22:46:58  <peter1138> Mmmkay, going to need a bit more than 16GB storage for my Retropie machine ...
22:49:19  *** Wacko1976 has joined #openttd
22:57:31  *** Wormnest has quit IRC
23:03:00  *** Thedarkb1-T60 has joined #openttd
23:34:56  *** Borg has quit IRC
23:35:35  <Wolf01> Happy new year CET users!
23:42:06  <Alberth> happy new year too wolf!
23:42:44  <Alberth> although soon we may be in different time zones :p
23:43:55  <Alberth> but we'll see what the EU decides
23:44:54  <glx> and every member after the decision
23:45:18  <planetmaker> happy new year :)
23:45:51  <Wolf01> -15" to GMT :P
23:45:56  <Samu> need 15 minutes
23:46:14  <Wolf01> s/"/'

Powered by YARRSTE version: svn-trunk