Search found 10 matches
- Fri Sep 25, 2015 1:58 pm
- Forum: Libraries and Tools
- Topic: [APIs/Libraries/Resources] Things4Löve2D
- Replies: 2
- Views: 1914
Re: [APIs/Libraries/Resources] Things4Löve2D
Gui is a ton of work to do well so I have no good suggestions there. As for the utils4love lib I think you need a specific direction. The point of a lib is to perform a very specific task so you can reuse it. Looking at the functions I see drawing code string manipulation - it looks more like a col...
- Mon Sep 21, 2015 2:58 pm
- Forum: Support and Development
- Topic: [Need Help] Utf-8 deconding error: not enough space
- Replies: 4
- Views: 2676
Re: [Need Help] Utf-8 deconding error: not enough space
Make sure you've saved your file as utf8, this can happen if the string isn't valid utf-8. Oh I forgot to mention, I'm using a imageFont, and if I print the entire charset It doesn't throw the error You probably accidentally deleted "half a character" somewhere I would guess. As bartbes s...
- Mon Sep 21, 2015 3:16 am
- Forum: Support and Development
- Topic: [Need Help] Utf-8 deconding error: not enough space
- Replies: 4
- Views: 2676
Re: [Need Help] Utf-8 deconding error: not enough space
Oh I forgot to mention, I'm using a imageFont, and if I print the entire charset It doesn't throw the errorbartbes wrote:Make sure you've saved your file as utf8, this can happen if the string isn't valid utf-8.
- Sun Sep 20, 2015 7:52 pm
- Forum: Support and Development
- Topic: [Need Help] Utf-8 deconding error: not enough space
- Replies: 4
- Views: 2676
[Need Help] Utf-8 deconding error: not enough space
I was messing arround tring to print and debug my font, wich has a large character set: system.charset = " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,!?-+/():;%&`'*#=[]\"_<>|äëïöüáéíóúàèìòù¨âêîôû^~ÄËÏÖÜÁÉÍÓÚÀÈÌÒÙÂÊÎÔÛñÑ" And when I try to print this part: %&am...
- Sun Sep 20, 2015 6:09 am
- Forum: Libraries and Tools
- Topic: [APIs/Libraries/Resources] Things4Löve2D
- Replies: 2
- Views: 1914
[APIs/Libraries/Resources] Things4Löve2D
Things4Löve2D ~ In heavy development In this topic I will be posting some interesting APIs and Libraries that I'm working on, also resources and fonts, some of the contents are not mine, so, if I mention or upload some I will put the author's page with it. As most of the APIs/Libraries are in devel...
- Sat Sep 19, 2015 12:50 am
- Forum: Support and Development
- Topic: [Need Help] Loading Dynamic Content (aka mods)
- Replies: 9
- Views: 4323
Re: [Need Help] Loading Dynamic Content (aka mods)
So, here's an example: --A lua file ( I know you're using json ) that has data return { itema = "thing", itemb = "thing", } --the loading code for k, v in pairs( love.filesystem.getDirectoryItems( dir ) do --get the file local t = pcall( love.filesystem.load( fileLocation )( ) )...
- Sat Sep 19, 2015 12:42 am
- Forum: Support and Development
- Topic: [Need Help] Loading Dynamic Content (aka mods)
- Replies: 9
- Views: 4323
Re: [Need Help] Loading Dynamic Content (aka mods)
I dont suggest using io.open when you can just use love.filesystem.read( ). Even better, make the table setup like "return { }" then all you need to do is "local t = pcall( love.filesystem.load( path )( ) )" hmmm.... I didn't get the "make the table setup like "return ...
- Sat Sep 19, 2015 12:02 am
- Forum: Support and Development
- Topic: [Need Help] Loading Dynamic Content (aka mods)
- Replies: 9
- Views: 4323
Re: [Need Help] Loading Dynamic Content (aka mods)
Alright. The way I do it in my game is that I have different folders for each object type: worldTypes, blocks, and items. I loop through each one and find the block, read it's table, and throw it into a metatable so that any other values not added get added and then the table is put into the global...
- Fri Sep 18, 2015 11:20 pm
- Forum: Support and Development
- Topic: [Need Help] Loading Dynamic Content (aka mods)
- Replies: 9
- Views: 4323
Re: [Need Help] Loading Dynamic Content (aka mods)
Not sure if I understood things right. I've been building my most recent game to be somewhat modular using metatables, but you don't necessarily need that. If by "modding" do you mean like being able to add stuff to your game? Because then I suggest looping through wherever you're saving ...
- Fri Sep 18, 2015 10:09 pm
- Forum: Support and Development
- Topic: [Need Help] Loading Dynamic Content (aka mods)
- Replies: 9
- Views: 4323
[Need Help] Loading Dynamic Content (aka mods)
I'm working on a game and, as I don't like the hardcoded way to add items or objects, I'm dealing with Dynamic content saved to a specific folder. I've done the code that checks for content and adds the filename to a variable so if you add a custom monter in "assets/monsters" theorically i...