Search found 2058 matches
- Mon Feb 03, 2020 12:43 pm
- Forum: Libraries and Tools
- Topic: [LIB] utf8string
- Replies: 9
- Views: 11633
Re: [LIB] utf8string
Hey, good job! Have you got some unit tests? UTF-8 handling is a messy job, so I would like to be sure your library is error free. Have you tested it with different UTF-8 strings? I did exhaustive testing but as ad-hoc runs rather than unit tests. I tried to make sure that every single function pro...
- Mon Feb 03, 2020 11:15 am
- Forum: Support and Development
- Topic: Can no longer take screenshots with last love2d version
- Replies: 3
- Views: 3592
Re: Can no longer take screenshots with last love2d version
The screenshot capture function returns nothing, it just takes a screenshot and saves it to the filesystem. No additional action is needed. Your followup line causes a crash because you're trying to call a function on nil object (because capture screenshot didn't return anything). The screenshot is ...
- Mon Feb 03, 2020 5:39 am
- Forum: Libraries and Tools
- Topic: [LIB] utf8string
- Replies: 9
- Views: 11633
[LIB] utf8string
This is a merged and tweaked "uft8" and "string" library. It works exactly the same, except it will work properly with UTF-8 strings* in addition to handling standard ASCII strings. For many reasons, most of which have nothing to do with Lua itself, Unicode pattern matching gener...
- Mon Feb 03, 2020 1:21 am
- Forum: Support and Development
- Topic: "Not enough space" error when printing a string
- Replies: 12
- Views: 11834
Re: "Not enough space" error when printing a string
Seeing how trying to do all of that Unicode handling manually at every corner gets us nowhere, I've made a library. See if it works for you.
https://love2d.org/forums/viewtopic.php?f=5&t=88211
https://love2d.org/forums/viewtopic.php?f=5&t=88211
- Mon Feb 03, 2020 1:16 am
- Forum: Support and Development
- Topic: Calling C dll from love2d
- Replies: 11
- Views: 11459
Re: Calling C dll from love2d
LuaJIT is based on 5.1 specs with some 5.2 features backported, with little implementation details available; it's a special case. Then again it might be simply the case of building your DLL against Lua binaries and not LuaJIT ones.
- Mon Feb 03, 2020 12:41 am
- Forum: Support and Development
- Topic: Calling C dll from love2d
- Replies: 11
- Views: 11459
Re: Calling C dll from love2d
I'm referring to the function that crashes your dll - luaL_register. There's a new method of registering C functions in 5.2. Consult the manual. https://www.lua.org/pil/26.html https://www.lua.org/manual/5.2/manual.html#4 Also I don't believe single-threaded LOVE is possible, because the audio modul...
- Sun Feb 02, 2020 10:40 pm
- Forum: Support and Development
- Topic: Calling C dll from love2d
- Replies: 11
- Views: 11459
Re: Calling C dll from love2d
This function have been removed from Lua 5.2, try using updated API.
- Sun Feb 02, 2020 12:26 am
- Forum: Support and Development
- Topic: "Not enough space" error when printing a string
- Replies: 12
- Views: 11834
Re: "Not enough space" error when printing a string
I insist that you head over to Wikipedia and study carefully the article about UTF-8 encoding.
- Fri Jan 31, 2020 10:54 pm
- Forum: Support and Development
- Topic: "Not enough space" error when printing a string
- Replies: 12
- Views: 11834
Re: "Not enough space" error when printing a string
What you experience is that a multibyte UTF-8 character gets cut into pieces and this corrupts the input stream. That's because Lua operates on binary strings, not UTF-8 multibyte character strings. There's a built-in module for handling UTF-8.
- Fri Jan 31, 2020 10:01 pm
- Forum: Support and Development
- Topic: Dividing spritesheets into quads
- Replies: 2
- Views: 1997
Re: Dividing spritesheets into quads
I'd suggest you use a dedicated software for this instead of managing all of that by hand.