IRC logs for #openttd on OFTC at 2015-06-10
        
        
        
            ⏴ go to previous day
00:37:02  *** jottyfan has joined #openttd
 
00:37:42  <jottyfan> about game scripts - how can I get the current player's money to increase it by a special amount? Couldn't find that in the documentation of GS-Classes...
 
00:49:05  <luaduck> are we sure it's CIDR?
 
00:49:23  <luaduck> because I could easily ban way more than intended
 
00:50:26  <mngrif> well the intention is to allow easy control over large swaths of addresses
 
00:51:37  <mngrif> but, as an actual example, i run an English only website that routinely has China trying to crack the CMS and brute force SSH. now, due to the content of the site i'm reasonably sure  the site is banned by China's firewall, so I just banned all of China from my site.
 
00:52:35  <luaduck> I really wanna do this at the openTTD level by the way, not iptables
 
00:52:47  <luaduck> I guess I could just nullroute the block but it seems overkill
 
00:53:04  <mngrif> it might be but that's what the mechanism is designed for
 
00:53:06  <luaduck> just problematic players, no harmfully malicious activity though
 
00:53:24  <mngrif> well when it comes to players, you have to contend with dynamic IPs
 
00:53:44  <mngrif> get banned > reset modem > get new dhcp lease > can play again because new IP
 
00:54:35  <Hiddenfunstuff> not all ISPs give out new IP instantly do they
 
00:55:13  <Hiddenfunstuff> mine for example has like 48 or even 72 hour leasetime on it
 
00:55:21  <Hiddenfunstuff> because our IP hasnt changed for like last 4 years
 
00:55:25  <luaduck> this player seems to be getting a dynamicip from a /24
 
00:55:33  <luaduck> for the time being, anyway
 
00:55:45  <Hiddenfunstuff> are there other parametres which you could ban him by?
 
00:55:58  <mngrif> the cable company where i live keeps track of your modem's MAC and assigns the same IP based on that, so your lease will only change if your hardware does.
 
00:56:12  <jottyfan> about game scripts - how can I get the current player's money to increase it by a special amount? Couldn't find that in the documentation of GS-Classes...
 
00:56:31  <luaduck> but we can only ban in openTTD on IP
 
00:56:36  <luaduck> we don't have a choice in that regard
 
00:56:40  <Hiddenfunstuff> doubt you can get the MAC address of or some othe unique identifier of the machine he connects from
 
00:56:47  <luaduck> there's no other uuid
 
00:57:00  <Hiddenfunstuff> always can rangeban whole country ^^
 
00:57:04  <Hiddenfunstuff> or the ISP perhaps
 
00:57:11  <luaduck> that'd involve rangebanning the entirety of russia
 
00:57:27  <mngrif> russia is another country i've banned lol
 
00:57:55  <Hiddenfunstuff> well at one point I had banned just about whole south america and east europe in other game
 
01:02:57  <Eddi|zuHause> any sort of "unique id" we could get would be really easy to fake using a custom binary...
 
01:03:54  <mngrif> most games combat this (abuse) by using an authentication server. everyone who plays must authenticate, and making a new account to authenticate needs to be a PITA for it to be a  sufficient deterrent
 
01:03:59  <Hiddenfunstuff> it sould be something your hardware is bound to
 
01:04:48  <Eddi|zuHause> mngrif: that might be possible, but nobody bothered to run such a service for this game
 
01:05:03  <Hiddenfunstuff> how hard can it be?
 
01:05:13  <Eddi|zuHause> not hard. annoying
 
01:05:32  <Eddi|zuHause> and you need sufficient authority to get this included in the game code
 
01:07:07  *** Hiddenfunstuff has quit IRC
 
01:10:20  <Sziha> hello everyone! I have a question regarding the openttd compilation on mac. I have compiled the game with the Spring 2013 Patch pack. To succeed in doing that I needed to use the command for configuration: ./configure --without-freetype LDFLAGS="-stdlib=libstdc++"  After running the game I thought I'd increase the font size. But now the openttd.cfg doesn't have any line for the font.That's how my openttd.cfg file looks like: https://past
 
01:10:39  <Sziha> does anyone have an idea if there is a way to fix it?
 
01:11:18  <Eddi|zuHause> your sentence was cu
 
01:11:56  <Eddi|zuHause> but without freetype, you won't have fonts
 
01:13:07  <Eddi|zuHause> well, only sprite fonts. but probably very few of those exist
 
