IRC logs for #openttd on OFTC at 2018-06-16
            
00:11:35 *** Wormnest has quit IRC
00:13:31 *** nielsm has quit IRC
00:24:29 *** Gja has quit IRC
00:34:06 *** rpifan has joined #openttd
00:35:49 <rpifan> hi
00:38:19 *** iSoSyS has joined #openttd
00:43:25 *** tokai|noir has joined #openttd
00:43:25 *** ChanServ sets mode: +v tokai|noir
00:43:48 *** Progman has quit IRC
00:50:00 <FLHerne> rpifan: Good evening
00:50:14 <rpifan> sup
00:50:23 *** tokai has quit IRC
00:50:29 *** rpifan has quit IRC
00:54:00 *** snail_UES_ has joined #openttd
00:56:54 *** HerzogDeXtEr has quit IRC
01:06:33 *** iSoSyS has quit IRC
01:39:37 *** Wacko1976 has quit IRC
01:39:59 *** techmagus has joined #openttd
01:50:00 *** beno__ has joined #openttd
01:51:58 *** Supercheese has quit IRC
01:56:22 *** Thedarkb1-X40 has quit IRC
01:57:52 *** Thedarkb1 has joined #openttd
02:17:33 *** sim-al2 has joined #openttd
02:28:20 <ANIKHTOS> good night all
02:28:25 *** ANIKHTOS has quit IRC
02:43:32 *** KouDy has quit IRC
02:45:54 *** KouDy has joined #openttd
02:49:14 *** tokai has joined #openttd
02:49:14 *** ChanServ sets mode: +v tokai
02:49:16 *** frosch123 has quit IRC
02:49:57 *** JamesTKirk_Drunk has joined #openttd
02:50:27 <JamesTKirk_Drunk> What's the Reddit OpenTTD?
02:50:28 *** KouDy has quit IRC
02:51:12 *** tokai|noir has quit IRC
02:55:29 *** KouDy has joined #openttd
03:11:56 *** JamesTKirk_Drunk has quit IRC
04:05:51 *** Cthulhux has quit IRC
04:13:18 *** Flygon has joined #openttd
04:20:22 *** ToBeFree has joined #openttd
04:23:06 *** ToBeFree has quit IRC
04:39:34 *** Gja has joined #openttd
04:42:41 *** muffindrake has joined #openttd
04:44:32 *** muffindrake4 has quit IRC
05:03:55 *** ToffeeYogurtPots_ has joined #openttd
05:09:08 *** ToffeeYogurtPots has quit IRC
05:09:16 *** Gja has quit IRC
05:12:05 *** glx has quit IRC
06:43:49 *** snail_UES_ has quit IRC
06:50:09 *** techmagus has quit IRC
06:50:44 *** techmagus has joined #openttd
07:56:04 *** Cubey has quit IRC
07:56:26 *** roidal has joined #openttd
08:13:48 *** Alberth has joined #openttd
08:13:49 *** ChanServ sets mode: +o Alberth
08:13:57 <Alberth> hi hi
08:29:24 *** KouDy has quit IRC
08:33:47 *** Gja has joined #openttd
08:36:09 *** andythenorth has joined #openttd
08:39:37 *** Wacko1976 has joined #openttd
08:49:27 *** nielsm has joined #openttd
08:50:10 *** KouDy has joined #openttd
08:54:20 *** Progman has joined #openttd
09:13:53 <andythenorth> o/
09:17:36 <peter1138> \o
09:17:40 <peter1138> o7
09:24:01 <andythenorth> is it breakfast time?
09:29:08 *** Gja has quit IRC
09:56:13 <Alberth> if breakfast is around 12, not yet
09:57:40 <andythenorth> I tested it
09:57:44 <andythenorth> it was breakfast time
10:15:17 <Alberth> good :)
10:17:24 <Alberth> no idea who is maintaining nml nowadays, but I pushed a fix for https://www.tt-forums.net/viewtopic.php?p=1208494#p1208494
10:18:00 <Alberth> python crashed on "{:r}".format("text") , changed to "{!r}".format("text")
10:19:39 <andythenorth> nml needs moved to github I think
10:19:41 <andythenorth> but eh
10:19:53 <andythenorth> I don't know who the maintainer is either :)
10:20:15 <andythenorth> let's see https://dev.openttdcoop.org/projects/nml/issues
10:21:23 <andythenorth> seems there isn't one
10:23:33 *** KouDy has quit IRC
10:26:30 <Alberth> not many with nothing else to do, at least
10:28:00 <Alberth> Interestingly, there is now also reprlib, a separate implementation of 'repr' with some additional extensions like omitting long parts
10:29:25 <andythenorth> the devzone issues suggest nml could use a tidy and maybe a release
10:29:52 <Alberth> new release would be spiffy, 4.4 was in 2016
10:30:09 <Alberth> by our planet builder
10:30:13 *** iSoSyS has joined #openttd
10:31:25 <Alberth> bbl
10:31:25 <andythenorth> I wonder how we distribute it
10:31:27 *** Alberth has left #openttd
10:31:27 <andythenorth> ok
10:31:40 <andythenorth> oh it's on pypi https://pypi.org/project/nml/
10:32:55 <andythenorth> https://pypi.org/project/nml/
10:33:37 <andythenorth> so 0.4.2 is the last release, pypi is at 0.2.4
10:36:14 *** KouDy has joined #openttd
10:40:02 <andythenorth> nice train http://www.railpictures.net/photo/661181/
10:49:43 <LordAro> andythenorth: seems like someone forgot about pypi
10:49:51 *** HerzogDeXtEr has joined #openttd
10:50:07 <andythenorth> often the way
10:50:22 <andythenorth> all of OpenTTD has the usual amount of good intentions :)
10:50:29 <andythenorth> information all over the place, often outdated
10:53:24 <TrueBrain> often not even done by a dev :P
10:57:49 <__ln__> TrueBrain: what is the expected response time of a translations manager?
10:58:58 <TrueBrain> 2 minutes after you receive a response
10:59:39 <__ln__> incompatible types
11:54:44 *** Wolf01 has joined #openttd
11:55:56 <Wolf01> o/
11:57:25 *** synchris has joined #openttd
12:00:44 *** Cubey has joined #openttd
12:05:31 *** frosch123 has joined #openttd
12:24:33 <Wolf01> Quak
12:24:40 <Wolf01> Oh, simutrans updating, nice
12:24:55 <Wolf01> I should play it sometimes
12:26:01 *** andythenorth has quit IRC
12:26:11 <Wolf01> I scared him
12:29:21 *** Wacko1976_ has joined #openttd
12:30:06 *** Cubey has quit IRC
12:31:24 *** Wormnest has joined #openttd
12:32:15 *** Wacko1976 has quit IRC
12:49:46 *** Thedarkb1 has quit IRC
13:13:37 *** Thedarkb1 has joined #openttd
13:26:15 *** Thedarkb1 has quit IRC
13:27:55 *** Thedarkb1 has joined #openttd
13:40:47 *** Heiki has joined #openttd
13:48:19 *** Amis has joined #openttd
13:50:03 *** Thedarkb1 has quit IRC
13:56:51 *** Thedarkb1 has joined #openttd
13:59:09 *** andythenorth has joined #openttd
14:05:55 *** Thedarkb1 has quit IRC
14:08:56 <Amis> Hello! Does anyone have the good old 32bpp GRVTS every link to it is dead.
14:17:25 *** gelignite has joined #openttd
14:26:25 *** KouDy has quit IRC
14:41:37 *** roidal_ has joined #openttd
14:42:20 *** ToffeeYogurtPots_ has quit IRC
14:46:31 *** ToffeeYogurtPots has joined #openttd
14:48:28 *** roidal has quit IRC
14:55:15 *** supermop has joined #openttd
15:03:13 *** gelignite has quit IRC
15:03:38 *** WWacko1976-work has joined #openttd
15:05:24 *** KouDy has joined #openttd
15:06:27 *** Thedarkb1 has joined #openttd
15:07:54 *** greeter_ has quit IRC
15:12:38 *** Gja has joined #openttd
15:25:58 *** KouDy has quit IRC
15:37:11 *** ANIKHTOS has joined #openttd
15:38:15 <ANIKHTOS> hello all
15:42:26 *** Gja has quit IRC
15:57:30 *** Wacko1976_ has quit IRC
16:00:59 <supermop> yo
16:08:34 <ANIKHTOS> have all a nice day
16:09:31 *** iSoSyS has quit IRC
16:09:56 *** Thedarkb1 has quit IRC
16:10:32 <nielsm> I've been enjoying a bit of woodworking for a change
16:11:44 <nielsm> by the way ANIKHTOS, "have a nice day" is usually said when you leave (wishing the other part well), the greeting counterpart is "how are you doing?"
16:12:01 <nielsm> (or "how do you do?")
16:13:22 <ANIKHTOS> okey do not shot me
16:13:29 <ANIKHTOS> hwo do you do??
16:14:17 <ANIKHTOS> okey 1 qyestion does anyoen knows the store valued from the ini files how they they game calls them ??
16:14:44 <nielsm> game settings/configuration?`
16:14:56 <ANIKHTOS> yes this values
16:15:09 <ANIKHTOS> lets talk about the value of sevising a train which is 150 days
16:15:18 <ANIKHTOS> it is named servint+trains
16:15:43 <nielsm> in src/table/ there's a bunch of *.ini files that declare the settings that can be loaded/saved to the configuration
16:15:46 <ANIKHTOS> servint_trains and it is in the settings.ini file and also in the openttd.cfg
16:16:12 <ANIKHTOS> now when we start a game how the game load this value from the file??
16:16:39 <nielsm> those ini files are (automatically, during "make") used to generate some code files that the C++ compiler then includes in the openttd program proper
16:16:41 <ANIKHTOS> when i just type servint_trains i get it was not declared in this scope
16:17:29 <nielsm> the configuration loader component of openttd uses those compiled data to read the value from openttd.cfg into a specific (global) variable in the process
16:17:46 <nielsm> and when the game exits, the value of that global variable is stored back to the cfg file
16:17:59 <nielsm> that all happens automatically
16:18:19 <ANIKHTOS> but when i write a code how i call them??
16:18:26 <ANIKHTOS> with naem seems nto to work
16:18:43 <ANIKHTOS> i call it by name and i got 0
16:19:18 <LANJesus> nielsm: i prefer "what's up" "how goes it" "greetings" "salutations" "hello"
16:19:31 <nielsm> this seems to be how servint_trains is declared in settings.ini: http://0x0.st/sLpD.png
16:19:38 <ANIKHTOS> what up what soon will be down blame the gravity lol
16:19:41 <ANIKHTOS> hello lan user
16:19:45 <nielsm> the part I selected is the variable it gets stored into
16:20:33 <nielsm> oh wait, there's also one in company_settings.ini
16:20:44 <nielsm> which is probably the actual valid one
16:20:46 <ANIKHTOS> thats an old value
16:20:53 <nielsm> since the first one is prefixed with _old
16:20:56 <ANIKHTOS> there msut be a new one
16:30:23 <ANIKHTOS> so nielsm the game reads the values form the ini file or form the cfg file??
16:30:55 <nielsm> from the cfg file
16:31:29 <nielsm> the ini files in src/table/ are used during compilation to generate the code that will read and write the cfg file
16:32:15 *** KouDy has joined #openttd
16:32:54 <ANIKHTOS> servint_trains = 150
16:33:06 <ANIKHTOS> so the name fo the variable is servint-trains
16:33:24 <ANIKHTOS> but why i have problems call it when i write code??
16:33:34 <nielsm> show us the code
16:35:09 <ANIKHTOS> servint_trains/= 2
16:35:26 <ANIKHTOS> thsi line did not work variable nto declared
16:35:40 <ANIKHTOS> then i made another varible
16:35:53 <ANIKHTOS> firs a=servint+trains
16:35:58 <ANIKHTOS> then a=a/2
16:36:03 <ANIKHTOS> which return a 0
16:36:15 <LordAro> please try harder to type accurately
16:36:20 <LordAro> especially when you're talking about code
16:36:25 <LordAro> otherwise it's just meaningless noise
16:36:58 <Eddi|zuHause> ANIKHTOS: each train has a different service interval, the setting won't help you
16:37:36 <nielsm> _settings_client.company.vehicle.servint_trains <- that's the variable that controls the default service interval for trains from a client
16:37:51 <nielsm> but yeah it's probably not what you want regardless
16:38:19 *** Alberth has joined #openttd
16:38:20 *** ChanServ sets mode: +o Alberth
16:38:47 <ANIKHTOS> well with my patch the trains and vehicles where doign servise with slow days
16:38:54 <ANIKHTOS> which was way apart
16:39:16 <ANIKHTOS> so i wanted to make them go servise in rnomal day so i thought changing this values will do the trick
16:39:25 <ANIKHTOS> but i could not change it
16:42:47 <nielsm> you should probably look at the Vehicle::NeedsServicing() and Vehicle::NeedsAutomaticServicing() functions
16:43:03 <ANIKHTOS> well in the end i manipulate the vlaue there
16:43:34 *** Gja has joined #openttd
16:44:56 <ANIKHTOS> but can you maipulate a value form the cfg file?/ to be somethign else ??? or you need to overide the value in the cfq file??
16:45:53 <nielsm> the value from the cfg file is completely meaningless here
16:46:03 <nielsm> because the actual service interval for each vehicle is stored on each vehicle
16:46:10 <nielsm> you can have two trains with different service intervals
16:46:30 <nielsm> (and it has been like that since transport tycoon original in 1994)
16:46:49 <ANIKHTOS> i never knew that was possilbe
16:46:58 <ANIKHTOS> i thought it was global settign
16:48:24 <ANIKHTOS> how can i change the inerval while playign the game to a different value only for 1 train??
16:49:10 <nielsm> http://0x0.st/sLp7.png
16:49:52 <ANIKHTOS> i aply thsi gae from 1994 and i never noticed this one :-(
16:49:58 <ANIKHTOS> i play
16:50:15 <nielsm> and if you read the Vehicle::NeedsServicing() function you'll see it calls another function called GetServiceInterval(), also on the Vehicle class
16:51:12 *** chomwitt has joined #openttd
16:52:15 <ANIKHTOS> yes i have seen it
16:52:45 <ANIKHTOS> (this->date_of_last_service + (this->GetServiceInterval() i change this
16:52:55 <ANIKHTOS> (to (this->date_of_last_service + (this->GetServiceInterval()/2)
16:52:58 <ANIKHTOS> and it worked
16:55:15 <nielsm> also consider what would have happened if you were dividing the global service interval setting by 2
16:55:18 <nielsm> and then doing it again
16:55:20 <nielsm> and again
16:55:32 <nielsm> eventually you'd have reduced it to 0
16:56:50 <ANIKHTOS> well i intercept the varibale when it was first declared in the files
16:56:54 <ANIKHTOS> and divided it ther
16:57:02 <ANIKHTOS> so i do nto thing i divide it over and over and over
16:59:26 *** ToffeeYogurtPots has quit IRC
17:00:04 <ANIKHTOS> in settings_type.h line 526 is where the variable serviint_trains is declared and given its type
17:00:45 <ANIKHTOS> i add a new parameter servint_trains2= servint_trains/2'
17:01:05 <ANIKHTOS> then change all files to link to servint_trains2
17:01:07 <ANIKHTOS> and i got a 0
17:02:55 <nielsm> sounds like a really bad solution regardless
17:04:13 <ANIKHTOS> well it did nto work
17:04:18 <Alberth> obviously, servint_trains changes when you start a new game or when you load one
17:04:19 <ANIKHTOS> by why i got a zero??
17:04:36 <Alberth> when do you assign the value?
17:06:11 <ANIKHTOS> if in the smae file i cjsut type servint_trains=servint-trains/2 the value still remains 150 i tried it with new game and old game but not worked
17:06:26 <ANIKHTOS> in old game i make a new train to see if the value will be different
17:09:38 *** snail_UES_ has joined #openttd
17:10:19 <ANIKHTOS> i want to make a gui in the seetign so peopel can choose the slow factor how easy will be to make this??
17:13:57 <nielsm> pretty easy
17:14:45 <nielsm> https://wiki.openttd.org/OpenTTDDevBlackBook/Settings/AddSetting
17:15:51 *** ToffeeYogurtPots has joined #openttd
17:21:57 <nielsm> hmm this seems to be wrong on that wiki page? guiflags: "SGF_0ISDISABLED - The feature is disabled (greyed out)"
17:22:26 <ANIKHTOS> thank you nielsm my patch code will be mor efun knwo when peopel can choose the factor
17:22:26 <nielsm> isn't it that a numeric value of 0 should display as "disabled" but everything above as the numeric value?
17:23:31 *** Cthulhux has joined #openttd
17:24:58 <Alberth> it's a wiki, and nothing official, so it can say anything
17:25:11 <Alberth> I am surprised it even mentions .ini files :)
17:26:52 <ANIKHTOS> okey where do you think i wil make the entry for the slow factor??
17:27:36 *** techmagus has quit IRC
17:27:39 <ANIKHTOS> DifficultySettings???
17:27:51 <nielsm> in the GUI I'd present it under Environment
17:28:39 <nielsm> also consider if you want the user to be able to change it during play, I don't know but it might break things if you make that possible
17:28:44 *** Gja has quit IRC
17:29:28 <ANIKHTOS> it will not break things
17:29:37 <ANIKHTOS> but would it make sense to change ti during game
17:29:47 <ANIKHTOS> ahvign game goign faster or slwoer??
17:30:00 <ANIKHTOS> having game goign faster or slower??\
17:31:16 <Alberth> of course it will break things, you'll get desyncs
17:32:43 <ANIKHTOS> in networks games yea
17:32:48 <ANIKHTOS> but now in single games
17:33:24 <ANIKHTOS> for testign purposes i think for now i shoudl allow to change in game and later on disaple it
17:33:31 <ANIKHTOS> disable it
17:34:15 *** supermop has quit IRC
17:37:10 *** Thedarkb1 has joined #openttd
17:46:36 *** Thedarkb1 has quit IRC
17:48:46 *** Thedarkb1 has joined #openttd
17:49:08 *** Gja has joined #openttd
17:57:20 *** Thedarkb1 has quit IRC
17:59:47 <ANIKHTOS> okey what range of values i allow the user??
17:59:56 <ANIKHTOS> 1 to ??? 24?? or hightter??
18:05:46 <snail_UES_> Anikhtos: how can I test your patch? can I just download the latest trunk source, replace those two CPP files, and compile?
18:06:31 <ANIKHTOS> well you can get the 2 altered file and compile them
18:07:12 <ANIKHTOS> or i put some binaries in binaries in the forum but my compiler doe snto support livlza so you will not be albe to load save game so if you can compile compile
18:07:38 <ANIKHTOS> which make my testign a bit hard since i can nto load a savegame and see if everythign still work the same
18:09:26 *** andythenorth has left #openttd
18:09:40 <ANIKHTOS> if you can test it and give feed back if somethign looks broken in the mechanics
18:10:10 <ANIKHTOS> cargo payment, industry production this things
18:17:56 <Eddi|zuHause> <ANIKHTOS> okey what range of values i allow the user?? <-- i've seen people use crazy high values with the other daylength patches
18:18:25 <ANIKHTOS> more than 24?? i year will be 24 normal years??
18:19:05 <Eddi|zuHause> yes, a lot more than that
18:19:35 <nielsm> 365 would be an appropriate maximum perhaps
18:19:39 <nielsm> so 1 day = 1 year
18:20:27 <ANIKHTOS> thats really crazy value
18:22:03 <nielsm> because ottd is known for being a game where nobody does crazy things
18:22:22 *** sla_ro|master has joined #openttd
18:22:47 <Eddi|zuHause> i've seen people that set 1tick=1second on the 24h clock and then wanted 1 24h cycle equal one ingame day
18:23:22 <peter1138> o_O
18:23:37 <nielsm> that's nearly half realtime?
18:23:48 <Eddi|zuHause> na, 1:33
18:24:39 <Eddi|zuHause> actually, it might have been 1tick=1minute
18:24:59 <Eddi|zuHause> but that's still like a daylength of 7000
18:25:51 <ANIKHTOS> okey i put max value of 365 for now
18:26:00 <ANIKHTOS> well it is easy to change the value
18:26:20 <ANIKHTOS> and i was thinking 24 to be a big value
18:27:07 <Eddi|zuHause> yeah, lots of people fell into traps of "i thought X was a large value, until i met <power user>"
18:27:26 <peter1138> 16 railtypes? Whoever would need more?!
18:31:04 *** Gja has quit IRC
18:31:47 <ANIKHTOS> well i can but mx value 5 million
18:31:54 <ANIKHTOS> and game will end before a year pass
18:35:26 <Eddi|zuHause> the typical problem people faced with high daylength factors was that some counters that count ticks may overflow
18:41:34 <ANIKHTOS> every day i learn a bit more
18:41:40 <ANIKHTOS> every day i push my code forward
18:41:43 <ANIKHTOS> i am happy
18:41:45 <ANIKHTOS> :-)
18:48:56 <peter1138> hi
18:52:37 <ANIKHTOS> hi peter
19:04:10 <ANIKHTOS> be back later
19:09:55 *** kais58 has quit IRC
19:15:20 *** IchGucksLive has joined #openttd
19:15:25 <IchGucksLive> hi
19:15:45 *** KouDy has quit IRC
19:15:53 <IchGucksLive> Q when in a not cheeting game will i be presented the build of the industies
19:16:18 <IchGucksLive> there are only reciving in the list but i cand build sourcing ones
19:16:38 <IchGucksLive> or is it a simple setting that i missed
19:16:58 <IchGucksLive> show me the industries is a cheet as i know from the past
19:18:34 <nielsm> building industries is a regular game feature (now), but by default you can only build secondary industries, yes
19:19:10 <nielsm> there is a setting that controls whether you can build primary industries (mines, farms, forests etc.), or perhaps can just fund "prospecting" for one
19:19:32 <nielsm> "prospecting" for a primary industry will usually result in one being built at a random place on the map
19:21:56 <IchGucksLive> so i need to search where this setting is
19:22:35 <nielsm> in english it's "manual primary industry construction method", under Environment >> Industries
19:23:24 <IchGucksLive> got it
19:23:46 <IchGucksLive> there is also alow multiple of same industries
19:24:00 <Alberth> there is
19:24:17 <IchGucksLive> no i stay default
19:24:43 <Eddi|zuHause> multiple industries can help if you play with really few towns
19:25:02 <IchGucksLive> now i can get what i want to adchive im now in 12th game year generated 50Mio of money but got so view sources
19:25:04 <Alberth> or with many many industries :)
19:25:35 <IchGucksLive> Thanks
19:25:46 <Alberth> money has no meaning in this game :)
19:25:56 <Eddi|zuHause> or when you want all source industries on one end of the map and all destinations on the other end
19:26:10 <IchGucksLive> ive been not shure on how it is a cheet and someday it comes up as the Train systems
19:26:41 <IchGucksLive> this is best back and forth full service
19:26:45 <Eddi|zuHause> it's really fuzzy on what is actually a "cheat" when the game is not really balanced to begin with
19:27:13 <Alberth> you can only decide what you believe to be cheating
19:27:37 <IchGucksLive> the beginn i use 2planes and it then grows at every landing
19:28:07 <Alberth> I never use planes, I think they are too cheaty :)
19:28:22 <IchGucksLive> LOL
19:28:25 <Alberth> also, not much fun to play
19:28:27 <IchGucksLive> ROFL Thanks BYE
19:28:34 <Alberth> bye, have fun playing
19:28:42 <IchGucksLive> Le Mans second major incident
19:28:49 <IchGucksLive> full saftycar
19:28:56 <nielsm> distances in TT are really weird so planes can make very little sense, depending on scenario
19:29:06 <IchGucksLive> impact at 320Km/h
19:29:37 <Alberth> nielsm: nah, coal does need to be delivered, jumbo-jet seems like a good solution over water :p
19:30:05 <IchGucksLive> BY the way the timeline is to be concerned but you will come up with trains are 2years betwen stations
19:30:11 <Alberth> or red-hot steal that needs further finishing :)
19:30:26 *** IchGucksLive has quit IRC
19:30:41 *** Gja has joined #openttd
19:31:03 <Alberth> I mean carrying molten metal in an airplane, what can go wrong?
19:31:49 <Eddi|zuHause> i once transported oil via zeppelins
19:32:18 <Eddi|zuHause> so the oil rig delivered the oil through the heliport, and the passengers by ship
19:32:32 <Alberth> haha :)
19:32:51 <nielsm> those mods that have fishing grounds based on oil rigs... they still get the heliport part of the stop
19:33:03 <nielsm> so you can have helicoptors hovering there, catching fish
19:33:33 <Alberth> nice idea :)
19:33:49 <Alberth> ships are too slow anyway
19:38:31 *** Flygon has quit IRC
19:40:12 <nielsm> hmm I have an idea for a GS that would let a scenario builder set up some specific rules for the sceario, something with placing signs in the world builder which are then "consumed" by the GS when the game starts
19:40:22 <nielsm> should that be possible? does it alredy exist?
19:41:47 <nielsm> e.g. a sign for "in 1965 a new town must be founded where this sign is"
19:44:04 <Alberth> signs is a common form of communication with squirrel scripts
19:44:38 <Alberth> lilely there are function already for this in some library developed by Zuu
19:44:42 <Alberth> *likely
19:45:18 <Alberth> the question is, how do you avoid the player modifying the signs? :p
19:46:17 <Alberth> hmm, sign it with a crypto key?
19:46:32 *** iSoSyS has joined #openttd
19:47:20 <Rubidium> isn't that one of the features?
19:47:20 <Alberth> not going to work of course, just hack the squirrel code
19:47:27 <Eddi|zuHause> the player can only edit his own signs?
19:48:51 <Alberth> ok, can the script change ownership of the signs to itself, eg by making a new sign?
19:50:28 <Eddi|zuHause> the script can probably set as which player it wants to act before placing a sign
19:54:24 <nielsm> can't the script "consume" the sign on the first tick of the game? read all signs on the map, and signs with correct syntax are stored in some GS internal storage and removed
19:54:38 <nielsm> and after than never read signs again
19:56:48 <Alberth> sounds feasible, if you accept hackability of the script :p
19:57:31 <nielsm> it'd also be neat if there was a way to fill out pages in the story book in the scenario editor, and then let a GS consume those pre-filled pages as script material, and replace with its own
19:57:41 <nielsm> (does anything even use the story book?)
20:00:00 *** KouDy has joined #openttd
20:00:22 <Alberth> tutorial does
20:01:20 <Alberth> GameScript can only switch to another comany it seems, and it has to be a valid company. That means the player can cheat to it too
20:03:14 <Alberth> a simpler solution may be to make a list of such goals in the script itself
20:03:44 <nielsm> the goal is to have a script that can be used for any number of unique scenarios
20:04:26 <Alberth> oh, can't you load them from the savegame?
20:05:24 <Alberth> hmm, no, scenario doesn't load like that?
20:05:35 <Alberth> although, maybe it does
20:05:51 <nielsm> like, I want a scenario author to be able to select the "ScenarioTools" GS, plop down a bunch of signs detailing the rules, and when the game starts for real, the GS reads all the signs at once, stores the rules in an internal variables, deletes all of the signs, and then it will never read any more signs
20:06:39 <nielsm> I assume there is a way for a GS to have persistent state that's "hidden" from the world
20:06:48 <Alberth> you do have to save the information, or player cannot quit halfway
20:07:18 <Alberth> and you'll get that info back on load
20:07:37 <nielsm> semi-related, I can't seem to get the tutorial GS to load
20:07:53 <nielsm> I have downloaded it through bananas but it doesn't show up in the list of available GSs
20:08:06 <Alberth> we have such a thing?
20:08:24 *** Gja has quit IRC
20:09:01 <Alberth> run a debug dump on script loading / recognizing
20:09:16 <Alberth> so you can see it's seen and loaded, or if not, why not
20:10:54 <nielsm> hm what cmdline option would that be...
20:16:43 *** Thedarkb1 has joined #openttd
20:22:40 <michi_cc> nielsm: I believe you have to load and start the tutorial scenario which has the GS pre-setup.
20:22:58 <nielsm> and where is that scenario? >_>
20:23:00 <nielsm> :(
20:23:39 <michi_cc> It's listed as "Beginner Tutorial" on http://bananas.openttd.org/en/scenario/
20:24:22 <nielsm> scenarios aren't included in the in-game downloader ui?
20:24:32 <peter1138> They are.
20:25:16 *** Thedarkb1 has quit IRC
20:26:20 <nielsm> no idea why, but it wasn't showing up when I filtered for "begin" or "tutor" just before
20:26:40 <Alberth> it heard you :)
20:27:51 *** iSoSyS has quit IRC
20:29:58 <ANIKHTOS> i am doign somethign wrogn i compile the game and when i open the seetings i get a crash fo the game in line 952 in the gui.cpp
20:31:15 <peter1138> I would say yes you are doing something wrong.
20:32:06 <LordAro> no that's definitely working exactly as intended
20:33:06 <Rubidium> actually, I find it quite interesting as I can't remember a gui.cpp
20:34:01 <peter1138> I think that'll be covered under "doing something wrong" :-)
20:34:25 <ANIKHTOS> settings_gui.cpp this->setting != null
20:36:03 <Eddi|zuHause> <nielsm> can't the script "consume" the sign on the first tick of the game? read all signs on the map, and signs with correct syntax are stored in some GS internal storage and removed <- i think that should be possible, however you can only "consume" (as in remove) one sign per tick
20:36:08 <LordAro> like i keep saying, you *need* to be exact when describing error messages
20:36:17 <LordAro> your usual mess of typos is not helpful
20:37:47 <ANIKHTOS> i try to make an gui entry of variable
20:37:52 <ANIKHTOS> follow the instructions
20:38:11 <ANIKHTOS> but it crash the game so i am doing somethign wrong
20:38:41 *** KouDy has quit IRC
20:40:11 *** Thedarkb1 has joined #openttd
20:40:56 <Eddi|zuHause> you missed some steps
20:42:10 <ANIKHTOS> okey doign all steps from begining
20:45:17 <Alberth> don't trust the black book stuff too much
20:46:05 <ANIKHTOS> black book?? you men wiki page of ottd??
20:47:17 <LordAro> it tends to be out of date
20:47:32 <Alberth> yes, https://wiki.openttd.org/Development_Documentation this part in particular
20:48:00 <Alberth> other wiki is likely out of date too, but game play doesn't change very much
20:48:58 <ANIKHTOS> great the documentaiton is out of date
20:49:22 *** glx has joined #openttd
20:49:22 *** ChanServ sets mode: +v glx
20:51:39 <Alberth> likely it was never completely up-to-date in the first place
20:52:20 <LordAro> as ever, the only true documentation is the source
20:53:40 *** Thedarkb1 has quit IRC
20:54:12 <ANIKHTOS> but outside documentation is so much faster to do things
20:54:34 <ANIKHTOS> now you have to read all the code to figure out what it does if you had documendation it would be faster
20:55:04 <LordAro> true
20:55:24 <LordAro> there is the automatically generated documentation at http://docs.openttd.org/
20:55:39 <LordAro> but again, it's generated from comments so can't be entirely trusted
20:55:45 <LordAro> compiler doesn't compile comments
20:59:03 *** roidal_ has quit IRC
21:00:11 <nielsm> Eddi|zuHause ah well, only being able to remove one sign per tick is fine, it can still read all of them in a single tick I assume
21:01:00 <Eddi|zuHause> maybe, but the game can force the script to pause after a number of operations
21:04:04 <ANIKHTOS> still same error
21:04:56 <nielsm> ah right yeah, well can just try to detect the situation and yell "you fool" at the scenario creator if the number of signs runs over
21:06:01 <LordAro> ANIKHTOS: without seeing your code there's really not much anyone can do
21:06:45 <nielsm> I'd really recommend getting a proper IDE with full debugger
21:06:53 <LordAro> also that
21:06:59 <nielsm> being able to look at the stack when it crashes it very useful
21:07:06 <LordAro> i think you said you were using notepad before? jesus christ that's bad
21:09:33 <glx> but he can't install VS
21:10:06 <glx> LordAro: I think we pointed to notepad++
21:10:29 <LordAro> a vague understanding of how C/C++ work would help as well, tbh
21:11:22 <nielsm> the various lookup features in the VS editor are so absurdly useful
21:11:40 <LordAro> vim + grep :p
21:12:01 <ANIKHTOS> https://paste.openttdcoop.org/p4nwmwqv8
21:12:11 <ANIKHTOS> i use notepad++ now
21:12:31 <LordAro> ANIKHTOS: did you use git to checkout a copy of the source?
21:12:35 <LordAro> a diff would be more useful
21:12:46 <LordAro> (`git diff` in the terminal)
21:13:22 <ANIKHTOS> can i do that from the browser?? or i need to download another programm??
21:13:38 <nielsm> it's part of the git suite
21:13:39 <LordAro> depends, how did you get a copy of the OTTD source?
21:13:46 <nielsm> if you have git installed you can make a diff
21:13:47 *** iSoSyS has joined #openttd
21:13:47 <ANIKHTOS> and i gave you what lines i have added nothing else is changed i try to get seeting in the gui
21:14:06 <ANIKHTOS> from the git hub from the browser i ask ti and i dwonlaod it
21:14:15 <LordAro> so a .zip?
21:14:23 <ANIKHTOS> yes a zip file
21:14:27 <LordAro> right
21:14:34 <LordAro> and you're using msys to compile it?
21:14:42 <ANIKHTOS> yes
21:14:45 <glx> msys2
21:14:56 <glx> with mingw-w64
21:15:04 <LordAro> glx: i figured the distinction wasn't necessary :p
21:15:10 <ANIKHTOS> mys2 and i use the mingw64
21:15:21 <LordAro> ok, you should be able to install git on the command line
21:15:25 <LordAro> `pacman -S git`
21:17:18 <ANIKHTOS> 7 min more or less
21:17:40 <LordAro> ...that is not a good internet connection
21:17:50 <LordAro> can't be more than a few MB
21:18:12 <ANIKHTOS> 27 mb
21:18:24 <LordAro> huh, that's bigger than i thought
21:18:34 <ANIKHTOS> Total Download Size: 27.03 Mi
21:19:48 <LordAro> incidentally, i think installing mingw-w64-xz will fix your savegame loading issue
21:20:15 <ANIKHTOS> you mean i will have the liblzma??
21:20:23 <LordAro> i think so
21:20:42 <glx> yes you installed msys package last time, not mingw package
21:20:54 <LordAro> it's either that or liblzma or liblzma-devel
21:21:10 <LordAro> glx: the distinction irritates me
21:21:31 <glx> there's only one package for mingw containing bin and headers
21:21:36 <ANIKHTOS> i installed liblzma and liblzma-devel but they do nto wrok
21:21:48 <glx> you installed msys ones yes
21:21:48 <LordAro> yeah, you can probably get rid of them
21:22:03 <ANIKHTOS> hwo u unitstall??
21:22:10 <LordAro> pacman -R <package>
21:22:37 <glx> to install mingw specific packages I think it's better to use pacboy
21:23:08 <glx> https://github.com/msys2/msys2/wiki/Using-packages#avoiding-writing-long-package-names
21:23:24 <glx> else it's a pain :)
21:23:40 <LordAro> interesting
21:23:53 <LordAro> we exclusively use msys at work, which often breaks things
21:24:08 <LordAro> (things only look for mingw, not msys)
21:24:53 <glx> msys packages are useful only to port tools for msys
21:25:19 <glx> all other projects need mingw packages
21:25:40 <LordAro> you'd be surprised how much works :p
21:25:58 <LordAro> one day i'll get around to "fixing" it
21:26:20 <glx> well it works if your target is only 32bit I think
21:26:34 <LordAro> ...that also happens to be the case
21:26:56 <LordAro> (for now)
21:27:45 <glx> but usually msys packages are not found by mingw pkg-config
21:28:15 <LordAro> yeah, there's a lot of overrides going on in our stuff
21:29:00 *** Thedarkb1 has joined #openttd
21:29:47 <glx> anyway on my PC I'm still with the old msys
21:30:52 <LordAro> oh dear
21:31:13 <glx> I highly integrated it in windows path so trying to install msys2 will conflict everywhere ;)
21:31:21 <LordAro> ha
21:36:02 <glx> vcpkg uses msys2 but it's ok because it installed it locally in the the checkout path
21:37:36 *** andythenorth has joined #openttd
21:37:47 *** Wacko1976 has joined #openttd
21:39:31 *** iSoSyS has quit IRC
21:46:36 *** Thedarkb1 has quit IRC
21:52:24 *** KouDy has joined #openttd
21:54:18 *** gelignite has joined #openttd
21:57:30 *** Amis has quit IRC
21:59:30 *** KouDy has quit IRC
22:02:11 *** Wacko1976 has quit IRC
22:04:35 *** Alberth has left #openttd
22:14:23 *** Thedarkb1 has joined #openttd
22:25:30 *** ToffeeYogurtPots has quit IRC
22:26:00 *** ToffeeYogurtPots has joined #openttd
22:26:28 *** iSoSyS has joined #openttd
22:39:22 *** KouDy has joined #openttd
22:47:12 *** Wacko1976 has joined #openttd
22:49:47 *** supermop has joined #openttd
22:50:35 *** KouDy has quit IRC
22:51:25 <ANIKHTOS> okey unistal msys2
22:51:28 <ANIKHTOS> and install it again
22:51:38 <ANIKHTOS> and this time i am installign packaged with pacboy
22:52:29 <ANIKHTOS> https://paste.openttdcoop.org/pakjuacgd this is waht i get when i tyrpe ./configure now
22:52:36 <ANIKHTOS> i am missing lzo2
22:52:46 <LordAro> maybe you should try installing it
22:53:03 <ANIKHTOS> i isntall it with pacboy
22:53:06 <ANIKHTOS> but still not found
22:53:10 <ANIKHTOS> and there is no devel
22:53:36 *** andythenorth has left #openttd
22:54:22 <LordAro> you should've installed the mingw-w64-lzo2 package
22:54:30 <LordAro> not sure of the specific pacboy syntax
22:55:14 <ANIKHTOS> Packages (2) mingw-w64-i686-lzo2-2.10-1 mingw-w64-x86_64-lzo2-2.10-1
22:55:17 <ANIKHTOS> installed this 2
22:55:29 <LordAro> hrm
22:55:37 <LordAro> glx: know anything more?
22:56:28 <glx> so 32bit and 64bit are installed
22:56:55 <ANIKHTOS> yes
22:57:31 <LordAro> (in general you only need 64bit)
22:57:55 <ANIKHTOS> pacboy is strange to use
22:58:40 <ANIKHTOS> when i type big name to get 1 option i get no such file
22:59:14 <LordAro> could be a side effect of however pacboy talks to pacman
22:59:23 <LordAro> no matter, if you've got both of them installed it "should" work
23:00:02 *** muffindrake has quit IRC
23:00:09 <ANIKHTOS> https://paste.openttdcoop.org/pakjuacgd
23:00:22 <ANIKHTOS> this is what i get after i try to ./configure
23:00:52 <glx> you can check config.log
23:03:41 <ANIKHTOS> well it tried to find lzo2 in 4 locations failed and moved on
23:05:52 <ANIKHTOS> trying /mingw/include/lzo/lzo1x.h... no
23:06:27 <ANIKHTOS> but the location is not correect
23:06:28 <ANIKHTOS> R:\msys64\mingw64\include\lzo
23:06:43 <glx> location seems correct
23:07:10 <ANIKHTOS> msys2 installs mingw as mingw64 or mingw32
23:07:17 <DorpsGek> /mingw should be this mingw64 dir
23:07:23 <glx> oups
23:07:27 <glx> wrong command
23:07:53 <ANIKHTOS> make a folder and link it to the correct folder??
23:08:22 <glx> check what you have in /mingw
23:08:32 <glx> from msys shell
23:08:33 <ANIKHTOS> i do nto have a folder mingw
23:08:48 <LordAro> ...dorpsgek is alive?
23:08:53 <ANIKHTOS> i have 2 folders mingw32 and mingw64 where lzo is isntaleld
23:09:00 <LordAro> TB is that you?
23:09:16 <glx> yes you physically have these, but msys use an alias
23:09:21 <glx> LordAro: it was me
23:09:37 <LordAro> mysterious
23:10:55 <glx> check /etc/fstab
23:11:21 <glx> it should contain all mount points used by msys
23:11:39 <ANIKHTOS> check /etc/fstab this doe snto work
23:12:02 <glx> just open the file
23:12:20 <LordAro> is this the bit where you're using msys2.exe instead of mingw64.exe or something?
23:12:47 <glx> on my machine I have /mingw and /usr/local pointing to the same dir (but it's a highly customised install)
23:13:16 <glx> ha yes you must of course start the right env
23:13:41 <LordAro> somsone should really rewrite thr compiling on mingw wiki page
23:14:01 <LordAro> it predates msys2
23:14:04 <ANIKHTOS> no i run the ingw64
23:14:33 <glx> so in mingw64 type "cat /etc/fstab"
23:14:43 <ANIKHTOS> i have 3 optiosn to run ming64 mingw32 and msys2 i always run mingw64
23:14:54 <glx> that's correct
23:15:15 <glx> never use msys2
23:15:23 <glx> only the mingw ones
23:16:01 <glx> so this step is clear
23:16:51 <glx> and I think mingw64 and mingw32 define where /mingw points
23:17:04 <ANIKHTOS> For a description of the file format, see the Users Guide
23:17:06 *** muffindrake has joined #openttd
23:17:15 <ANIKHTOS> # http://cygwin.com/cygwin-ug-net/using.html#mount-table
23:17:25 <ANIKHTOS> # DO NOT REMOVE NEXT LINE. It remove cygdrive prefix from path
23:17:33 <glx> ignore the comments ;)
23:17:39 <ANIKHTOS> none / cygdrive binary,posix=0,noacl,user 0 0
23:17:42 <ANIKHTOS> and nothign more
23:17:54 <glx> that's weird
23:18:05 *** Thedarkb1 has quit IRC
23:18:34 <ANIKHTOS> ii hust open mingw64 and type that
23:18:44 <ANIKHTOS> shoudl i go to another location and type that??
23:18:52 *** chomwitt has quit IRC
23:19:34 *** sla_ro|master has quit IRC
23:20:57 <ANIKHTOS> okey i made a folder mingw
23:21:05 <ANIKHTOS> and link the subfolders to mingw64
23:21:12 <ANIKHTOS> now it can see lzo2
23:21:50 *** techmagus has joined #openttd
23:22:10 <glx> but I think the launcher should handle that
23:22:24 <Eddi|zuHause> hm, i just found an unopened letter that said "thanks for playing at our christmas party" and 25€
23:22:39 *** KouDy has joined #openttd
23:22:56 <ANIKHTOS> maybe ./configure file fo ottd need an update?? for msys2???
23:22:56 <Eddi|zuHause> and i can't remember what christmas party that was
23:23:15 <ANIKHTOS> https://paste.openttdcoop.org/pgcufayv7 this is what i get after ./configure
23:23:22 <ANIKHTOS> so i need to install anythign more??
23:24:19 <frosch123> Eddi|zuHause: likely not before 2001
23:24:50 <glx> possible as I think no devs use msys2
23:25:40 <Eddi|zuHause> frosch123: well, it made a reference to the year 2018... but anyway :p
23:26:15 <ANIKHTOS> can you tell me if i have all the tools needed installed??
23:26:54 <glx> configure output seems good, you can type make
23:28:26 <Eddi|zuHause> ANIKHTOS: what line of that output are you worrying about?
23:29:18 <ANIKHTOS> line 36 and down with all the not found
23:29:56 <glx> ah yes you could install libpng
23:30:24 <glx> but it's not vital (only used for screenshots and heightmaps)
23:30:39 *** iSoSyS has quit IRC
23:33:45 <ANIKHTOS> anythign else i need??
23:34:32 <ANIKHTOS> the icu???
23:35:03 <glx> I'm checking
23:36:57 <glx> hmm you don't use a recent source tree
23:37:26 <ANIKHTOS> i am using the 1.8.0
23:37:44 <ANIKHTOS> the master was not copiling was giving me erorors
23:37:58 <ANIKHTOS> the 1.8 compiles with no errors only 1 warning
23:38:13 <glx> yes so you'll need freetype and icu if you need a non latin language
23:38:39 <glx> we removed the need in recent source
23:38:54 <glx> using windows native features
23:39:07 <ANIKHTOS> okey for the test purposes i can live without strange language support
23:41:15 <ANIKHTOS> great now my compiller works better :-0
23:42:11 <ANIKHTOS> git i can only install it with pacman
23:42:15 <ANIKHTOS> install it??
23:42:39 <glx> it can be installed globally
23:43:06 <ANIKHTOS> so go ahead and install it??
23:43:28 <glx> I used the installer from https://github.com/git-for-windows/git/releases
23:43:54 <glx> 2.17.1(2)
23:44:03 <glx> ignore the RC
23:44:54 <ANIKHTOS> 2.17 or 2.18?? i only see 2.18
23:45:03 <glx> 2.18 is RC
23:45:13 <glx> scroll down for 2.17
23:46:18 <glx> this git is compatible with github 2FA, I don't know how it is for msys git
23:49:19 <ANIKHTOS> merge the git files with the mingw64 files??
23:50:07 *** Thedarkb1 has joined #openttd
23:50:37 <ANIKHTOS> i imagine i run the git.exe??
23:52:15 <ANIKHTOS> the git creates 4 folders
23:52:50 <ANIKHTOS> cmd etc mingw64 and usr
23:53:07 <ANIKHTOS> what exe i run to start the programm??
23:53:18 <glx> git is a command line tool
23:54:38 <ANIKHTOS> like mingw64
23:54:40 <glx> but it shouldn't do anything (except outputing its usage) when executed without args
23:55:03 <glx> no mingw64 opens a shell window
23:55:24 <glx> you use git in this window or any windows command line
23:55:41 <ANIKHTOS> i downlaod the zip version
23:55:45 <ANIKHTOS> and i unzip it in a folder
23:55:49 <ANIKHTOS> if i want to run git
23:55:55 <ANIKHTOS> what i need to start??
23:56:13 <glx> just type git
23:56:36 <glx> but if you just extracted the zip you'll need to add its path
23:56:52 <ANIKHTOS> to mingw64??
23:58:27 <ANIKHTOS> i see 2 git.exe
23:58:37 <ANIKHTOS> one in folder cmd and nothign else in that folder
23:58:59 <ANIKHTOS> and the other in ,ingw64\bin with many other files
23:59:48 <Wolf01> 'night
23:59:50 *** Wolf01 has quit IRC