IRC logs for #openttd on OFTC at 2018-02-09
        
        
        
            ⏴ go to previous day
00:02:46  <ST2> note (modified Storybook, as we already spoke)
 
00:02:59  <ST2> �sing Aphid's CB gamescript
 
00:11:12  <Samu> i think i finished, at least for now
 
00:11:32  <Samu> doesn't have a story goal, doesn't have a ranking, but that's stuff I'd like to implement next
 
00:11:46  <Samu> for now, I wanted it to actually work
 
00:23:29  *** blathijs has joined #openttd
 
00:42:52  *** ToffeeYogurtPots has quit IRC
 
00:57:48  *** Biolunar has joined #openttd
 
03:34:58  *** supermop has joined #openttd
 
04:38:32  *** Supercheese has joined #openttd
 
04:48:57  *** Biolunar_ has joined #openttd
 
05:09:33  *** tycoondemon has joined #openttd
 
06:06:32  *** sla_ro|master has joined #openttd
 
07:09:11  *** ToffeeYogurtPots has joined #openttd
 
08:27:44  *** john-aj has joined #openttd
 
08:33:05  *** john-aj has joined #openttd
 
09:15:44  *** Thedarkb has joined #openttd
 
10:17:04  *** ToffeeYogurtPots has quit IRC
 
10:30:22  <rakim> ██╗██████╗  ██████╗   ███████╗██╗   ██╗██████╗ ███████╗██████╗ ███╗   ██╗███████╗████████╗███████╗    ██████╗ ██████╗  ██████╗
 
10:30:26  <rakim> ██╗██████╗  ██████╗   ███████╗██╗   ██╗██████╗ ███████╗██████╗ ███╗   ██╗███████╗████████╗███████╗    ██████╗ ██████╗  ██████╗
 
10:30:26  <rakim> ██╗██████╗  ██████╗   ███████╗██╗   ██╗██████╗ ███████╗██████╗ ███╗   ██╗███████╗████████╗███████╗    ██████╗ ██████╗  ██████╗
 
10:30:34  <rakim> ██║██╔══██╗██╔════╝   ██╔════╝██║   ██║██╔══██╗██╔════╝██╔══██╗████╗  ██║██╔════╝╚══██╔══╝██╔════╝   ██╔═══██╗██╔══██╗██╔════╝
 
10:30:35  <rakim> ██║██╔══██╗██╔════╝   ██╔════╝██║   ██║██╔══██╗██╔════╝██╔══██╗████╗  ██║██╔════╝╚══██╔══╝██╔════╝   ██╔═══██╗██╔══██╗██╔════╝
 
10:30:35  <rakim> ██║██╔══██╗██╔════╝   ██╔════╝██║   ██║██╔══██╗██╔════╝██╔══██╗████╗  ██║██╔════╝╚══██╔══╝██╔════╝   ██╔═══██╗██╔══██╗██╔════╝
 
10:30:37  <rakim> ██║██████╔╝██║        ███████╗██║   ██║██████╔╝█████╗  ██████╔╝██╔██╗ ██║█████╗     ██║   ███████╗   ██║   ██║██████╔╝██║  ███╗
 
10:30:37  <rakim> ██║██████╔╝██║        ███████╗██║   ██║██████╔╝█████╗  ██████╔╝██╔██╗ ██║█████╗     ██║   ███████╗   ██║   ██║██████╔╝██║  ███╗
 
10:30:37  <rakim> ██║██████╔╝██║        ███████╗██║   ██║██████╔╝█████╗  ██████╔╝██╔██╗ ██║█████╗     ██║   ███████╗   ██║   ██║██████╔╝██║  ███╗
 
10:30:37  <rakim> ██║██╔══██╗██║        ╚════██║██║   ██║██╔═══╝ ██╔══╝  ██╔══██╗██║╚██╗██║██╔══╝     ██║   ╚════██║   ██║   ██║██╔══██╗██║   ██║
 
10:30:37  <rakim> ██║██╔══██╗██║        ╚════██║██║   ██║██╔═══╝ ██╔══╝  ██╔══██╗██║╚██╗██║██╔══╝     ██║   ╚════██║   ██║   ██║██╔══██╗██║   ██║
 
10:30:39  <rakim> ██║██╔══██╗██║        ╚════██║██║   ██║██╔═══╝ ██╔══╝  ██╔══██╗██║╚██╗██║██╔══╝     ██║   ╚════██║   ██║   ██║██╔══██╗██║   ██║
 
