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

---Logopened Fri Jan 07 00:00:18 2022
00:24-!-Gustavo6046 [~Gustavo60@2804:14d:4cd8:96b6:f57:b290:e69a:6832] has joined #openttd
00:24-!-Gustavo6046 is "realname" on #openttd #llvm
00:24<Gustavo6046>ah
01:09-!-Gustavo6046 [~Gustavo60@2804:14d:4cd8:96b6:f57:b290:e69a:6832] has quit []
01:41-!-andythenorth [~andytheno@cpc87165-aztw31-2-0-cust40.18-1.cable.virginm.net] has joined #openttd
01:41-!-andythenorth is "andythenorth" on #openttd
02:17-!-andythenorth [~andytheno@cpc87165-aztw31-2-0-cust40.18-1.cable.virginm.net] has quit [Quit: andythenorth]
02:22-!-andythenorth [~andytheno@cpc87165-aztw31-2-0-cust40.18-1.cable.virginm.net] has joined #openttd
02:22-!-andythenorth is "andythenorth" on #openttd
02:26-!-andythenorth [~andytheno@cpc87165-aztw31-2-0-cust40.18-1.cable.virginm.net] has quit []
02:36-!-sla_ro|master [~sla.ro@93.118.46.75] has joined #openttd
02:36-!-sla_ro|master is "slamaster" on #sla #openttd
02:52-!-tokai [~tokai@00012860.user.oftc.net] has joined #openttd
02:52-!-mode/#openttd [+v tokai] by ChanServ
02:52-!-tokai is "Christian Rosentreter" on +#openttd
02:59-!-tokai|noir [~tokai@00012860.user.oftc.net] has quit [Ping timeout: 480 seconds]
03:21-!-andythenorth [~andytheno@cpc87165-aztw31-2-0-cust40.18-1.cable.virginm.net] has joined #openttd
03:21-!-andythenorth is "andythenorth" on #openttd
03:26-!-andythenorth [~andytheno@cpc87165-aztw31-2-0-cust40.18-1.cable.virginm.net] has quit [Quit: andythenorth]
03:27-!-WormnestAndroid [~WormnestA@35.136.189.95] has quit [Remote host closed the connection]
03:30-!-andythenorth [~andytheno@cpc87165-aztw31-2-0-cust40.18-1.cable.virginm.net] has joined #openttd
03:30-!-andythenorth is "andythenorth" on #openttd
04:43-!-Wolf01 [~wolf01@0001288e.user.oftc.net] has joined #openttd
04:43-!-Wolf01 is "Wolf01" on #openttd
06:19-!-jjjaa [~oftc-webi@cpc78081-stav21-2-0-cust118.17-3.cable.virginm.net] has joined #openttd
06:19-!-jjjaa is "OFTC WebIRC Client" on #openttd
06:23-!-jjjaa [~oftc-webi@cpc78081-stav21-2-0-cust118.17-3.cable.virginm.net] has quit []
06:44-!-WormnestAndroid [~WormnestA@35.136.189.95] has joined #openttd
06:44-!-WormnestAndroid is "WormnestAndroid" on #openttd
08:03<TrueBrain>w00p, a basic flow is working from RPN to NewGRF .. now to clean this stuff up and add functionality :P
08:05-!-WormnestAndroid [~WormnestA@35.136.189.95] has quit [Remote host closed the connection]
08:07<@peter1138>Okay, brain is failing.
08:07<TrueBrain>AM NOT
08:07<TrueBrain>:P
08:12<@peter1138>Trying to work out what percentage to add on a value to get a given margin. i.e. add 25% for a 20% margin
08:17<TrueBrain>math hard, yes :P
08:18<TrueBrain>Read past end of pseudo-sprite
08:18<TrueBrain>hmm
08:18<TrueBrain>that also sounds like a fail :)
08:18-!-glx [~glx@000128ec.user.oftc.net] has joined #openttd
08:18-!-mode/#openttd [+v glx] by ChanServ
08:18-!-glx is "Loïc GUILLOUX" on +#openttd
08:20<+glx>sounds like wrong sprite length
08:22<TrueBrain>that is really unlikely, given that is all auto-calculated :)
08:22<TrueBrain>I mostly get this error when I byte-encode the payload wrong
08:24-!-gelignite [~gelignite@55d457f6.access.ecotel.net] has joined #openttd
08:24-!-gelignite is "gelignite" on #debian #llvm #openttd
08:26<TrueBrain>synthing advanced varaction2 is tricky, as it wants to know the last entry in the chain (the 0x20 flag) .. and fields are not of a prefixed length .. hmmmmmm
08:31<TrueBrain>well, I don't ever use div or modulo, so I guess I can cheat my way in :)
08:44<+glx>yeah fields depend on flags
08:45<TrueBrain>right, next issue ... NewGRF is nothing like an AST or an RPN .. how do a synth a complex rhs ... eeeuuuuuhhhhhhh
08:46<TrueBrain>guess I need a temporary register for that
08:46<+glx>one or more temporary registers yes
08:47<+glx>mixed with operands reordering
08:48<+glx>like a + (b * c) is easier to write in nfo as (b * c) + a
08:49-!-Etua [~Thunderbi@public-gprs240391.centertel.pl] has joined #openttd
08:49-!-Etua is "Etua" on #openttd #debian-pl #debian #osm-pl
08:49<TrueBrain>RPN remember; I don't have that issue :P
08:50<+glx>yeah you can translate the stack with temp registers
08:52<Eddi|zuHause>is that really easier to write?
08:52<+glx>advanced varact2 would be nice with some push/pop operators
08:52<TrueBrain>or nesting
08:52<TrueBrain>but it is fine
08:53<TrueBrain>it is just the order of generation, it is not that big of a deal
08:53<TrueBrain>just need to assign a register to it :)
08:54<@peter1138>Well, I still can't work it out :p
08:54<Eddi|zuHause>you can have virtual push/pop operations and in a second pass replace them with explicit registers
08:55<@peter1138>Is it turing complete yet?
08:55<Eddi|zuHause>there's no loops in NFO
08:55<@peter1138>Yet.
08:56<@peter1138>(Ever.)
09:03<+glx>in theory NML could do loops (with unfolding)
09:03<TrueBrain>so only against constants ;)
09:04<TrueBrain>that still won't make you turing complete :)
09:04<+glx>it can work with variables too, but very expensive depending on variable size :)
09:06<TrueBrain>hmm, calculating stack-depth is surprisingly difficult
09:14<TrueBrain>right, now to add code to actually read a register :D
09:14<TrueBrain>might be important .. might not :P
09:29<+glx>var7D for constant index, var7B for dynamic index
09:29<TrueBrain>7C, but I can read the specs, yes :)
09:30<TrueBrain>(at least, I need 7C atm :P)
09:30<TrueBrain>but I had no infra for parameters yet
09:30<TrueBrain>hope it is working as I read the specs .. that is always fingers crossed
09:32-!-nielsm [~nielsm@188-181-82-243-cable.dk.customer.tdc.net] has joined #openttd
09:32-!-nielsm is "Niels Martin Hansen" on #openttd
09:34<TrueBrain>meh, I really have to make a new chain for every complex right hand side, don't I? Meh :P
09:35<TrueBrain>was hoping I could keep on chaining advanced varaction2
09:35<TrueBrain>but there is no noop operator
09:35<TrueBrain>that is just sad :P New chains take so many bytes ... as they need a switch-case :)
09:36<+glx>you can put everything in the same varact2
09:36<TrueBrain>how? As I said, there is no "noop" operator
09:37<TrueBrain>I can't make a new head mid-chain
09:37<TrueBrain>yeah, "& 0"
09:37<+glx>you have \2rst
09:38<TrueBrain>ah, tnx, that is what I was looking for. That is kinda hiding :P
09:39<+glx>only scope change needs a new varact2, but I think temp regs can help here too
09:39<supermop_Home>good morning
09:40<+glx>like fill regs with related scope values then chain to self scope varact2 and use regs there
09:44<andythenorth>peter1138 you want a 20% margin on the final price? :P
09:45<andythenorth>so COGS is 80%?
09:46<andythenorth>is it not just multiply COGS by 5/4?
09:46<TrueBrain>how does "grfcodec -d" works :P
09:46<andythenorth>yes
09:47<TrueBrain>with a lot of effort
09:47<TrueBrain>is the correct answer
09:48<TrueBrain>02 0A 00 89 A8 20 FF 00 00 00 \2* "}ÿ ÿÿÿÿ" \2sto 1A 00 FE 00 00 00 01 00 00 00 00 00 00 "ÿÿÿÿý" 00
09:48<TrueBrain>euuh ... what a weird characters :P
09:48<TrueBrain>02 0A 00 89 A8 20 FF 00 00 00 \2* 7D FF 20 FF FF FF FF \2sto 1A 00 FE 00 00 00 01 00 00 00 00 00 00 FF FF FF FF FD 00
09:48<TrueBrain>lot better
09:53-!-gelignite [~gelignite@55d457f6.access.ecotel.net] has quit [Quit: Stay safe!]
09:58<TrueBrain> result:outputs ctt:COAL [] industry:colour industry:colour * industry:colour industry:colour * + =
09:58<TrueBrain>gives another result than
09:58<TrueBrain> result:outputs ctt:COAL [] industry:colour industry:colour industry:colour industry:colour * * + =
09:58<TrueBrain>think I am doing something wrong still :D
09:59<TrueBrain>owh, no, it should
09:59<TrueBrain>duh
09:59<TrueBrain>lol
10:00<TrueBrain>yippie, means this kinda work :) Still need depth-detection, but we can revisit that later :)
10:02<TrueBrain> result:outputs ctt:COAL [] 12 industry:colour * industry:colour 12 * + =
10:02<TrueBrain>works too
10:02<TrueBrain>what is funny now, that depending on the order of your instructions, things can generate more or less efficient :)
10:04-!-Etua [~Thunderbi@public-gprs240391.centertel.pl] has quit [Ping timeout: 480 seconds]
10:32-!-sla_ro|master [~sla.ro@93.118.46.75] has quit []
11:39-!-J0anJosep [~juanjo@185.242.251.188-ip.operadors.cat] has joined #openttd
11:39-!-J0anJosep is "Joan Josep" on #openttd
11:54-!-frosch123 [~frosch@00013ce7.user.oftc.net] has joined #openttd
11:54-!-frosch123 is "frosch" on #openttd
12:07<supermop_Home>how do i indicate a grf is meant to be static in nml?
12:08<frosch123>in the readme
12:09<frosch123>only humans know what "static newgrf" are
12:12-!-WormnestAndroid [~WormnestA@35.136.189.95] has joined #openttd
12:12-!-WormnestAndroid is "WormnestAndroid" on #openttd
12:13<supermop_Home>can a static newgrf have parameters?
12:15<frosch123>i guess there is no gui to set them, but they should work in openttd.cfg
12:17-!-Wormnest [~Wormnest@35.136.189.95] has joined #openttd
12:17-!-Wormnest is "Wormnest" on #openttd
12:23-!-Flygon [~Flygon@2001:44b8:411e:4e00:4ced:f786:cc79:8261] has quit [Quit: A toaster's basically a soldering iron designed to toast bread]
12:45<@DorpsGek>[OpenTTD/team] srekoslav opened issue #284: [hr_HR] Translator access request https://git.io/J9Y53
12:57<+glx>oh we are in the latest GOG email I received
12:58<frosch123>what? new year's sale?
12:58<+glx>more than 30 free games
12:59<+glx>and they show 4 of them in the newletter, cave's story secret santa, symphonia, samorost 1 and openttd
13:03-!-J0anJosep [~juanjo@185.242.251.188-ip.operadors.cat] has quit [Quit: Konversation terminated!]
13:26<TrueBrain>Cool :)
13:53<@peter1138>Oh of course, rain tomorrow.
14:12-!-Gustavo6046 [~Gustavo60@2804:14d:4cd8:96b6:f57:b290:e69a:6832] has joined #openttd
14:12-!-Gustavo6046 is "realname" on #llvm #openttd
15:01-!-EER [~EER@94-210-161-220.cable.dynamic.v4.ziggo.nl] has joined #openttd
15:01-!-EER is "..." on #openttd
15:06-!-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]
15:12<andythenorth>frosch rage quit early today
15:15<TrueBrain>:(
15:44-!-sla_ro|master [~sla.ro@93.118.46.75] has joined #openttd
15:44-!-sla_ro|master is "slamaster" on @#sla #openttd
16:21<@peter1138>Wut
16:21<@peter1138>Balls, missed Discovery due to video call :(
17:04-!-jottyfan [~Thunderbi@dynamic-077-191-241-117.77.191.pool.telefonica.de] has joined #openttd
17:04-!-jottyfan is "jottyfan" on #openttd
17:06-!-jottyfan [~Thunderbi@dynamic-077-191-241-117.77.191.pool.telefonica.de] has quit []
18:22-!-nielsm [~nielsm@188-181-82-243-cable.dk.customer.tdc.net] has quit [Ping timeout: 480 seconds]
18:33-!-EER [~EER@94-210-161-220.cable.dynamic.v4.ziggo.nl] has quit [Remote host closed the connection]
18:35-!-andythenorth [~andytheno@cpc87165-aztw31-2-0-cust40.18-1.cable.virginm.net] has quit [Quit: andythenorth]
18:41-!-sla_ro|master [~sla.ro@93.118.46.75] has quit []
18:42-!-Wolf01 [~wolf01@0001288e.user.oftc.net] has quit [Quit: Once again the world is quick to bury me.]
18:53-!-Wormnest [~Wormnest@35.136.189.95] has quit [Ping timeout: 480 seconds]
18:53-!-WormnestAndroid [~WormnestA@35.136.189.95] has quit [Ping timeout: 480 seconds]
19:26-!-roadt__ [~roadt@114.100.129.3] has joined #openttd
19:26-!-roadt__ is "roadt" on #openttd
19:28-!-Wormnest [~Wormnest@35.136.189.95] has joined #openttd
19:28-!-Wormnest is "Wormnest" on #openttd
19:33-!-roadt_ [~roadt@36.5.93.21] has quit [Ping timeout: 480 seconds]
20:04-!-WormnestAndroid [~WormnestA@172.56.26.214] has joined #openttd
20:04-!-WormnestAndroid is "WormnestAndroid" on #openttd
20:08-!-WormnestAndroid [~WormnestA@172.56.26.214] has quit [Read error: Connection reset by peer]
20:08-!-WormnestAndroid [~WormnestA@35.136.189.95] has joined #openttd
20:08-!-WormnestAndroid is "WormnestAndroid" on #openttd
21:13-!-glx [~glx@000128ec.user.oftc.net] has quit []
22:03-!-Wormnest [~Wormnest@35.136.189.95] has quit [Quit: Leaving]
22:37-!-Smedles [~quassel@2403-580d-1--aaa1-59ff-fe53-1a69.ip6.aussiebb.net] has joined #openttd
22:37-!-Smedles is "Paul Smedley" on #openttd
22:44-!-D-HUND [~debdog@2a00:79c0:642:cc00:7a24:afff:fe8a:d04d] has joined #openttd
22:44-!-D-HUND is "Wowbagger" on #openttd
22:47-!-debdog [~debdog@2a00:79c0:623:a200:7a24:afff:fe8a:d04d] has quit [Ping timeout: 480 seconds]
22:52-!-Flygon [~Flygon@2001:44b8:411e:4e00:b46d:995a:dca6:79eb] has joined #openttd
22:52-!-Flygon is "Flygon" on #openttd
23:43-!-Flygon_ [~Flygon@2001:44b8:411e:4e00:b46d:995a:dca6:79eb] has joined #openttd
23:43-!-Flygon_ is "Flygon" on #openttd
23:45-!-Flygon [~Flygon@2001:44b8:411e:4e00:b46d:995a:dca6:79eb] has quit [Ping timeout: 480 seconds]
---Logclosed Sat Jan 08 00:00:20 2022