#great-lounge Tuesday 4 May 2021
13 messages4 people
- M
Replying toJack PapelTry printing the constructed string to the console to see what's going on
the thing is that there's nothing wrong with my substring: Input string is: "skyroot_log_side" thehasSidevariable is a substring off the last 4 characters of the input string, so ifhasSideequals "side" then it knows that it ends with "side". this works as you can see from the screenshot. Then I haveremoveSideFromNameAndAddTopToTheNamewhich is only such a long name so that you know what it does, this is a substring of the entire input string EXCEPT for the last 4 letters and then has "top" added at the end. This ALSO works as you can see from the screenshot. Yet the game still thinks I'm referring to "skyroot_log_side_top"
17:28Also you know my IRL name now, whoops - T
- J
- S
Replying tomeme_man_not_avaAlso you know my IRL name now, whoops
shouldn't have told us that you did,(edited) - M
Replying toJack PapelThe only thing I can think of is that you're using the wrong variable? I really don't…
wdym "pull from the model"19:39Also even when logged during init it works just fine, but it's using that substring result that does funky stuff
- J

