Config
Log for #openttd on 7th February 2018:
Times are UTC Toggle Colours
00:16:38  *** Agiri[m] has quit IRC
00:17:08  *** UncleCJ has quit IRC
00:17:08  *** cute[m] has quit IRC
00:17:28  *** angguss[m] has quit IRC
00:17:33  *** johnwhitlow[m] has quit IRC
00:17:33  *** swimstar[m] has quit IRC
00:17:59  *** Samu has quit IRC
00:22:28  *** Gja has quit IRC
00:23:25  *** Gja has joined #openttd
00:23:39  *** Gja has quit IRC
00:37:52  *** Flygon has joined #openttd
00:44:54  *** FLHerne has quit IRC
00:49:56  *** supermop has quit IRC
00:58:20  *** Agiri[m] has joined #openttd
01:08:10  *** john-aj has quit IRC
01:31:06  *** supermop has joined #openttd
01:39:11  *** supermop has quit IRC
01:54:49  *** supermop has joined #openttd
02:32:12  *** cute[m] has joined #openttd
02:57:59  *** UncleCJ has joined #openttd
02:58:19  *** cute[m] has quit IRC
02:58:24  *** Agiri[m] has quit IRC
03:12:09  *** glx has quit IRC
03:36:39  *** Rubidium has quit IRC
03:37:27  *** Rubidium has joined #openttd
03:37:27  *** ChanServ sets mode: +o Rubidium
03:44:48  *** ZexaronS has quit IRC
04:01:28  *** Snail has quit IRC
04:11:32  *** supermop has quit IRC
04:20:07  *** angguss[m] has joined #openttd
04:20:35  *** supermop has joined #openttd
04:28:37  *** supermop has quit IRC
05:04:45  *** rustyshackleford[m] has joined #openttd
05:19:53  *** sla_ro|master has joined #openttd
05:35:49  *** ToffeeYogurtPots has joined #openttd
06:09:12  *** sla_ro|master has quit IRC
06:10:52  *** Cubey has quit IRC
06:22:17  *** swimstar[m] has joined #openttd
06:27:13  *** johnwhitlow[m] has joined #openttd
07:02:09  *** DDR has joined #openttd
07:22:51  *** andythenorth has joined #openttd
07:35:23  *** andythenorth has quit IRC
07:42:15  *** andythenorth has joined #openttd
07:44:38  *** DDR has quit IRC
07:49:06  *** DDR has joined #openttd
07:51:02  *** DDR has quit IRC
07:52:36  *** andythenorth has left #openttd
07:57:24  *** DDR has joined #openttd
08:03:25  *** cute[m] has joined #openttd
08:20:34  *** Stimrol has joined #openttd
08:30:41  *** Stimrol has quit IRC
08:35:31  *** Agiri[m] has joined #openttd
08:36:12  *** ToffeeYogurtPots has quit IRC
08:43:54  *** Biolunar has joined #openttd
09:18:39  *** Biolunar has quit IRC
09:26:10  <vasatko> HI, i try again ask, if someone works with m4nfo (bridges)?
09:56:20  *** FLHerne has joined #openttd
10:51:48  *** mczapkie has joined #openttd
10:53:11  <mczapkie> Hello, anyone know how to init repository on http://dev.openttdcoop.org ?
10:54:17  <mczapkie> it should appear automatically after project creation, but it does not exists: http://dev.openttdcoop.org/projects/v4-train-set/repository
10:57:22  *** chomwitt has joined #openttd
10:58:08  *** DDR has quit IRC
11:09:27  *** Snail has joined #openttd
11:16:04  *** Snail has quit IRC
11:35:44  *** vasatko has quit IRC
11:43:35  *** Samu has joined #openttd
11:52:17  <Samu> ST2:
11:52:28  <Samu> I need util.superlib with version 19
11:52:39  <Samu> it's not on bananas
12:06:20  *** john-aj has joined #openttd
12:23:39  <LordAro> Samu: choose a different version
12:48:51  *** tttt5 has quit IRC
12:49:59  <Samu> nevermind, gonna try do something else
13:08:26  <Samu> can't make a goal damn it
13:18:39  <Flygon> https://imgur.com/gallery/gHpyjF4 So who's gonna make the NewGRF?
13:18:57  <Flygon> :B
13:19:44  <Samu> how do i clear all goals?
13:19:59  <Samu> goalids
13:20:13  <Samu> when i load savegame, i get duplicated goals
13:20:29  <Samu> so i wanna start fresh
13:37:55  *** supermop has joined #openttd
13:47:58  <Samu> how do GoalIDs work? any hint?
13:53:10  *** Yotson has quit IRC
13:54:09  *** Yotson has joined #openttd
14:05:12  *** supermop has quit IRC
14:18:59  *** TheMask96 has quit IRC
14:21:50  *** TheMask96 has joined #openttd
14:32:03  <supermop_work_> yo
14:40:30  <Samu> i fail at strings
14:40:37  <Samu> how do i make this
14:41:03  <Samu> ii got a string with two parameters or values, or whatever
14:41:19  <Samu> STR_GOAL_VALUE    : {STRING}{CURRENCY_SHORT}
14:41:35  <Samu> but i can't make the text show up there
14:41:50  <Samu> only the currencty
14:43:05  <Samu> GSGoal.New(cid, string, GSGoal.GT_COMPANY, cid)
14:43:12  <Samu> local string = GSText(GSText.STR_GOAL_VALUE, c_name, cv)
14:43:24  <Samu> local c_name = GSCompany.GetName(cid)
14:43:38  <Samu> local cv = GSCompany.GetQuarterlyCompanyValue(cid, GSCompany.CURRENT_QUARTER)
14:44:02  <Samu> all it prints is £1
14:44:13  <Samu> company name isn't there
14:49:24  <Samu> LordAro:
14:51:19  *** nielsm has joined #openttd
14:51:43  <Samu> whos a string master?
14:53:27  *** mczapkie has quit IRC
14:55:07  *** Snail has joined #openttd
15:01:03  <Samu> nooo dont leave me alone :(
15:02:01  *** john-aj has quit IRC
15:03:29  <ST2> use {COMPANY}
15:04:47  *** Gja has joined #openttd
15:05:34  <Samu> ok let me try
15:08:41  <LordAro> Samu: some of us have jobs to do :p
15:09:03  <ST2> I'm actually @ work ^^
15:09:05  <LordAro> i'm afraid i don't have much of an idea about the string system, it's not available for AIs
15:09:45  <Samu> nop, can't make it work
15:10:11  <ST2> you need to send company id to {COMPANY}
15:10:38  <Samu> i have an idea, maybe
15:10:39  <Samu> local c_name = GSText(GSCompany.GetName(cid))
15:10:43  <Samu> let's see
15:11:23  <Samu> bah, first argument must be a valid stringid
15:12:38  <Samu> gonna try your way
15:14:05  <Samu> yeah it works
15:14:18  <Samu> STR_GOAL_VALUE    : {COMPANY}{CURRENCY_SHORT}
15:14:25  <ST2> wasy peasy :P
15:14:30  <Samu> local string = GSText(GSText.STR_GOAL_VALUE, cid, cv)
15:14:30  <ST2> easy*
15:15:45  <Samu> STR_GOAL_VALUE    : {YELLOW}{COMPANY}{ORANGE} - {YELLOW}{CURRENCY_SHORT}
15:16:37  <ST2> Samu: you type all your steps here, with some copy/paste I think I can fully replicate it xD
15:17:19  <LordAro> Samu likes to echo everything into here
15:17:24  <LordAro> despite our protests
15:17:26  <Samu> ok, i got problem
15:17:29  <Samu> https://imgur.com/oSE8Zau
15:17:47  <Samu> it keeps on repeating because ... yeah i dunno
15:18:25  <LordAro> you should probably investigate that
15:20:12  <Samu> the more i look at divnut the more i get confused
15:20:22  <Samu> divgoal.nut
15:21:00  <ST2> because that's one that covers a bunch of other settings
15:49:14  *** Alberth has joined #openttd
15:49:14  *** ChanServ sets mode: +o Alberth
15:57:07  *** Flygon has quit IRC
15:57:35  <Samu> i can't make thi
15:57:46  *** Gja has quit IRC
15:58:09  <Samu> https://paste.openttdcoop.org/pikaktc2j
15:58:18  <Samu> goalcid0 does not exist
15:58:55  <LordAro> Samu: scope levela
15:58:59  <LordAro> levels*
15:59:04  <LordAro> also, learn arrays
16:01:23  <Samu> if I use SetText, i don't get anything happening
16:01:40  <Samu> or actually, i get goalcid0 not existing
16:01:58  <Samu> if I use New, it keeps repeating the same goal
16:02:06  <Samu> non stop
16:02:27  <LordAro> Samu: stop, and look up how scopes work
16:02:30  <LordAro> this isn't new
16:03:24  <LordAro> and please use arrays instead of duplicating code over and over
16:05:55  <Samu> how do i know if a goal already exists
16:06:13  <Samu> i don't know what's a scope
16:06:48  <LordAro> google
16:06:55  <LordAro> and you definitely do
16:07:05  <LordAro> even if you don't know the name
16:13:19  <Samu> screw the scope
16:13:26  <Samu> wanna try make an array first
16:14:21  <LordAro> scope is a pretty important, and fundamental, bit of programming
16:14:23  <LordAro> learn it.
16:19:44  <Samu> squirrel doesn't have arrays
16:20:05  *** sla_ro|master has joined #openttd
16:20:15  *** Cubey has joined #openttd
16:21:35  <Samu> i give up, this kind of guides don't help at all http://www.squirrel-lang.org/squirreldoc/reference/embedding/tables_and_arrays_manipulation.html
16:22:31  *** john-aj has joined #openttd
16:27:29  <supermop_work_> i find i don't really have patience to work for an employer who won't pay for software
16:30:32  *** Cubey has quit IRC
16:43:56  *** john-aj has quit IRC
16:43:58  *** chomwitt has quit IRC
16:46:43  *** synchris has joined #openttd
16:59:47  <Samu> there is no  way to follow the code, i don't know what it is doing
16:59:59  <Samu> like in visual studio
17:02:20  *** Cubey has joined #openttd
17:04:37  <Alberth> Samu:  unless you want to build a C extension to Squirrel that reference page is not needed
17:07:21  <Alberth> besides, it's Squirrel 3.1, you need Squirrel 2
17:08:21  <Alberth> http://squirrel-lang.org/doc/squirrel2.html#d0e528  <-- array
17:13:29  *** Mahjong1 has joined #openttd
17:18:58  *** TheMask96 has quit IRC
17:20:59  *** Mahjong has quit IRC
17:21:16  *** TheMask96 has joined #openttd
17:28:45  <Samu> what am i doing wrong
17:28:58  <Samu> https://paste.openttdcoop.org/ptoawmtv0
17:30:02  <nielsm> in defense of Samu, the squirrel-lang documentation is not that well written and seems to skip over a bunch of important details; the styling of it doesn't help readability either
17:30:27  <nielsm> (I'm comparing to the Lua documentation which I've used a lot myself, and find generally well-written and comprehensive)
17:31:38  <nielsm> Samu I don't think you should actually be using an array there, a table might be a better choice
17:32:11  <nielsm> apart from that, you're making a length 1 array, where the only valid index is 0, but then filling values in all kinds of index values
17:32:19  <nielsm> try making a table instead:
17:32:29  <nielsm> local goalcid = {}
17:32:42  <Samu> ok
17:32:44  <nielsm> and then insert into new slots in the table:
17:32:57  <nielsm> goalcid[cid] <- GSGoal.New(...)
17:33:46  <nielsm> (the <- operator becomes important here, the difference between it and = for assignment is that = will throw an error if the index/slot you're inserting into doesn't already exist, but using <- will create the slot for you if it doesn't exist)
17:35:14  <nielsm> on the other hand, if you know the largest cid value you will be using (I guess GSCompany.COMPANY_LAST is it) you could declare goalcid to be an array of that length
17:35:57  <nielsm> like: local goalcid = array(GSCompany.COMPANY_LAST)
17:36:12  <nielsm> (the array() function creates an array with the length you give it)
17:36:23  <nielsm> bbl, laundry
17:38:07  <Alberth> still can't read openttdcoop pastes due to expired license
17:46:33  <Samu> Company Goal is still - None - "
17:46:34  <Samu> grr
17:47:09  <Samu> how do i create a goal for all companies on startup?
17:47:24  <Samu> do they have to exist?
17:48:11  <Samu> what if they don't exist yet?
17:49:02  <nielsm> sounds likely
17:49:34  <Samu> do i have to resort on capturing events?
17:49:38  <Samu> that sucks
17:50:08  *** frosch123 has joined #openttd
17:54:28  <LordAro> AIs and such like are usually event driven
17:57:18  *** HerzogDeXtEr has joined #openttd
18:00:54  *** andythenorth has joined #openttd
18:02:59  *** ZexaronS has joined #openttd
18:04:17  *** Wolf01 has joined #openttd
18:04:33  <Wolf01> o/
18:06:16  <Wolf01> So, what needs to be fixed?
18:09:14  <andythenorth> me
18:09:18  <andythenorth> I am a bit ill
18:09:24  <Wolf01> :(
18:10:06  *** Thedarkb has joined #openttd
18:10:43  <Wolf01> I could give you a virtual cookie
18:11:13  <Samu> are company goals removed automatically when a company bankrupts? or do i have to go there remove its goal?
18:22:59  *** glx has joined #openttd
18:22:59  *** ChanServ sets mode: +v glx
18:26:02  <Samu> is there a better way to remove all goals on load?
18:31:16  <Samu> how do I know which goalids exist when i load a savegame?
18:32:37  <Samu> i wanted to get a list
18:32:58  <Samu> actually I dunno what I want
18:43:00  *** synchris has quit IRC
18:45:44  <DorpsGek> Commit by translators :: r27968 trunk/src/lang/korean.txt (2018-02-07 19:45:38 +0100 )
18:45:45  <DorpsGek> -Update from Eints:
18:45:46  <DorpsGek> korean: 1 change by telk5093
18:49:50  <supermop_work_> andythenorth: pho
18:50:35  *** Stimrol has joined #openttd
18:51:11  <andythenorth> I had katsu lunch
18:51:12  <andythenorth> helped
18:55:27  <peter1138>                                                              │··························
18:56:02  <Alberth> almost!
18:57:15  *** Biolunar has joined #openttd
19:09:17  *** Gja has joined #openttd
19:12:44  *** sla_ro|master has quit IRC
19:13:26  <Wolf01> https://www.youtube.com/watch?v=ImoQqNyRL8Y LordAro
19:16:13  <LordAro> Wolf01: already watched ^^
19:16:28  <Wolf01> I'm going to change my pants
19:16:30  <Wolf01> XD
19:16:49  *** Progman has joined #openttd
19:18:10  <nielsm> is there any kind of tool to help remove strings from the translation source files when you've changed something about the english master translation that invalidates everything else?
19:18:35  *** john-aj has joined #openttd
19:22:19  <Alberth> sed ?
19:22:42  <nielsm> well sure I could construct my own
19:23:00  <Alberth> for newgrf and gamescripts, the translation service?
19:23:39  <nielsm> I'm toying around with a core game patch where I've had to change a bunch of strings
19:23:40  <Alberth> sed is a standard tool for programmatically editing a file :)
19:24:01  <Alberth> ok, just make new strings instead?
19:24:15  <nielsm> probably the more correct course of action
19:24:28  <Alberth> definitely
19:25:10  <Samu> almost decent https://imgur.com/FQzrWe9
19:26:11  *** stefino has joined #openttd
19:28:39  <stefino> Hello all. Do youmeone use MUSA for uploading big files to bananas? I download it but have no idea how does it work. I only saw that I have to make some file, where I write all information about uploaded file, I have to set a path to this file -somewhere- but thats all. Thanks a lot :)
19:30:12  <Alberth> http://dev.openttdcoop.org/projects/busy-bee-gs/repository/entry/bananas.ini
19:30:37  <Alberth> version line  looks like it is fixed by the makefile
19:30:49  <Alberth> you may want to add an actual version number there
19:31:33  <stefino> ahh yes, this is the fil what I meant :)
19:31:44  <Alberth> type is obviously wrong
19:31:47  <stefino> okay
19:32:39  <stefino> and after I write this what I have to do after?
19:33:33  <Alberth> http://dev.openttdcoop.org/projects/busy-bee-gs/repository/entry/Makefile#L69
19:33:46  <Alberth> where line 68 seems to do the version magic
19:34:28  <Alberth> it seems to run the musa.py file
19:34:55  <Alberth> you could try   musa.py --help
19:35:11  <Alberth> likely it gives some online help and options
19:36:06  <stefino> ok, ill try it :)
19:41:50  *** gelignite has joined #openttd
19:43:39  <stefino> seems like mission impossible for me :/
19:49:32  <Alberth> run != double click file :)
19:50:25  <Alberth> it's a command-line tool, open a command.com window, and start it with something like  "python musa.py --help"
19:50:49  *** Stimrol has quit IRC
19:54:19  <stefino> yes I have open command line and have open python musa help
19:56:23  <Alberth> Adding -d seems useful until you got everything right
19:57:45  <Alberth> and -c yourcfg.ini    is likely useful too
19:58:45  <stefino> so the first  of all I have to write this .ini file and put it into MUSA folder wit grf what I want to upload? and after this I can test with musa -d if all is ok
20:00:33  *** Stimrol has joined #openttd
20:01:58  <Alberth> not sure where it starts searching, best is to "cd" to that grf directory and do everything there
20:02:23  <Alberth> but basically, yes, you should first make an ini file
20:06:53  *** Supercheese has joined #openttd
20:16:08  <stefino> yes, i'll go to write ini :)
20:25:06  <stefino> What I have to change in "makefile"?
20:25:38  <Alberth> nothing, you don't need it
20:25:53  <Alberth> it's a tool to automate running programs
20:26:13  <stefino> ok ok , so I need only ini and description.txt
20:26:37  <Alberth> "make" is a tool to automate running programs, and make uses Makefile to figure out what to do
20:27:41  <Alberth> I store all stuff that I must run into a makefile or a shell script, so I don't have to remember how to call some $random program like musa
20:27:52  <Alberth> which I haven't used for several years :)
20:28:19  <Alberth> if you think you're complete, have a test run by adding the  -d
20:33:11  <Samu> who can teach me save/load ?
20:34:01  <Samu> https://wiki.openttd.org/AI:Save/Load
20:34:54  <stefino> Alberth: mm have to pass configuration file
20:35:36  <Alberth> there was an option for that iirc
20:36:47  <Alberth> yep   -c mybeautifulconfigurationfile.ini
20:36:48  *** __ln__ has quit IRC
20:37:03  <stefino> ahh, ini again ok
20:37:23  <Alberth> or whatever your extension
20:37:50  <Alberth> musa  doesn't care, it's just that the file format is known as INI file
20:38:17  <Alberth> but even that is not very fixed, people also use CFG for it :)
20:38:30  *** __ln__ has joined #openttd
20:39:10  <Alberth> Samu: find a an AI that loads and saves?
20:39:47  <Alberth> busy-bee also loads and saves, but I forgot how it worked
20:41:49  <andythenorth> :)
20:42:43  <stefino> and what I have to write into config file?
20:45:42  <Samu> ok, gonna get busybe
20:46:28  <Samu> i managed to save a tick counter!, not what I wanted though
20:46:32  <Samu> but it's something
20:47:09  *** ToffeeYogurtPots has joined #openttd
20:52:33  <frosch123> stefino: there is only one ini file
20:53:06  <frosch123> the ini file is the config file
20:54:13  <stefino> frosch123:  yes but what  means error: you have to pass a configuration file
20:55:52  <stefino> and I have to write username, password somwhere or not?
20:56:35  <frosch123> you will be asked those
20:56:40  <frosch123> you do not put them into the ini file
20:56:57  <frosch123> the ini file is supposed to be reused for every upload, so it is usually part of the sources
20:57:06  *** Alberth has left #openttd
20:57:08  <frosch123> and you do not give others your password :)
20:57:39  <frosch123> but you can put multiple usernames into the ini file to make the grf shared, and allow each of them to update it
20:57:48  <frosch123> but well, that's all written in the ini example
20:58:48  <Samu> foreach
21:01:37  <stefino> ok I maybe understand what I have to do but the next error - cant read configuration file
21:02:37  <stefino> my bad
21:04:34  *** HockeyD8 has joined #openttd
21:04:35  <HockeyD8> hello
21:04:55  *** HockeyD8 has quit IRC
21:07:15  <stefino> File contains no section headres. file: bananas:ini line 1. 'type = NewGRF\n'
21:07:46  <frosch123> http://hg.openttd.org/extra/musa.hg/file/5bd2b5073fdd/example.ini <- you need to stick to the syntax
21:08:11  <frosch123> all lines but those with # are important
21:08:29  <frosch123> section headers are those with [ ]
21:08:46  <stefino> oh ok
21:09:31  <frosch123> https://en.wikipedia.org/wiki/INI_file
21:10:19  <stefino> ini file looks ok now
21:11:17  *** Brainjammed has joined #openttd
21:11:40  <stefino> no ['.grf'] file :D my god
21:12:01  <stefino> it is world championship in errors
21:12:14  <Brainjammed> good evening ( in my country at least)
21:12:27  <Brainjammed> i have a question regarding gameplay
21:13:13  <stefino> a wrote musa -c bananas.ini and gives me that note
21:13:40  <Brainjammed> i remember in the times of the original ttd it was possible to copy order list between two vehicles of the same kind
21:13:57  <Brainjammed> but i do not remember how I did that
21:14:16  <frosch123> stefino: what did --help tell you?
21:14:52  <frosch123> Brainjammed: https://wiki.openttd.org/Hidden_features
21:15:21  <frosch123> Brainjammed: https://wiki.openttd.org/Orders
21:16:37  <stefino> that I am only graphics developer, not programmer :D
21:18:14  <frosch123> python musy.py -d -c yourconfig.ini -u youruser yourgrf.grf yourreadme.txt yourlicenceifyoudonotuseoneofthedefaults.txt
21:18:35  <frosch123> are there more files to add? i can't remember
21:19:34  <frosch123> ah, changelog.txt is the third option
21:20:22  <stefino> ok ok
21:25:37  <stefino> okay it works, loaded and write error with any kind of socket acces
21:25:43  *** supermop_work_ has quit IRC
21:26:14  <stefino> socekt.error: Errno 10013
21:28:21  *** Stimrol has quit IRC
21:29:58  <frosch123> internet says that's your firewall
21:30:44  <stefino> oh
21:31:53  <stefino> I need to switch off firewaal during uploading?
21:32:17  <frosch123> no idea, last time i used windows (10 years ago), it had no such things
21:32:42  <frosch123> https://answers.microsoft.com/en-us/windows/forum/windows_7-networking/socket-10013-error-when-trying-to-connect-some/2cc71cb6-24b2-4b63-8f60-32bb444eb8fd
21:33:19  <__ln__> you must have used windows 95 or something
21:33:34  <frosch123> it probably thinks musa is stealing your banking credentials
21:34:12  <glx> usually windows firewall pops a window asking you what to do
21:36:04  *** HerzogDeXtEr has quit IRC
21:37:16  <stefino> i switched it off and the next error 10054 - connestion will be canceled by distant host
21:38:09  <stefino> connection was....not will
21:38:33  <nielsm> that's the error usually known as "connection reset by peer"
21:38:40  <nielsm> which can mean almost anything
21:43:08  <Samu> cannot iterate null
21:43:11  <Samu> bah... i fail
21:44:46  <Samu> busybee code is easier to follow, and yet quite complex
21:47:18  *** frosch123 has quit IRC
21:48:14  *** nielsm has quit IRC
21:49:19  <stefino> still doesnt work but thanks a lot for help :)
21:52:01  *** andythenorth has quit IRC
21:54:26  *** supermop_work has joined #openttd
21:59:25  *** stefino has quit IRC
21:59:55  *** john-aj has quit IRC
22:03:57  *** Brainjammed has quit IRC
22:04:42  *** gelignite has quit IRC
22:12:20  <Wolf01> 'night
22:12:26  *** Wolf01 has quit IRC
22:13:30  *** ToffeeYogurtPots has quit IRC
22:13:51  *** ToffeeYogurtPots has joined #openttd
22:19:01  *** Progman has quit IRC
22:28:12  *** Thedarkb has quit IRC
22:52:08  *** ToffeeYogurtPots_ has joined #openttd
22:58:14  *** ToffeeYogurtPots has quit IRC
23:07:41  *** ZexaronS has quit IRC
23:08:56  *** ZexaronS has joined #openttd
23:38:04  *** Biolunar has quit IRC

Powered by YARRSTE version: svn-trunk