!mZJJVrXvrfaQDqkJGH:freedombox.emorrp1.name

CorsixTH Technical

143 Members
6 Servers

Load older messages


SenderMessageTime
24 Jan 2022
@_discord_367754591367856138:t2bot.ioLewri#3283 Though I'm not at home until after work 09:42:17
@albertfree:matrix.orgalbertfree

then if that turns out to be true, override the comparison of _S.* objects to use equality

09:42:19
@albertfree:matrix.orgalbertfree

which may or may not involve some cpp if _S.* is a cpp object

09:43:19
@albertfree:matrix.orgalbertfree

not sure how correctness depends on your current place at earth :)

09:46:42
@_discord_367754591367856138:t2bot.ioLewri#3283 Cpp grabs it as localised string 09:48:42
@albertfree:matrix.orgalbertfree

yeah, I'd expect that

09:49:52
@albertfree:matrix.orgalbertfree

don't know if lua support unicode, if it does another path is to start using native lua strings instead of our magic

09:57:25
@_discord_367754591367856138:t2bot.ioLewri#3283 A bigger issue than what I'm looking at currently 12:10:28
@_discord_367754591367856138:t2bot.ioLewri#3283 I've made up the code to determine graphics set in previous saves 12:10:46
@_discord_367754591367856138:t2bot.ioLewri#3283 But that string is the problem at the moment 12:11:00
@albertfree:matrix.orgalbertfree

lol :)

12:24:21
@albertfree:matrix.orgalbertfree

hmm, not sure I understand

12:27:02
@albertfree:matrix.orgalbertfree

you'd check presence of the string, if available that's the version, otherwise you do what we do now, and derive a string of set from it

12:28:21
@_discord_367754591367856138:t2bot.ioLewri#3283 Hmm 12:28:48
@_discord_367754591367856138:t2bot.ioLewri#3283 I don't have the code to hand 12:28:53
@_discord_367754591367856138:t2bot.ioLewri#3283 but it's a check like this 12:28:58
@_discord_367754591367856138:t2bot.ioLewri#3283
local str = _S.level_names[1]:upper()
if self.map.level_name ~= str then
  self.world.gfx_set = "fulL"
end
12:30:42
@_discord_367754591367856138:t2bot.ioLewri#3283 self.map.level_name = _S.level_names[level]:upper() -- in map.lua 12:31:49
@_discord_367754591367856138:t2bot.ioLewri#3283 level is a param passed to map 12:32:03
@albertfree:matrix.orgalbertfree

and you're back at the equality problem

12:33:07
@_discord_367754591367856138:t2bot.ioLewri#3283 Yeahhh, thats the hurdle 12:33:20
@_discord_367754591367856138:t2bot.ioLewri#3283 I don't think lua lets me derive the value 12:34:15
@_discord_367754591367856138:t2bot.ioLewri#3283 (well, pull it out) 12:34:21
@albertfree:matrix.orgalbertfree

for lua, the object is the value I think

12:34:52
@albertfree:matrix.orgalbertfree

from what I remember, it's about having utf-8 support which by now may have been added to lua itself

12:35:58
@albertfree:matrix.orgalbertfree

but perhaps not 5.1 that we still support

12:36:23
@_discord_367754591367856138:t2bot.ioLewri#3283 I looked into the C side 12:37:12
@albertfree:matrix.orgalbertfree

:O

12:37:21
@_discord_367754591367856138:t2bot.ioLewri#3283 Ages ago 12:37:33
@albertfree:matrix.orgalbertfree

ah ok :)

12:37:43

There are no newer messages yet.


Back to Room List