Search found 75 matches

by utunnels
Wed Feb 08, 2012 5:31 am
Forum: Support and Development
Topic: Share a Shader!
Replies: 328
Views: 542248

Re: Share a Shader!

slime wrote:if it's an intel one
You are right.

Guess I need to try another PC instead.
by utunnels
Wed Feb 08, 2012 4:56 am
Forum: Support and Development
Topic: Share a Shader!
Replies: 328
Views: 542248

Re: Share a Shader!

Dang, it says my graphics card does not support pixel effect. :|
by utunnels
Tue Feb 07, 2012 3:02 pm
Forum: Support and Development
Topic: Rs232 Serial Communication
Replies: 6
Views: 4459

Re: Rs232 Serial Communication

You can put the dll with love.exe on windows, works both 0.7.2 and 0.8.0

Code: Select all

require("luars232")
In 0.7.2, it doesn't work if you place the dll in %appdata%\love, but in 0.8.0 it works.
by utunnels
Tue Feb 07, 2012 4:37 am
Forum: Support and Development
Topic: Using nil to remove objects
Replies: 6
Views: 1251

Re: Using nil to remove objects

I don't think it is always needed to manually nil a value, unless the table you mentioned serves as an global cache or something.
by utunnels
Sun Feb 05, 2012 2:34 pm
Forum: Support and Development
Topic: Box-drawing characters/other UTF-8?
Replies: 17
Views: 9274

Re: Box-drawing characters/other UTF-8?

What if i have custom unicode characters? The Image Font (if you are talking about your another topic) only supports single-byte characters as its glyphs data. This has not been updated last time when I glanced at the code. So I think you need to wait for a bit longer. Or you can try ttf instead. O...
by utunnels
Sun Feb 05, 2012 12:21 pm
Forum: Support and Development
Topic: Box-drawing characters/other UTF-8?
Replies: 17
Views: 9274

Re: Box-drawing characters/other UTF-8?

Hah, thank you. That is far more plenty than what I need, at least it gives me ideas on how to do such rendering.
by utunnels
Sun Feb 05, 2012 2:53 am
Forum: Support and Development
Topic: Box-drawing characters/other UTF-8?
Replies: 17
Views: 9274

Re: Box-drawing characters/other UTF-8?

Yeah, you are right. But I'm using ttf, so things get a bit more complex (the font is not monospace, so probably I have to 'force' it to be by drawing the characters one by one). For example, I want a certain word to be displayed in red. I guess I have to break down the sentence to characters, unles...
by utunnels
Sun Feb 05, 2012 2:12 am
Forum: Support and Development
Topic: Box-drawing characters/other UTF-8?
Replies: 17
Views: 9274

Re: Box-drawing characters/other UTF-8?

Well that depends on what you are working on. If you are dealing with a string cosntant, then there's no problem and your method should be faster than the iterator(maybe) function. I want the game to display a dialogue (like many 2D RPGs do, a box plus some strings), but additionally, I don't want t...
by utunnels
Sat Feb 04, 2012 2:41 pm
Forum: Support and Development
Topic: Box-drawing characters/other UTF-8?
Replies: 17
Views: 9274

Re: Box-drawing characters/other UTF-8?

I don't think that always works, if the character is utf-8 encoded (for example that ÿ takes 2 bytes and any Chinese character takes 3 bytes). I figured it out a minute ago though: function utf8iterate(str) return string.gfind(str, "([%z\1-\127\194-\244][\128-\191]*)") end ...blahblah loca...
by utunnels
Sat Feb 04, 2012 1:48 pm
Forum: Support and Development
Topic: Box-drawing characters/other UTF-8?
Replies: 17
Views: 9274

Re: Box-drawing characters/other UTF-8?

May I ask a related question? Since we have utf-8 support now, how to get a single character from a utf-8 string? The lua function string.byte doesn't work obviously. --- Edit* OK, I just found a long article about that on the lua site. It appears there's no easy way, except interpreting the string ...