01:13:31  <Sziha> well i don't care about the font itself, only about it's size
 
01:13:43  <Sziha> can i change somehow the default sprite font size?
 
01:13:44  <Eddi|zuHause> sprite fonts only come in one size
 
01:14:05  <Eddi|zuHause> there's a gui zoom feature, not sure if that also changes the font
 
01:14:18  <Eddi|zuHause> also, your patch pack might be too old for that
 
01:14:38  <Sziha> no, gui is fine. when i use double it makes everyting too big
 
01:14:47  <Sziha> on linux it works perfectly
 
01:15:02  <Sziha> but my linux runs on virtualbox and the game in it runs too slow
 
01:15:12  <mngrif> the biggui thing does not change the font
 
01:15:25  <Eddi|zuHause> no. i don't mean biggui
 
01:15:33  <mngrif> does osx not have freetype?
 
01:15:46  <Sziha> so i figured out a way to compile the game on mac. But unless i use --without-freetype i'm getting a linking error
 
01:16:02  <mngrif> pastebin that error please.
 
01:16:30  <Sziha> ok, give me a moment to compile it. i'll use regular ./configure command
 
01:16:40  <Eddi|zuHause> i'm fairly sure lots of people encountered that, and just said "fuck it"
 
01:17:11  <Sziha> yeah... i can't pass on it :D:D
 
01:17:44  <mngrif> However, the actual headers and such required to build a freetype2 project do not ship with OS X. To get these, you need to install Xcode; when you install Xcode with any version of the OS X platform SDK, it comes with freetype2:
 
01:17:57  <mngrif> so looks like osx does have freetype just need to have xcode installed
 
01:18:14  <Sziha> well i have xcode installed
 
01:18:42  <Eddi|zuHause> mngrif: if it throws a linking error, the headers were already found and used well before that
 
01:19:12  <mngrif> indeed it probably just can't find the shared object
 
01:19:33  <mngrif> which according to the googs is probably at /usr/X11/lib/libfreetype.6.dylib
 
01:21:13  <Sziha> and it's where you say it should be
 
01:21:25  <mngrif> but does ld know where to find it?
 
01:21:37  <Sziha> so do you know where do i put this path into the code, so it compiles it correctly?
 
01:21:59  <mngrif> it might be an option in the configure script, otherwise you'll have to edit the Makefile by hand
 
01:22:37  <Eddi|zuHause> might be something like "--with-freetype=path"
 
01:24:59  <mngrif> so much for  it being an easy fix
 
01:25:41  <Sziha> well without freetype there is no error :D
 
01:26:04  <mngrif> LDFLAGS="-stdlib=libstdc++" ./configure
 
01:26:14  <mngrif> try running it just like that ^
 
01:26:30  <mngrif> it acts as though it can't find libstdc++ actually
 
01:26:42  <mngrif> the error is  it not finding one of those symbols, not a freetype symbol
 
01:29:19  <Eddi|zuHause> someone mac-savy should probably fix configure to do that automatically
 
01:29:49  <mngrif> i have an imac from 2007 on my desk. it's ppc :D
 
01:30:17  <Eddi|zuHause> just anyone "savy" coming here won't use a mac
 
01:30:47  <Eddi|zuHause> it's like a clash of cultures
 
01:31:09  <Sziha> well, i will be the mac-savy soon, because it worked!!
 
01:31:21  <mngrif> some of the best developers i know use macs. also, none of them play games.
 
01:31:39  <Sziha> after configuring like you mngrif said: LDFLAGS first, then ./configure
 
01:31:52  <mngrif> yeah LDFLAGS is a shell environment variable. it must go before any commands
 
01:32:09  <Sziha> haha, should we change the wiki then?
 
01:32:37  <Sziha> in the 'configuring for maverics' it's incorrect
 
01:33:09  <Sziha> thank you so much mngrif!! it made my day! :D
 
01:33:41  <Eddi|zuHause> mngrif: now find out where the LDFLAGS get lost
 
01:34:14  <Eddi|zuHause> also, make configure provide this automatically on osx
 
01:34:41  <mngrif> note: because i have an imac doesn't mean it runs osx...
 
01:34:48  <Sziha> well this is only for game with the patch already applied
 
01:35:25  <Eddi|zuHause> mngrif: you don't need a mac to read the configure script :p
 
01:35:57  <mngrif> but i dont have bbedit!
 
01:36:18  *** Myhorta has joined #openttd
 