10:30:39  <rakim> ██║██║  ██║╚██████╗██╗███████║╚██████╔╝██║     ███████╗██║  ██║██║ ╚████║███████╗   ██║   ███████║██╗╚██████╔╝██║  ██║╚██████╔╝
 
10:30:41  <rakim> ██║██║  ██║╚██████╗██╗███████║╚██████╔╝██║     ███████╗██║  ██║██║ ╚████║███████╗   ██║   ███████║██╗╚██████╔╝██║  ██║╚██████╔╝
 
10:30:41  <rakim> ██║██║  ██║╚██████╗██╗███████║╚██████╔╝██║     ███████╗██║  ██║██║ ╚████║███████╗   ██║   ███████║██╗╚██████╔╝██║  ██║╚██████╔╝
 
10:30:43  <rakim> ╚═╝╚═╝  ╚═╝ ╚═════╝╚═╝╚══════╝ ╚═════╝ ╚═╝     ╚══════╝╚═╝  ╚═╝╚═╝  ╚═══╝╚══════╝   ╚═╝   ╚══════╝╚═╝ ╚═════╝ ╚═╝  ╚═╝ ╚═════╝
 
10:30:43  <rakim> ╚═╝╚═╝  ╚═╝ ╚═════╝╚═╝╚══════╝ ╚═════╝ ╚═╝     ╚══════╝╚═╝  ╚═╝╚═╝  ╚═══╝╚══════╝   ╚═╝   ╚══════╝╚═╝ ╚═════╝ ╚═╝  ╚═╝ ╚═════╝
 
10:30:45  <rakim> ╚═╝╚═╝  ╚═╝ ╚═════╝╚═╝╚══════╝ ╚═════╝ ╚═╝     ╚══════╝╚═╝  ╚═╝╚═╝  ╚═══╝╚══════╝   ╚═╝   ╚══════╝╚═╝ ╚═════╝ ╚═╝  ╚═╝ ╚═════╝
 
10:52:00  *** roidal_ has joined #openttd
 
11:00:41  *** peter1138 has left #openttd
 
11:00:41  *** peter1138 has joined #openttd
 
11:00:41  *** ChanServ sets mode: +o peter1138
 
11:08:09  *** ChanServ sets mode: +v tokai
 
11:27:10  <Flygon> I don't have a monospace font. Thank fuck.
 
11:27:37  <Flygon> I can't believe he's persisting.
 
11:27:48  <Flygon> He's pissed off almost every single IRC network staff ever.
 
11:28:00  <Flygon> He's already been Dox'd.
 
11:30:52  <Eddi|zuHause> i have a monospace font, but it's all broken because of linebreaks inbetween
 
11:33:36  <__ln__> it looks fine when the terminal window is large enough
 
12:41:28  *** FLHerne has joined #openttd
 
13:22:30  <Samu> what's the maximum value of a int
 
13:26:21  <Samu> two billion, one hundred and forty-seven million, four hundred and eighty-three thousand, six hundred and forty-seven
 
13:30:46  <Samu> found a bug in openttd, it doesn't let me enter a custom value higher than 999999999
 
13:31:08  *** john-aj has joined #openttd
 
13:31:23  <Samu> i was trying to enter 2147483647
 
13:32:03  <__ln__> the maximum value of int is INT_MAX
 
13:35:51  <Samu> it accepts int, 2 147 483 647
 
