Config
Log for #openttd on 7th May 2023:
Times are UTC Toggle Colours
22:49:42  <petern> Hmm,
22:51:55  <petern> https://cdn.discordapp.com/attachments/1008473233844097104/1104903468394750052/image.png
22:51:55  <petern> 🤷
22:52:49  <petern> Oh, Hmm.
22:54:27  <andythenorth> you drew things? 🙂
22:55:08  <andythenorth> pff how do I read just one string off the text stack? 😛
22:55:25  <andythenorth> store(string(FOO) << 16, 256)
22:55:28  <andythenorth> ain't doing it
22:58:09  <petern> If by "draw" you mean "told OpenTTD to draw", I guess so?
22:59:06  <Eddi|zuHause> i think you might need to store FOO, not string(FOO)
22:59:27  <Eddi|zuHause> not really sure though
22:59:34  <Eddi|zuHause> haven't done this in ages
23:00:28  <andythenorth> this works
23:00:30  <andythenorth> `                STORE_TEMP(string(STR_POWER_SOURCE_${power_source_data[0]})
23:00:30  <andythenorth> | (${power_source_data[1]} << 16),
23:00:30  <andythenorth> ${'0x10' + str(repeat.power_source_data.index)}),
23:00:30  <andythenorth> `
23:00:42  <andythenorth> but in that case I'm pushing 2 things to the register
23:01:08  <andythenorth> in the case of pushing one it's puzzling
23:01:08  <Eddi|zuHause> the first string would be the << 0, not the << 16

Powered by YARRSTE version: svn-trunk