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