13:36:04  <Samu> but im limited to 999 999 999 :(
 
13:36:41  *** vasatko has joined #openttd
 
13:37:47  <vasatko> Hi, pls I need help with sprites. I need add custom sprites, bud i dont know free sprites numbers (i cant find sprites table etc.).
 
13:37:58  <__ln__> besides, limiting to 2 147 483 647 would be much more difficult in the UI
 
13:39:19  <Samu> hmm i need to check company values of those difficult servers, i hear about 15 billions in some, hmm how am i gonna let it accept 15 billion :(
 
13:39:44  <planetmaker> vasatko, that's a bit too general a question. Depending on what you want to modify... you then don't even need any sprite number
 
13:40:57  <vasatko> planetmarker: we rewriting bridges. But we need other front sprites for road and rails (then i need add new sprites for road front)
 
13:53:00  *** nahkiss has joined #openttd
 
14:13:03  <peter1138> 1 billion in old-money.
 
14:13:25  <peter1138> It was only US who came along and decided that 1 billion should be 1,000,000,000.
 
14:14:04  <LordAro> peter1138: think it was the french, actually
 
14:14:15  <LordAro> regardless, next to no one uses "long scale" anymore
 
14:14:35  <__ln__> i guess we can safely blame canada
 
14:15:10  <peter1138> 1 milliard is 1,000,000,000.
 
14:15:37  <Eddi|zuHause> everyone around here uses "long scale"
 
14:16:14  <Samu> local goal = GSController.GetSetting("value") * 1000;
 
14:16:43  <Samu> now when i set 999 999 999, it's actually 999 999 999 000 pounds
 
14:18:11  <Samu> 2 147 483 647 was only 2 Billion something, and some servers had values of 20 B
 
14:18:56  <Samu> 999 Billion ought to be enough
 
14:29:26  <Sacro> Just a boolean, hasMoney
 
14:30:48  *** ToBeFree has joined #openttd
 
14:50:34  *** chomwitt has joined #openttd
 
15:18:05  <supermop_work_> i think 999 Billion might be enough for me to afford to keep living in NYC
 
15:39:55  <Eddi|zuHause> now try switching the currency to something other than £
 
15:46:17  <Samu> @calc 999999999 * 65535 * 1000
 
15:46:17  <DorpsGek> Samu: 65534999934465000
 
15:47:35  <Sacro> Eddi|zuHause: £ is the one true currancy
 
15:47:50  <Samu> 65 534 999 934 465 000 credits
 
15:50:33  <Samu> @calc 0xFFFFFFFFFFFFFFFF
 
15:50:33  <DorpsGek> Samu: 18446744073709551616
 
15:51:04  <Samu> @calc 65534999934465000 - 0xFFFFFFFFFFFFFFFF
 
15:51:04  <DorpsGek> Samu: -18381209073775087616
 
15:51:24  <Samu> @calc 65534999934465000 - 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
 
15:51:24  <DorpsGek> Samu: -340282366920938463463374607431768211456
 
15:51:50  <Samu> @calc 0xFFFFFFFFFFFFFFFF - 999999999 * 65535 * 1000
 
15:51:50  <DorpsGek> Samu: 18381209073775087616
 
15:52:02  *** ToBeFree has joined #openttd
 
15:52:29  <Samu> 18 381 209 073 775 087 616
 
16:30:23  <nielsm> my goal is a formula for, given a vehicle moving at X speed for Y ticks, what distance has it covered
 
16:30:36  <nielsm> (or maybe call them S and T)
 
16:48:49  *** synchris has joined #openttd
 
16:56:06  *** Gustavo6046 has joined #openttd
 
17:09:42  *** andythenorth has joined #openttd
 
17:19:43  <supermop_work_> exotic use case for NO_JUNCTIONS:
 
17:20:12  <supermop_work_> monorail: cheap concrete ALWEG beam, no junctions
 
17:20:33  <supermop_work_> expensive bendy steel bits: junctions
 
17:20:34  *** Stimrol has joined #openttd
 
17:29:36  *** ZexaronS has joined #openttd
 
17:31:35  *** Thedarkb has joined #openttd
 
17:38:32  *** frosch123 has joined #openttd
 
17:38:33  <Samu> how do I know if a question is still up in the air?
 
17:39:59  <Samu> I made a question to each company GSGoal.Question(etc...)
 
17:40:34  <Samu> and now after some goal completion, the question no longer makes sense and I wanna close them all
 
17:40:45  <Samu> how do I check if the question is still up?
 
17:40:58  <Samu> i don't wanna keep closing it forever
 
17:41:08  <Samu> it's inside a while loop
 
17:42:02  *** HerzogDeXtEr has joined #openttd
 
17:42:20  <nielsm> I think you'd have to keep track of it yourself
 
17:43:55  <nielsm> when a company answers the question you get an event, so when you get that event you set a flag somewhere that it's been answered, and keep track of it that way
 
17:46:52  <Samu> hmm i was looking for a IsValidQuestionID kind of function
 
17:50:34  *** Stimrol has joined #openttd
 
17:52:31  <Samu> ok, i dont have an elegant way to keep track of it atm
 
17:54:26  *** Progman has joined #openttd
 
17:56:34  *** andythenorth has joined #openttd
 
18:02:01  *** Lejving_ has joined #openttd
 
18:06:39  *** Alberth has joined #openttd
 
18:06:39  *** ChanServ sets mode: +o Alberth
 
18:14:18  *** TheMask96 has joined #openttd
 
18:28:38  <Samu> hmm, i got a problem with unpausing the game in multiplayer ...
 
18:29:06  <Samu> how do i detect a client joining the game?
 
18:29:23  <Samu> need to ask him to unpause the game
 
18:29:45  <Samu> or else, only the players that were in the game when the question was made can unpause
 
18:31:06  <Samu> goal is reached, script pauses the game and asks a question to all companies about continuing (unpausing) the game
 
18:31:19  <Samu> what if the company is empty
 
18:31:40  <Samu> what if all companies are empty
 
18:31:46  <Samu> no one will be able to answer :(
 
18:35:48  <nielsm> I _think_ there is supposed to be a list or bitfield of current pause reasons, where "new client joining" is one of them
 
18:35:56  <nielsm> I don't know if it's readable by gamescripts
 
18:40:43  <Samu> so the game is doomed... /foreverpaused
 
18:51:41  *** Thedarkb has joined #openttd
 
18:53:25  <Samu> GSEventController.GetNextEvent()
 
18:56:57  <nielsm> server administrator sending custom commands to your gs
 
19:01:12  <Samu> can i have clients unpause the game which was paused by a GS?
 
19:03:11  <Samu> i'm not sure how to send an Admin Port command either
 
19:09:43  <frosch123> it was designed by someone named jason
 
19:11:18  <Samu> On the AdminPort you send a JSON string
 
19:11:27  <Samu> what ? explain me how to do this
 
19:12:38  <Eddi|zuHause> that totally makes sense
 
19:13:51  <Samu> i wanna trigger the GS to get an Admin Port command that eventually will unpause the game
 
19:14:08  <Samu>  - 'on_server_connect.scr' is executed on the server when a client has joined (MOTD)
 
19:14:27  <Samu> I wanna send the command there
 
19:14:33  <Samu> or trigger it from there
 
19:14:54  <nielsm> the admin port is not something the gamescript (or even game) sends to itself
 
19:15:06  <nielsm> it's a way for external programs to talk to the game script
 
19:16:33  <Samu> uhm.. so it can't be done in this way? :(
 
19:17:31  <nielsm> have you tested that this is actually a problem, first of all?
 
19:17:59  <nielsm> that the game stays paused forever if you pause it from your GS, and then a new client connects, or disconnects, or something like that, while it's paused
 
19:18:27  <nielsm> because you're expecting answers to a question from everyone, and the definition of "everyone" has changed?
 
19:19:24  <Samu> the question was sent to a company
 
19:19:31  <Samu> or actually, to all companies
 
19:20:14  <Samu> everyone in this case, the first company that clicks the continue button will unpause the game
 
19:20:58  <Samu> the message with the continue button only popups to the clients of that company, if they happen to be in the game the moment the question is asked
 
19:21:26  <Samu> if they join after that, no more popups
 
19:21:31  <Samu> no continue button to click
 
19:21:41  <nielsm> you could send the question again when a new client connects?
 
19:21:49  <Samu> that's what i was trying to do
 
19:23:05  <Samu> i don't know how to detect a client joining a company
 
19:25:11  <Samu> if a company is created, i suppose I can send the question to it
 
19:25:27  <Samu> but if a company already exists and someone joins it, no popup
 
19:37:32  *** T4XV8Tquebec has joined #openttd
 
19:37:40  <T4XV8Tquebec> _ _ __ ___   ___ _   _ _ __   ___ _ __ _ __   ___| |_ ___   ___  _ __ __ _
 
19:37:40  <T4XV8Tquebec> _ _ __ ___   ___ _   _ _ __   ___ _ __ _ __   ___| |_ ___   ___  _ __ __ _
 
19:37:40  <T4XV8Tquebec> _ _ __ ___   ___ _   _ _ __   ___ _ __ _ __   ___| |_ ___   ___  _ __ __ _
 
19:37:44  <T4XV8Tquebec> | | '__/ __| / __| | | | '_ \ / _ \ '__| '_ \ / _ \ __/ __| / _ \| '__/ _` |
 
19:37:44  <T4XV8Tquebec> | | '__/ __| / __| | | | '_ \ / _ \ '__| '_ \ / _ \ __/ __| / _ \| '__/ _` |
 
19:37:44  <T4XV8Tquebec> | | '__/ __| / __| | | | '_ \ / _ \ '__| '_ \ / _ \ __/ __| / _ \| '__/ _` |
 
19:37:47  *** T4XV8Tquebec was kicked by DorpsGek (frosch123)
 
19:38:13  <nielsm> oh cool, an ipv6 address?
 
19:41:08  <nielsm> hah, every isp in denmark is like "ipv6 has no future, we won't bother supporting it"
 
19:41:32  <LordAro> nielsm: i'd be very surprised if that was their actual attitude
 
19:41:47  <LordAro> cost and effort of deployment are the usual reasons
 
19:45:38  *** ChanServ sets mode: +v tokai
 
19:54:06  <Wolf01> Does andythenorth have something for Wolf01?
 
19:56:15  <andythenorth> yesterday I mostly had weird fever
 
19:56:48  <andythenorth> NRT is done, now, right? :)
 
19:57:16  <andythenorth> oh we need landscrape grid docs
 
20:07:59  <Samu> part of the problem is semi-solved
 
20:08:27  <Samu> on creating a new company, the question is re-asked to it
 
20:08:46  <Samu> on rejoining an existant company, however...
 
20:10:00  <Samu> keep on asking until it's answered?
 
20:10:27  *** Wormnest has joined #openttd
 
20:10:47  <Samu> Wolf01: Wormnest , do you GS?
 
20:11:27  <Wormnest> Nope, don´t even have enough time for my ai´s
 
20:14:03  <Samu> gonna spam the question!!!
 
20:14:30  <LordAro> Samu: don't be an idiot
 
20:14:36  <LordAro> forums are perfectly valid
 
20:15:31  <Samu> uh, the question I'm talking about is GSGoal.Question
 
20:16:31  <LordAro> Samu: maybe you should work out what the actual question is then
 
20:17:13  <Samu> STR_GOAL_REACHED        : {YELLOW}{COMPANY}{ORANGE} (Company {NUM}) was the first company to reach a company value of {YELLOW}{CURRENCY_SHORT}{ORANGE}. {}{}Game is now paused. {}{}Press {YELLOW}Continue{ORANGE} to resume game.
 
20:17:41  <Samu> this.goal_question = GSGoal.Question(15, GSCompany.COMPANY_INVALID, GSText(GSText.STR_GOAL_REACHED, this.goal_company.cid, this.goal_company.c_num, this.goal_company.goal), GSGoal.QT_INFORMATION, GSGoal.BUTTON_CONTINUE);
 
20:18:55  <Samu> tried to spam the question to all companies
 
20:18:58  <ST2> Samu: as LordAro said, forum are, probably, a way to get a valid answer - spamming won't help you
 
20:20:37  <LordAro> Samu: that's not a question
 
20:21:11  <LordAro> and less dumping code straight into irc
 
20:21:57  <ST2> and, imo, there's several other GS's from where you can get ideas (or how it works) and apply into yours :)
 
20:22:00  <LordAro> if you work out what the question is, you might just work out what the asnwer is before you have to ask it
 
21:08:59  <Samu> whatever, i'm gonna post it in the forum as you asked
 
21:20:48  <frosch123> f booth next to anime booth :p
 
21:26:12  <Wolf01> Samu: you are starting to be annoying, just a bit
 
21:27:07  <Samu> sorry, was trying to be funny
 
21:55:25  *** andythenorth has joined #openttd
 
22:29:54  *** chomwitt has joined #openttd
 
22:39:54  *** FLHerne has joined #openttd
 
22:53:29  <Exec> How can be the max tunnel length changed on network games?
 
23:07:39  <ccfreak2k> What's new and exciting in the world of openttd?
 
23:08:44  <Eddi|zuHause> what's new i don't know, but exciting is whether there will actually be a release in april
 
23:11:00  <ST2> Eddi|zuHause spreading the hype xD
 
23:14:24  <Eddi|zuHause> hm, i should have put some progress indicator into my os.walk() loop
 
23:16:52  <Exec> Samu: the setting name was already found
 
23:17:18  <Exec> the problem is "This command/variable is not available during network games."
 
23:17:51  <Eddi|zuHause> Exec: well, stop the server, load the game in SP, change it there, start the server again with the new savegame
 
23:19:04  <Samu> can't be changed during a network game? i thought it could be by the host
 
23:20:03  <Samu> yeah, can't be, just tried it myself too :(
 
continue to next day ⏵