Back to Home / #openttd / 2022 / 01 / Prev Day | Next Day
#openttd IRC Logs for 2022-01-02

---Logopened Sun Jan 02 00:00:11 2022
00:35<supermop_Home>ok i got that to work. now i have cute little tropic houses
00:47-!-_aD [~quadrant@0001362b.user.oftc.net] has quit [Quit: leaving]
01:54-!-OsteHovel [~OsteHovel@0002bf4f.user.oftc.net] has joined #openttd
01:54-!-OsteHovel is "realname" on #debian #openttd
02:28-!-snail_UES_ [~snail_UES@cpe-98-14-137-148.nyc.res.rr.com] has quit [Quit: snail_UES_]
03:12-!-D-HUND is now known as debdog
03:32-!-WormnestAndroid [~WormnestA@35.136.189.95] has quit [Remote host closed the connection]
03:34-!-Xaroth [~Xaroth@00017153.user.oftc.net] has quit [Ping timeout: 480 seconds]
03:35-!-OsteHovel [~OsteHovel@0002bf4f.user.oftc.net] has quit [Ping timeout: 480 seconds]
03:38-!-nielsm [~nielsm@188-181-82-243-cable.dk.customer.tdc.net] has joined #openttd
03:38-!-nielsm is "Niels Martin Hansen" on #openttd
03:42-!-andythenorth [~andytheno@cpc87165-aztw31-2-0-cust40.18-1.cable.virginm.net] has joined #openttd
03:42-!-andythenorth is "andythenorth" on #openttd
04:01-!-andythenorth [~andytheno@cpc87165-aztw31-2-0-cust40.18-1.cable.virginm.net] has quit [Quit: andythenorth]
04:06-!-jottyfan [~Thunderbi@dynamic-077-013-020-079.77.13.pool.telefonica.de] has joined #openttd
04:06-!-jottyfan is "jottyfan" on #openttd
04:12-!-andythenorth [~andytheno@cpc87165-aztw31-2-0-cust40.18-1.cable.virginm.net] has joined #openttd
04:12-!-andythenorth is "andythenorth" on #openttd
04:15<@peter1138>oh
04:43-!-Xaroth [~Xaroth@00017153.user.oftc.net] has joined #openttd
04:43-!-Xaroth is "Xaroth Brook" on #openttd +#openttd.dev
05:02-!-sla_ro|master [~sla.ro@93.118.46.75] has joined #openttd
05:02-!-sla_ro|master is "slamaster" on @#sla #openttd
05:44-!-quinibuzz [~oftc-webi@228.100.133.37.dynamic.jazztel.es] has joined #openttd
05:44-!-quinibuzz is "OFTC WebIRC Client" on #openttd
05:47<quinibuzz>I got an error "Unexpected end-of-file." when I was trying to upload a simple scenario in BaNaNaS. It´s a heightmap with real cities in the right place. Anyone can help me?
05:50-!-Wolf01 [~wolf01@0001288e.user.oftc.net] has joined #openttd
05:50-!-Wolf01 is "Wolf01" on #openttd
05:57<LordAro>quinibuzz: what version have you used to create this?
06:03<quinibuzz>last one
06:03<quinibuzz>12.1
06:03<LordAro>that's not a version
06:03<LordAro>hmm
06:03<Wolf01>Classic
06:03<LordAro>the file upload could've failed, i suppose
06:04<LordAro>have you tried more than once?
06:04<quinibuzz>yes
06:04<quinibuzz>I changed the file name also
06:04<LordAro>bananas scenario upload does some basic parsing of the file to make sure its valid
06:04<LordAro>i suppose it's possible something's been missed somewhere
06:05<FLHerne>quinibuzz: Can you upload the .scn somewhere else so we can look at it?
06:05<quinibuzz>sure
06:06<quinibuzz>https://drive.google.com/file/d/1m1LtA7zJRf5tXNI0Dx0DwTg4CqCujmLK/view?usp=sharing
06:07<quinibuzz>I just want to share with the commuty something I was missing for myself. It´s just a simple heightmap of Spain with the province capitals in it.
06:15<quinibuzz>I have to leave. Thanks for the help. I will try again later. Have a nice day.
06:15-!-quinibuzz [~oftc-webi@228.100.133.37.dynamic.jazztel.es] has quit [Quit: Page closed]
06:16<andythenorth>4 million cargos when?
06:17<SpComb>24-bit cargo depth
06:22-!-roadt_ [~roadt@117.64.146.219] has quit [Ping timeout: 480 seconds]
06:23-!-roadt_ [~roadt@117.64.146.219] has joined #openttd
06:23-!-roadt_ is "roadt" on #openttd
06:33<andythenorth>meh
06:33<andythenorth>weird cargo scaling is weird
07:08<@peter1138>new map array when?
07:10<TrueBrain>I expect michi_cc to work on that next :p
07:11<@peter1138>templated magic everywhere :D
07:13<TrueBrain>go big or go home, right? :D
07:13<+michi_cc>TrueBrain: Bit outdated and not all I have somewhere, but... https://github.com/michicc/OpenTTD/commits/newmap
07:13<TrueBrain>I rest my case ;)
07:14<TrueBrain>I love the "Exterminate TileExtended" commit
07:14<TrueBrain>sounds like a good start :P
07:16<TrueBrain>I always wonder what these kind of changes do for the speed of the game
07:16<TrueBrain>if it has any real impact or not
07:18<andythenorth>profiling!
07:18<TrueBrain>michi_cc: do I get it right that in your idea you basically daisy chain structs on a single tile?
07:18*andythenorth might rage quit FIRS for a bit :P
07:18<andythenorth>oof
07:18<andythenorth>cargo flow brain mess
07:20<+michi_cc>TrueBrain: Yes, which is close to what Chris Sawyer did for RCT and Lomo.
07:21<TrueBrain>its a nice idea
07:21<+michi_cc>When all the rearranging is done, the tile structure itself should become quite a bit smaller, which hopefully averages out to not more memory than now.
07:21<TrueBrain>memory is not that relevant anymore
07:21<TrueBrain>CPU however ... :P
07:26<_dp_>memory is kinda important for servers that run multiple instances
07:26<_dp_>but yeah, cpu is way more important in general, especially in the vehicle ticks
07:33<nielsm>the reason for splitting the landscape up has originally been to make lookups faster, iirc: multiple of 8 instead of multiple of 12 per tile... but what that does for cache lines is another question
07:34<nielsm>and is modern hardware really slower at multiplying by 12 for an address lookup than the loss of memory locality for the two parts of the tile structure?
07:34<TrueBrain>we checked that pretty recently
07:34<TrueBrain>performance dropped like a mofo :P
07:35<nielsm>how bad would it be to just add another 4 bytes to the landscape instead? :D
07:35<nielsm>it's just another 64 MB for a 4096 square map
07:35<nielsm>!!!!
07:36<TrueBrain>yeah, memory is nothing to really worry about ;)
07:36<_dp_>unbitstuffing some stuff can probably also help the performance
07:37<TrueBrain>but mainly I was wondering what michi_cc 's branch does performance wise .. better? worse? Lot better? Lot worse? :) Or do you first need to finish everything before you can say anything about that?
07:37<_dp_>also adding some stuff that didn't fit like snow layer for objects and industries
07:40<nielsm>how would it work if the landscape was changed to be an array of most basic things (height level, ???) and then a field denoting tile type followed by an index into an array chosen by the tile type
07:40<@Rubidium>it's not only the memory and CPU instructions that count, but cache locality probably counts even more
07:40<nielsm>not quite stacked landscape, but having e.g. an array of clear land tiles, an array of farmland tiles, an array of road tiles, an array of rail station tiles, etc
07:41<nielsm>and level crossings could possibly be done as a level crossing tile type that points to a road tile and a rail tile, to allow full data for each
07:42<_dp_>not sure about farmland but separating infra would be nice
07:42<_dp_>infra can even be 3d actually
07:43<_dp_>may not even need pointers from the land array as there are plenty of structures that can do range queries
07:43<_dp_>and it doesn't seem that frequently needed
07:44<+michi_cc>TrueBrain: In the state you can see (or the state I have locally) performance will definitely be worse. In the end it will probably still have a hit, but hopefully one that is not too large.
07:44<TrueBrain>pretty nifty
07:45<TrueBrain>its funny you recycle an idea of the original author of TT :P
07:45<TrueBrain>that has some irony
07:55<_dp_>michi_cc, your map structure looks very much like a hash table
07:55<_dp_>and not the most effecient kind...
07:57<+michi_cc>_dp_: It's not a hash table. It's an array of arrays, and the order of the sub-tiles matters very much.
07:58<TrueBrain>what do you need to actually finish that michi_cc ? And do you consider it viable? :)
07:58<_dp_>michi_cc, array of arrays is one of the ways to make a hash table
07:58<_dp_>michi_cc, only difference is that instead of somewhat random hash you have a sequential tile index
08:17<@peter1138>If performance is bad, maybe you'd have to remove 4096x size maps... ;)
08:17<TrueBrain>yes! who added that again?
08:17<TrueBrain>:D
08:19<_dp_>4k map by itself doesn't lag that much, only about the same as 1000 vehicles
08:19<_dp_>2000 if it's a full water map
08:19<+michi_cc>_dp_: Yes, but one of the defining things of a hash table is usually that it is unordered, which the map array isn't at all.
08:23<_dp_>michi_cc, by order you mean random access vs sequential?
08:23<_dp_>it's actually a good question what kind of operations openttd needs the most
08:27<+michi_cc>_dp_: I mean that at least for what I did, the order of tile structs in the sub-"arrays" has to follow certain rules. And of course the top-level array is also ordered in that it is indexed by a sequential number.
08:27<+michi_cc>TrueBrain: I need more of the universal currency that is always in short supply: time :p
08:28<TrueBrain>well, pretty sure several of us can donate some of that too :P
08:35<_dp_>michi_cc, that's just an implementation detail, in the end all you do is associate some tile structs with a tile index, no?
08:36<+michi_cc>Yes, right now there is one tile struct for one tile index, in my branch there's an array of tile structs per tile index.
08:37-!-glx [~glx@000128ec.user.oftc.net] has joined #openttd
08:37-!-mode/#openttd [+v glx] by ChanServ
08:37-!-glx is "Loïc GUILLOUX" on +#openttd
08:46<_dp_>so what I mean is that you do an associative array, and typical solution for those is either a hash table or a tree
08:46<_dp_>so question kinda is why did you do your own thing and can't it be improved by using standard solutions and tricks
08:53<_dp_>like, for an obvious example yours seem to be pretty bad at adding elements
08:53<_dp_>which I guess is kind of ok for openttd
08:54<_dp_>but still having a complexity of O(dy * map_size_x) for each rail or road may be excessive
09:19-!-Tirili [~Tirili@tmo-122-172.customers.d1-online.com] has joined #openttd
09:19-!-Tirili is "realname" on #openttd
09:26*andythenorth adds munitions and tanks
09:26<+michi_cc>Cache locality is quite important for map access. As a large map will obviously not fit in cache completely, random tile access is always likely to miss, but access is also often for adjacent tiles, which can benefit from contiguous memory.
09:26<andythenorth>this may be regrettable
09:35<_dp_>michi_cc, yeah, but that's just general thoughts, would be nice to analyze what operations openttd needs in more detail first
09:35<_dp_>also I'd guess diferrent tile types are accessed together and need different operations, so it may be better to split them in several structures
09:36<_dp_>like road/rail is mostly needed for pathfinding
09:36<_dp_>so having it in the land array can decrease locality for land operations
09:37<_dp_>though I guess there isn't that much infra compared to the total amount of tiles
09:40<_dp_>but storing rail tiles together can increase locality for pathfinder actually
09:43<supermop_Home>god morning
09:43<supermop_Home>or good
09:47<supermop_Home>so i guess most houses don't actually use CC to color bits
09:58-!-WormnestAndroid [~WormnestA@35.136.189.95] has joined #openttd
09:58-!-WormnestAndroid is "WormnestAndroid" on #openttd
09:59<andythenorth>what to label the nuclear chain cargos?
10:00<andythenorth>nuclear fuel rods, spent waste, nuclear fuel?
10:00*andythenorth vague
10:02<supermop_Home>UOX?
10:02<supermop_Home>UROD?
10:04<supermop_Home>what's the convention on drawing swimming pools?
10:04<@Rubidium>SNM_?
10:04<supermop_Home>dark blue ocean water with waves or a light turquoise?
10:04<supermop_Home>U235?
10:05<andythenorth>aren't there default flats with a rooftop pool?
10:06<andythenorth>supermop_Home standard ocean blue
10:06<andythenorth>temperate town hotel rooftop pool
10:06*andythenorth wonders if the nuclear chain is deadly dull
10:20<+michi_cc>Include protesters cargo as alt pax :)
10:23<supermop_Home>temperate hotel pool always looked a little too rough and frigid to be enjoyable
10:24<supermop_Home>with like 6' waves
10:26<supermop_Home>one of the worst parts of tropic base houses is that there are so few of them
10:30<supermop_Home>andythenorth i think shipping the reactor vessels and turbines to the plant under construction is probably more interesting that the relatives small feul
10:30<supermop_Home>fuel
10:31<andythenorth>fuel can be heavy due to the casks :P
10:31<andythenorth>but yes
10:31*andythenorth just keeps running out of cargos
10:31<andythenorth>16 million cargos when?
10:31<supermop_Home>it only goes maybe a couple times a year at most
10:32<supermop_Home>of course the vessels only go once every 30 years
10:33<supermop_Home>make the nuclear plant be 'under construction' for years, and you have to ship it enough concrete, equipment and pipes
10:33<andythenorth>and money
10:33<supermop_Home>and same for a coal plant
10:34<supermop_Home>then once its done, boost production at any nearby aluminum plants
10:36<andythenorth>we might want to add explicit power grid one day
10:36<andythenorth>extensible with defined 'power types'
10:36<andythenorth>it can be faked with town storage, but it's got no UI
10:36<andythenorth>so player is 'wtf?'
10:57<supermop_Home>sooo there are apartment buildings on the base set sprite sheet for tropic with blue bits... but they aren't CC?
11:14<supermop_Home>can i add recoloring to a replace block?
11:16<supermop_Home>hmm
11:16<supermop_Home>https://newgrf-specs.tt-wiki.net/wiki/NML:Replace_TTD_sprites
11:16<supermop_Home>"A series of real (or recolour) sprites has to be specified between the curly braces "
11:24<supermop_Home>too weird to replace the tropic church with a Shinto shrine?
11:27<supermop_Home>this temple looks sort of church like and has the tropic art deco style i'd like: https://goo.gl/maps/soEK6XdYXhTB9sw78
11:27<supermop_Home>but a shrine might fit in better with these little houses
11:29<supermop_Home>this one is like shrine upstairs and office building downstairs: https://goo.gl/maps/QtUnY183aiBWXbnd9
11:40-!-gelignite [~gelignite@55d4e4de.access.ecotel.net] has joined #openttd
11:40-!-gelignite is "gelignite" on #debian #llvm #openttd
11:48<supermop_Home>well this project's aim was to make the houses and apartment buildings in the tropic base set look more like Hawaii and less like the vaguely Spanish mission style the houses are in ogfx
11:49<supermop_Home>but as a baseset i need most of the building to look at home in 1930 and earlier
11:49<supermop_Home>and from 1910-1930, it seems like the most common architectural style for major buildings in Honolulu was......Spanish Mission style
11:50<supermop_Home>oops
12:10-!-Wormnest [~Wormnest@35.136.189.95] has joined #openttd
12:10-!-Wormnest is "Wormnest" on #openttd
12:22-!-gelignite [~gelignite@55d4e4de.access.ecotel.net] has quit [Quit: Stay safe!]
12:25-!-Flygon [~Flygon@2001:44b8:411e:4e00:fcd1:6d22:8f23:63a3] has quit [Quit: A toaster's basically a soldering iron designed to toast bread]
13:30-!-WormnestAndroid [~WormnestA@35.136.189.95] has quit [Ping timeout: 480 seconds]
13:36-!-gelignite [~gelignite@55d4e4de.access.ecotel.net] has joined #openttd
13:36-!-gelignite is "gelignite" on #debian #llvm #openttd
13:37-!-Gustavo6046 [~Gustavo60@2804:14d:4cd8:96b6:f57:b290:e69a:6832] has joined #openttd
13:37-!-Gustavo6046 is "realname" on #llvm #openttd
13:53-!-Kitrana [~yoshi@45.148.7.5] has joined #openttd
13:53-!-Kitrana is "purple" on #openttd
13:58-!-Kitrana1 [~yoshi@45.148.7.5] has quit [Ping timeout: 480 seconds]
14:10-!-iSoSyS [~iSoSyS@ff1-84-90-12-195.netvisao.pt] has joined #openttd
14:10-!-iSoSyS is "realname" on #/r/openttd #openttd
14:12-!-iSoSyS [~iSoSyS@ff1-84-90-12-195.netvisao.pt] has quit []
14:17-!-Kitrana1 [~yoshi@45.148.7.5] has joined #openttd
14:17-!-Kitrana1 is "purple" on #openttd
14:21-!-Kitrana2 [~yoshi@45.148.7.5] has joined #openttd
14:21-!-Kitrana2 is "purple" on #openttd
14:22-!-Kitrana [~yoshi@45.148.7.5] has quit [Ping timeout: 480 seconds]
14:25-!-Kitrana1 [~yoshi@45.148.7.5] has quit [Ping timeout: 480 seconds]
14:41-!-Tirili [~Tirili@tmo-122-172.customers.d1-online.com] has quit [Ping timeout: 480 seconds]
14:46-!-Tirili [~Tirili@tmo-121-225.customers.d1-online.com] has joined #openttd
14:46-!-Tirili is "realname" on #openttd
14:48-!-snail_UES_ [~snail_UES@cpe-98-14-137-148.nyc.res.rr.com] has joined #openttd
14:48-!-snail_UES_ is "Jacopo Coletto" on #openttd
14:53-!-tokai [~tokai@00012860.user.oftc.net] has joined #openttd
14:53-!-mode/#openttd [+v tokai] by ChanServ
14:53-!-tokai is "Christian Rosentreter" on +#openttd
15:00-!-tokai|noir [~tokai@00012860.user.oftc.net] has quit [Ping timeout: 480 seconds]
15:16<andythenorth>so did we agree to increase to 128 cargos ?
15:16-!-dale [~dale@0002d87f.user.oftc.net] has joined #openttd
15:16-!-dale is "dale" on #openttd
15:20<supermop_Home>first you need to tell me what early 20th century building i should use to replace the tall tropic apartments
15:24<andythenorth>hmmm
15:24<supermop_Home>https://sah-archipedia.org/buildings/HI-01-OA34
15:27<supermop_Home>https://sah-archipedia.org/buildings/HI-01-OA125
15:27<supermop_Home>https://sah-archipedia.org/buildings/HI-01-OA24
15:28<supermop_Home>https://sah-archipedia.org/buildings/HI-01-OA49
15:29<supermop_Home>https://sah-archipedia.org/buildings/HI-01-OA35
15:34<supermop_Home>most of those aren't apartment buildings, but they would at least look sensible in a city core in 1930 or earlier
15:46-!-jottyfan [~Thunderbi@dynamic-077-013-020-079.77.13.pool.telefonica.de] has quit [Quit: jottyfan]
15:53-!-snail_UES_ [~snail_UES@cpe-98-14-137-148.nyc.res.rr.com] has quit [Quit: snail_UES_]
15:54-!-Tirili [~Tirili@tmo-121-225.customers.d1-online.com] has quit [Remote host closed the connection]
15:59-!-Tirili [~Tirili@tmo-121-225.customers.d1-online.com] has joined #openttd
15:59-!-Tirili is "realname" on #openttd
16:10<andythenorth>AWS bill again
16:10<andythenorth>£0.70
16:10<andythenorth>oof
16:14<dwfreed>andythenorth: really gonna break the bank there
16:18-!-Gustavo6046_ [~Gustavo60@2804:14d:4cd8:96b6:f57:b290:e69a:6832] has joined #openttd
16:18-!-Gustavo6046_ is "realname" on #llvm #openttd
16:18-!-Gustavo6046 [~Gustavo60@2804:14d:4cd8:96b6:f57:b290:e69a:6832] has quit [Read error: Connection reset by peer]
16:28-!-Gustavo6046_ [~Gustavo60@2804:14d:4cd8:96b6:f57:b290:e69a:6832] has quit [Quit: Leaving]
16:29-!-Gustavo6046 [~Gustavo60@2804:14d:4cd8:96b6:f57:b290:e69a:6832] has joined #openttd
16:29-!-Gustavo6046 is "realname" on #llvm #openttd
16:34-!-gelignite [~gelignite@55d4e4de.access.ecotel.net] has quit [Quit: Stay safe!]
16:40-!-Gustavo6046 [~Gustavo60@2804:14d:4cd8:96b6:f57:b290:e69a:6832] has quit [Ping timeout: 480 seconds]
17:34-!-nielsm [~nielsm@188-181-82-243-cable.dk.customer.tdc.net] has quit [Ping timeout: 480 seconds]
17:38-!-snail_UES_ [~snail_UES@cpe-98-14-137-148.nyc.res.rr.com] has joined #openttd
17:38-!-snail_UES_ is "Jacopo Coletto" on #openttd
17:52-!-Wolf01 [~wolf01@0001288e.user.oftc.net] has quit [Quit: Once again the world is quick to bury me.]
18:33<supermop_Home>it seems most of the train people here know each other
18:33-!-andythenorth [~andytheno@cpc87165-aztw31-2-0-cust40.18-1.cable.virginm.net] has quit [Quit: andythenorth]
19:23-!-sla_ro|master [~sla.ro@93.118.46.75] has quit []
19:41-!-WormnestAndroid [~WormnestA@35.136.189.95] has joined #openttd
19:41-!-WormnestAndroid is "WormnestAndroid" on #openttd
19:51-!-tokai|noir [~tokai@00012860.user.oftc.net] has joined #openttd
19:51-!-mode/#openttd [+v tokai|noir] by ChanServ
19:51-!-tokai|noir is "Christian Rosentreter" on +#openttd
19:58-!-tokai [~tokai@00012860.user.oftc.net] has quit [Ping timeout: 480 seconds]
20:55-!-Tirili [~Tirili@tmo-121-225.customers.d1-online.com] has quit [Remote host closed the connection]
21:18<dale>Hi! I'm running the latest World Airliners Set from the forums, but I strongly suspect the early game Lockheed Constellation has a running cost off by ~10x. If I want to fix this in a running single player game, what are the chances I can recompile the GRF with my tiny change and just swap the file out behind OpenTTD's back without ruining everything?
21:29-!-thelonelyellipsis[m] [~thelonely@2001:470:1af1:101::ac34] has joined #openttd
21:29-!-thelonelyellipsis[m] is "org.matrix:thelonelyellipsis" on #openttd
21:32<dale>Ah, bless the developer(s), looks like they used a spreadsheet to figure all the cost values, and they checked the spreadsheet in. Looks like the Constellation had its cost and running cost factors flipped.
21:40-!-snail_UES_ [~snail_UES@cpe-98-14-137-148.nyc.res.rr.com] has quit [Quit: snail_UES_]
21:41-!-Tirili [~Tirili@tmo-121-225.customers.d1-online.com] has joined #openttd
21:41-!-Tirili is "realname" on #openttd
22:04-!-snail_UES_ [~snail_UES@cpe-98-14-137-148.nyc.res.rr.com] has joined #openttd
22:04-!-snail_UES_ is "Jacopo Coletto" on #openttd
22:10-!-Flygon [~Flygon@2001:44b8:411e:4e00:c0fd:86ec:4205:458b] has joined #openttd
22:10-!-Flygon is "Flygon" on #openttd
22:16-!-Tirili [~Tirili@tmo-121-225.customers.d1-online.com] has quit [Quit: Leaving]
22:17-!-Wormnest [~Wormnest@35.136.189.95] has quit [Quit: Leaving]
22:22-!-glx [~glx@000128ec.user.oftc.net] has quit []
22:48-!-D-HUND [~debdog@2a00:79c0:624:ad00:7a24:afff:fe8a:d04d] has joined #openttd
22:48-!-D-HUND is "Wowbagger" on #openttd
22:52-!-debdog [~debdog@2a00:79c0:625:5100:7a24:afff:fe8a:d04d] has quit [Ping timeout: 480 seconds]
---Logclosed Mon Jan 03 00:00:13 2022