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