Config
Log for #openttd on 12th June 2018:
Times are UTC Toggle Colours
00:42:39  *** KouDy has quit IRC
00:46:27  *** Maarten has quit IRC
00:58:07  *** Maarten has joined #openttd
01:01:43  *** ANIKHTOS has quit IRC
01:11:48  *** KouDy has joined #openttd
01:13:49  *** supermop has quit IRC
01:15:29  *** Maarten has quit IRC
01:17:46  *** Maarten has joined #openttd
01:20:56  *** supermop has joined #openttd
01:22:45  *** Supercheese has quit IRC
01:48:33  *** rocky1138 has joined #openttd
02:10:27  *** Thedarkb has quit IRC
02:10:39  *** snail_UES_ has joined #openttd
02:25:07  *** iSoSyS has quit IRC
02:28:06  *** Flygon has joined #openttd
02:28:35  *** Supercheese has joined #openttd
02:46:16  *** Soni has joined #openttd
02:46:23  *** muffindrake1 has joined #openttd
02:46:53  <Soni> does openttd have lewd/porn mods?
02:48:15  *** muffindrake has quit IRC
02:55:11  <supermop> ...
02:59:06  *** kais58 has quit IRC
03:00:43  *** KouDy has quit IRC
03:02:53  *** kais58 has joined #openttd
03:04:50  *** ToffeeYogurtPots_ has joined #openttd
03:06:32  *** ToffeeYogurtPots has quit IRC
03:23:15  <Supercheese> well, George's LongVehicles have some... odd pixels
03:23:17  <Supercheese> IIRC
03:38:33  *** glx has quit IRC
04:28:10  *** KouDy has joined #openttd
04:34:04  *** KouDy has quit IRC
04:47:31  *** Suprcheese has joined #openttd
04:52:07  *** KouDy has joined #openttd
04:53:56  *** Supercheese has quit IRC
04:54:02  *** Suprcheese is now known as Supercheese
04:59:18  *** KouDy has quit IRC
05:07:07  *** supermop has quit IRC
05:08:47  *** snail_UES_ has quit IRC
05:32:33  *** ToffeeYogurtPots_ has quit IRC
05:32:53  *** ToffeeYogurtPots_ has joined #openttd
05:39:26  *** Maarten has quit IRC
05:40:37  *** Maarten has joined #openttd
06:01:03  *** andythenorth has joined #openttd
06:05:51  <andythenorth> o/
06:08:42  *** Cubey has quit IRC
06:17:29  *** planetmaker_ has joined #openttd
06:24:01  *** SpComb has quit IRC
06:28:40  *** ANIKHTOS has joined #openttd
06:32:29  *** KouDy has joined #openttd
06:36:26  *** chomwitt has joined #openttd
06:39:59  *** KouDy has quit IRC
06:56:33  <ANIKHTOS> hello toall have a nice day
07:16:08  *** KouDy has joined #openttd
07:28:46  *** planetmaker_ has quit IRC
07:40:15  *** Fuco has joined #openttd
07:46:03  *** SpComb has joined #openttd
08:03:01  *** APTX_ has quit IRC
08:15:06  *** Supercheese has quit IRC
08:22:12  *** Fuco has quit IRC
08:40:39  *** APTX_ has joined #openttd
08:52:46  *** andythenorth has left #openttd
09:59:10  *** Thedarkb has joined #openttd
10:00:41  *** TheMask96 has quit IRC
10:04:33  *** TheMask96 has joined #openttd
10:23:33  <Eddi|zuHause> how do Nizza days differ from other days?
10:35:39  *** heffer has quit IRC
10:37:19  *** heffer has joined #openttd
10:43:23  *** sla_ro|master has joined #openttd
11:05:08  <__ln__> that looks like a Nice question, though i don't understand it
11:16:06  *** APTX_ has quit IRC
11:18:17  *** Wacko1976_ has quit IRC
11:21:36  <Eddi|zuHause> actually, how did it evolve that english uses the french name (Nice) and german uses the italian name (Nizza)?
11:28:12  <__ln__> dunno, and curiously finnish also uses Nizza
11:50:16  *** KouDy has quit IRC
11:55:13  *** supermop has joined #openttd
11:55:49  *** KouDy has joined #openttd
12:03:41  *** tragique has quit IRC
12:07:45  *** anikhtos_ has joined #openttd
12:08:01  *** Thedarkb has quit IRC
12:08:15  *** anikhtos_ has quit IRC
12:14:54  *** virtualrandomnumber has joined #openttd
12:15:51  *** LANJesus has quit IRC
12:16:10  *** LANJesus has joined #openttd
12:25:01  *** Thedarkb has joined #openttd
12:44:01  *** APTX_ has joined #openttd
12:50:33  *** snail_UES_ has joined #openttd
12:59:56  *** WWacko1976-work has joined #openttd
13:07:46  *** WWacko1976-work has quit IRC
13:13:11  *** snail_UES_ has quit IRC
13:14:44  *** WWacko1976-work has joined #openttd
13:45:56  *** nielsm has joined #openttd
13:52:50  *** Alberth has joined #openttd
13:52:50  *** ChanServ sets mode: +o Alberth
13:52:58  <Alberth> o/
13:57:10  <ANIKHTOS> hello albert
13:57:17  <ANIKHTOS> i made an acount in git
13:57:34  <ANIKHTOS> i download the ottd master?? that is the one to get??
13:58:19  *** virtualrandomnumber has quit IRC
14:02:21  <ANIKHTOS> hello nielsm how are you?
14:04:14  <LANJesus> ANIKHTOS: if you're wanting to replicate what is the most bleeding of edged openttd, yes. get master?
14:04:48  <Alberth> master is usually the newest revision of the program indeed
14:04:58  <LANJesus> yeah openttd isn't using any kind of flow.
14:05:07  <LANJesus> master isn't stable, it's the wild west
14:05:21  *** andythenorth has joined #openttd
14:05:22  <ANIKHTOS> tso get the 1.80??
14:05:25  <Alberth> openttd dev does use branches and rebasing :)
14:05:51  <LANJesus> if you want 1.8.0 source you need to get that tag
14:05:53  <ANIKHTOS> so to experiment with code it is better to get 1.8/0 which will be stable??
14:06:00  <Alberth> likely some tag or branch exists for releases
14:06:03  <planetmaker> \o
14:06:08  <Alberth> hi hi planetmaker
14:06:15  <LANJesus> ANIKHTOS: it'll be stable but you'll have more merge conflicts
14:06:25  <LANJesus> uuuuusually master is okay
14:06:31  <ANIKHTOS> well you said master is nto stable and i want to play aroudn so it makes mre sence to get a stable version to play ??
14:06:42  <LANJesus> if you want to play, yes
14:06:44  <Alberth> ANIKHTOS: no, as soon as you change anything it's not 1.8.0 anymore, and you can't use it anywhere
14:06:46  <LANJesus> if you want to hack, probably not
14:06:51  <planetmaker> if you want to build OpenTTD yourself, there's really little point in NOT starting with master
14:07:03  <planetmaker> especially for the reason albert just said
14:07:16  <nielsm> all new work happens on master
14:07:17  <LANJesus> well you can use it locally, just not multiplayer, unless you adhere to not modifying parts that change network or gamestate
14:07:18  <Alberth> it's not stable as in new changes get added all the time
14:07:19  <ANIKHTOS> yes i get ti wheni change somethign will nto be 1.8.0 but at least if i use 1.80 will be more stable
14:07:32  <LANJesus> master can break backward compatibility at any moment
14:07:33  <ANIKHTOS> thus will face less problems when play aroudn with new code?? right??
14:07:37  *** Wacko1976 has joined #openttd
14:07:37  <planetmaker> and if you use it locally only... that's more of a reason to use master
14:07:39  <nielsm> the only reason to start from a point release is if you want to make an urgent bug-fix
14:07:53  <planetmaker> less hassle in every respect to use master :)
14:08:14  <LANJesus> nielsm: or you're making a patchpack which is vanilla compatible ; )
14:08:21  <ANIKHTOS> okey so use master
14:08:30  <ANIKHTOS> okey i got that rigth at least
14:08:43  <LANJesus> ANIKHTOS, it depends. it sounds like you'd want to use master for your purposes.
14:09:01  <ANIKHTOS> lan i am new on this
14:09:12  <ANIKHTOS> so i am askign because i want to try to write soem ne code
14:09:23  <ANIKHTOS> so i am askign which version will be better to play with
14:09:28  <Alberth> ANIKHTOS: no, using a release gives you no benefits and more pain
14:09:28  <Alberth> a release is not much more than master being relabeled at some point in time, code quality is the same
14:09:32  <planetmaker> yeah, master, if you want to play with code
14:09:48  <ANIKHTOS> albert i wrote my changes
14:09:51  <ANIKHTOS> :-0
14:10:08  <ANIKHTOS> https://github.com/ANIKHTOS/OpenTTD/commit/7b7874bb88a5c65ba80dc451f448747d19789ae0
14:10:10  <Alberth> LANJesus: breaking backwards compatibility is very extremely unlikely to say the least
14:10:16  <ANIKHTOS> but i post it in wrogn branch
14:10:17  <ANIKHTOS> lol
14:10:43  <ANIKHTOS> still learnign to move around git
14:10:57  <LANJesus> Alberth: huh? master breaks backward compatibility with multiplayer games all the time, eh?
14:11:53  <ANIKHTOS> i foudn a site and start reading learnign c++, i made accoutn in git
14:12:01  <ANIKHTOS> now i need a compiler
14:12:27  <Alberth> LANJesus: not more than stable release breaks every version too in MP :)
14:12:31  <LANJesus> ANIKHTOS: if you're on windows, visual studio community edition is quite nice
14:12:45  <ANIKHTOS> i have windows 7 without sp1
14:12:48  <ANIKHTOS> i can not install it
14:12:52  <LANJesus> ... wat
14:13:01  <andythenorth> o/
14:13:08  * LANJesus runs back to work. later
14:13:19  <Alberth> ANIKHTOS: yep, standard error for first time git users, forgetting to construct a branch first :)
14:13:28  <Alberth> o/ andy
14:13:50  <ANIKHTOS> i did nto even noticed the drop menu after i post the file
14:14:06  <planetmaker> hi andy
14:14:13  <ANIKHTOS> hello andythe north
14:14:31  <ANIKHTOS> does anyone now a compiler for windows7 without sp1??
14:14:55  <nielsm> uh please keep your computer updated
14:15:08  <nielsm> but mingw on msys is probably an option
14:15:25  <ANIKHTOS> i downllaod both
14:15:31  <ANIKHTOS> msys64 has an exe
14:15:41  <ANIKHTOS> the mingw64 does nto
14:16:15  <ANIKHTOS> mingw-w64-v5.0.4  msys64
14:16:20  <Alberth> no "g++" or "gcc" or so?  probably in some 'bin
14:16:25  <ANIKHTOS> i need both or any will do??
14:16:26  <Alberth>  directory
14:17:18  <Alberth> "mingw on msys" implies you need both in some way
14:17:19  <Soni> does openttd have lewd/porn mods?
14:17:59  <ANIKHTOS> i wnet to offician site clcik download and i only get the code to compile lol
14:18:08  <Alberth> not quite compatible with the "for the entire family" goal, Soni :)
14:18:56  <Alberth> but, no, not really, afaik
14:19:41  <ANIKHTOS> nielsm i never upgrade the computer if it works do not mess around
14:19:45  *** andythenorth has quit IRC
14:19:53  <ANIKHTOS> it runs now 6 years with no problem
14:20:02  <ANIKHTOS> when i was updatign i always had problems
14:20:34  <Alberth> so it's full with mallware and viruses by now?
14:21:00  <ANIKHTOS> nope
14:21:03  <ANIKHTOS> ifs free
14:21:16  <ANIKHTOS> i  tes tit every year with cleanign tools and it fre
14:21:20  <ANIKHTOS> with my suprice
14:21:23  <Eddi|zuHause> it's probably not then
14:21:43  <Alberth> cleaning tool also 6 year old eh?
14:21:49  <ANIKHTOS> nope
14:21:53  <ANIKHTOS> the latest version
14:22:05  <ANIKHTOS> i foudn a site to help you clena computer and hav software
14:22:11  <ANIKHTOS> so i install it folow the instruction
14:22:14  <Eddi|zuHause> if the malware is already running, it also has the capability to hide from "cleaning tools"
14:22:19  <ANIKHTOS> the steps which to use first which secodn and bla blab
14:22:24  <ANIKHTOS> apart from tracking cookies
14:22:30  <ANIKHTOS> nothign serious alse found
14:22:46  <Eddi|zuHause> just because it isn't found doesn't mean it isn't there
14:23:02  <Alberth> and now you hope "I found a site" is not giving you bogus malware
14:23:06  <ANIKHTOS> well yes the newest can escape  detaction
14:23:34  <ANIKHTOS> but since every time i make a scan there is few  minor problems i can say computer is in good helath
14:24:17  <ANIKHTOS> its an internet forum for peopel to talk about computer issues
14:24:22  <ANIKHTOS> i was writtign there in the past
14:24:23  <Alberth> I wouldn't trust that scan
14:24:46  <ANIKHTOS> the tools are nto there tools
14:24:50  <ANIKHTOS> they are from other companies
14:24:58  <ANIKHTOS> they just make a list which ones you need
14:25:30  <Eddi|zuHause> i'm going to have nightmares from this conversation tonight
14:26:05  <ANIKHTOS> SUPERAntiSpyware Free Edition one programm i use
14:26:17  <ANIKHTOS> Malwarebytes Anti-Malware
14:26:19  <ANIKHTOS> another
14:32:04  <ANIKHTOS> eddi you real have confidense in people  :-0 no  worrie  my computer is clean as clean a computer can be
14:33:38  <planetmaker> this 'confidence' is sometimes called 'experience' ;)
14:33:58  <ANIKHTOS> well many peopel have experince
14:34:14  <ANIKHTOS> and i am confident my computer is runnign good
14:34:45  <Eddi|zuHause> sometimes "confidence" is antiproportional to "capability"
14:34:59  <ANIKHTOS> of course it can be
14:35:11  <ANIKHTOS> but now we will talk general or take it to personal level?
14:35:31  <LordAro> run disk cleanup, done
14:35:35  <LordAro> nothing else necessary
14:36:02  <LordAro> malwarebytes if you think you've picked something up
14:36:36  <ANIKHTOS> well i make periodic scans just to be in safe side
14:36:46  <Alberth> just install openbsd :p
14:36:58  <LordAro> ha
14:37:10  <LordAro> does ottd still run? :p
14:37:15  <planetmaker> ^^
14:37:39  <Alberth> don't know, but likely it can be persuaded if so desired
14:37:43  <ANIKHTOS> but i am 100% ure my desktop has no viruses
14:37:45  <ANIKHTOS> :-)
14:38:00  <LordAro> that's quite a high number
14:39:01  <Soni> Alberth: why not?
14:39:22  <Alberth> yeah we know you're fully convinced :)
14:40:13  <Alberth> trains driving around tracks is porn enough
14:40:19  <ANIKHTOS> ihttps://techreport.com/review/16255/acard-ans-9010-serial-ata-ram-disk
14:40:27  <ANIKHTOS> i have this 2 time
14:40:33  <ANIKHTOS> asa boot drive to host my os
14:40:56  <ANIKHTOS> every time i reboot the computer is clean and no fiel can be corupted or altered
14:42:10  <nielsm> anyway, the other side of not installing updates is that the world will keep moving around you and eventually you won't be able to run any new software, because it depends on the updates you have ignored
14:42:50  <ANIKHTOS> and when the time is needed i do update
14:42:57  <ANIKHTOS> but only when i need to update
14:43:04  <nielsm> maybe that time is now?
14:43:11  <nielsm> if it prevents you from installing visual studio
14:43:19  <ANIKHTOS> i was an update junkie  and al the time the system was rather unstable
14:44:14  <ANIKHTOS> a bit harder said than done
14:44:19  <ANIKHTOS> i have downloaded the sp
14:44:26  <ANIKHTOS> but i do nto have the space to install it
14:45:18  *** synchris has joined #openttd
14:49:58  <Soni> <@Alberth> not quite compatible with the "for the entire family" goal, Soni :)
14:49:59  <ANIKHTOS> so nielsm wanna see the code i wrote
14:50:00  <Soni> why not?
14:50:01  *** andythenorth has joined #openttd
14:50:07  <ANIKHTOS> and tell me if i wrote it correct??
14:51:00  <LordAro> Soni: what exactly are you wanting to achieve here?
14:51:29  <Soni> just wondering why we don't have open source porn/lewd mods anywhere
14:52:12  <LordAro> probably because no one's made any
14:52:29  <Soni> and I mean like, *anywhere*
14:52:35  <Soni> not just anywhere related to openttd
14:52:37  <LANJesus> Soni: are you trolling?
14:52:52  <LANJesus> there were some GRFs with uh, "advertisements" on some of the vehicles
14:52:53  <LordAro> Soni: skyrim?
14:52:57  <Soni> I don't know any open source porn/lewd mods for any game
14:53:28  <FLHerne> Soni: Be the change you want to see in the world?
14:53:35  <FLHerne> After all, it's open source...
14:53:38  <LANJesus> but not vehicles that were genital/mammary shaped
14:53:39  <Soni> LordAro: open-source?
14:53:40  <LordAro> Soni: i think you haven't looked hard enough
14:53:55  <FLHerne> (but also that)
14:53:59  <LANJesus> the FUmobile, a middle finger with wheels/jets
14:54:05  <andythenorth> I assumed there were loads
14:54:15  <andythenorth> there used to be for games like DOOM
14:54:20  <LANJesus> Soni: dig around in forums eh?
14:54:20  <andythenorth> it's just only funny for about 5 mins
14:54:29  <Soni> doom... lewd?
14:54:43  <andythenorth> yeah there were doomwads that replaced sprites
14:54:46  <andythenorth> Doom 1 and 2
14:55:02  <andythenorth> like 25 years ago :P
14:55:06  <Soni> do you shoot sex workers or something
14:55:11  <andythenorth> roughly
14:55:14  <andythenorth> iirc
14:55:20  <Soni> yeah, that's not appealing
14:55:24  <andythenorth> novelty for 30 seconds
14:55:28  <andythenorth> then it's just stupid
14:55:30  *** Wormnest has joined #openttd
14:55:57  <Soni> so uh can I mod openttd in C?
14:56:00  <andythenorth> the internet is not short of actual lewd content :P
14:56:13  <FLHerne> Soni: If you want, but it's much easier to just write newgrfs
14:56:15  <Alberth> maybe you're not train-crazy enough to understand?
14:56:15  <supermop> indeeed
14:56:32  <Soni> FLHerne: does newgrfs have an FFI?
14:56:43  <FLHerne> Soni: https://www.tt-wiki.net/wiki/NMLTutorial
14:56:48  <FLHerne> Soni: No
14:57:25  <Soni> I can easily use Rust with a C API
14:57:28  <supermop> soni i think you could just open some porn in another window while you play openttd
14:57:53  <Soni> (I've done it with hexchat)
14:57:53  <Soni> my internet keeps dropping also
14:58:39  <ANIKHTOS> alberth can you see my code and tell me if you see a problem with it??
15:01:05  *** Cubey has joined #openttd
15:02:24  <Alberth> code style is not even close to the standard
15:03:01  <ANIKHTOS> okey i will try to write it again to meet the standart
15:03:14  <ANIKHTOS> where i can fidn instructions about how standart code looks like??
15:03:28  <Alberth> some indenting would be nice for starters
15:04:02  <Alberth> https://wiki.openttd.org/Coding_style   wiki knows everything
15:06:23  <ANIKHTOS> i found mistakes  i need == not =
15:06:24  <ANIKHTOS> argggggggggggg
15:06:36  <Alberth> enable compiler warnings
15:06:41  <nielsm> a compiler will warn you about that
15:06:54  <ANIKHTOS> i wrote it in notepad
15:07:06  <nielsm> ANIKHTOS I'm doing other things and don't have time to talk a lot today, by the way
15:07:42  <Alberth> but otherwise, I have no idea how time works in openttd, so I can't tell you how useful it is wrt the other code
15:07:51  <nielsm> at least use notepad++ or vscode or another programmer's text editor
15:08:05  <nielsm> it's much more comfortable to use than microsoft notepad
15:08:08  <Alberth> notepad is not a compiler
15:08:18  <ANIKHTOS> i knwo it is nto a compiler
15:08:23  <Alberth> almost anything is more comfortable :p
15:09:02  <Alberth> ok, enable warnings in the compiler, so it finds stupid errors like = in a condition for you
15:09:20  <ANIKHTOS> msys is a compiler??
15:10:16  <Alberth> no idea, I never understood windows
15:10:26  <ANIKHTOS> user@computer MINGW64 ~ $
15:10:34  <ANIKHTOS> i run it and i go to this comamnd line
15:10:34  <Alberth> looks like a shell
15:10:54  <ANIKHTOS> but i coudl not find a manula how to use it
15:10:58  <nielsm> MSYS is a suite of unix utilities compiled for windows
15:11:01  <Alberth> "ls"  works ?
15:11:09  <nielsm> mingw is the name of the GCC suite for MSYS
15:11:36  <Alberth> ./configure works?
15:11:36  <nielsm> or you could put it the other way around, MSYS is the support system for the mingw port of gcc
15:12:00  <ANIKHTOS> or in simpler words?? do i have a compiler or nto??
15:12:20  <nielsm> yes
15:12:22  <Alberth> run ./configure, see what happens
15:12:25  <nielsm> try typing: gcc --version
15:13:05  <ANIKHTOS> of msys??
15:13:10  <ANIKHTOS> or mg??
15:13:35  <nielsm> "gcc --version" is a command you type into an msys commandline
15:14:07  <ANIKHTOS> bash: /configure: No such file or directory
15:14:14  <nielsm> msys and mingw are, to some extent, two sides of the same thing
15:16:30  *** Gja has joined #openttd
15:16:39  <Alberth> 'configure' is in the root of the git repository
15:16:58  <ANIKHTOS> in the installation folder i have both msy2 and ming64 and ming32
15:17:41  <Alberth> type   pwd
15:17:48  <Alberth> it shows where you are
15:18:03  <Alberth> ls  shows the contents of the directory
15:18:13  <Alberth> cd otherdir      changes to otherdir
15:18:16  <andythenorth> oh
15:18:17  <andythenorth> hmm
15:18:26  <Alberth> cd .. is one directory up
15:18:34  <andythenorth> devzone repos are gone?
15:18:40  <andythenorth> interesting
15:18:42  <Alberth> :O
15:18:42  <andythenorth> https://dev.openttdcoop.org/projects/heqs/repository
15:18:51  <andythenorth> might just be redmine, I'm checking
15:19:06  <andythenorth> yeah repos are gone
15:19:42  <andythenorth> ^Spike^: ^^ don't want to make wrong guesses, but hg isn't responding as expected
15:20:04  <Alberth> remote: hg@hg.openttdcoop.org: Permission denied (publickey).
15:20:04  <Alberth> abort: no suitable response from remote hg!
15:20:13  <ANIKHTOS> ./home/user
15:20:23  <andythenorth> not just me then Alberth :)
15:20:33  <andythenorth> I wondered if I had bad permissions
15:20:37  <Alberth> no, just us two :p
15:21:02  <ANIKHTOS> C:\msys64 the programm is instaleld here  i used defualt directory it asked
15:21:25  <ANIKHTOS> R:\OpenTTD-master is where i have the files
15:22:01  <Alberth> no idea how to get there tbh
15:22:06  <Alberth> try    cd /
15:22:12  <Alberth> and then ls
15:22:32  <Alberth> you get drives then?
15:22:43  <Alberth> or try  cd r:
15:24:17  <ANIKHTOS> cd /r:
15:24:23  <ANIKHTOS> worked now i am in r???
15:24:28  <ANIKHTOS> but i can nto go to the directory
15:24:57  <Alberth> pwd     gives any useful output?
15:25:20  <ANIKHTOS> user@computer MINGW64 ~ $ cd /R;  user@computer MINGW64 /R
15:25:42  <ANIKHTOS> it changed somethign but  i do nto knwo if thatwe want??
15:25:48  <Alberth> ok tat seems to work then
15:25:56  <Alberth> type   ls
15:26:24  <Alberth> cd OpenTTD-master     should work
15:26:42  <ANIKHTOS> okey i enter the folder
15:26:50  <ANIKHTOS> i rename it to ottd to be shorter
15:27:01  <Alberth> ./configure   :)
15:27:02  <ANIKHTOS> and i manage to go with cd R:\ottd
15:27:33  <ANIKHTOS> user@computer MINGW64 /r/ottd $ /configure bash: /configure: No such file or directory
15:28:10  <Alberth> don't forget the initial dot
15:28:25  <ANIKHTOS> did nto use the dot
15:28:41  <ANIKHTOS> run it with out the ? and got a different error
15:28:53  <ANIKHTOS> user@computer MINGW64 /r/ottd $ configure bash: configure: command not found
15:29:55  <Alberth>  /configure and ./configure are very different things
15:30:27  <Alberth> leading / means "root of the file system, like c:\
15:30:32  <ANIKHTOS> which one to run
15:30:36  <ANIKHTOS> with the dot or without?/
15:30:37  <Alberth> ./ means "in this directory"
15:30:40  <ANIKHTOS> i run it wihtou tthe dot
15:30:48  <nielsm> you need both . and /
15:30:50  <Alberth>  ./configure
15:31:06  <nielsm> Alberth it writing everything exactly as you need to write it yourself
15:31:26  <ANIKHTOS> user@computer MINGW64 /r/ottd $  ./configure checking awk... awk detecting OS... MINGW checking build system type... gcc not found I couldn't detect any gcc binary on your system please define the CC/CXX environment to where it is located
15:31:46  <Alberth> ok, no gcc found thus
15:32:12  <ANIKHTOS> so i need gcc
15:32:23  <Alberth> for larger output, use a pastebin  like https://paste.openttdcoop.org/
15:32:54  <Alberth> you paste the text into a page there and press "paste", then copy the link to the chat
15:33:11  <Alberth> it avoids getting huge pasted output here
15:33:20  *** Gja has quit IRC
15:33:26  *** Thedarkb1 has joined #openttd
15:34:32  <Alberth> your mingw thing is supposed to be a compiler?
15:34:53  <Alberth> no install instructions with it?
15:35:32  <LordAro> msys2 doesn't come with gcc by default, iirc
15:35:41  <ANIKHTOS> 13.860 files and 250 mbyte installed
15:38:40  *** Thedarkb has quit IRC
15:40:45  <ANIKHTOS> https://paste.openttdcoop.org/pervzbwhm
15:40:52  <ANIKHTOS> whcih option i install??
15:41:43  <nielsm> rate my station: http://0x0.st/sLo1.jpg
15:42:07  <nielsm> install them all
15:42:29  <nielsm> you need everything except for fortran and ada parts
15:42:46  <nielsm> can probably also skip gdb and objc
15:45:44  *** supermop_work_ has quit IRC
15:47:29  <ANIKHTOS> install 1, 11 and now i do 3
15:49:16  <ANIKHTOS> https://www.tt-forums.net/viewtopic.php?f=29&t=83287  nielsm you will find some crazy statiosn i made
15:49:17  <ANIKHTOS> lol
15:50:24  *** luaduck has quit IRC
15:50:34  *** Stimrol has joined #openttd
15:53:24  <ANIKHTOS> https://paste.openttdcoop.org/ptmfvm2ag okey now i got this  list
15:54:57  <nielsm> you need to install liblzma, and you're also going to need liblzo2
15:56:52  <Alberth> station lacks sufficient trains, niels
15:57:00  <nielsm> Alberth true
15:58:21  <Alberth> if you add a signal just in front of the platform, and extend the tracks to an entire train, that space has a better use
15:59:19  <nielsm> signal in front of the station makes the path signals pointless
15:59:32  <nielsm> since the trains won't be able to pick a track leading to an empty platform
16:00:09  <Alberth> true, but why is there such a huge amount of space between the path signals and the platform?
16:00:36  <nielsm> so they have cleared all switches before starting to brake
16:00:43  *** luaduck has joined #openttd
16:00:58  <ANIKHTOS> okey both are installed
16:01:14  *** Progman has joined #openttd
16:01:30  <Alberth> assuming they just stopped in front of the path signals, that would not have much impact, would it?
16:02:00  <nielsm> I'm overbuilding  with the intent that trains won't need to wait to enter
16:02:38  <Alberth> fair enough :)
16:02:39  <Eddi|zuHause> nielsm: so you're worried about trains braking on switches, but then you didn't have a full train length between the depot and the next signal?
16:03:24  <Eddi|zuHause> "look i made this .1% optimisation, let's ignore that 20% optimisation over there"
16:03:26  <nielsm> if trains repeatedly need to wait to enter the station, and the cargo arriving at the station is all getting picked up, that's an indication of too many trains
16:03:48  <nielsm> this game is without breakdowns and without servicing ;)
16:03:58  <nielsm> the depot's only there to feed in new trains and upgrade old
16:04:08  <Eddi|zuHause> then why have such an elaborate depot construction at all?
16:04:12  <ANIKHTOS> okey so know i can compile??
16:05:03  <nielsm> because trains can't enter/leave a depot faster than 62 km/h and I don't want entering trains to block trains going to the station more than necessary
16:05:11  <Alberth> ./configure sets up a makefile that you can run
16:05:23  <Eddi|zuHause> nielsm: btw, i don't think the "don't brake on switches" part is even that relevant. the next train would just need enough choices to find a free platform not blocked by the previous incoming train
16:05:25  <Alberth> or rather, a Makefile
16:06:25  <nielsm> ANIKHTOS if ./configure ends with writing a bunch of messages about "Generating Makefile"
16:06:26  <ANIKHTOS> in the ottd disrectory right?
16:06:27  <nielsm> then you're ready
16:06:29  <Eddi|zuHause> nielsm: it's a single track, besides "full load" there's probably no reason to have more than like 4 tracks, if acceleration is remotely efficient
16:06:46  *** TheMask96 has quit IRC
16:07:32  <ANIKHTOS> https://paste.openttdcoop.org/pygookm0g now i get his mesages
16:07:37  <ANIKHTOS> am i good to go or not??
16:08:30  <Eddi|zuHause> ANIKHTOS: is the last line "Generating Makefile"?
16:09:12  <Alberth> install lzma library, or it won't accept some savegames
16:09:35  *** TheMask96 has joined #openttd
16:09:44  <nielsm> you might actually need liblzma-dev, I don't know how msys names their packages
16:09:48  *** CompuDesktop has quit IRC
16:09:53  <ANIKHTOS> nope
16:10:07  <ANIKHTOS> it say liblzma not foudn oput the programm says it is installed
16:10:09  <ANIKHTOS> grrrr
16:10:34  <Alberth> is there a development version?
16:10:54  <Eddi|zuHause> ANIKHTOS: you only installed the lzma binary package, but for compiling you need the developer package
16:11:54  <ANIKHTOS> i install it in comamn d lien pacman _s liblzma
16:12:23  <Eddi|zuHause> yes. that is not enough
16:12:49  <Eddi|zuHause> you need "liblzma-devel" or something like that
16:13:18  <ANIKHTOS> https://repo.continuum.io/pkgs/msys2/win-64/
16:13:25  <ANIKHTOS> here is a list of everythign i can install
16:14:31  *** Compu has joined #openttd
16:16:15  <ANIKHTOS> m2-libiconv-devel-1.14-2.tar.bz2	 this one??
16:16:41  <nielsm> no, that's something entirely different
16:16:56  <Eddi|zuHause> have you tried reading this page? http://wiki.openttd.org/MSYS
16:18:16  <Eddi|zuHause> (i actually think that page is terribly written)
16:18:37  <Alberth> m2-liblzma-5.2.2-2.tar.bz2    is not useful for compiling, it just contains a .dll file
16:19:23  <Alberth> and a load of meta-data files :p
16:19:32  <Eddi|zuHause> in other topic: why does ./configure even talk about lzma? i'm fairly sure it actually uses xz
16:20:54  <Alberth> wasn't there some name confusion?
16:21:29  *** Stimrol has quit IRC
16:22:25  <Alberth> My openttd does use liblzma.so.5 => /lib64/liblzma.so.5
16:25:19  <ANIKHTOS> i do nto seem to find this fikles
16:27:00  <ANIKHTOS> also nto foudn allegro and sdl
16:27:41  <Alberth> you don't need allegro
16:27:43  <Eddi|zuHause> you don't really need those
16:27:45  <nielsm> you shouldn't need allegro or sdl to build on windows
16:28:55  <ANIKHTOS> well when i run the ./configure i get a 40 line list and there is a mention that this 2 not found
16:29:17  <Eddi|zuHause> yes. but unless it warns at the end, it's not important
16:29:50  <Eddi|zuHause> not all things that configure looks for are necessary. they might be alternatives
16:30:27  *** Gja has joined #openttd
16:30:33  *** Stimrol has joined #openttd
16:31:11  <ANIKHTOS> then i only have 1 warnign lzma not found
16:31:49  <Eddi|zuHause> yes, and for that you need "liblzma-devel"
16:34:22  <Rubidium> ... and whatever install pkg-config
16:34:40  <ANIKHTOS> grrr and grr andmore grrr
16:34:47  <ANIKHTOS> i install a libzma devel
16:34:52  <ANIKHTOS> but still get the same error
16:35:16  <ANIKHTOS> Packages (1) liblzma-devel-5.2.3-1 install this
16:35:24  *** Fuco has joined #openttd
16:35:28  <ANIKHTOS> but still it says lzma not found or disabled
16:36:47  <ANIKHTOS> checking liblzma... not found WARNING: lzma was not detected or disabled
16:38:52  <ANIKHTOS> okey it says that i can do it wihtou the lzma but i will nto able to load save or enter network games
16:39:01  <ANIKHTOS> try this option to compile without llzma??
16:40:52  *** supermop has quit IRC
16:45:09  <ANIKHTOS> run it wihtou lzma it finsihed
16:45:16  <ANIKHTOS> so what did it make??
16:47:43  <Eddi|zuHause> "./configure" creates a "Makefile", now you can run "make"
16:48:27  <ANIKHTOS> make not found
16:48:34  <ANIKHTOS> run makefile??
16:50:43  <Eddi|zuHause> no, install make
16:51:30  <Eddi|zuHause> (and if you don't have make, you also probably miss lots of other important developer tools)
16:52:55  <Alberth> just type   make
16:53:16  <Alberth> oh, you tried already, sorry
16:53:54  <ANIKHTOS> well i download make
16:54:02  <ANIKHTOS> now it is doign something
16:55:19  <ANIKHTOS> its compiling
16:55:27  <andythenorth> :o
16:55:32  <ANIKHTOS> nad got 1 warnign so far lol and i do tno even compile my code
16:55:41  <andythenorth> ANIKHTOS: if this works, you win a prize :)
16:55:49  <andythenorth> what you are doing is hard :)
16:56:08  <andythenorth> although I can do it, so not very hard :P
16:56:27  <nielsm> it's a huge number of things you need to get right at once
16:56:27  <ANIKHTOS> be broud andy
16:56:36  <ANIKHTOS> you are doignit because you are good
16:56:58  <ANIKHTOS> in all the languages the beginign is so hard
16:57:06  <ANIKHTOS> then everythign becomes esier and easier
16:57:12  <andythenorth> btw what's your native language ANIKHTOS ?
16:57:20  <ANIKHTOS> but the introduction is liek trwoing in a block of ice water
16:57:24  <ANIKHTOS> you get a shock
16:57:35  <ANIKHTOS> greek why??
16:58:13  <ANIKHTOS> i can not use the laptop keubord used my dektop one and now this one is so small and crumpy grrr
16:58:59  <ANIKHTOS> R:/ottd/src/crashlog.cpp:62:10: fatal error: lzo/lzo1x.h: No such file or directory  #include <lzo/lzo1x.h>
16:59:14  <ANIKHTOS> it not finished fatal error
17:00:55  <Eddi|zuHause> your setup is strange
17:01:17  <Eddi|zuHause> because that kind of error should not happen if configure succeeded
17:01:48  <ANIKHTOS> so problem in compiler or the files??
17:01:56  <ANIKHTOS> i will get the files for 1.8.0
17:01:59  <ANIKHTOS> and try there
17:02:12  <Eddi|zuHause> most likely your path
17:02:15  <andythenorth> ANIKHTOS: I was just curious, I guess greek from name, but wasn't sure :)
17:02:36  <ANIKHTOS> what the problem with my path?
17:02:51  *** Wolf01 has joined #openttd
17:03:16  <Wolf01> o/
17:03:25  <LANJesus> ANIKHTOS: if you'd like, you can help others like you by writing up how you got it compiled (when you're done of course) and update the wiki
17:03:48  <Eddi|zuHause> "#include <blah>" looks for the file "blah" in the include path. but if configure found the file, and the "#include" doesn't, it means you are missing a path in your library/include paths
17:04:14  <ANIKHTOS> i need to download something else??
17:04:40  <Eddi|zuHause> i'd say no
17:04:48  <Eddi|zuHause> but look for the file first
17:07:32  <ANIKHTOS> a bit confuse now
17:07:34  <andythenorth> hi Wolf01
17:07:39  <ANIKHTOS> look in ottd files?/
17:07:43  <ANIKHTOS> or compiler files??
17:08:01  *** HerzogDeXtEr has joined #openttd
17:09:35  <ANIKHTOS> the only reason i write the name in caps so if you read it in greek it makes sence
17:09:45  <ANIKHTOS> if you try to read my nick in english makes no sence lol
17:10:01  <ANIKHTOS> in english it would be like anikitos
17:10:33  *** Wacko1976_ has joined #openttd
17:15:22  *** Wacko1976 has quit IRC
17:16:42  <LANJesus> invincible?
17:16:46  <nielsm> btw could anyone on non-windows try this one out? https://github.com/OpenTTD/OpenTTD/pull/6822
17:16:56  <nielsm> mac and linux being most important
17:17:23  <LANJesus> ανίκητος?
17:17:24  * andythenorth tries
17:17:26  <ANIKHTOS> invictus in latin
17:17:54  <ANIKHTOS> ανίκητος? yes
17:18:21  <ANIKHTOS> i try to compile the 1.8 version and got the same error
17:18:51  <andythenorth> nielsm: 'ui design' isn't bikeshedding :)
17:19:06  <andythenorth> unless it's UI design for a giant non-implemented feature
17:19:09  * andythenorth compiling
17:19:20  <ANIKHTOS> #include <lzo/lzo1x.h> this line tin the crashlog.cpp is causign the problem
17:20:32  <nielsm> ANIKHTOS, try also adding --without-liblzo2 to configure
17:20:46  <nielsm> (run configure again, but add that to the end of the commandline as well)
17:21:30  <ANIKHTOS> first run configur ./configure --withoutlibzo2??
17:22:13  <ANIKHTOS> so ,/configure --without-lzma-libzo2
17:22:24  <ANIKHTOS> because i already take out lzma from configure
17:22:25  <nielsm> no
17:22:47  <nielsm> ./configure --without-liblzma --without-liblzo2
17:23:39  <ANIKHTOS> now run make??
17:23:47  <nielsm> yes then run make afterwards
17:24:13  <andythenorth> nielsm: so how to enable FPS display? o_O
17:24:18  <andythenorth> I didn't read src sorry
17:24:26  <nielsm> andythenorth, "fps" in console
17:24:35  <nielsm> I should maybe add a menu item to the ? menu
17:24:57  <Eddi|zuHause> that would make some sense
17:25:23  <andythenorth> nielsm: +1 to menu item
17:25:31  <andythenorth> although we'll get lots of BS reports due to it :)
17:25:45  <andythenorth> ok well it 'works'
17:25:53  <andythenorth> whether it's accurate, I don't know yet
17:26:39  *** Flygon has quit IRC
17:27:29  <nielsm> yeah my idea of putting it in a console command is that it should be easy to tell someone with speed problems "open console, type fps, press enter"
17:27:40  <nielsm> but it's not something you stumble over as a casual player
17:27:47  <andythenorth> it's reporting screen drawing as 1-3ms
17:28:05  <nielsm> it is very technical and debugging-y when specified in components like this
17:28:12  <nielsm> and easy to misunderstand
17:28:16  <andythenorth> it's reporting FFWD at 333, 500, or 1000 frame/s
17:28:27  <nielsm> yep that sounds about right
17:28:37  <nielsm> I also added tooltips to all the lines
17:28:39  <andythenorth> if I turn on full animation, FFWD dies :)
17:28:42  <nielsm> trying to describe them a bit more
17:28:44  <andythenorth> ok
17:29:08  <andythenorth> red, yellow, blue colours mean?
17:29:22  <nielsm> blue is "normal" or "good"
17:29:28  <andythenorth> ok
17:29:38  <nielsm> yellow is when it dips somewhat below
17:29:41  <nielsm> and red is really bad
17:30:05  <nielsm> yellow timings (ms) for all are above 10 ms
17:30:23  <nielsm> since that's a third of the allotted time per tick (30 ms)
17:30:25  <andythenorth> this sounds weird, but does the fps display kill the fps?
17:30:34  <andythenorth> when I open it, game noticeably slows down
17:30:34  <nielsm> the console does
17:30:40  <nielsm> in my experience
17:31:28  <nielsm> perhaps the additional text rendering every tick the fps window does also slows down things, it hasn't in my tests but those have mostly been with the original bitmapped font
17:32:04  <andythenorth> I have original baseset font
17:32:19  <andythenorth> I commented on the PR now
17:32:38  <nielsm> ty
17:33:50  <andythenorth> yw
17:50:28  <ANIKHTOS> it finsihed now
17:51:29  <ANIKHTOS> so now eveythign is in folder bin??
17:52:28  <LordAro> ANIKHTOS: woek something out for yourselr
17:52:40  <LordAro> you don't need us to confirm absolutely everything for you
17:52:47  <LordAro> use some common sense
17:54:28  <ANIKHTOS> how do i open and edit a file??
17:55:41  <Alberth> does   nano   exist?
17:56:26  <ANIKHTOS> well it exist now
17:56:39  <andythenorth> LordAro: let him learn :)
17:56:46  <Alberth> google "msys2 how do i open and edit a file" works very well too
17:56:47  <andythenorth> he's climbing a cliff
17:57:37  <Alberth> nano is somewhat usable :)
17:57:47  <Alberth> at least a few miles better than notepad
17:59:13  <ANIKHTOS> well askign works even better alberth
17:59:54  <andythenorth> 'google x' works great when the top results aren't google groups pages from 2010
17:59:59  <andythenorth> or ancient mailing lists
18:00:19  <andythenorth> or bad answers on SO :)
18:01:13  <ANIKHTOS> i am in nano
18:01:17  <ANIKHTOS> but can nto exit nano
18:01:18  <ANIKHTOS> lol
18:01:46  <andythenorth> ctrl-x?
18:01:51  <Alberth> never heard of that
18:02:25  <ANIKHTOS> yes its ctrl
18:02:30  <andythenorth> standard nano exit no?
18:02:33  <andythenorth> or is my nano weird?
18:02:44  <ANIKHTOS> it had written ^X for exit
18:04:03  <Alberth> that's the nice thing about nano, it writes what keys it understands :)
18:04:44  <ANIKHTOS> yes but the ^ translate into ctrl
18:04:51  <ANIKHTOS> i was writing ^x
18:04:55  <ANIKHTOS> and nothign wa happening
18:05:14  <andythenorth> oh
18:05:27  <andythenorth> yes my ctrl is marked with the symbol
18:05:34  <andythenorth> but the symbol isn't ^
18:07:36  *** Wacko1976_ has quit IRC
18:07:56  <ANIKHTOS> waht keyboard you have??
18:09:19  *** gelignite has joined #openttd
18:10:50  <andythenorth> some mac keyboard, UK layout
18:11:20  <andythenorth> keyboards vary a lot
18:12:00  <Eddi|zuHause> ^X used to be a very common expression of "Ctrl+X"
18:13:25  <Eddi|zuHause> and by "used to" i mean 20 years ago
18:15:11  <ANIKHTOS> i bought this latpop in gemrnay it has german layout
18:15:15  *** Fuco has quit IRC
18:15:40  <ANIKHTOS> the majority of  keys are the same with english
18:15:51  <ANIKHTOS> the z with y change
18:18:22  <Wolf01> V453000: train valley 2 level editor, finally!
18:23:20  <ANIKHTOS> typedef  byte?/
18:25:18  <Eddi|zuHause> ANIKHTOS: the bigger difference is usually the position of special characters often used for programming, like  [] and {}
18:26:22  <ANIKHTOS> i always have a doc and i have put this brackets there
18:26:27  <ANIKHTOS> so when i need them i copy paste
18:31:59  <ANIKHTOS> according to google the types i need for my variable s are unsigned char and unsigned short int
18:38:33  *** frosch123 has joined #openttd
18:42:42  *** Thedarkb1 has quit IRC
18:42:56  <ANIKHTOS> LeapDay _leap;  i have this variable to declare its type i will write  unsigned char  LeapDay???
18:45:49  *** Thedarkb has joined #openttd
18:49:29  *** glx has joined #openttd
18:49:29  *** ChanServ sets mode: +v glx
18:57:45  *** KouDy has quit IRC
18:58:09  <ANIKHTOS> thanks guy
18:58:16  <ANIKHTOS> i try to  compile my changes
18:58:20  <ANIKHTOS> and i get tons of errors
18:58:29  <ANIKHTOS> but i will make it
19:06:34  <LordAro> ANIKHTOS: when fixing c++ errors, start with the first one
19:06:45  <LordAro> they normally cascade in some manner
19:07:00  <LordAro> (so fixing earlier errors will also "fix" later ones)
19:07:16  <ANIKHTOS> my nested if else is nto right
19:22:57  *** synchris has quit IRC
19:31:02  *** tokai has joined #openttd
19:31:02  *** ChanServ sets mode: +v tokai
19:36:00  <ANIKHTOS> warning: this statement may fall through [-Wimplici                 t-fallthrough=] what this error means??
19:36:50  <glx> so it's a case in a switch without break or return
19:37:25  <glx> means this case can fallthrough the next case
19:37:54  <glx> if it's the desired behaviour you need to add a specific statement
19:38:02  *** tokai|noir has quit IRC
19:38:04  <glx> check other switches in the code
19:38:21  <glx> some have explicit fallthroughs
19:38:33  <ANIKHTOS> so i need to put the break; in evvery case??
19:38:41  <nielsm> yes
19:38:52  <glx> yes unless you want to fall through
19:39:44  <glx> and BTW it's not an error but a warning ;)
19:40:51  <ANIKHTOS> the tutorial i read did nto poitn out i need to put the break
19:40:53  <ANIKHTOS> grrrrr
19:40:56  <ANIKHTOS> thank you
19:41:29  <glx> wasn't a C or C++ tutorial then
19:41:32  <Eddi|zuHause> it's a common pitfall for people coming from other languages. that's why the compiler warns you
19:42:20  *** KouDy has joined #openttd
19:43:54  <Eddi|zuHause> if you actually meant it, you can write [[fallthrough]]
19:46:42  <ANIKHTOS> you know what have kille dme the ; in every statmenet
19:46:54  <ANIKHTOS> i have forgoten that in half cases
19:47:02  <ANIKHTOS> half case i used = not ==
19:47:11  <Eddi|zuHause> that can be annoying if you come from a language like basic
19:47:22  <glx> Eddi|zuHause: we have a define for that I think
19:49:11  <ANIKHTOS> okey 4 more errors to fix
19:49:14  <Eddi|zuHause> the = vs == happens to me pretty often
19:49:38  <Eddi|zuHause> luckily, in python "if a=b" is an error
19:52:04  <glx> in C if (a=b) means a=b; if (a)
19:52:44  *** Wacko1976 has joined #openttd
19:58:52  <ANIKHTOS> if (_game_mode == GM_MENU) return; what the return means??
19:59:29  <nielsm> exit the function
19:59:59  <nielsm> the function in this case has to be of "void" return type, since there isn't any return value given after the "return"
20:01:18  <ANIKHTOS> i am trying to find my last 4 errors
20:01:27  <ANIKHTOS> in yet another nested if statement lol
20:01:53  <glx> nested if should be avoided if possible
20:03:13  <glx> and sometimes inverting the tests can simplify the flow
20:04:50  *** Wacko1976 has quit IRC
20:07:28  *** sla_ro|master has quit IRC
20:08:14  *** Gja has quit IRC
20:10:45  <ANIKHTOS> i unnest them
20:11:20  <ANIKHTOS> R:/ottd2/src/date.cpp:396:1: error: a function-definition is not allowed here before '{' token  {
20:11:52  <glx> missing } somewhere before this error I think
20:12:53  *** iSoSyS has joined #openttd
20:12:54  <glx> anyway if it's not that the error is still probably before
20:13:17  <ANIKHTOS> if (_dayh > _daym) { _dayh = 1; _monthn ++; OnNewMonth(); }
20:13:33  <ANIKHTOS> is there wrogn in sysntax??
20:14:09  <glx> this line seems correct, check the previous lines
20:14:24  <ANIKHTOS> same if stataments
20:14:45  <nielsm> I think you have too many } somewhere before
20:14:50  <nielsm> are you indenting your code properly?
20:15:28  <ANIKHTOS> i think so but obivous not
20:15:40  <ANIKHTOS> i havw 5 if statements
20:15:43  <ANIKHTOS> 1 after the other
20:15:53  *** Gja has joined #openttd
20:16:16  <ANIKHTOS> with {} for the statements
20:17:15  <ANIKHTOS> does it need the else even if it is empty??
20:17:22  <nielsm> no
20:21:56  *** planetmaker_ has joined #openttd
20:24:52  *** Supercheese has joined #openttd
20:27:41  <ANIKHTOS> static void OnNewMonthS() {  }
20:27:45  <ANIKHTOS> it does nto liek this
20:27:46  *** Alberth has left #openttd
20:27:59  <ANIKHTOS> i make a function that does nothing and it is empty for now
20:29:07  <Eddi|zuHause> get an editor that highlights matching {} pairs if your cursor is over one of them
20:29:50  <Eddi|zuHause> also, show us your code changes
20:31:39  <ANIKHTOS> R:/ottd2/src/date.cpp:396:1: error: a function-definition is not allowed here before '{' token  {}
20:31:43  <ANIKHTOS> error message
20:31:55  <Eddi|zuHause> yes
20:32:05  <ANIKHTOS> static void OnNewMonthS() { }
20:32:06  <Eddi|zuHause> but that error message is not where you made the mistake
20:32:41  <Eddi|zuHause> you must show us the whole code
20:32:43  <Eddi|zuHause> all of it
20:32:45  <Eddi|zuHause> the entire file
20:32:46  <__ln__> Wolf01: o/
20:33:15  <Wolf01> Hello ln, a bit of lag? :D
20:33:47  <Eddi|zuHause> Wolf01: only like 3.5hours?
20:34:12  <__ln__> i was busy, and while i could've o/'d before you were online, i didn't
20:34:16  <LordAro> RFC 1149?
20:34:44  <Eddi|zuHause> LordAro: i didn't want to say it outloud :p
20:34:52  <ANIKHTOS> https://www.tt-forums.net/posting.php?mode=quote&f=32&t=83369&p=1208439
20:34:58  <ANIKHTOS> i uploaded in the forum
20:34:59  <__ln__> Wolf01: anyway, the channel has chosen you to answer the question of: why do germans (and some others) call the french city Nice with its italian name, Nizza?
20:35:25  <Wolf01> Mmmh
20:37:01  <Eddi|zuHause> ANIKHTOS: missing attachment?
20:37:15  <Eddi|zuHause> ANIKHTOS: for IRC discussion, it's better if you use a paste site
20:37:24  <Eddi|zuHause> like https://paste.openttdcoop.org
20:37:57  <glx> and what you are working on is way more complicated than what you may think ;)
20:38:33  <ANIKHTOS> oh well i will go down with glory
20:39:02  <ANIKHTOS> https://paste.openttdcoop.org/phwnypeui
20:39:13  <andythenorth> glx sometimes it's better not to know :)
20:39:32  <ANIKHTOS> well glx i have to fight with git new to it, c++ new to it, and c++ compiler
20:39:38  <ANIKHTOS> so many new thigns to learn lol
20:40:17  <Wolf01> Ha, another day lenght :D
20:40:54  <ANIKHTOS> well its somethign i woudl like to exist
20:41:05  <ANIKHTOS> so i will get my hands dirty
20:41:11  <Wolf01> Yes, I do too, but I tried 2 times
20:41:23  <glx> first step, indent correctly your code
20:41:34  <glx> it's unreadable for now ;)
20:41:41  *** Gja has quit IRC
20:41:45  <ANIKHTOS> indent??
20:41:48  <ANIKHTOS> put comments??
20:41:59  <glx> tabs in line start
20:42:09  <glx> see how other functions are done
20:42:10  <LordAro> If
20:44:39  <Eddi|zuHause> ANIKHTOS: above your OnNewMonthS line, there is a closing }, but this does not match the opening { of OnNewYearS. you are missing a } inbetween
20:44:55  <glx> if (_leap4 >3) {
20:44:55  <Eddi|zuHause> ANIKHTOS: also, you are definitely NOT indenting your code properly
20:44:56  <glx> _leap4=0;
20:44:56  <glx> }
20:44:56  <glx> that sounds like a a modulo for me
20:45:24  <glx> _leap4 %= 4; I think
20:45:57  <glx> same for the 2 other if
20:48:06  <nielsm> besides there already is a function that determines if a given year is a leap year
20:48:13  <nielsm> it's called IsLeapYear()
20:48:24  <glx> that too :)
20:49:10  <ANIKHTOS> yeah i knwo
20:49:16  <ANIKHTOS> but i needed anew one
20:49:55  <Wolf01> I think I'll lay on the bed and play spider
20:50:03  <nielsm> what's wrong with the existing one?
20:50:10  <Wolf01> 'night
20:50:12  <glx> anyway any sane editor should handle the indenting for you
20:50:12  <Eddi|zuHause> nielsm: NIH syndrome
20:50:14  *** Wolf01 has quit IRC
20:50:29  <Eddi|zuHause> glx: i think we established that he does not have a sane editor
20:50:45  <nielsm> let me recommend notepad++ again
20:50:57  <glx> yes good suggestion
20:51:01  <ANIKHTOS> i have 2 years now
20:51:14  <ANIKHTOS> so i can not use that to get the leap year
20:51:24  <LANJesus> isn't the whole date system in ottd NIH? : x
20:51:45  <glx> why can't you ?
20:51:47  <Eddi|zuHause> LANJesus: no, it was inherited
20:51:51  <LordAro> LANJesus: as opposed to?
20:52:03  <LANJesus> it's seconds since 1 AD right?
20:52:04  <glx> the arg is a year, you can give it any year you want
20:52:10  <LANJesus> or days rather
20:52:25  <Eddi|zuHause> LANJesus: well, technically, 0AD
20:52:32  <LANJesus> there is no 0AD
20:52:36  <LANJesus> that's 1BC
20:52:42  <Eddi|zuHause> yesandno
20:52:56  <LANJesus> meh, not here to argue semantics ; )
20:53:12  <Eddi|zuHause> there is no 0AD, but OpenTTD could represent it
20:53:32  <Eddi|zuHause> it's a "backdated 0-based gregorian calendar"
20:53:34  <LANJesus> it could display 0AD and mean 1BC
20:54:07  <LANJesus> yes. .NET can represent such times, back to but not including 1BC
20:54:21  <LANJesus> i opted to use .NET functions over porting the ones from C++ for one of my projects ; )
20:54:39  <LANJesus> there was parity, so wooooo
20:54:57  <LordAro> pretty sure ottd predates .NET, quite apart from actually being able to use it
20:55:00  <Eddi|zuHause> LANJesus: but our date system predates most of these .NET functions
20:55:14  <ANIKHTOS> okey i got notepad ++
20:55:22  <LANJesus> yes i'm not saying .... ugh. C/C++ standard is archaic. just ignore me.
20:55:38  *** iSoSyS has quit IRC
20:55:52  *** iSoSyS has joined #openttd
20:55:58  <Eddi|zuHause> LANJesus: it's not really a case of NIH, but rather NIY :p
20:56:30  *** iSoSyS has quit IRC
20:56:36  <LANJesus> i realize my perspective is anachronistic. I AM THE GRAND GALACTIC INQUISITOR. IGNORE ME.
20:57:33  <Eddi|zuHause> LANJesus: fun fact: Jesus wasn't actually born in 1AD. the monk that did that calculation in the 4th century was probably off by about 7 years
20:57:52  <LANJesus> close enough for government work
20:59:18  <Eddi|zuHause> LANJesus: other fun fact, there was never a person called "Jesus" back then. the name was probably closer to "Jashwa", which was mangled from hebrew through greek into latin
20:59:30  <ANIKHTOS> thank you eddi you found themistake
20:59:35  <LANJesus> yes yes, hence jaweh, joshua etc
20:59:44  <LANJesus> i am LAN heyzooz
21:04:15  <ANIKHTOS> vicotry code is clear of errors and compiled
21:04:56  <Eddi|zuHause> you mean "clear of syntax errors"...
21:05:19  <Eddi|zuHause> i'm sure there are like 100 other errors in there :p
21:06:08  *** Thedarkb-X40 has joined #openttd
21:06:29  *** iSoSyS has joined #openttd
21:06:29  <ANIKHTOS> well at least now i can test it
21:06:31  <ANIKHTOS> "[
21:06:39  *** iSoSyS has quit IRC
21:07:26  <glx> I still don't understand why you would need another IsLeapYear()
21:07:57  <ANIKHTOS> because i have 2 clocks
21:08:12  <ANIKHTOS> and i can not call the leap year for one of the clocks
21:08:13  <glx> IsLeapYear() is independant
21:08:15  <ANIKHTOS> or any other function
21:08:45  <LordAro> yes you can
21:08:47  <ANIKHTOS> the seond clock is a bit crazy
21:08:48  <glx> you can use it with any year
21:08:53  <LordAro> have you tried?
21:08:58  <andythenorth> bye
21:09:00  *** andythenorth has quit IRC
21:09:07  <ANIKHTOS> that the problem the secodn clock does nto ahve a year
21:09:53  *** Progman has quit IRC
21:10:06  <ANIKHTOS> i merged the clocks so they are  syncronized
21:10:15  <ANIKHTOS> there is a true day and a fake day
21:10:20  <ANIKHTOS> a true motnh and a fake motnh
21:10:23  <nielsm> gn
21:10:24  <ANIKHTOS> a true year and a fake year
21:10:53  <ANIKHTOS> fake year month day is a mall number 1-20 depent what you choose
21:11:00  <ANIKHTOS> you can not use leap year for that
21:11:20  <glx> then you are not doing it right
21:11:43  <glx> a month should always have the right number of days
21:12:00  <ANIKHTOS> it does have the right number of days
21:12:10  <ANIKHTOS> it just not store them as that
21:13:55  <ANIKHTOS> i add days in the year to make it last longer
21:14:05  <ANIKHTOS> but this days are not seen by you
21:14:49  <ANIKHTOS> every 30 days we will have a month  which you will not see since the game is slower
21:15:07  <ANIKHTOS> so you will have to pass some motnhs before you actual see the ew month
21:15:20  <ANIKHTOS> the same for the year there wukk be years passed before you see an actual year pass
21:15:38  <ANIKHTOS> but for the gmae mechanics the days months years will be pass and trigger the events
21:15:48  <ANIKHTOS> the date will be slower
21:16:30  *** gelignite has quit IRC
21:16:49  <ANIKHTOS> and also the introduction date for cehciels wil come alter
21:17:12  <ANIKHTOS> all the game meahcincs are still runnign at the nromal speed
21:17:49  <ANIKHTOS> i disconect the dispaly date with the game running date
21:18:26  *** nielsm has quit IRC
21:19:19  <ANIKHTOS> thats the goa of day lenght right??
21:19:40  <ANIKHTOS> delay the introduction of vehicels but keep everythign else runnign the same?/
21:19:44  <Eddi|zuHause> it's certainly one way of approaching it
21:19:46  <ANIKHTOS> thats way there are 2 clocks
21:20:22  <ANIKHTOS> for the test setup to see if ti works i slow down everythign by 2
21:20:29  <glx> but you will totally destroy the displayed yearly economy I think
21:20:31  <ANIKHTOS> maning i will have double day in a year
21:20:31  <Eddi|zuHause> some people will want other things to scale with daylength as well, like industry production, cargo aging, ...
21:20:33  <ANIKHTOS> double months
21:20:41  <ANIKHTOS> and of course 2 years before i year pass in dispaly
21:21:00  <ANIKHTOS> if you do you break the game
21:21:52  <ANIKHTOS> if i just double the days then  in 1 day the vehicel could travel 2 times the distance thus i made it 2 times faster
21:22:13  <ANIKHTOS> but now i have a second day in each day the vehicle still moves the same speed
21:22:16  <ANIKHTOS> the cargo age the same
21:22:24  <ANIKHTOS> everythign moves the same rate
21:22:29  <ANIKHTOS> apart for the dispaly date
21:22:52  <ANIKHTOS> later on if peopel want we can make flags
21:23:03  <ANIKHTOS> and put even on normal speed or slower speed
21:23:04  <glx> means you double the income per month then
21:23:13  <ANIKHTOS> nope
21:23:22  <ANIKHTOS> because the month in game is still 30 normal days
21:23:32  <glx> for the displayed time you do
21:23:32  <ANIKHTOS> but dispay month it iwll be 2 motnhs
21:23:44  <ANIKHTOS> yess for the dispay time
21:23:53  <Eddi|zuHause> which will mess up all the statistics/graphs
21:23:58  <glx> the player only sees the displayed time
21:24:20  <ANIKHTOS> well thats why i will also move the graph to slow time
21:24:25  <Eddi|zuHause> have we mentioned yet that this is a really difficult topic?
21:24:38  <glx> I mentioned it I think
21:24:51  <ANIKHTOS> well iti is
21:24:56  <ANIKHTOS> but i i want it
21:25:01  <ANIKHTOS> so why nto give it a go??
21:25:10  <ANIKHTOS> and eventually someoen may solve it
21:26:16  <ANIKHTOS> okey 1 question
21:26:25  <ANIKHTOS> the vehicels you want them to age normal rate
21:26:29  <ANIKHTOS> or slow rate??
21:26:46  <glx> age related to display time I think
21:27:05  <ANIKHTOS> then you will in effect make it cost less
21:27:14  <ANIKHTOS> because you will have to repalce it less
21:27:58  <Eddi|zuHause> i would go further than that, and also reduce the maintenance cost to the display date
21:28:23  <glx> but for me all economy should be scaled to match vanilla
21:28:32  <Eddi|zuHause> (this would be balanced out by making the industry production to display date as well)
21:28:54  <Eddi|zuHause> (but not all people will want that)
21:30:27  <ANIKHTOS> the godo with my code is you can choose speed
21:30:31  <ANIKHTOS> with 1 the normal speed
21:30:37  <ANIKHTOS> and above 1 it will be slower
21:31:56  <ANIKHTOS> if i make it work
21:32:06  <ANIKHTOS> i will change the dispaly to show also time of date
21:32:13  <ANIKHTOS> thus you can see the normal days passing as horus
21:39:59  <ANIKHTOS> that was my dies 2 clocks
21:40:07  <ANIKHTOS> 1 to keept the game mechanics as is
21:40:21  <ANIKHTOS> and 1 for display purposes and for the vehicel introduction date
21:51:41  *** KouDy has quit IRC
21:55:50  *** KouDy has joined #openttd
21:58:17  <ANIKHTOS> IT WORKS
21:58:20  <ANIKHTOS> YUPIIII
22:01:50  <ANIKHTOS> glx sucess :-)
22:01:55  <ANIKHTOS> eddi success
22:05:54  <ANIKHTOS> perfect all seems workign as planned
22:06:11  <ANIKHTOS> i need to fix a syncro problem with the clock for slow year
22:06:31  <ANIKHTOS> but it works as it was supposed to work
22:17:32  <__ln__> there's a problem; OpenTTD is not "optimized" for "your Mac". https://support.apple.com/en-us/HT208436
22:42:45  *** HerzogDeXtEr has quit IRC
22:44:14  *** Eddi|zuHause has quit IRC
22:44:43  *** Eddi|zuHause has joined #openttd
22:49:57  *** Wormnest has quit IRC
22:50:00  <ANIKHTOS> eddi it worked
22:50:03  <ANIKHTOS> ike a charm
22:59:52  *** chomwitt has quit IRC
23:06:23  *** frosch123 has quit IRC
23:18:47  <ANIKHTOS> glx what is vanilla??
23:19:12  <glx> unmodified version
23:19:55  <ANIKHTOS> well my go keep the economy the same as vanilla
23:19:59  <ANIKHTOS> does nto effect it
23:20:09  <ANIKHTOS> you only see the date goign slower
23:30:59  *** D-HUND has joined #openttd
23:34:35  *** debdog has quit IRC
23:42:36  *** planetmaker_ has quit IRC
23:49:31  *** ToffeeYogurtPots_ has quit IRC
23:49:54  *** ToffeeYogurtPots_ has joined #openttd

Powered by YARRSTE version: svn-trunk