01:36:41  <Eddi|zuHause> and i don't get mac in-jokes.
 
01:37:56  <Sziha> i don't think i do either
 
01:39:24  <Sziha> just out of curiosity, what fonts and sizes do you use?
 
01:39:43  <mngrif> dejavu sans, and like, size 18
 
01:42:54  <Sziha> my mac doesn't have this font lol
 
01:43:59  <Sziha> yeah, i'm installing it now
 
01:45:49  <mari_kiri> Dejavu is great, I also have them in the original Bitstream Vera form
 
01:46:19  <mari_kiri> Hence why MS's ripoff of it is called Verdana
 
01:46:38  <Sziha> Oh, how beautiful! Love it <3
 
01:47:50  <mngrif> i dont think it fits the game very well, but at least it's 100% readable
 
01:48:22  <Sziha> Yeah, maybe one day if I feel like, i'll experiment with the fonts
 
01:48:50  <Sziha> In Office Word I like Cambria/Calibri, but in the game they all look awful :D
 
01:49:10  <mngrif> the android font would probably be a good one to try
 
01:54:49  <Sziha> Ok, time for dinner ^^ Thank you again guys :)
 
01:55:14  <Eddi|zuHause> could try the bold version for the game
 
05:17:33  *** supermop has joined #openttd
 
06:56:16  *** Eddi|zuHause has joined #openttd
 
08:07:18  <supermop> more height levels makes me really want a log flume
 
08:20:39  <Flygon> More height levels makes me want more advanced water, but
 
08:20:47  <Flygon> I don't have enough money to donate for that feature xP
 
08:40:37  *** andythenorth has joined #openttd
 
08:55:24  *** sla_ro|master has joined #openttd
 
09:14:22  <Supercheese> just code "Deep water" as a newobject
 
09:14:26  <Supercheese> randomly place some at mapgen
 
09:24:27  <planetmaker> Flygon, donating for a feature works badly in a society where people do stuff for their own pleasure :D
 
09:28:59  *** andythenorth has left #openttd
 
09:36:39  *** Celestar has joined #openttd
 
09:53:42  *** Celestar has joined #openttd
 
09:57:38  <Flygon> planetmaker: $600,000USD can be extremely convincing :B
 
09:57:44  <Flygon> Same guy as the artist?
 
09:59:18  <V453000> k where do you get $600k  :D
 
10:00:31  <Supercheese> damn, I'd do it for that kind of money
 
10:03:24  <Flygon> Then I could afford 1/3rd of the average home in Melbourne
 
10:03:28  <Supercheese> I'd do it for half that :B
 
10:03:32  <Flygon> Or 1/5th of one in Sydney :B
 
10:05:31  <supermop> with 600k why buy an average home,
 
10:06:12  <supermop> if you had that much cash on hand for a downpayment you could get a mortgage for something much crazier
 
11:44:00  *** Myhorta has joined #openttd
 
12:07:10  *** Klanticus has joined #openttd
 
12:20:33  *** sla_ro|master has joined #openttd
 
13:16:53  *** Hiddenfunstuff has joined #openttd
 
13:31:14  *** Supercheese has joined #openttd
 
14:08:22  *** supermop has joined #openttd
 
14:31:27  *** snorre_ has joined #openttd
 
14:32:04  *** JacobD88 has joined #openttd
 
15:09:54  <supermop> why do 2ccnml boxcars not refit in station
 
15:10:25  <supermop> a box car is the one thing that absolutely should refit anywhere
 
15:33:46  <planetmaker> supermop, probably no-one taught that to the wagons. It needs special handling by a NewGRF
 
15:34:39  <supermop> but  assumed that a set as current as the 2cc set would have it
 
15:35:14  <supermop> this little farm - terminal - sugar refinery train doesnt really work as is
 
15:36:57  <supermop> was hoping to take beets and grain to the terminal, transfer grain, and pick up mnsp in its place, unload at refinery and pick up food,
 
15:37:18  <Eddi|zuHause> the only thing i ever see of 2ccset is new vehicles drawn... never any coding updates
 
15:37:32  <supermop> transfer food at terminal and pick up farm supplies
 
15:38:03  <Eddi|zuHause> just attach a wagon dedicated for supplies...
 
15:38:10  <supermop> even with refitting in depot there is no way to return to half of the cars with sugar beet and half with grain
 
15:38:15  <Eddi|zuHause> you don't need a lot of them anyway
 
