Calculator Community => TI Calculators => Lua => Topic started by: NecroBumpist on October 08, 2011, 05:41:25 pm
Title: Oh Nspire-Lua, you so crazy!
Post by: NecroBumpist on October 08, 2011, 05:41:25 pm
I was trying to make a Lua IDE when i came across this bug with text rendering. Keep in mind this happens much faster in real time.
Spoiler For probable cause:
The negative symbol is what I'm typing, and it is likely a two byte character, however, when I backspace, I only remove one byte at a time, and this causes it to read whatever comes after the string in RAM I'm assuming.
Title: Re: Oh Nspire-Lua, you so crazy!
Post by: Adriweb on October 08, 2011, 05:54:09 pm
Interesting.
I've come across things like this but it appears that TI fixed most of these memory-hacking stuff (in the upcoming version).
I can also assume you're right about direc tmemory reading and somehintg like forcing a cast to a string output, with the correspondig ascii code being some chinese chars.....
Can you see more of the memory by dumping it thourgh nspire_emu / ncubate and try to see what could match with the chinese char's ascii number ?
Title: Re: Oh Nspire-Lua, you so crazy!
Post by: annoyingcalc on October 08, 2011, 06:52:47 pm
Hmmis that bug also on the ti-nspire cx?
Title: Re: Oh Nspire-Lua, you so crazy!
Post by: Deep Toaster on October 08, 2011, 07:33:39 pm
In case this is helpful, here's the first character that appears and keeps flashing:
Title: Re: Oh Nspire-Lua, you so crazy!
Post by: Jim Bauwens on October 09, 2011, 02:35:01 pm
I have encountered this bug before (I actually need to fix my Lua Console to support utf-8 :p), and the solution is to use TI's added string functions, uchar, ubyte and usub. They should work just the same as their original counterparts :)
As for reading memory, its only a few bytes, so not so useful. But nevertheless, quite interesting :D
Title: Re: Oh Nspire-Lua, you so crazy!
Post by: pianoman on October 11, 2011, 05:41:13 pm
If it's any help, that's the chinese Qu character. Don't know what it means... :P
Title: Re: Oh Nspire-Lua, you so crazy!
Post by: Yeong on October 11, 2011, 05:46:09 pm
I think it means alcohol.
Title: Re: Oh Nspire-Lua, you so crazy!
Post by: Chockosta on October 12, 2011, 08:27:01 am
This happened to me really often, when I was playing with a little text editor that I made. I even stored chinese characters in an external string :)
Title: Re: Oh Nspire-Lua, you so crazy!
Post by: cyanophycean314 on December 07, 2011, 05:09:06 pm
It's the character qu. And yes it is related to alcohol.