IRC logs for #openttd on OFTC at 2015-06-04
⏴ go to previous day
00:14:41 *** smoke_fumus has joined #openttd
00:49:58 *** Flygon_ has joined #openttd
01:28:04 *** Hiddenfunstuff has quit IRC
01:39:34 *** Supercheese has joined #openttd
01:43:07 *** Supercheese has joined #openttd
01:55:55 <Zabot> Can I get talk permission on #openttd.dev?
01:57:03 *** dustinm` has joined #openttd
02:09:16 <Eddi|zuHause> any particular reason for that?
02:16:00 <glx> usually .dev is used when it's too noisy here
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:04 *** Plaete2 has joined #openttd
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:52 *** ccfreak2k has joined #openttd
02:40:48 *** Bluelight has joined #openttd
04:09:44 *** Biolunar has joined #openttd
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: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: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: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: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:16:07 *** ProfFrink has joined #openttd
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:15 *** Eddi|zuHause has joined #openttd
07:12:52 <Flygon> That's a damn good question
08:12:29 <olligobber> I hate using windows :(
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:41 <Supercheese> I only use Windows so I don't know if it is compiled for other OSes
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:50:19 *** Progman has joined #openttd
09:23:36 *** tokai|mdlx has joined #openttd
09:40:59 *** JacobD88 has joined #openttd
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:40 <planetmaker> or rather: which wiki page?
09:58:46 <olligobber> GRFMaker and GRF Wizard
09:59:02 <planetmaker> oh. both are obsolete, deprecated and unmaintained
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:56:42 *** frosch123 has joined #openttd
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 *** DorpsGek sets mode: -o frosch123
11:05:12 *** Celestar has joined #openttd
12:00:07 *** Hiddenfunstuff has joined #openttd
13:16:16 *** gelignite has joined #openttd
13:33:06 *** Supercheese has joined #openttd
13:53:53 *** sla_ro|master has joined #openttd
14:34:25 *** shirish has joined #openttd
14:45:05 *** Celestar has joined #openttd
15:03:12 *** Celestar has joined #openttd
15:03:43 *** shirish has joined #openttd
15:14:56 *** shirish_ has joined #openttd
15:49:51 *** shirish has joined #openttd
16:10:21 *** shirish_ has joined #openttd
16:16:10 *** chester_ has joined #openttd
16:17:03 *** shirish has joined #openttd
16:28:59 *** shirish_ has joined #openttd
16:31:52 *** shirish__ has joined #openttd
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
17:03:32 *** Alberth has joined #openttd
17:03:32 *** ChanServ sets mode: +o Alberth
17:15:14 *** shirish has joined #openttd
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:32:10 <frosch123> Alberth: for communicating over the admin port
17:34:00 <Alberth> multiple servers talking one bot, fair enough
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:45:09 <frosch123> it is appended after the other pragmas
17:45:13 <frosch123> but still before the strings
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: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:59:24 <Alberth> could be that I add one, my first guess would be with writing
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: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:29:12 *** oskari89 has joined #openttd
18:30:56 *** HerzogDeXtEr has joined #openttd
18:31:09 *** TheMask96 has joined #openttd
19:22:03 *** fjb is now known as Guest579
19:41:37 *** Belugas has joined #openttd
19:41:37 *** ChanServ sets mode: +o Belugas
20:37:06 *** nanoha-chan 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: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: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: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: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?
22:01:19 <Sziha> it looks like it worked!
22:01:37 <Sziha> Thank you so much guys for your time and help :)
22:14:29 <Zabyte> Does anyone build in VS2012? I've been having some issues
22:33:13 <Zabyte> I was talking about it last night, you can read the logs if you want,
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: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: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: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:15:28 <Zabyte> I'm gonna try to revert everything, I may have played with a few build settings
23:33:53 <Zabyte> Still the same error after a revert and a build
23:50:16 *** Cybertinus has joined #openttd
continue to next day ⏵