15:38:37  <supermop> yeah ive added two flat cars for that
 
15:39:13  <supermop> but depot refitting the boxcars to food then loses the grain/beet distinction in the depot at the other end
 
15:50:00  *** OsteHovel has joined #openttd
 
16:14:22  *** OsteHovel has joined #openttd
 
16:17:27  *** smoke_fumus has joined #openttd
 
16:58:04  *** Alberth has joined #openttd
 
16:58:04  *** ChanServ sets mode: +o Alberth
 
17:10:22  <Flygon> Eddi: About the coding updates thing
 
17:10:34  <Flygon> I wanna see a modern GUI based '.grf maker'
 
17:10:44  <Flygon> I know what a disaster it can easily end up being anyway
 
17:12:48  <Eddi|zuHause> what does that have to do with anything?
 
17:13:20  <Eddi|zuHause> if there ever is a "GRF Maker" it would hardly cater for the needs of a set like 2cc
 
17:14:55  <Flygon> Sorry, brain went everywhere x.x
 
17:30:20  *** Myhorta[1] has joined #openttd
 
17:46:07  *** Progman has joined #openttd
 
18:01:27  *** Supercheese has joined #openttd
 
18:01:43  *** TheMask96 has joined #openttd
 
18:08:18  *** frosch123 has joined #openttd
 
18:18:12  <frosch123> 1.0.4 and 1.0.5 have none
 
18:18:42  <frosch123> no idea, when did we change compile farms
 
18:18:58  <planetmaker> TrueBrain, ! We need binaries for catcodec :) They seem not to be built for ages :D
 
18:19:14  <frosch123> maybe it never ran on a vm, and someone just scp'd the sources
 
18:19:15  <Eddi|zuHause> probably nobody ever tried to download these :p
 
18:19:25  <planetmaker> or tried and didn't tell
 
18:19:29  <frosch123> planetmaker: who wants to do a soundset? :p
 
18:19:34  <planetmaker> source download is available
 
18:20:01  <planetmaker> frosch123, we got an e-mail to info@. I guess he just sent e-mails to lots of projects... but who knows
 
18:20:17  <frosch123> planetmaker: anyway, all that catcodec is definitely very special
 
18:20:19  <Eddi|zuHause> do soundsets actually need catcodec?
 
18:20:25  <frosch123> we have no tags for "extra" stuff afaik
 
18:20:34  <frosch123> so, i would not work on the farm in any case
 
18:20:35  <planetmaker> at least his music he makes seems good to me. And he says he makes sounds, too
 
18:20:59  <planetmaker> well, but we should get binary downloads for catcodec
 
18:20:59  <frosch123> planetmaker: does it say to open an attachment? :p
 
18:21:10  <planetmaker> :D the e-mail? No
 
18:21:23  <Eddi|zuHause> only do that if the attachment is a ".pdf.exe" :p
 
18:21:38  <planetmaker> though I think that he rather hopes to sell his music than make a free sound and/or music set :D
 
18:22:00  <frosch123> planetmaker: i think the source bundle only exists for distros
 
18:22:05  <planetmaker> he links to his samples on soundcloud/facebook/g+/....
 
18:22:26  <planetmaker> frosch123, yes, but windoze has no distributor which builds it :)
 
18:37:56  <Rubidium> ever check the differences of catcodec 1.0.4 and 1.0.5?
 
18:48:33  <Rubidium> in any case, the hassle to make new binaries significantly outweighs the need for those applications
 
18:49:16  <Rubidium> for example, you are the first to notice in almost 4 years
 
18:49:44  <planetmaker> Rubidium, however, if those binaries are not there, it's a *significant* hassle for anyone to even try anything in that direction
 
18:49:56  <planetmaker> and we do not offer any download for catcodec which anyone can find
 
18:50:27  <planetmaker> the link which frosch found on our mirror (or knowledge how to access old versions) is probably limited to a select few people
 
18:50:43  <planetmaker> we nowhere tell how to access old versions of our binaries
 
18:50:53  <Rubidium> ... that's still a wish for the download page; a list of previous versions
 
18:51:34  <planetmaker> and offering no binary for the latest version - how should people then assume that there's one in the 5th newest?
 
18:51:51  <Rubidium> there's ones for 1.0.3 as well
 
18:52:58  <TrueBrain> planetmaker: is catcodec compatible with the CF? :D
 
18:53:23  <TrueBrain> I answered my own question because of the smiley ;)
 
