RenderCharExpression trouble

Found a bug? Post information about it here so we can fix it!

Moderator: Moderators

Post Reply
Imerion
Posts: 198
Joined: Sun Feb 09, 2014 4:42 pm

RenderCharExpression trouble

Post by Imerion » Sun Apr 24, 2016 9:09 pm

I seem to have a problem that appeared in one of the later beta versions. My RenderCharExpression :

Code: Select all

CharX += FontMap[ord(subStr(Text, CharI, 1))]*1f/FontData[2]-1;
Has stopped working. Or rather, it produces very odd results, with the letters displayed all over the place. :)

I have attached a sample if anyone wants to see what happens.
Attachments
FontError.zgeproj
(22.15 KiB) Downloaded 219 times

User avatar
rrTea
Posts: 428
Joined: Sat Feb 15, 2014 9:54 am
Contact:

Re: RenderCharExpression trouble

Post by rrTea » Mon Apr 25, 2016 5:08 am

I didn't really get a chance to test it properly but when I attempted to just run it I only got a
"SubString called with startpos+NChars>length"
error, does this happen on your end too?

Imerion
Posts: 198
Joined: Sun Feb 09, 2014 4:42 pm

Re: RenderCharExpression trouble

Post by Imerion » Mon Apr 25, 2016 2:30 pm

That is interesting. I don't get that message, or any other error.

Post Reply