IRC logs for #openttd on OFTC at 2015-06-04
            
00:13:51 *** Progman has quit IRC
00:14:41 *** smoke_fumus has joined #openttd
00:14:47 <Wolf01> 'night
00:14:53 *** Wolf01 has quit IRC
00:34:31 *** Plaete has joined #openttd
00:44:04 *** Ttech has quit IRC
00:49:58 *** Flygon_ has joined #openttd
00:54:40 *** Ttech has joined #openttd
00:56:45 *** Flygon has quit IRC
01:24:41 *** kais58 has quit IRC
01:28:04 *** Hiddenfunstuff has quit IRC
01:39:34 *** Supercheese has joined #openttd
01:41:35 *** Zabot has joined #openttd
01:42:35 *** Supercheese has quit IRC
01:43:07 *** Supercheese has joined #openttd
01:51:11 *** Ttech has quit IRC
01:52:57 *** dustinm` has quit IRC
01:55:55 <Zabot> Can I get talk permission on #openttd.dev?
01:57:03 *** dustinm` has joined #openttd
02:00:07 *** Ttech has joined #openttd
02:06:33 *** Ttech has quit IRC
02:07:15 *** DDR has joined #openttd
02:09:16 <Eddi|zuHause> any particular reason for that?
02:09:35 *** DDR has quit IRC
02:09:50 *** DDR has joined #openttd
02:16:00 <glx> usually .dev is used when it's too noisy here
02:18:21 *** Ttech has joined #openttd
02:21:02 *** DDR has quit IRC
02:22:30 *** DDR has joined #openttd
02:23:12 *** TheDude has quit IRC
02:23:16 *** TheDude has joined #openttd
02:28:54 *** davidstrauss_ has joined #openttd
02:29:58 *** smoke_fumus|2 has joined #openttd
02:30:00 *** urdh has quit IRC
02:30:00 *** smoke_fumus has quit IRC
02:30:00 *** davidstrauss has quit IRC
02:30:00 *** theholyduck has quit IRC
02:30:00 *** urdh_ is now known as urdh
02:30:04 *** Plaete2 has joined #openttd
02:30:07 *** ccfreak2k has quit IRC
02:30:12 *** jinks_ has quit IRC
02:30:20 *** Keyboard_Warrior has joined #openttd
02:30:29 *** Keyboard_Warrior is now known as theholyduck
02:30:40 *** urdh is now known as Guest507
02:31:39 *** urdh_ has joined #openttd
02:31:52 *** ccfreak2k has joined #openttd
02:33:42 *** jinks_ has joined #openttd
02:36:56 *** Plaete has quit IRC
02:40:48 *** Bluelight has joined #openttd
02:52:19 *** Plaete has joined #openttd
02:57:07 *** Plaete2 has quit IRC
03:03:29 *** fjb has quit IRC
03:07:09 *** Flygon_ has quit IRC
03:10:33 *** Plaete has quit IRC
03:11:02 *** Flygon has joined #openttd
03:31:12 *** urdh_ is now known as urdh
03:33:48 *** Bluelight has quit IRC
03:54:03 *** glx has quit IRC
04:09:44 *** Biolunar has joined #openttd
04:16:41 *** Biolunar_ has quit IRC
04:29:05 <Zabot> I'm having issues compiling on windows under VS 2012, can anyone help me out?
04:30:53 <Zabot> Something about a complier error in squtils
04:31:12 <Zabot> I've narrowed it down to this line:
04:31:39 <Zabot> line 33 in squtils.h new ((void *)&_vals[i]) T(v._vals[i]);
05:06:05 <Sylf> which guide did you follow to compile it?
05:07:02 <Sylf> In the past, when I tried to compile it with VS2012 Express, I never had troubles
05:08:58 <Zabot> I followed the guide on the wiki
05:09:56 <Zabot> I've had to hit a few of the troubleshooting suggestions, they cleared up the other issues i've had
05:10:18 <Zabot> The issue seems to be with the placement syntax for new
05:11:05 <Sylf> btw, which version are you trying to compile?
05:12:19 <Sylf> Is it a patched version by any chance?
05:12:32 <Zabot> I grab the svn repo, i don't think so, let me double check
05:13:50 <Zabot> Yeah, I'm building the trunk on svn://svn.openttd.org
05:18:39 <Sylf> that file hasn't changed in a year. it shouldn't give problems...
05:21:57 <Zabot> When I comment the line I get a handful of link warnings, but I think they're unrelated
05:22:36 <Zabot> It builds but throws an exception as soon as it starts
05:26:47 <Zabot> Error C1001: An internal error has occurred in the compiler. openttddev\trunk\src\3rdparty\squirrel\squirrel\squtils.h 40 1 openttd
05:26:56 <Zabot> Thats the actual error text
05:27:30 <Flygon> SQUIRREL!
05:27:33 * Flygon points
05:29:53 <Sylf> I can't help. I'm too out of practice compiling on windows
05:31:56 <Zabot> I think its a VS issue, I'll try and pull the code into a different project and test it seperatley
05:32:05 <Zabot> and report back
05:33:13 <Sylf> Looks like it's been about 2 years since I've compiled it on Windows :D
05:35:10 <Flygon> I really gotta properly record some of the details from the "Locomotives of Australia" book into something OpenTTD compatible some point.
05:35:21 <Flygon> Granted, I'd still need an artist. <_>
05:35:44 <Sylf> hm, that line hasn't changed in 4 years, so that line worked fine for me back then
05:36:25 <Sylf> make that 6 years
05:37:14 <Zabot> stackoverflow suggested including <new>
05:37:33 <Zabot> I feel like that is something VS is supposed to assume but doesn't
05:40:20 <Zabot> That was a no go, back to google
05:41:02 <Sylf> did you see Error C1001
05:41:08 <Sylf> er, https://msdn.microsoft.com/en-us/library/y19zxzb2.aspx
05:43:35 <Zabot> Giving it a rebuild with no optimization
05:44:26 <Zabot> I have gotten it to build by rewording the line, but it causes memory leaks
05:44:34 <Zabot> _vals[i] = *new T(v._vals[i]);
05:53:56 <Zabot> Rebuilt with all optimization disabled, produced three C1001's, all sq related
06:10:38 <Zabot> I'm gonna install some windows updates, wish me luck
06:10:44 *** Zabot has quit IRC
06:13:58 *** Biolunar has quit IRC
06:16:07 *** ProfFrink has joined #openttd
06:22:53 *** Prof_Frink has quit IRC
06:22:53 *** ProfFrink is now known as Prof_Frink
06:40:54 *** oliver_ has joined #openttd
06:42:29 *** olligobber has joined #openttd
06:47:51 <olligobber> I'm thinking of making a newgrf, can anyone reccomend tools, preferably for ubuntu?
06:56:01 *** Eddi|zuHause has quit IRC
06:56:15 *** Eddi|zuHause has joined #openttd
07:12:52 <Flygon> That's a damn good question
07:28:44 *** smoke_fumus|2 has quit IRC
07:52:47 *** roidal has joined #openttd
08:12:29 <olligobber> I hate using windows :(
08:15:16 *** liq3 has quit IRC
08:16:44 <V453000> then dont? :D
08:17:58 <olligobber> but then I can't make newgrf :(
08:18:16 <V453000> I am making newgrfs on windoze
08:18:42 <V453000> and linux is even better for it
08:18:56 <olligobber> really? what tools do you use on linux?
08:19:24 <V453000> I dont use linux but for example makefile works without issues (I think)
08:19:31 <V453000> where on windows it is a bit harder to get to run
08:19:54 <V453000> the openttd things are written by linux dudes, they sure work great on linux
08:20:11 <olligobber> I can't find any newgrf tools for linux
08:20:25 <Supercheese> errr, grfcodec?
08:20:41 <olligobber> just noticed it
08:20:41 <Supercheese> I only use Windows so I don't know if it is compiled for other OSes
08:20:48 <olligobber> appears to be
08:20:50 <Supercheese> but one presumes
08:22:10 <olligobber> nml also has a linux build
08:23:40 <Supercheese> ah good, then NML is recommended
08:23:46 <Supercheese> much nicer language
08:24:00 <Supercheese> good tutorial as well: http://www.tt-wiki.net/wiki/NMLTutorial
08:35:03 *** wicope has joined #openttd
08:42:00 *** DDR has quit IRC
08:50:19 *** Progman has joined #openttd
09:12:53 *** DDR has joined #openttd
09:20:14 *** tokai|mdlx has quit IRC
09:21:43 *** DDR has quit IRC
09:23:36 *** tokai|mdlx has joined #openttd
09:27:16 *** DDR has joined #openttd
09:40:59 *** JacobD88 has joined #openttd
09:54:32 <planetmaker> moin
09:54:32 *** DDR has quit IRC
09:54:54 <planetmaker> olligobber, no tool for making NewGRFs requires windoze
09:55:06 <planetmaker> all tools are available cross-platform
09:56:04 <planetmaker> to be true, it's IMHO easier on linux than on any other platform
09:56:40 *** sla_ro|master has joined #openttd
09:57:59 <olligobber> planetmaker, 2/4 on the wiki required windows
09:58:30 <planetmaker> which?
09:58:40 <planetmaker> or rather: which wiki page?
09:58:46 <olligobber> GRFMaker and GRF Wizard
09:58:50 <olligobber> https://wiki.openttd.org/NewGRF_development_tools
09:59:02 <planetmaker> oh. both are obsolete, deprecated and unmaintained
09:59:27 <olligobber> NML it is
09:59:57 <planetmaker> One could say I'm biased, but yes, that's my recommendation, too
10:04:05 <planetmaker> olligobber, additional to the NML tutorial it's usually good advice to go looking how existing NewGRFs solve a problem. You find loads of projects on the DevZone
10:04:26 <olligobber> was going to do that exactly
10:27:06 *** Celestar has joined #openttd
10:54:39 *** Celestar has quit IRC
10:56:42 *** frosch123 has joined #openttd
11:00:04 <frosch123> @op
11:00:04 *** DorpsGek sets mode: +o frosch123
11:00:34 *** frosch123 changes topic to "1.5.1 | Website: *.openttd.org (translator: translator, server list: servers, wiki: wiki, patches & bug-reports: bugs, revision log: hg, release info: finger) | Don't ask to ask, just ask | 'Latest' is not a valid version, 'Most recent' neither | English only | Logs: @logs | #openttd.dev if this channel is really spammy"
11:01:05 <frosch123> @deop
11:01:05 *** DorpsGek sets mode: -o frosch123
11:03:16 *** JacobD88 has quit IRC
11:05:12 *** Celestar has joined #openttd
11:08:23 *** Celestar has left #openttd
12:00:07 *** Hiddenfunstuff has joined #openttd
12:20:20 *** sla_ro|master has quit IRC
13:12:31 *** fjb has joined #openttd
13:16:16 *** gelignite has joined #openttd
13:29:12 *** wicope has quit IRC
13:32:33 *** Supercheese has quit IRC
13:33:06 *** Supercheese has joined #openttd
13:45:26 *** olligobber has quit IRC
13:53:53 *** sla_ro|master has joined #openttd
14:18:16 *** supermop has quit IRC
14:34:25 *** shirish has joined #openttd
14:39:50 *** shirish has quit IRC
14:45:05 *** Celestar has joined #openttd
14:53:10 *** Celestar has quit IRC
15:03:12 *** Celestar has joined #openttd
15:03:43 *** shirish has joined #openttd
15:14:56 *** shirish_ has joined #openttd
15:16:40 *** shirish has quit IRC
15:33:42 *** shirish_ has quit IRC
15:38:20 *** Celestar has quit IRC
15:49:51 *** shirish has joined #openttd
16:10:21 *** shirish_ has joined #openttd
16:12:31 *** Rejf has quit IRC
16:12:58 *** Rejf has joined #openttd
16:14:09 *** shirish has quit IRC
16:16:10 *** chester_ has joined #openttd
16:17:03 *** shirish has joined #openttd
16:22:21 *** shirish_ has quit IRC
16:28:59 *** shirish_ has joined #openttd
16:31:52 *** shirish__ has joined #openttd
16:34:10 *** shirish has quit IRC
16:38:58 *** shirish_ has quit IRC
16:39:33 *** smoke_fumus has joined #openttd
16:41:41 *** shirish has joined #openttd
16:44:02 *** Pensacola has joined #openttd
16:44:13 *** shirish_ has joined #openttd
16:48:07 *** shirish__ has quit IRC
16:51:18 *** shirish has quit IRC
17:03:32 *** Alberth has joined #openttd
17:03:32 *** ChanServ sets mode: +o Alberth
17:07:37 <Alberth> moin
17:14:58 <planetmaker> moin as well :)
17:15:14 *** shirish has joined #openttd
17:20:39 *** shirish_ has quit IRC
17:20:44 <Alberth> I really wonder about the reason for needing a unique ID for a game in a game script :)
17:23:37 *** shirish_ has joined #openttd
17:27:16 *** shirish__ has joined #openttd
17:29:11 *** shirish has quit IRC
17:31:07 <frosch123> https://devs.openttd.org/~frosch/diffs/eints/ <- Alberth :)
17:31:13 <frosch123> and hoi :p
17:32:10 <frosch123> Alberth: for communicating over the admin port
17:34:00 <Alberth> multiple servers talking one bot, fair enough
17:34:01 *** shirish_ has quit IRC
17:34:16 <frosch123> i guess it is about statistics and leagues and stuff
17:37:05 *** shirish has joined #openttd
17:38:44 *** shirish_ has joined #openttd
17:40:41 <Alberth> you tried loading with 'case' appended at the end? maybe the loader needs the values for loading strings?
17:41:13 <frosch123> where?
17:42:37 *** shirish__ has quit IRC
17:44:11 <Alberth> 20
17:45:09 <frosch123> it is appended after the other pragmas
17:45:13 <frosch123> but still before the strings
17:45:39 *** shirish has quit IRC
17:45:56 <frosch123> https://devs.openttd.org/~frosch/diffs/eints/eints.diff <- btw. this is the current diff of uploading and redownloading all ottd lang files
17:46:20 <frosch123> which should be fine :)
17:48:33 <frosch123> though the change to STR_ENGINE_PREVIEW_COST_MAX_SPEED_RANGE_CAPACITY_CAPACITY_RUNCOST surprised me, i thought eints would preserve all whitespaces whatsoever
17:51:51 *** shirish has joined #openttd
17:52:15 <Alberth> -STR_ENGINE_PREVIEW_MAGLEV_LOCOMOTIVE.dat : <-- that's a surprise to me
17:52:34 <Alberth> czech.txt
17:52:48 <frosch123> hmm, but also kind of valid :)
17:54:18 <Alberth> eints copies indenting from the base language afaik
17:54:36 <frosch123> it does not in this case, it adds a space when there is none
17:55:50 <Alberth> yeah, I just saw that
17:58:49 *** shirish_ has quit IRC
17:59:24 <Alberth> could be that I add one, my first guess would be with writing
18:03:17 *** shirish has quit IRC
18:04:16 <Alberth> frosch123: patch queue seems ok to me, not sure you actually need to gc.collect(), but it won't hurt either
18:05:37 <frosch123> i am not sure either, i still run out of memory when loading the project multiple times
18:09:13 <Alberth> you could kill the xml loader and xml saver after use, although they shouldn't contain much data with the split language saves
18:09:43 <frosch123> my main goal was to kill self.pdata
18:09:55 <frosch123> assuming that it first loads the new data, and then assigns it to pdata
18:10:23 <Alberth> it does
18:10:44 <Alberth> but self.pdata = None should be sufficient
18:11:10 <frosch123> hmm, how do i add a new page?
18:11:23 <frosch123> i do not find where the pages/*py are imported
18:11:43 <Alberth> main.py should import all pages
18:26:01 *** TheMask96 has quit IRC
18:29:12 *** oskari89 has joined #openttd
18:30:56 *** HerzogDeXtEr has joined #openttd
18:31:09 *** TheMask96 has joined #openttd
18:50:25 *** glx has joined #openttd
18:50:25 *** ChanServ sets mode: +v glx
19:05:02 *** liq3 has joined #openttd
19:22:03 *** fjb is now known as Guest579
19:22:04 *** fjb has joined #openttd
19:28:46 *** Guest579 has quit IRC
19:41:26 *** Belugas has quit IRC
19:41:37 *** Belugas has joined #openttd
19:41:37 *** ChanServ sets mode: +o Belugas
20:29:53 *** gelignite has quit IRC
20:32:27 *** Wolf01 has joined #openttd
20:33:30 <Wolf01> hi o/
20:35:04 <Alberth> moin
20:37:04 *** nanoha-chan has quit IRC
20:37:06 *** nanoha-chan has joined #openttd
21:01:39 *** Zabot has joined #openttd
21:01:52 *** Zabyte has joined #openttd
21:03:51 <Taede> ola
21:06:56 *** Sziha has joined #openttd
21:07:07 <Sziha> Hello everybody. I was wondering if somebody could help me with applying one patch to openttd on mac OSX 10.10. I'm totally new to that and I'm not sure if i'm doing things correctly
21:11:29 <Supercheese> I don't know much about OSX sorry
21:12:02 <Sziha> i think the problem is universal. once i apply the patch (that supposedly is the same as on linux) i get the message:
21:12:08 <Sziha> can't find file to patch at input line 5
21:12:26 <Sziha> the whole information looks like that:
21:12:27 <frosch123> you forgot the "-p" parameter
21:12:28 <Sziha> can't find file to patch at input line 5 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff --git a/projects/openttd_vs80.vcproj b/projects/openttd_vs80.vcproj |index 17c2d8d..f44e7cf 100644 |--- a/projects/openttd_vs80.vcproj |+++ b/projects/openttd_vs80.vcproj -------------------------- File to patch:
21:13:05 <Sziha> in the patch website it says to use -p1 parameter
21:13:10 <frosch123> you need "-p 1" for that patch
21:13:19 <Sziha> the message i'm getting is after putting that statement: patch -p1 < departureboardswallclock25-r27218.diff
21:13:39 <Eddi|zuHause> don't be in the "src" directory, but in the directory above it
21:14:04 <Sziha> ok, so on mac, let's say my computer account name is "Chris"
21:14:49 <Sziha> so i have my .diff patch file in the main folder. then my openttd source code is in the folder "openttd" which includes all the files
21:15:06 <Eddi|zuHause> but, you did actually check out the source, not trying to apply to the binary? :p
21:15:46 <Sziha> i downloaded the source using svn checkout svn://svn.openttd.org/trunk openttd
21:16:02 <michi_cc> Your current working dir has to be the folder that includes e.g. configure or Makefile. Not a parent folder and not a subfolder.
21:16:13 <Sziha> i see!
21:16:15 <Eddi|zuHause> yes, then you "cd openttd"
21:16:40 <Sziha> ok, so i put the .diff file into openttd folder
21:16:50 <Sziha> put command 'cd openttd' and then patch it?
21:17:16 <Eddi|zuHause> yes, although it doesn't matter much where the .diff file is
21:17:31 *** roidal has quit IRC
21:18:25 <Eddi|zuHause> also, you should probably "svn up -rXXXX" where XXXX is the revision the patch was originally written for, otherwise you risk conflicts
21:18:56 <Sziha> ok. so can i svn up to any version, or only upgrade(to newer one)?
21:19:10 <Eddi|zuHause> you can also "up" to a lower revision
21:21:03 <Sziha> ok, let me try it. wiki page shows the code for that as "svn up -r XXXX" (one space before XXXX). that's why it didn't work before
21:29:55 <Sziha> ok, it's compiling :D i'll see what will come out of that^^
21:30:25 <Sziha> is it normal that there are warnings during compilation? they are just a text between compiled files. the process doesn't stop...
21:31:16 <frosch123> it's proably normal when building on osx
21:31:20 *** wicope has joined #openttd
21:31:28 <Sziha> ok, thank you
21:31:37 <frosch123> it's not a primary development target
21:40:01 <Sziha> so i got a linker error. if i need to redo a configuration process, do i need to copy "clean" binaries, and patch it again?
21:42:42 <frosch123> what linker error?
21:42:55 <frosch123> and you only need to call configure and make
21:44:23 <Sziha> it's a long one. it resambles the one on the wiki page (problem with -freetype). i'll try to configure with the parameters provided on the wiki
21:49:44 <Sziha> another quick question from different category. does all newGRFs work with patched games?
21:50:25 <frosch123> usually they do
21:50:42 <Sziha> that's great
21:59:12 *** Pensacola has quit IRC
22:01:19 <Sziha> it looks like it worked!
22:01:25 <Sziha> the game is running!
22:01:37 <Sziha> Thank you so much guys for your time and help :)
22:02:49 <frosch123> you are welcome
22:03:03 *** Alberth has left #openttd
22:10:57 *** Sziha has quit IRC
22:12:30 *** frosch123 has quit IRC
22:14:29 <Zabyte> Does anyone build in VS2012? I've been having some issues
22:31:30 <glx> macro redefinitions ?
22:33:13 <Zabyte> I was talking about it last night, you can read the logs if you want,
22:33:16 <Zabyte> long story short
22:33:34 <Zabyte> error C1001: An internal error has occurred in the compiler. c\openttddev\trunk\src\3rdparty\squirrel\squirrel\squtils.h 36 1 openttd
22:33:49 <glx> hmm never had this one
22:34:13 <Zabyte> That line uses a placement new, that seems to be what the issue is
22:35:46 <Zabyte> * A line close to that line
22:40:12 <peter1138> The issue seems to be your compiler is broken.
22:42:07 <Zabyte> Thats what I came up with, I'm trying to pull the line out to see if I can compile it
22:42:10 <glx> I don't use VS2012 toolset (v110 or v110_xp) but 7.1 SDK toolset
22:51:03 <Zabyte> So I tried a placement new in a different project, the compiler didn't have any problems and the result was as expected
22:53:47 <glx> this is used in other places in the code
22:54:26 <Zabyte> That is the only place the compiler has issues, If I comment it out, it builds (and then crashes for obvious reason...)
23:03:37 *** Progman has quit IRC
23:04:21 <Zabyte> I got it to build by replacing:
23:04:27 <Zabyte> new ((void *)&_vals[i]) T(v._vals[i]);
23:04:36 <Zabyte> new ((void *)&_vals[i]) int(92);
23:04:49 <Zabyte> still breaks the code, but it built...
23:04:57 *** oskari89 has quit IRC
23:05:00 <Zabyte> I got a bunch of link errors, but I think they're unrelated
23:05:53 <glx> maybe try a clean rebuild first
23:08:14 <Zabyte> I'm working my way through the line, it built with:
23:08:16 <Zabyte> new ((void *)&_vals[i]) T();
23:09:33 *** gelignite has joined #openttd
23:09:41 <glx> because compile farm has no problem and use VS2012
23:11:56 *** HerzogDeXtEr has quit IRC
23:12:17 <Zabyte> It's building now
23:14:35 <Zabyte> no go
23:15:28 <Zabyte> I'm gonna try to revert everything, I may have played with a few build settings
23:26:45 *** DDR has joined #openttd
23:27:55 *** DDR has quit IRC
23:29:52 *** DDR has joined #openttd
23:33:39 <Wolf01> 'night
23:33:52 *** Wolf01 has quit IRC
23:33:53 <Zabyte> Still the same error after a revert and a build
23:48:48 *** Cybert1nus has quit IRC
23:50:01 *** DDR has quit IRC
23:50:16 *** Cybertinus has joined #openttd
23:52:44 *** DDR has joined #openttd