Back to Home / #openttd / 2019 / 01 / Prev Day | Next Day
#openttd IRC Logs for 2019-01-17

---Logopened Thu Jan 17 00:00:24 2019
00:27-!-cHawk [chawk@160-3-236-93.cpe.cableone.net] has quit [Quit: Leaving]
00:27<DorpsGek_II>[OpenTTD/OpenTTD] nikolas opened pull request #7068: Add: smart town name first steps - #7037 https://git.io/fh8mF
00:28<DorpsGek_II>[OpenTTD/OpenTTD] nikolas updated pull request #7067: Fix typo in code comment: Unitializes -> Uninitializes https://git.io/fh8vS
00:32<DorpsGek_II>[OpenTTD/OpenTTD] nikolas updated pull request #7068: Add: smart town name first steps - #7037 https://git.io/fh8mF
01:07-!-cHawk [chawk@160-3-236-93.cpe.cableone.net] has joined #openttd
01:07-!-cHawk is "realname" on #openttd
02:16-!-andythenorth [~andytheno@cpc87219-aztw31-2-0-cust178.18-1.cable.virginm.net] has joined #openttd
02:16-!-andythenorth is "andythenorth" on #openttd
02:35-!-Xaroth [~Xaroth@00017153.user.oftc.net] has quit [Ping timeout: 480 seconds]
02:45-!-Xaroth [~Xaroth@00017153.user.oftc.net] has joined #openttd
02:45-!-Xaroth is "Xaroth Brook" on #openttd +#openttd.dev
02:46<andythenorth>moin
02:50<@peter1138>Hmm, saving a stack might be awkard.
02:50<@peter1138>awkward.
02:50<@peter1138>Erm, it's snowing.
03:11<andythenorth>wtf?
03:21<@peter1138>It's okay, it stopped.
04:09<LordAro>i'm tempted to leave #7067 until it's a bit bigger than a couple of characters
04:20<@peter1138>Hmm, yes.
04:20<andythenorth>I wondered same
04:20<andythenorth>I see other coment typos
04:20<andythenorth>but then eh, why queue it up? :)
04:20<andythenorth>just ship it, no cost
04:21<@peter1138>There is that.
04:21<@peter1138>Hmm, so I think a std::stack is going to be impossible to save.
04:33<Eddi|zuHause>why?
04:33-!-D-HUND is now known as debdog
04:41<crem1>Because its interface doesn't allow accessing middle of stack!
04:41<crem1>But why does someone use std::stack?..
04:42<crem1>Hm and why am I 1!
04:42-!-crem1 is now known as crem
04:44-!-andythenorth is now known as andythenorth99
04:50<Eddi|zuHause>but why would you need to access the middle? in the save-thread can't you just unroll the stack?
04:56<crem>I have no context about the issue at all, but if you need to keep std::stack in old state after saving, you have to unroll it to some temporary structure and then roll back into the stack.
05:02<Eddi|zuHause>well, we fork() so i thought that would take care of that, but surely there's also a way to duplicate a stack without needing any internals
05:03<crem>Maybe I need some context. :) Is it about openttd? Is about saving a game? Do you fork() on save? How does it work on windows?
05:07<Eddi|zuHause>yes, yes, yes, no clue
05:07<Eddi|zuHause>also no clue how it works when threading is disabled
05:08<@peter1138>Well anyway, our saveload system is a bit static...
05:08<@peter1138>I didn't figure how to save a std::bitset either :)
05:08<crem>forking for save is smart! :) But I'm curious how it would work on windows..
05:08<crem>As string. :-P
05:09<Eddi|zuHause>peter1138: i'd maybe look at how cargodist data is stored?
05:09<Eddi|zuHause>peter1138: the file format surely supports more "dynamic" stuff
05:10<@peter1138>Are you sure it's a fork? I thought it was a thread.
05:10-!-andythenorth99 [~andytheno@cpc87219-aztw31-2-0-cust178.18-1.cable.virginm.net] has quit [Quit: andythenorth99]
05:10<Eddi|zuHause>i was pretty sure it's a fork until you said that
05:11<Eddi|zuHause>i'm not going to check right now, i should be going
05:17<@peter1138>And no.
05:17<@peter1138>The threading part is only used to compress the savegame which has already been made in memory.
05:17<@peter1138>We don't duplicate game state for saving.
05:18<Eddi|zuHause>weird, how did i get that idea then?
05:44<@peter1138>So yeah, unrolling a stack is not impossible but still effort. If I use a fixed array with a position, it's simpler.
05:45<@peter1138>I suppose an alternative is to invalidate the cache when saving (in multiplayer (if a client is joining))
05:47<@peter1138>https://stackoverflow.com/questions/4346010/copy-stdstack-into-an-stdvector
05:47<@peter1138>Or that may be a start.
05:47<@peter1138>Of course, we can't saveload std::vectors either at the moment.
05:48<Eddi|zuHause>so, how does cargodist save all its weird datastructures
06:03<LordAro>peter1138: just save it in reverse order? (copy and pop everything)
06:03<LordAro>makes it easier to load as well
06:04<@peter1138>linkgraph is stored in a pool, not a std::anything.
06:04<@peter1138>LordAro, the more I think on it the more I feel this is just a workaround and a sloppy 'solution'
06:05<@peter1138>I'm wondering if an order-based solution is better, but then conditional orders confuse that too.
06:05<LordAro>peter1138: sorry, which bit is the workaround?
06:05-!-andythenorth [~andytheno@81.171.232.172] has joined #openttd
06:05-!-andythenorth is "andythenorth" on #openttd
06:05<@peter1138>caching the path.
06:05<LordAro>right
06:06<@peter1138>And it's only possible because ships don't collide with either other.
06:08<LordAro>could do it for aircraft as well :p
06:12<DorpsGek_II>[OpenTTD/OpenTTD] Gabda87 updated pull request #7047: Add #6887: Highlight tiles within local authority of towns https://git.io/fhn44
06:15<andythenorth>ha ha wtf is this? https://wiki.openttd.org/NewGRF_Recommended_Standards
06:15<andythenorth>I have no memory of that
06:19-!-Mahjong1 [~qq@2a00:23c5:6526:4400:90a6:fc8d:3aad:874b] has joined #openttd
06:19-!-Mahjong1 is "realname" on #ohnx #openttd
06:26-!-Mahjong [~qq@2a00:23c5:6526:4400:90a6:fc8d:3aad:874b] has quit [Ping timeout: 480 seconds]
06:36<@peter1138> heh
06:45<Eddi|zuHause>i'm not sure if this "get going" stuff is working
06:46<andythenorth>?
06:48<@peter1138>10:11 < Eddi|zuHause> i'm not going to check right now, i should be going
06:48<@peter1138>So...
06:48<@peter1138>Unless you mean something else.
06:48<Eddi|zuHause>yes, that
06:54-!-chomwitt [~chomwitt@ppp-94-69-11-136.home.otenet.gr] has quit [Quit: WeeChat 1.6]
07:40<AKTheKnight>Hmm, peter1138, are you in the south east then? I'm trying to narrow down where you are based on the snow. We had none where I am
07:41<LordAro>just had the tiniest amount of snow up in york
07:46-!-snail_UES_ [~snail_UES@cpe-98-14-137-148.nyc.res.rr.com] has joined #openttd
07:46-!-snail_UES_ is "Jacopo Coletto" on #openttd
07:49-!-snail_UES_ [~snail_UES@cpe-98-14-137-148.nyc.res.rr.com] has quit []
07:55<DorpsGek_II>[OpenTTD/OpenTTD] michicc updated pull request #6980: GDI engine for font glyph rendering as a replacement for FreeType https://git.io/fpEtn
07:56<@peter1138>michi_cc, just a rebase right?
07:57<DorpsGek_II>[OpenTTD/OpenTTD] michicc commented on pull request #6980: GDI engine for font glyph rendering as a replacement for FreeType https://git.io/fh81V
07:58<+michi_cc>peter1138: Yes, just to get the CI changes in.
07:58<@peter1138>*nod*
08:01<LordAro>that'd be nice to have, i think
08:02<LordAro>presumably it'd work with mingw?
08:02<@peter1138>"This is a semi-serious PR" Hmm!
08:03<@peter1138>LordAro, should do, it only removes dependencies, no new ones.
08:04-!-Flygon [~Flygon@114-198-99-240.dyn.iinet.net.au] has quit [Remote host closed the connection]
08:09<+michi_cc>peter1138: It still is, in the sense that I don't expect it to be merged unconditionally. The contents itself is definitely serious.
08:10<@peter1138>Hmm, that's not what "semi-serious" means to me.
08:10<+michi_cc>But it fixes a bug now, unless somebody is inclined to dig into freetype.
08:10<@peter1138>The PR system is designed for things not to be merged unconditionally :-)
08:13<+michi_cc>The PR was a case of removing generic code in favour of platform-specific code without any benefit (it has one now).
08:14<+michi_cc>Not something that makes really sense unless there are advantages.
08:17-!-Samu [Samu@pa4-84-91-142-34.netvisao.pt] has joined #openttd
08:17-!-Samu is "..." on #openttd
08:18<@peter1138>:-)
08:18<@peter1138>True, removing a dependency at the expense of platform specific code is maybe not a good idea.
08:18<@peter1138>(By itself)
08:19<@peter1138>https://i.imgur.com/tb7pMCx.gifv
08:20<Eddi|zuHause>that happens when your robot has no safety features
08:22<Samu>hi
08:22-!-CZTR [~Vasatko@94.124.104.154] has joined #openttd
08:22-!-CZTR is "realname" on #openttd
08:23<CZTR>Please, can someone help us with CZTR bridges? I have problem with m4nfo. Ends with 'Insufficient meta-data' but sprite looks good: /home/vasatko/_data/bridges/output/sprites/PLACEHOLDER.png 8bpp 0 0 32 32 0 0 normal
08:24<@planetmaker>not sure anyone here speaks m4nfo
08:24<@peter1138>Nope, never seen it.
08:24<CZTR>ok, but its normal NFO and error is from grfcodec
08:33<@peter1138>If that's the complete line, then it's missing the 'sprite' number.
08:33<@peter1138>The one at the beginning which is normally just -1 these days.
08:36<Eddi|zuHause>CZTR: some more context might help
08:36-!-Gabda [~yaaic@2A00111001313BA7000000462DE46A01.mobile.pool.telekom.hu] has joined #openttd
08:36-!-Gabda is "Gabda" on #openttd
08:36<Gabda>hi
08:37<Gabda>the map cache is getting close to its first final form :)
08:37<Eddi|zuHause>is it over 9000 yet?
08:38<Gabda>not yet ready to beat a saiyan
08:39<@peter1138>CZTR, don't PM me.
08:43<CZTR>peter1138: yes, only sprite number miss (its not depend on sprite number), prefix of this line is '16 ' and complete line is: 16 /home/vasatko/_data/bridges/output/sprites/PLACEHOLDER.png 8bpp 0 0 32 32 0 0 normal
08:44<CZTR>peter1138: but i see TABulators before sprite number, is it problem (this NFO is generated by m4nfo and in m4nfo i havent tabulators in this line)?
08:49<Eddi|zuHause>that should not be a problem
08:54-!-sla_ro|master [~sla.ro@84.117.88.126] has joined #openttd
08:54-!-sla_ro|master is "slamaster" on #sla #openttd
08:58<@peter1138>Probably need to show (use a paste site!) more of the code for some context, as Eddi|zuHause said.
09:10<CZTR>ok, but how can i send file?
09:11<Eddi|zuHause>https://paste.openttdcoop.org
09:12<CZTR>or http://vasatko.net/download/ottd/CZTR_bridges.nfo
09:14<CZTR>http://vasatko.net/download/ottd/ottd_nfo_problem.png is screenshot of grfcodec error
09:14<Eddi|zuHause>"A portion of sprite 15 could not be processed."
09:14<Eddi|zuHause>so the error is in the line above
09:15<Eddi|zuHause>"//!!Error (68): An action 8 must precede action 4."
09:17<Eddi|zuHause>CZTR: try to run nforenum
09:20<Eddi|zuHause>"//!!Could not read ypos from apparent real sprite."
09:21<Eddi|zuHause>CZTR: the "8bpp" seems to be wrong there
09:23<Eddi|zuHause>CZTR: you're trying to compile as "Info version 7" when the syntax you use is version 32
09:24<Eddi|zuHause>(2nd line of the file header)
09:25<CZTR><Eddi|zuHause>: run nfornum: super thank you i see errors now, thanks thanks thanks || and about version 7 vs 32, its autofilled from m4nfo, but ok, i will try all and again thank you!!!
09:26<CZTR>i muset end now (i have sicked children)
09:26<Eddi|zuHause>CZTR: you should talk to the author about a version of m4nfo that generates version 32
09:27<CZTR>author (Michael Blunck) not comunicate until december. I dont know why (before comunicating normally)
09:28<CZTR>Realy thank you, i will try fix all erorrs from nforenum
09:29<DorpsGek_II>[OpenTTD/OpenTTD] nikolas updated pull request #7067: Fix: typo in code comment: Unitializes -> Uninitializes https://git.io/fh8vS
09:32<@peter1138>LordAro, ^
09:32<DorpsGek_II>[OpenTTD/OpenTTD] nikolas updated pull request #7067: Fix: a few comment typos https://git.io/fh8vS
09:32<LordAro>heh
09:32<DorpsGek_II>[OpenTTD/OpenTTD] SamuXarick updated pull request #6928: Fix #5713: Use pathfinder to find closest ship depot https://git.io/fhZzm
09:33-!-heffer_ [felix@juno.vfn-nrw.de] has joined #openttd
09:33-!-heffer_ is "Felix Kaechele" on #openttd
09:33<nnyby>hehe, i updated that typo PR based on thoughts here :P
09:33<LordAro>ah, you are the same person
09:33<nnyby>yeah
09:33<LordAro>i suspected, but wasn't certain
09:35<DorpsGek_II>[OpenTTD/OpenTTD] PeterN commented on issue #7060: NPF refuses to pathfind when the destination tile is the same as where the vehicle currently is https://git.io/fh85f
09:39-!-heffer [felix@juno.vfn-nrw.de] has quit [Ping timeout: 480 seconds]
09:46-!-nielsm [~nielsm@176-23-103-56-cable.dk.customer.tdc.net] has joined #openttd
09:46-!-nielsm is "Niels Martin Hansen" on #openttd
09:51-!-heffer_ [felix@juno.vfn-nrw.de] has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
09:53-!-heffer [felix@juno.vfn-nrw.de] has joined #openttd
09:53-!-heffer is "Felix Kaechele" on #openttd
09:56-!-HerzogDeXtEr [~farci@dslb-188-103-243-135.188.103.pools.vodafone-ip.de] has joined #openttd
09:56-!-HerzogDeXtEr is "purple" on #openttd
09:59<DorpsGek_II>[OpenTTD/OpenTTD] nikolas commented on issue #7059: Town name language choice affects number of towns / world population https://git.io/fh8bW
10:56-!-Wormnest [~Wormnest@35.136.176.177] has joined #openttd
10:56-!-Wormnest is "Wormnest" on #openttd
10:58<DorpsGek_II>[OpenTTD/OpenTTD] glx22 commented on issue #7032: Ugly regular font after FreeType update https://git.io/fh8jW
11:03-!-WWacko1976-work [~IceChat9@ip-80-113-66-42.ip.prioritytelecom.net] has quit [Ping timeout: 480 seconds]
11:09-!-Gabda [~yaaic@2A00111001313BA7000000462DE46A01.mobile.pool.telekom.hu] has quit [Ping timeout: 480 seconds]
11:15<DorpsGek_II>[OpenTTD/OpenTTD] PeterN commented on issue #7032: Ugly regular font after FreeType update https://git.io/fh4fc
11:16-!-Thedarkb-T60 [~Thedarkb-@86-40-231-252-dynamic.agg3.kny.prp-wtd.eircom.net] has joined #openttd
11:16-!-Thedarkb-T60 is "realname" on #oolite #openttd
11:30-!-Gja [~Martin@93-167-84-102-static.dk.customer.tdc.net] has joined #openttd
11:30-!-Gja is "Martin" on #ceph #bcache #openttd
11:45<Samu>there is a do while, but I need the opposite, while, do? does it exist?
11:46<Samu>need to check earlier
11:49<nnyby>would a for loop work?
11:51<DorpsGek_II>[OpenTTD/OpenTTD] glx22 opened pull request #7069: Fix #7032: use the same mode to load and render glyphs https://git.io/fh4IB
11:53-!-glx [kvirc@000128ec.user.oftc.net] has joined #openttd
11:53-!-mode/#openttd [+v glx] by ChanServ
11:53-!-glx is "Loïc GUILLOUX" on +#openttd
11:58<Taede>samu: afaik its just 'while (condition) { code }'
12:04<DorpsGek_II>[OpenTTD/OpenTTD] planetmaker commented on issue #7032: Ugly regular font after FreeType update https://git.io/fh4t7
12:09<Samu>must find a way to convert/combine a DiagDirection and a Track into a Trackdir
12:09<Samu>halp
12:09<Samu>:9
12:09-!-Wormnest [~Wormnest@35.136.176.177] has quit [Ping timeout: 480 seconds]
12:09<Samu>i have a track
12:09<Samu>i have a diagdirection
12:10-!-andythenorth [~andytheno@81.171.232.172] has left #openttd []
12:12<Samu>static inline Trackdir TrackExitdirToTrackdir(Track track, DiagDirection diagdir)
12:12<Samu>static inline Trackdir TrackEnterdirToTrackdir(Track track, DiagDirection diagdir)
12:12<Samu>it's one of these, must think
12:14<Samu>actually, I don't have a track, i'm doomed
12:15<Samu>I have TrackBits
12:23-!-Thedarkb-T60 [~Thedarkb-@86-40-231-252-dynamic.agg3.kny.prp-wtd.eircom.net] has quit [Ping timeout: 480 seconds]
12:25<Samu>aha, this is what I want DiagDirToDiagTrackdir(dir);
12:26-!-Thedarkb-T60 [~Thedarkb-@86-40-231-252-dynamic.agg3.kny.prp-wtd.eircom.net] has joined #openttd
12:26-!-Thedarkb-T60 is "realname" on #openttd #oolite
12:30<Samu>attempting to make forbid 90 deg work on opf
12:43-!-Borg [~borg@87-99-43-52.internetia.net.pl] has joined #openttd
12:43-!-Borg is "Unknown" on #openttd
12:44<DorpsGek_II>[OpenTTD/OpenTTD] Gabda87 commented on pull request #7047: Add #6887: Highlight tiles within local authority of towns https://git.io/fh4Oy
12:45-!-Gabda [~oftc-webi@catv-80-98-39-136.catv.broadband.hu] has joined #openttd
12:45-!-Gabda is "OFTC WebIRC Client" on #openttd
12:46<LordAro>Gabda: yea please
12:46<LordAro>yes*
12:48<Gabda>ok
12:48<Gabda>I'll split it tomorrow then
12:48<LordAro>:)
12:49<Gabda>force push will work the same way, or I have to do assign the 2 new commits to the PR manually?
12:52<LordAro>force push will work fine
12:53-!-HerzogDeXtEr [~farci@dslb-188-103-243-135.188.103.pools.vodafone-ip.de] has quit [Read error: Connection reset by peer]
12:57-!-Thedarkb1-T60 [~Thedarkb-@86-40-231-252-dynamic.agg3.kny.prp-wtd.eircom.net] has joined #openttd
12:57-!-Thedarkb1-T60 is "realname" on #openttd #oolite
12:58<Samu>peter1138, you can use !IsDiagonalTrack here https://github.com/OpenTTD/OpenTTD/blob/master/src/ship_cmd.cpp#L465
12:58-!-Thedarkb-T60 [~Thedarkb-@86-40-231-252-dynamic.agg3.kny.prp-wtd.eircom.net] has quit [Ping timeout: 480 seconds]
13:12-!-Thedarkb1-T60 [~Thedarkb-@86-40-231-252-dynamic.agg3.kny.prp-wtd.eircom.net] has quit [Read error: Connection reset by peer]
13:13-!-Thedarkb1-T60 [~Thedarkb-@86-40-231-252-dynamic.agg3.kny.prp-wtd.eircom.net] has joined #openttd
13:13-!-Thedarkb1-T60 is "realname" on #openttd #oolite
13:20-!-Progman [~progman@p4FD6647D.dip0.t-ipconnect.de] has joined #openttd
13:20-!-Progman is "Peter Henschel" on #openttdcoop.dev #openttd
13:22-!-andythenorth [~andytheno@cpc87219-aztw31-2-0-cust178.18-1.cable.virginm.net] has joined #openttd
13:22-!-andythenorth is "andythenorth" on #openttd
13:22<nielsm>okay tried using a different opl3 emulator, sound quality is approximately the same as with the other, so def. something very wrong with my code
13:28-!-Thedarkb1-T60 [~Thedarkb-@86-40-231-252-dynamic.agg3.kny.prp-wtd.eircom.net] has quit [Ping timeout: 480 seconds]
13:35<@peter1138>Samu, PR it then :p
13:41<@peter1138>Hmm, even a 32 tile path cache helps massively.
13:42<+glx>any cache should help if it prevents recalculation on each tile
13:46-!-Thedarkb1-T60 [~Thedarkb-@86-40-231-252-dynamic.agg3.kny.prp-wtd.eircom.net] has joined #openttd
13:46-!-Thedarkb1-T60 is "realname" on #openttd #oolite
13:46-!-Lejving [~Lejving@81-233-148-192-no524.tbcn.telia.com] has joined #openttd
13:46-!-Lejving is "realname" on @#openttdcoop.pz #mashinky #factoriocoop #/r/openttd #openttd
13:46<@peter1138>So any ideas how to saveload a std::stack? :D
13:47<@peter1138>Or should I convert it to a fixed array with a position reference?
13:51<+glx>use a std:deque like a std::stack
13:52<+glx>it has iterators
13:53<DorpsGek_II>[OpenTTD/OpenTTD] nikolas commented on issue #6173: Add support for SDL2 https://git.io/fh4CC
13:55-!-gelignite [~gelignite@55d4dd9d.access.ecotel.net] has joined #openttd
13:55-!-gelignite is "gelignite" on #openttd
13:58<nielsm>peter1138, a fixed size array is probably much easier
13:58<nielsm>otherwise I think adding a new top-level structure to the savegame, containing cached paths, sounds like the way to go
13:59<+michi_cc>peter1138: Have you already tried the most simple possible cache, i.e. just trackdir + number of tiles to follow?
14:00<andythenorth>'go NW for 6 tiles, checking next tile each time in case it's not water'
14:00<andythenorth>that's how I used to code flash games when making the alien baddies move was a CPU hog
14:01<andythenorth>you end up with Roomba style bump-steer navigation :P
14:01<andythenorth>some ships do actually navigate by coast following
14:02-!-frosch123 [~frosch@00013ce7.user.oftc.net] has joined #openttd
14:02-!-frosch123 is "frosch" on +#openttd.dev #openttd
14:05-!-Borg [~borg@87-99-43-52.internetia.net.pl] has quit [Quit: leaving]
14:19<@peter1138>michi_cc, nope.
14:20<@peter1138>michi_cc, i'll give it a go
14:21<@peter1138>and trackdir will be implicit anyway, i reckon
14:48<@peter1138>michi_cc, well...
14:48<@peter1138>michi_cc, it's faster.
14:48<@peter1138>michi_cc, and simpler...
14:48<@peter1138>ah, and broken :D
14:54<andythenorth>broken is nicer
14:56<@peter1138>Hmm, is there a TrackdirToDirection function I'm missing?
14:56<LordAro>peter1138: i'm imagining a ship just slowly moving across the land
14:57<frosch123>TrackdirToExitdir ?
14:58<frosch123>no matching enterdir though
14:58<+glx>LordAro: should be possible for hovercraft
15:06<@peter1138>frosch123, I want Direction, not DiagDirection.
15:14<nielsm>hmm, I suppose the difference between "bytevalue" and "(bytevalue * 127) >> 7" can be significant, when the result is going to be bittwiddled
15:15-!-Wolf01 [~wolf01@0001288e.user.oftc.net] has joined #openttd
15:15-!-Wolf01 is "Wolf01" on #openttd
15:15<Wolf01>o/
15:17<nielsm>now the percussion is starting to sound somewhat right...
15:18-!-Samu [Samu@pa4-84-91-142-34.netvisao.pt] has quit [Ping timeout: 480 seconds]
15:19<nielsm>that's not to say it sounds good, but it's sounding slightly more like percussion than before: https://0x0.st/sh9p.ogg
15:19-!-Samu [Samu@pa4-84-91-142-34.netvisao.pt] has joined #openttd
15:19-!-Samu is "..." on #openttd
15:22<@peter1138>michi_cc, okay, got it working. It's barely faster than not doing it :-(
15:22<@peter1138>66ms down to 58ms
15:22<@peter1138>vs 66ms down to 21ms
15:24<@peter1138>This savegame has some weird situations where routes are blocked by depots.
15:24-!-Gabda [~oftc-webi@catv-80-98-39-136.catv.broadband.hu] has quit [Quit: Page closed]
15:27<nielsm>https://0x0.st/sh9w.png
15:27<@peter1138>Crazy AI I guess.
15:27<nielsm>side-by-side debugging
15:32<nielsm>I may just have found the last bug
15:32<nielsm>an "xor al,1" instruction I missed
15:37<nielsm>yeah this all sounds quite right: https://0x0.st/shpr.ogg
15:37<@peter1138>Sounds better!
15:48<LordAro>very left
15:48<nielsm>made a little mistake when converting from raw dumped samples
15:49<nielsm>it's centered in game :P
15:49<LordAro>chrome thinks otherwise :p
15:49<LordAro>also, the first track seems like it cuts off at about 1:05?
15:50<nielsm>okay wth, this emulator code is stupid slow?
15:50<nielsm>even in the release build it can barely keep up
15:50<nielsm>actually it can't
15:52<nielsm>let's try that with ken silverman's again
15:53<nielsm>yeah that's literally 10x faster
15:55-!-Gja [~Martin@93-167-84-102-static.dk.customer.tdc.net] has quit []
15:56<nielsm>pushed some code to my branch
15:56<nielsm>if anyone else wants to try it
15:57<nielsm>there's still one thing broken, that's dual-tracking (notes played on one track being auto-played on another too, for chorus'y effects and such)
15:59<LordAro>i'm fairly certain no one else has a copy of the relevant files :p
16:00<nielsm>adlib.cat is easy to retrieve from a dos version of tto or ttd :(
16:01<nielsm>this TTDXDEMO.ZIP contains it: https://0x0.st/s75S.ZIP
16:01<@peter1138>So the stack is clearly faster.
16:01<@peter1138>How did we live without this frame rate window? :p
16:01<nielsm>:D
16:02-!-andythenorth [~andytheno@cpc87219-aztw31-2-0-cust178.18-1.cable.virginm.net] has quit [Quit: andythenorth]
16:05<@peter1138>Storing just the number of tiles to move is a bit faster than without, some times.
16:07-!-gelignite [~gelignite@55d4dd9d.access.ecotel.net] has quit [Quit: Good fight, good night!]
16:36-!-sla_ro|master [~sla.ro@84.117.88.126] has quit []
16:40<@peter1138>Hmm./
16:48<milek7>nielsm: for what purpose it is? alternative to midi?
16:50<nielsm>because I can
16:51<nielsm>:)
16:54-!-urdh [~urdh@00013d7a.user.oftc.net] has quit [Quit: Boom!]
16:55<DorpsGek_II>[OpenTTD/OpenTTD] LordAro merged pull request #7057: Fix: A few minor compile warnings under MinGW https://git.io/fhn6E
16:55<LordAro>mwhaha, merged my own PR
16:55<LordAro>fear my power
16:55<DorpsGek_II>[OpenTTD/OpenTTD] LordAro approved pull request #7069: Fix #7032: use the same mode to load and render glyphs https://git.io/fh4rp
16:56<DorpsGek_II>[OpenTTD/OpenTTD] LordAro merged pull request #7069: Fix #7032: use the same mode to load and render glyphs https://git.io/fh4IB
16:56<DorpsGek_II>[OpenTTD/OpenTTD] LordAro closed issue #7032: Ugly regular font after FreeType update https://git.io/fhZzF
16:58<nielsm>ahh now it looks good again :)
16:58<LordAro>i just play with the default font :p
17:00-!-urdh [~urdh@00013d7a.user.oftc.net] has joined #openttd
17:00-!-urdh is "Simon Sigurdhsson" on #oftc #openttd #moocows
17:00<DorpsGek_II>[OpenTTD/OpenTTD] LordAro approved pull request #7067: Fix: a few typos https://git.io/fh4os
17:00<nielsm>by the way I'm having an issue here where no music is playing on the title screen when starting the game, but changing music set in game options causes it to start, and returning to title screen plays the title track... is that a bug in my adlib branch or also in master?
17:00<nielsm>(can't be bothered to switch back to master right now)
17:01<DorpsGek_II>[OpenTTD/OpenTTD] LordAro merged pull request #7067: Fix: a few typos https://git.io/fh8vS
17:05<DorpsGek_II>[OpenTTD/OpenTTD] LordAro requested changes for pull request #7003: Feature #6918: Add option to adjust font size separately from GUI size. https://git.io/fh4oP
17:06<DorpsGek_II>[OpenTTD/OpenTTD] LordAro approved pull request #6988: Change: AI/GS ScriptBridge::GetName takes one extra parameter to refer the vehicle type https://git.io/fh4oD
17:07<DorpsGek_II>[OpenTTD/OpenTTD] LordAro commented on pull request #6988: Change: AI/GS ScriptBridge::GetName takes one extra parameter to refer the vehicle type https://git.io/fh4o7
17:11<LordAro>nielsm: #6956 thoughts? i'm tempted to close :>
17:14<DorpsGek_II>[OpenTTD/OpenTTD] nielsmh closed pull request #6956: Fix #6145: Prevent ships without valid orders from moving https://git.io/fxNMB
17:14<DorpsGek_II>[OpenTTD/OpenTTD] nielsmh commented on pull request #6956: Fix #6145: Prevent ships without valid orders from moving https://git.io/fh4Kr
17:14<LordAro>:)
17:15<nielsm>but I still think it's dumb to have ships just sail at random when they have no orders
17:16<LordAro>no different to trains or road vehicles
17:16<LordAro>just that ships are less constrained :)
17:17-!-Progman [~progman@p4FD6647D.dip0.t-ipconnect.de] has quit [Remote host closed the connection]
17:17<nielsm>but airplanes refuse to start if they have no orders
17:17<nielsm>though of course don't stop mid-air if you delete their orders
17:21<nielsm>gn
17:25<DorpsGek_II>[OpenTTD/OpenTTD] J0anJosep commented on issue #7060: NPF refuses to pathfind when the destination tile is the same as where the vehicle currently is https://git.io/fh46o
17:28-!-frosch123 [~frosch@00013ce7.user.oftc.net] has quit [Quit: be yourself, except: if you have the opportunity to be a unicorn, then be a unicorn]
17:28<DorpsGek_II>[OpenTTD/OpenTTD] PeterN commented on issue #7060: NPF refuses to pathfind when the destination tile is the same as where the vehicle currently is https://git.io/fh46b
17:29-!-Thedarkb2-T60 [~Thedarkb-@51-171-49-131-dynamic.agg3.kny.prp-wtd.eircom.net] has joined #openttd
17:29-!-Thedarkb2-T60 is "realname" on #openttd #oolite
17:29-!-nielsm [~nielsm@176-23-103-56-cable.dk.customer.tdc.net] has quit [Ping timeout: 480 seconds]
17:34<DorpsGek_II>[OpenTTD/OpenTTD] J0anJosep commented on issue #7060: NPF refuses to pathfind when the destination tile is the same as where the vehicle currently is https://git.io/fh4io
17:36<DorpsGek_II>[OpenTTD/OpenTTD] LordAro approved pull request #7056: Change #6060: Allow drawing dropdown lists with scrollbars above and fix scrolling movement https://git.io/fh4iy
17:36-!-Thedarkb1-T60 [~Thedarkb-@86-40-231-252-dynamic.agg3.kny.prp-wtd.eircom.net] has quit [Ping timeout: 480 seconds]
17:38<DorpsGek_II>[OpenTTD/OpenTTD] LordAro approved pull request #6990: Fix: Correct display of industry requires/produces in Build Industry window https://git.io/fh4ij
17:43-!-Wolf01 [~wolf01@0001288e.user.oftc.net] has quit [Quit: Once again the world is quick to bury me.]
18:02<DorpsGek_II>[OpenTTD/OpenTTD] LordAro approved pull request #7023: Use some consistency for project dependencies determination https://git.io/fh4XN
18:02<DorpsGek_II>[OpenTTD/OpenTTD] LordAro merged pull request #7023: Use some consistency for project dependencies determination https://git.io/fhsl7
18:04-!-Thedarkb2-T60 [~Thedarkb-@51-171-49-131-dynamic.agg3.kny.prp-wtd.eircom.net] has quit [Ping timeout: 480 seconds]
18:06<DorpsGek_II>[OpenTTD/OpenTTD] J0anJosep commented on pull request #7065: Change: Make ships stop and change direction slowly instead of instantly turning. https://git.io/fh413
18:07<DorpsGek_II>[OpenTTD/OpenTTD] J0anJosep commented on pull request #7065: Change: Make ships stop and change direction slowly instead of instantly turning. https://git.io/fh41C
18:41-!-APTX_ [~APTX@pl42803.ag1212.nttpc.ne.jp] has quit [Quit: Farewell]
18:41-!-APTX [~APTX@2001:470:24:137f:2ff:ffff:fe00:1] has joined #openttd
18:41-!-APTX is "APTX" on #kernelnewbies #openttd
18:44-!-Thedarkb2-T60 [~Thedarkb-@51-171-49-131-dynamic.agg3.kny.prp-wtd.eircom.net] has joined #openttd
18:44-!-Thedarkb2-T60 is "realname" on #openttd #oolite
18:44-!-APTX [~APTX@2001:470:24:137f:2ff:ffff:fe00:1] has quit []
18:45-!-APTX [~APTX@2001:470:24:137f:2ff:ffff:fe00:1] has joined #openttd
18:45-!-APTX is "APTX" on #kernelnewbies #openttd
18:46<Samu>doing 90 deg for ops is not becoming an easy task :(
18:46<Samu>i still fail to understand how this whole thing works
18:48-!-APTX [~APTX@2001:470:24:137f:2ff:ffff:fe00:1] has quit []
18:48-!-APTX [~APTX@2001:470:24:137f:2ff:ffff:fe00:1] has joined #openttd
18:48-!-APTX is "APTX" on #openttd #kernelnewbies
18:50-!-APTX [~APTX@2001:470:24:137f:2ff:ffff:fe00:1] has quit []
18:50-!-APTX [~APTX@2001:470:24:137f:2ff:ffff:fe00:1] has joined #openttd
18:50-!-APTX is "APTX" on #openttd #kernelnewbies
18:51-!-tokai [~tokai@00012860.user.oftc.net] has joined #openttd
18:51-!-mode/#openttd [+v tokai] by ChanServ
18:51-!-tokai is "Christian Rosentreter" on +#openttd
18:58-!-Samu [Samu@pa4-84-91-142-34.netvisao.pt] has quit [Ping timeout: 480 seconds]
18:58-!-tokai|noir [~tokai@00012860.user.oftc.net] has quit [Ping timeout: 480 seconds]
18:58-!-Samu [Samu@pa4-84-91-142-34.netvisao.pt] has joined #openttd
18:58-!-Samu is "..." on #openttd
19:04<DorpsGek_II>[OpenTTD/website] LordAro approved pull request #19: typo fix: idillic -> idyllic https://git.io/fh4Sg
19:05<DorpsGek_II>[OpenTTD/website] LordAro merged pull request #19: typo fix: idillic -> idyllic https://git.io/fhcoV
19:08-!-Flygon [~Flygon@114-198-99-240.dyn.iinet.net.au] has joined #openttd
19:08-!-Flygon is "Flygon" on #openttd
19:12<@peter1138>Hmm, non-stack is slower.
19:12<@peter1138>I wonder where I messed up :p
19:13<@peter1138>Oh shit, way too late, night night
19:33-!-Thedarkb-X40 [~beno@51-171-49-131-dynamic.agg3.kny.prp-wtd.eircom.net] has joined #openttd
19:33-!-Thedarkb-X40 is "realname" on #openttd #/r/openttd #oolite
19:40-!-Thedarkb2-T60 [~Thedarkb-@51-171-49-131-dynamic.agg3.kny.prp-wtd.eircom.net] has quit [Ping timeout: 480 seconds]
19:41-!-snail_UES_ [~snail_UES@cpe-98-14-137-148.nyc.res.rr.com] has joined #openttd
19:41-!-snail_UES_ is "Jacopo Coletto" on #openttd
21:02<Samu>i think i made it
21:02<Samu>90 degrees for opf
21:02<Samu>still wanna make sure
21:16-!-HerzogDeXtEr [~farci@dslb-188-103-243-135.188.103.pools.vodafone-ip.de] has joined #openttd
21:16-!-HerzogDeXtEr is "purple" on #openttd
21:59<Samu>hmm, there are some situations where it's ideal for opf not to reverse based on bird_dist
22:19-!-HerzogDeXtEr [~farci@dslb-188-103-243-135.188.103.pools.vodafone-ip.de] has quit [Read error: Connection reset by peer]
22:20-!-HerzogDeXtEr [~farci@dslb-188-103-243-135.188.103.pools.vodafone-ip.de] has joined #openttd
22:20-!-HerzogDeXtEr is "purple" on #openttd
22:26-!-HerzogDeXtEr [~farci@dslb-188-103-243-135.188.103.pools.vodafone-ip.de] has quit [Read error: Connection reset by peer]
22:26-!-Wormnest [~Wormnest@35.136.176.177] has joined #openttd
22:26-!-Wormnest is "Wormnest" on #openttd
22:28-!-HerzogDeXtEr [~farci@dslb-188-103-243-135.188.103.pools.vodafone-ip.de] has joined #openttd
22:28-!-HerzogDeXtEr is "purple" on #openttd
22:31-!-HerzogDeXtEr [~farci@dslb-188-103-243-135.188.103.pools.vodafone-ip.de] has quit [Read error: Connection reset by peer]
22:56-!-Wormnest [~Wormnest@35.136.176.177] has quit [Ping timeout: 480 seconds]
22:58-!-D-HUND [~debdog@2a00:79c0:62d:3e00:7a24:afff:fe8a:d04d] has joined #openttd
22:58-!-D-HUND is "Wowbagger" on #openttd #bitlbee
23:01-!-debdog [~debdog@2a00:79c0:602:5b00:7a24:afff:fe8a:d04d] has quit [Ping timeout: 480 seconds]
23:06-!-Samu [Samu@pa4-84-91-142-34.netvisao.pt] has quit []
23:16-!-glx [kvirc@000128ec.user.oftc.net] has quit []
23:29-!-Thedarkb-X40 [~beno@51-171-49-131-dynamic.agg3.kny.prp-wtd.eircom.net] has quit [Ping timeout: 480 seconds]
23:47-!-snail_UES_ [~snail_UES@cpe-98-14-137-148.nyc.res.rr.com] has quit [Quit: snail_UES_]
23:52-!-tokai|noir [~tokai@00012860.user.oftc.net] has joined #openttd
23:52-!-mode/#openttd [+v tokai|noir] by ChanServ
23:52-!-tokai|noir is "Christian Rosentreter" on +#openttd
23:59-!-tokai [~tokai@00012860.user.oftc.net] has quit [Ping timeout: 480 seconds]
---Logclosed Fri Jan 18 00:00:26 2019