18:54:09  <Rubidium> it has a findversion.sh and makefiles with bundle_gzip and friends
 
18:55:43  <TrueBrain> omg, who did that!? :P
 
18:56:14  <Alberth> I do hope it's not self :)
 
19:00:27  *** supermop has joined #openttd
 
19:01:01  <Eddi|zuHause> according to wikipedia, a riffle is a low-speed, high-turbulence flowing pattern of rivers over shallow areas
 
19:02:22  <Eddi|zuHause> (german: Stromschnelle)
 
19:02:29  <TrueBrain> that indeed is what I meant
 
19:15:53  *** ub_umstieg has joined #openttd
 
19:17:04  <ub_umstieg> hi all  Question Versions bevor 1.5 did renew the busses themself  if emty in depo  now i getting infos that  vihivels getting very old
 
19:17:24  <ub_umstieg> is there a entry somewhere that makes this 6month bevor and after
 
19:17:48  <Alberth> 1.5 did not change any of that
 
19:17:59  <ub_umstieg> or do i need to put them all by hand in to depo for renew
 
19:18:23  <Alberth> you may want to check the autorenew setting in the game
 
19:19:07  <Alberth> where the advanced settings used to be
 
19:19:18  <Alberth> "advanced" just got removed
 
19:20:15  <ub_umstieg> there is nothing in settings that is related to reew
 
19:21:09  <ub_umstieg> ah i see there are now categories
 
19:21:20  <ub_umstieg> Thanks learning by doiing
 
19:23:07  <Alberth> could you please first check before stating that things do not exist?
 
20:14:17  *** HerzogDeXtEr has joined #openttd
 
20:16:20  *** HerzogDeXtEr has joined #openttd
 
20:34:41  *** andythenorth has joined #openttd
 
20:45:20  <Alberth> first add bugs, then play and find them :p
 
20:47:50  <andythenorth> Iron Horse ‘make install’ doesn’t
 
20:47:55  <andythenorth> cp: mynewgrf.grf: No such file or directory
 
20:48:47  <planetmaker> I think the install target is bonkers anyway
 
20:49:06  <andythenorth> I fixed it by reverting my Makefile changes
 
20:49:10  <planetmaker> well. I simply linked my newgrf dev dir to the openttd newgrf dir
 
20:49:10  <andythenorth> whatever they were :P
 
20:49:22  <planetmaker> thus everything I dev is automatically available. Without any additional step
 
20:49:55  <planetmaker> and thus... the install target is probably unmaintained for like 2...3 years at least
 
20:50:04  <planetmaker> rather... like forever :D
 
20:50:08  <planetmaker> I never really used it
 
20:50:28  <planetmaker> and should never have added it, in retrospect
 
20:50:47  <andythenorth> it’s a convention no?
 
20:50:57  * andythenorth is bad at symlinks
 
20:51:01  <planetmaker> well... yes... that's why I added it
 
20:51:38  <planetmaker> no complicated at all... ln -s /path/to/real/file /path/to/where/it/should/be
 
20:51:48  <planetmaker> or vice versa :P I always forget
 
20:52:01  <Alberth> just like cp,   old_file new_file
 
20:52:02  <Eddi|zuHause> what is so complicated in "make install"? just copy the file...
 
20:52:37  <planetmaker> Eddi|zuHause, knowing which file(s). And knowing where to copy to :)
 
20:52:52  <planetmaker> the latter is definitely dependent on your OS
 
20:54:41  <Eddi|zuHause> anyway, just symlinking your dev directory isn't enough. because once you started a game, you need to make a copy of the grf so you can reuse the same version to continue the game
 
20:55:23  <Eddi|zuHause> like, i keep several old versions of firs around, just in case.
 
20:55:38  <andythenorth> I have bazillions :P
 
20:57:27  <Eddi|zuHause> i have a firs.grf, a test/firs.grf and a test/firs.old.grf
 
20:57:58  <Eddi|zuHause> and a loisachkirchen/firs.grf which is probably the same as one of these other 3
 
21:11:26  *** JacobD88 has joined #openttd
 
21:20:39  *** tokai|mdlx has joined #openttd
 
22:16:05  *** Myhorta[1] has joined #openttd
 
22:35:47  *** Supercheese has joined #openttd
 
23:27:39  *** andythenorth has left #openttd
 
23:49:17  *** Myhorta has joined #openttd
 
continue to next day ⏵