IRC logs for #openttd on OFTC at 2018-09-29
⏴ go to previous day
00:12:53 *** Wacko1976_ has joined #openttd
00:26:09 *** Thedarkb-T60 has joined #openttd
00:33:04 <Samu> what's the difference between BuildManager().buildTownStation(x, y, z) and BuildManager.buildTownStation(x, y, z)
01:15:16 <Samu> gonna upload v5, think i've waited too long
01:15:20 <Samu> it's in a good shape now
01:17:27 <Samu> lel, getting a crash as I speak
01:45:27 *** Thedarkb-T60 has joined #openttd
02:15:34 <Samu> if I get a crash now, I'll be mad
02:48:43 *** WWacko1976-work has quit IRC
02:50:30 *** ^Spike^ has joined #openttd
02:50:30 *** Eddi|zuHause has joined #openttd
02:50:30 *** Sheogorath has joined #openttd
02:50:30 *** OsteHovel has joined #openttd
02:50:30 *** Lejving_ has joined #openttd
02:50:30 *** argoneus has joined #openttd
02:50:30 *** sushibear has joined #openttd
02:50:30 *** V453000 has joined #openttd
02:50:30 *** michi_cc has joined #openttd
02:50:30 *** tyteen4a03 has joined #openttd
02:50:30 *** ZirconiumX has joined #openttd
02:50:30 *** KenjiE20 has joined #openttd
02:50:30 *** Hirundo has joined #openttd
02:50:30 *** FLHerne has joined #openttd
02:50:30 *** blathijs has joined #openttd
02:50:30 *** Hobbyboy has joined #openttd
02:50:30 *** Mahjong has joined #openttd
02:50:30 *** TrueBrain has joined #openttd
02:50:30 *** WWacko1976-work has joined #openttd
02:50:30 *** haudrauf has joined #openttd
02:50:30 *** tokai|noir has joined #openttd
02:50:30 *** Stimrol has joined #openttd
02:50:30 *** TheMask96 has joined #openttd
02:50:30 *** Wacko1976_ has joined #openttd
02:50:30 *** charon.oftc.net sets mode: +vvv michi_cc tokai|noir glx
02:50:30 *** Thedarkb-T60 has joined #openttd
02:50:30 *** Supercheese has joined #openttd
02:50:30 *** Smedles has joined #openttd
02:50:30 *** mindlesstux has joined #openttd
02:50:31 *** Antheus has joined #openttd
02:50:31 *** wodencafe has joined #openttd
02:50:31 *** TinoDidriksen has joined #openttd
02:50:31 *** lethosor_ has joined #openttd
02:50:31 *** Maarten has joined #openttd
02:50:31 *** reldred has joined #openttd
02:50:31 *** rocky1138 has joined #openttd
02:50:31 *** ccfreak2k has joined #openttd
02:50:31 *** innocenat has joined #openttd
02:50:31 *** Tharbakim has joined #openttd
02:50:31 *** mikegrb has joined #openttd
02:50:31 *** techmagus has joined #openttd
02:50:31 *** greeter has joined #openttd
02:50:31 *** HeyCitizen has joined #openttd
02:50:31 *** Gustavo6046 has joined #openttd
02:50:31 *** Extrems has joined #openttd
02:51:47 *** ChanServ sets mode: +v peter1138
02:51:47 *** ChanServ sets mode: +v planetmaker
02:51:47 *** ChanServ sets mode: +v Terkhen
02:51:47 *** ChanServ sets mode: +o orudge
02:51:47 *** ChanServ sets mode: +v DorpsGek
05:19:31 *** haudrauf has joined #openttd
06:27:14 *** Supercheese has joined #openttd
07:08:58 *** sla_ro|master has joined #openttd
08:14:50 *** andythenorth has joined #openttd
08:50:21 *** Progman has joined #openttd
09:16:57 *** agentw4b has joined #openttd
09:27:17 *** Mahjong1 has joined #openttd
09:51:16 <andythenorth> so when did TE get nerfed?
09:51:55 <DorpsGek> andythenorth: 0.982222222222
09:52:39 <andythenorth> the TE shown in buy menu is not the same as TE when engine is built
09:52:50 <Eddi|zuHause> nobody changed TE in ages
09:54:27 <Eddi|zuHause> when designing CETS i had this odd feeling that it applied factor of 10 and 9.81 in random places that didn't quite feel consistent
09:54:37 <andythenorth> it's reproducible with default trains
09:54:44 <andythenorth> 1.8.0-RC1 doesn't do it
09:54:49 <andythenorth> self-compiled master does
09:55:47 <andythenorth> and 9.81 looks about right for the factor
09:59:10 *** OtakuSenpai has joined #openttd
10:01:22 <Eddi|zuHause> so, what happens if you change the display units?
10:02:16 <Eddi|zuHause> also, who invented the word "nerfed"?
10:04:26 *** HerzogDeXtEr has joined #openttd
10:39:58 <Wolf01> So, if you want me to fix things guide me on how to set up this thing :P
10:42:25 <Wolf01> 1) How to get a working NRT repo updated to the latest NRT changes (I might get peter's patch to work, I don't know why it doesn't work)
10:42:25 <Wolf01> 2) The exact commands to sync it with trunk (I'm REALLY lost here)
10:43:01 <nielsm> start by cloning the main ottd repository
10:43:19 <nielsm> then add the forked repos containing the PR branch as a remote
10:43:37 <Wolf01> I already have that, the problem is: I'll need sub-branches for NRT, is that possible?
10:43:38 <nielsm> fetch that remote, and checkout the PR branch from it
10:44:05 <nielsm> and with that done, you can rebase the NRT changes onto the current master head
10:48:17 <LordAro> subbranches are just branches taken from another branch
10:48:28 <LordAro> they're not really a thing :)
10:48:36 <Wolf01> So he had nrt-block too
10:48:41 <LordAro> (given subbranches are just branches)
11:05:34 <Wolf01> wolfolo@Wolf01:~/Progetti/OpenTTD/andythenorth-nrt-block$ git checkout andy/nrt-block
11:05:35 <Wolf01> error: pathspec 'andy/nrt-block' did not match any file(s) known to git.
11:06:10 <Wolf01> I added the remote succesfully
11:07:38 <Wolf01> wolfolo@Wolf01:~/Progetti/OpenTTD/andythenorth-nrt-block$ git remote -v
11:19:13 <Wolf01> Mmmh, still same error as peter's one, it doesn't load any newgrf
11:19:24 <Wolf01> Not even the bananas ones
11:19:46 <Wolf01> "matching file not found"
11:21:09 <Wolf01> I put them in the bin folder like all the other repos, and the cfg too
11:26:59 <Wolf01> IIRC this was the reason I stopped trying
11:36:28 <Eddi|zuHause> did you cd into the bin folder?
11:37:08 <Wolf01> I'm running it from VS
11:38:13 <Eddi|zuHause> and master works that way?
11:54:43 *** andythenorth has joined #openttd
11:54:44 <Wolf01> Mmmh, trunk seems fine
11:55:30 <Eddi|zuHause> i think the error message is spurious, and results from a previous error that was hidden/ignored
11:56:20 <Wolf01> Something fishy changed
11:56:29 <andythenorth> Eddi|zuHause: changing the TE units, the discrepancy is still present
11:57:52 <Eddi|zuHause> andythenorth: so either one place forgot to apply the 9.81 factor or the other place applied it twice
11:58:08 <andythenorth> I can go through commits and try to isolate it
11:58:21 <andythenorth> is there *any* chance it's compile specific?
11:58:30 <andythenorth> can anyone else repro it?
12:00:32 <Eddi|zuHause> seems to also appear here
12:00:40 <Eddi|zuHause> with whatever i compiled last
12:01:38 <andythenorth> well it's not in 1.8.0-RC1
12:02:31 <Eddi|zuHause> great, then you have a start for a bisection
12:02:51 <andythenorth> I am limited because I can only compile with LordAro's branch
12:03:03 <andythenorth> I'd have to backport patches to trunk to compile it
12:03:15 <andythenorth> currently reading commits looking for anything obvious
12:03:28 <Eddi|zuHause> but that's only a makefile patch?
12:03:38 <Eddi|zuHause> can just apply that to whatever you check out
12:03:49 <andythenorth> yes, it's just a configure patch
12:04:07 <andythenorth> I would probably test this one first :P
12:05:01 <Eddi|zuHause> right, that points to version 1 of the error (forgot change in other place)
12:07:19 <Wolf01> BTW, I think is there something fishy on my OTTD repo, even VS can't find includes but it loads them
12:07:34 <Wolf01> Maybe it's because I'm using WSL
12:08:11 <Eddi|zuHause> can't help you with that
12:08:27 <Eddi|zuHause> case sensitive? symlink?
12:09:32 <andythenorth> so TE is correct in both cases for rev preceeding cad47bbefe5007a4d6c4e02b2cbc6f69484475f7
12:09:56 <Eddi|zuHause> it's consistent, but not correct :p
12:10:12 <andythenorth> TE is consistently wrong in both places for that rev :P
12:10:29 <Eddi|zuHause> just look for the buy menu calculation, and apply the 10->9.8 factor change there too
12:11:02 <Eddi|zuHause> possibly refactor it so both use the same global constant
12:13:55 <andythenorth> I was hoping I could file a ticket and peter1138 would fix it :P
12:17:14 <Wolf01> I'll try cloning direclty from andy's with VS
12:20:28 <Eddi|zuHause> andythenorth: "uint Engine::GetDisplayMaxTractiveEffort() const" in src/engine.cpp
12:20:43 *** chomwitt has joined #openttd
12:21:52 <Eddi|zuHause> andythenorth: the "10*..." must be changed into "9800* ... /1000" or something like that
12:22:10 <andythenorth> 9.8 will have integer maths problems?
12:22:48 <Eddi|zuHause> ... and then the 9800 moved to some header file as a constant
12:23:02 <andythenorth> above my pay grade :P
12:23:19 <andythenorth> but function is the cause and fix of the issue
12:27:25 <andythenorth> Eddi|zuHause: you could get a checkout and write a patch? o_O
12:31:47 <Eddi|zuHause> ... below my paygrade :p
12:32:56 *** Thedarkb-T60 has joined #openttd
12:33:29 <Wolf01> Ok, cloning with VS worked
12:33:36 <Wolf01> So there's something fishy with WSL
12:41:43 *** OtakuSenpai has joined #openttd
12:46:22 <Wolf01> So, I cloned andy's repo and compiled nrt-block and IT WORKS. Now, I need to get those nasty conflicts fixed, how should I proceed?
12:48:13 <nielsm> one way to make conflict resolution easier is to rebase onto the new head in smaller steps
12:48:32 <nielsm> e.g. rebase 10 revisions of master forward at a time
12:48:45 <nielsm> (or fewer in case there are lots of big changes getting merged)
12:49:17 <nielsm> you'd need to rebase onto revision hashes instead of named branches/tags in that case
12:50:02 <nielsm> or well, you could actually go ahead and mark your intended rebase targets with branch or tag names
12:50:28 <nielsm> to make them easier to identify, stick to a plan, and keep track of progress
12:52:32 <Wolf01> Mmmh, Cannot rebase: you have unstaged changes.. I don't
12:52:55 <Wolf01> Oh fuck, it tracks changing of branch as changes
12:54:04 <Wolf01> Nothing that a hard reset can't resolve
12:56:03 <Wolf01> Meh, I did the opposite, I'm removing NRT from trunk
13:22:12 <Eddi|zuHause> ok, i bit the dust and created a stupid github account
13:22:32 <Eddi|zuHause> anyone want to walk me through what to do to make a pull request?
13:22:50 <nielsm> fork openttd to your own account
13:23:02 <nielsm> pull from your own fork into your local repos
13:23:03 <Wolf01> Ahahaha, I don't know either... or at least I do because I used them for merges
13:23:12 <nielsm> push your own branch to your own forked repos
13:23:30 <nielsm> go to github website on your own repos or main repos, it'll show a suggestion to create at PR from your branch
13:28:22 *** ToBeFree has joined #openttd
13:28:36 <Eddi|zuHause> that is so very incomplete description...
13:31:39 <nielsm> or add it as a remote on an existing clone
13:31:52 <Eddi|zuHause> that last one i need
13:32:17 <Wolf01> Mmmh, rebase for me is mythical stuff, couldn't I do it with merge instead? :D
13:32:18 <nielsm> git remote add eddi git@github.com:eddiorwhatever/OpenTTD.git
13:32:31 <nielsm> then push your branch to your own remote:
13:32:54 <nielsm> git push -u eddi mybranch
13:33:27 <nielsm> the -u sets your own remote as the default upstream push target
13:33:39 <nielsm> so you afterwards just can 'git push' with no further parameters
13:37:29 <Eddi|zuHause> so, i pushed... how do i proceed now?
13:37:37 <nielsm> gi back to the website
13:37:55 <nielsm> it should show a bar suggesting you make a PR
13:38:40 <Eddi|zuHause> not seeing anything
13:40:14 <Eddi|zuHause> i see it got my new branch
13:40:20 <Eddi|zuHause> but not any changes...?
13:40:58 *** andythenorth has joined #openttd
13:41:00 <Eddi|zuHause> uh even worse, it made the commit to master, not the branch i created
13:41:17 <Eddi|zuHause> and of course it didn't push that
13:41:22 <Eddi|zuHause> when i pushed the branch
13:43:15 <Wolf01> andythenorth: I only get 1 conflict on npf.cpp is that right?
13:43:45 <andythenorth> Wolf01: against upstream master?
13:43:52 <andythenorth> I will get a checkout and try
13:43:57 <andythenorth> hmm what does GH say :P
13:46:47 <Wolf01> Also only a single if condition was slightly changed and caused a conflict
13:46:49 <Eddi|zuHause> ugh, it barfs on the commit message... so how do i rewrite that?
13:47:21 <andythenorth> Eddi|zuHause: sometimes git commit --amend is safe
13:47:29 <andythenorth> but probably you have to rebase -i :|
13:47:56 <andythenorth> I can't advise, I have to look up how to do it every time
13:49:30 <Eddi|zuHause> also, why is my avatar a red creeper?
13:49:49 <andythenorth> Wolf01: to answer the original q, I only get one conflict within npf.cpp
13:49:56 <andythenorth> but there are the others of course :)
13:56:00 <Eddi|zuHause> so... regression test must update
13:56:16 <Wolf01> Mmmh, I think my remote didn't fetch the correct stuff, I got stuff from 3 months ago
13:56:57 <Wolf01> Because I had a rogue ( in opf_ship.cpp and that was part of a commit 3 months ago
13:57:36 <andythenorth> is it setup as it says in CONTRIBUTING.MD?
13:59:20 <Wolf01> No, it's the automatic rebase which breaks stuff
13:59:55 <Wolf01> It seem like it isn't able to replay all the commits
14:00:38 <Wolf01> I don't have other options
14:00:56 <Wolf01> I should do it from CLI, but it seem to break the repo
14:01:49 <Wolf01> Merge instead works and shows the right conflicts, but you said merge is evil
14:05:05 <Eddi|zuHause> seems i also broke TE calculation for RV
14:06:15 <andythenorth> Wolf01: I don't know if merge is evil
14:06:26 <andythenorth> I just follow instructions in CONTRIBUTING.MD
14:06:34 <andythenorth> then I don't get sadface from other people
14:12:00 <Wolf01> I think it's the case to move roadtypes to m8...
14:13:50 <Eddi|zuHause> was it a bad idea to force update the pr while it was still building?
14:13:55 *** frosch123 has joined #openttd
14:15:03 <andythenorth> Eddi|zuHause: 'probably fine'
14:15:21 *** Wacko1976 has joined #openttd
14:19:50 *** Maraxus has joined #openttd
14:27:33 <Eddi|zuHause> "ModuleNotFoundError: No module named 'Image'" what am i missing? i have pillow installed, i think
14:28:46 <Eddi|zuHause> ah, only for python2, not python3
14:31:47 <Eddi|zuHause> "grfcodec: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory" great... next?
14:33:29 <andythenorth> never seen that :o
14:34:10 <Eddi|zuHause> means my grfcodec was built for an older os
14:37:03 <Wolf01> Ok, need to review a bit the documentation but the code should be ok
14:37:45 <Eddi|zuHause> make: *** Keine Regel vorhanden, um das Ziel „/usr/include/libpng12/png.h“,
14:37:47 <Eddi|zuHause> benötigt von „objs/pngsprit.o“, zu erstellen. Schluss.
14:37:57 <Eddi|zuHause> why would it try libpng12 when i have libpng16?
14:39:22 <Eddi|zuHause> > libpng-config --cflags
14:39:23 <Eddi|zuHause> -I/usr/include/libpng16
14:40:49 <Eddi|zuHause> seems i needed a make clean
14:42:07 <Eddi|zuHause> src/pseudo.cpp:719:100: error: no match for ‘operator<’ (operand types are ‘std::_Bind_helper<false, long unsigned int (std::vector<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char> > >::*)() const noexcept, const boost::lambda::lambda_functor<boost::lambda::placeholder<1> >&>::type {aka std::_Bind<long unsigned int (std::vector<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_
14:42:09 <Eddi|zuHause> string<char> > >::*(boost::lambda::lambda_functor<boost::lambda::placeholder<1> >))() const noexcept>}’ and ‘std::_Bind_helper<false, long unsigned int (std::vector<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char> > >::*)() const noexcept, const boost::lambda::lambda_functor<boost::lambda::placeholder<2> >&>::type {aka std::_Bind<long unsigned int (std::vector<std::__cxx11::basic_string<char>, std::
14:42:10 <Eddi|zuHause> allocator<std::__cxx11::basic_string<char> > >::*(boost::lambda::lambda_functor<boost::lambda::placeholder<2> >))() const noexcept>}’)
14:42:12 <Eddi|zuHause> uint columns = (uint)max_element(sections.begin(),sections.end(), bind(&vector<string>::size,_1) < bind(&vector<string>::size,_2))->size();
14:42:32 <Eddi|zuHause> anyone built grfcodec lately?
14:44:32 <andythenorth> Eddi|zuHause: sorry, grfcodec builds for me :(
14:45:07 <Wolf01> Now I'll go back to do nothing for 6 months
14:45:28 <Eddi|zuHause> maybe i should try updating first :p
14:45:42 <Wolf01> This stuff of getting things done with git gave me a headache
14:46:06 <Eddi|zuHause> loads of warnings still, but it builds
14:46:29 <michi_cc> andythenorth: Is PR#9620 doing what you expect?
14:48:45 <andythenorth> haven't tested it yet :)
14:48:59 <andythenorth> switching between too many repos right now :P
14:54:26 <Eddi|zuHause> ok, so how do i suppress this "libpng warning: iCCP: known incorrect sRGB profile"?
14:56:41 <andythenorth> you can strip the sRGB profiles
14:56:45 <andythenorth> but they come back
15:05:48 <Eddi|zuHause> "UNIX2DOS_FLAGS ?= $(shell [ -n $(UNIX2DOS) ] && $(UNIX2DOS) -q --version 2>/dev/null && echo "-q" || echo "")" <-- how did this ever work?
15:07:29 <andythenorth> well did it? o_O
15:08:04 *** ChanServ sets mode: +v tokai
15:08:42 <Eddi|zuHause> i'm not even sure what it's meant to do... it tries to call "unix2dos -q", and hopes that doesn't actually output a thing?
15:09:01 <andythenorth> is this the old coop makefile? o_O
15:09:26 <andythenorth> iirc, pm decided that was too complex
15:09:29 <Eddi|zuHause> i was trying to update CETS with new TE calculation
15:09:55 <andythenorth> CC=clang CXX=clang++ CXXFLAGS=-std=c++11 LDFLAGS="-liconv" ./configure
15:09:58 <Eddi|zuHause> anyway, adding >/dev/null there works
15:10:19 <Eddi|zuHause> not quite that bad :p
15:13:02 <Eddi|zuHause> i'm assuming coop build process is still broken?
15:13:21 <andythenorth> not last time I checked
15:14:43 <Eddi|zuHause> yeah, last time i checked it's trying to use regular nml instead of eddi-nml like it's supposed to
15:15:55 <Eddi|zuHause> 13:12:46 [NML] src/headers.nfo
15:15:57 <Eddi|zuHause> 13:12:49 Usage: nmlc [options] <filename>
15:16:02 <Eddi|zuHause> that doesn't sound right
15:17:12 <Eddi|zuHause> 13:12:49 nmlc: error: no such option: --verbosity
15:18:26 <Eddi|zuHause> 13:12:35 + make NML=/var/lib/jenkins/bin/repos/nml-eddi/nmlc
15:18:33 <Eddi|zuHause> so nml should be the correct one now
15:18:44 <Eddi|zuHause> but why is it different than my local build?
15:20:02 <Eddi|zuHause> --verbosity=<level> Set the verbosity level for informational output.
15:20:04 <Eddi|zuHause> [default: 3, max: 4]
15:20:35 <Eddi|zuHause> makefile is trying to set --verbosity=1
15:26:13 *** andythenorth has joined #openttd
15:26:33 *** synchris has joined #openttd
15:28:08 <Eddi|zuHause> can i trigger a rebuild without pushing anything?
15:30:08 <andythenorth> you can if you're logged into jenkins
15:30:15 <andythenorth> however the login appears to be broken
15:31:01 <Eddi|zuHause> do i have a login there?
15:31:30 <andythenorth> it's supposed to be same as devzone
15:31:53 <Eddi|zuHause> well that didn't work...
15:32:07 <Eddi|zuHause> and i checked on devzone
15:33:53 <andythenorth> could ask ^Spike^
15:34:16 <andythenorth> I am logged into devzone fine, but jenkins says my creds are invalid
16:11:07 *** Gustavo6046 has joined #openttd
16:20:43 <Samu> the ai used to be at the top :(
16:22:43 *** andythenorth has joined #openttd
16:40:15 *** Wormnest has joined #openttd
16:41:29 <Eddi|zuHause> all these new gdpr questions makes it even more impossible to browse random websites without javascript :/
16:47:24 *** Wacko1976 has joined #openttd
16:50:06 <Eddi|zuHause> hm, so life is strange:before the storm came out on linux a few weeks ago, but that means it lost my savegame from the windows version i played before
16:57:53 <Samu> I feel like doing an AI competition
16:58:25 <Samu> for 1.8.0, unless you have planned a 1.8.1 in sight
16:58:50 *** andythenorth has joined #openttd
16:59:10 <nielsm> I don't think there's any changes suitable for a 1.8.1 that can't wait until a 1.9
16:59:21 <nielsm> of what's currently in
17:01:10 <Samu> i'd like to invite someone else to give me an openttd config for the competition
17:02:40 <andythenorth> nielsm: well we need newgrf docks for 1.9 :P
17:02:44 <Samu> like, i've never use newgrfs
17:02:48 * andythenorth just mentions it
17:04:19 *** andythenorth has joined #openttd
17:05:53 <Eddi|zuHause> so... savegame copied
17:08:09 <Samu> unsure about doing 100 year long competitions
17:08:36 <Samu> my system hasn't been stable, wouldn't like to risk it
17:08:51 <Samu> these past few days it's been doing alright, though, heh...
17:12:03 *** andythenorth has joined #openttd
17:17:23 <andythenorth> seems that Iron Horse engines were very finely balanced wrt TE :P
17:17:29 <andythenorth> now they are all a bit nerfed
17:18:00 *** Progman has joined #openttd
17:18:06 *** snail_UES_ has joined #openttd
17:22:59 *** andythenorth has joined #openttd
17:29:40 *** OtakuSenpai has joined #openttd
17:44:12 <snail_UES_> anyone would care to add translations to the French NG set?
17:44:25 <snail_UES_> it’s complete and I’m planning to release it in the next few weeks...
17:44:48 <andythenorth> that's a big result snail_UES_
17:44:50 <andythenorth> it has been years :)
17:45:11 <snail_UES_> I started using m4nfo in around 2010...
17:45:26 <snail_UES_> been drawing since 2005 :D
17:46:13 <snail_UES_> so far I’ve only got French and Italian, plus a few strings in German and Dutch …
17:46:22 <snail_UES_> anything more would be much appreciated ;)
17:49:17 *** andythenorth has joined #openttd
17:51:40 <Eddi|zuHause> andythenorth: nothing you couldn't fix with a simple factor over all vehicles
17:53:30 <andythenorth> I'm not sure if it's set wide
17:54:03 <andythenorth> the later generation wagons are each 1-2t heavier than when I first balanced the set
17:54:09 <andythenorth> and have 2-4t more cargo
17:54:19 <andythenorth> and for 10-20 wagons I think it makes just enough difference
18:04:16 <Eddi|zuHause> well, what you call "nerf" is just a linear factor, it can be offset by the inverse factor
18:07:11 <Eddi|zuHause> snail_UES_: thought about using eints for translations? (no idea if there is anyone around that could set that up, though. probably needs some adaptation for m4nfo as well)
18:07:40 <snail_UES_> yes, I don’t know how to make it work with m4nfo
18:07:57 <snail_UES_> so I’m just writing a TXT file and asking some good soul to translate it for me :)
18:08:29 <Eddi|zuHause> i can't imagine it being too complicated to adapt eints to your file format, or the other way around...
18:09:18 <snail_UES_> hmm, what kind of file does eints need? is there any documentation?
18:09:36 <Eddi|zuHause> let's start with what kind of file you have?
18:10:06 <snail_UES_> a simple TXT file with text in quotes (“”) in English
18:11:08 <Eddi|zuHause> NML's text file format is fairly close to the openttd format, so you have each line consisting of "STR_IDENTIFIER :sometextthatneedstranslating"
18:11:51 <snail_UES_> STR_0001: this is the first line of text
18:12:10 <Eddi|zuHause> yeah, just the space between the : and the text would count towards the text
18:12:37 <snail_UES_> STR_0001 :this is the first line of text
18:12:46 <Eddi|zuHause> so usually you would have "STR_WHATEVER[anynumberofspaceshere]:[nospacehere]text"
18:13:17 <Eddi|zuHause> for extra prettyness, the : would be aligned in one column [using fixed-width-text]
18:14:21 <snail_UES_> it’d be fairly easy for me to make a file like that. Then I need to set eints up?
18:14:33 <andythenorth> Eddi|zuHause: I've applied a linear factor, per generation :P
18:14:34 <Eddi|zuHause> if all you have is vehicle names, that should be everything you need. if you have more complicated stuff, you need to support string parameters and cases and stuff
18:15:04 <Eddi|zuHause> andythenorth: ok, but that has nothing to do with the alledged "nerf"
18:15:29 *** andythenorth has joined #openttd
18:16:37 <frosch123> snail_UES_: isr uses eints and some scripts to provide translations for an nfo grf
18:17:28 <snail_UES_> some of my text is a bit complex, although I don’t think I need cases...
18:18:43 <Eddi|zuHause> i remember in ancient times when i introduced genders into NFO-FIRS
18:19:25 <snail_UES_> looking at the code now…
18:19:30 <andythenorth> we should switch back to nfo
18:19:40 <Eddi|zuHause> but whatever specials you need, it should be a fairly simple 1:1 conversion
18:19:51 <frosch123> andythenorth: chips :)
18:19:51 <snail_UES_> I’d have to install python :p
18:20:25 <Eddi|zuHause> i'm pretty sure you could teach m4 to do that :p
18:20:57 <Eddi|zuHause> just i have no clue how m4 actually works...
18:21:14 <snail_UES_> creating a file for eints shouldn’t be that hard (I can even do it with excel)
18:21:27 <snail_UES_> I’ll try to figure something out…
18:23:59 <Eddi|zuHause> well, the general idea is to have it done automatically... whatever strings you change will automatically be flagged by eints as "needs new translations", and whenever some translator changes anything, the translation will automatically be built into the grf (e.g. nightly version or next release) without you having to do anything special
18:24:00 <snail_UES_> I have to “apply for a project” in eints translator, right?
18:24:41 <snail_UES_> right, but what I’ll need as an output will be an actual text file
18:24:46 <snail_UES_> since I don’t work in nml...
18:25:18 <snail_UES_> I was hoping I could create my project on the eints translator, then people would start adding new languages, and I could download text files as a result...
18:25:28 <snail_UES_> and then I’d embed that text in my code
18:26:09 <Eddi|zuHause> you could probably do that. it's just more manual work, and doesn't really simplify any code
18:26:41 <snail_UES_> but I’d guess it simplifies the translators’ life… :p
18:27:13 <snail_UES_> instead of having to manually download and edit a text file from the forum, they would directly translate stuff up there
18:28:02 <snail_UES_> oh, but does the final work need to be GPL if you use eints?
18:28:26 <snail_UES_> I can see this in the default text for the application...
18:28:55 <Eddi|zuHause> i don't think so... devzone has some "must be somewhat free license" TOS, but it isn't fixed to GPL
18:29:50 <Eddi|zuHause> i can see someone objecting if you don't want to share your whole code, though
18:30:35 <snail_UES_> ah… so in order to use the eints translator, I need to basically register the whole project there?
18:30:58 <Eddi|zuHause> you should probably talk to some actual devzone admin about that
18:32:47 <Eddi|zuHause> snail_UES_: i'm fairly sure it's legal if you add just the translations, but give those a free license like CC-BY(-SA)
18:34:07 <snail_UES_> I can add the translators’ names in the credits as well, provided I know who did what
18:34:33 <Eddi|zuHause> nobody can force you to release your whole GRF, and CC-BY(without-SA) allows you to include the translations in your proprietary project
18:34:58 <Eddi|zuHause> there's probably a way to export the names of the translators
18:36:49 <snail_UES_> so the set would be copyrighted and the translations would be under CC-BY standards?
18:37:04 <snail_UES_> ok, if that’s acceptable, I’ll apply to eints
18:43:35 <frosch123> the android port also has only translations on devzone
18:44:40 <snail_UES_> thanks… I’ll have to submit the translation file immediately upon applying, right?
18:47:15 <Eddi|zuHause> not necessarily. i think you apply for a project, which means a (hg or git) repo will be installed, and then you push your file to that repo
18:48:10 <Eddi|zuHause> then eints can be set up to generate the translation files
18:48:41 <Eddi|zuHause> and then you can pull from the repo to build the translations into your grf
18:49:51 <Eddi|zuHause> there's some intermediate steps like setting up an ssh key so you can get write access to your repo and stuff
18:52:25 <snail_UES_> ah… I hope I’ll get instructions on how to do that upon applying
18:52:40 <snail_UES_> otherwise it sounds like it’s simpler to just post the text file on the forums :D
18:54:27 <Eddi|zuHause> it's only difficult once :p
18:55:26 <Eddi|zuHause> i think it's worth the effort, though. you get way better and more consistent feedback through eints
18:59:41 <frosch123> most people fail to setup their ssh key
19:03:39 *** andythenorth has joined #openttd
19:34:11 *** andythenorth has joined #openttd
19:42:05 <snail_UES_> they said their cheating would destroy the company, 3 years have passed and they’re still #1 :D
19:42:13 <Eddi|zuHause> the idea there being "if tests fail, remove all changes and start from scratch"
19:42:36 <Eddi|zuHause> snail_UES_: problem is that all others also cheated?
19:43:15 <snail_UES_> yeah, good luck finding a company that tells the truth to its customers
19:49:20 *** Wacko1976 has joined #openttd
19:55:01 *** chomwitt has joined #openttd
20:06:24 <Samu> looks like i need to install tortoise svn :(
20:08:58 <Samu> does the svn thing still exist for openttd?
20:12:03 <Samu> I hope tortoise svn still works with this
20:13:14 <Samu> yes! it's doing the checkout stuff
20:13:27 <nielsm> github has svn emulation from the git repositories, actually
20:13:47 <nielsm> I've never tried it though
20:14:04 <Samu> holy crap, it's getting every version :(
20:14:22 <Samu> not really what I wanted, but ok
20:25:15 <LordAro> Samu: you missed out /trunk, didn't you? :p
20:25:28 <LordAro> also, why do you need svn? the releases are still available in git
20:25:43 <LordAro> git checkout v1.8.0 or something
20:25:58 <LordAro> (git tags for a list)
20:29:12 <Samu> i have some svn patches here that I want to apply
20:29:38 <Samu> just hoping tortoise svn apply patch still work
20:30:16 <LordAro> git apply is a command that exists
20:30:29 *** andythenorth has joined #openttd
20:30:29 <LordAro> i imagine there's a tortoisegit button to press as will
20:30:44 <Samu> the patch is in svn format :(
20:31:11 <Samu> wondering how am i gonna do this
20:31:22 <LordAro> git can cope with this
20:31:27 <Samu> still downloading everything
20:31:54 <Samu> 1 GB transfered already, lol
20:32:12 <LordAro> "tortoisegit apply patch" was not a hard google
20:32:39 <Samu> tortoisegit apply tortoisesvn patch
20:33:02 <LordAro> Samu: kill it, delete whatever you've already downloaded, and add /trunk to whatever url you checked out
20:33:10 <LordAro> it will be much faster
20:35:24 <Samu> ok, doing 2 checkouts at the same time, just in case
20:35:35 <Samu> is this "trunk" the same as the "master"?
20:37:17 <LordAro> how have you forgotten how svn works already?
20:38:20 <LordAro> i still maintain that you don't need it at all
20:38:56 <Samu> Revision: 24144 Author: translators Date: segunda-feira, 24 de setembro de 2018 18:45:43 Message: Update: Translations from eints spanish (mexican): 2 changes by Absay ---- Modified : /trunk/src/lang/spanish_MX.txt
20:39:23 <andythenorth> can we do something interesting? :)
20:39:38 <andythenorth> maybe approve some PRs :P
20:44:31 <Samu> how come i'm deleting 5 GB if I only downloaded 1.3 GB?
20:44:40 <Samu> whatever, doesn't matter
20:45:59 <LordAro> text is very compressible
20:54:05 <Samu> oh yeah, it still work! i can now commit to my fork thingy on github
20:56:21 <snail_UES_> andythenorth: what program do you use to draw your graphics?
20:57:22 <Samu> let me first see what visual studio has to say about my build first
20:57:25 <snail_UES_> ah… does it support palettes?
20:57:47 <snail_UES_> nice. I’ll have to switch when silly apple bans 32-bit apps :p
20:58:16 <snail_UES_> I’ll probably ask you how to create and use a palette there
20:58:40 *** gelignite has joined #openttd
21:00:45 <andythenorth> what are you using snail_UES_ ?
21:01:28 <Samu> i thought i'd never see this again
21:05:20 <snail_UES_> graphic converter 6
21:05:39 <snail_UES_> it’s an old version, because the newer ones dropped support for palettes years ago
21:08:20 <andythenorth> oh that still exists? o_O
21:08:52 <andythenorth> I tried pixelmator for a bit
21:15:18 <Samu> publishing branch, let's see
21:17:56 <Samu> Large diffs are not rendered by default. :p
21:26:15 *** andythenorth has joined #openttd
21:26:24 <andythenorth> one wagon type for each cargo type? o_O
21:26:50 <andythenorth> like original TTD?
21:28:33 <andythenorth> there are only 84 cargos in FIRS :P
21:28:37 <andythenorth> it's probably fine, right?
21:35:44 *** andythenorth has joined #openttd
21:38:08 <snail_UES_> andythenorth: 84 different types of freigh wagons? :O
21:38:18 <snail_UES_> maybe with multiple generations?
21:38:26 <andythenorth> with 6 generations
21:39:31 <snail_UES_> purchase list variants, anyone?...
21:39:58 <Eddi|zuHause> no. that's what we have actual refits for
21:40:07 <Eddi|zuHause> it's like their only reason to exist
21:40:41 <Eddi|zuHause> don't try to hunt for "BAD FEATURES"...
21:41:01 <andythenorth> aren't refits for liveries Eddi|zuHause? :P
21:42:27 <Eddi|zuHause> *mental note*don't get lost in files dated "2002"
21:47:02 <andythenorth> indisuputably useful advice
22:08:04 *** Gustavo6046 has joined #openttd
22:21:24 *** Wacko1976 has joined #openttd
22:25:23 *** Wormnest has joined #openttd
22:32:06 *** andythenorth has joined #openttd
23:00:41 *** Progman_ has joined #openttd
23:25:12 *** wodencafe has joined #openttd
continue to next day ⏵