Search found 223 matches

by KayleMaster
Thu Jun 21, 2018 6:17 pm
Forum: Support and Development
Topic: [SOLVED] Is it possible to have a config file next to executable?
Replies: 25
Views: 5771

Re: [SOLVED] Is it possible to have a config file next to executable?

Jeez ok, I'll use lua.
Do I need to sanitize the lua file somehow?
by KayleMaster
Thu Jun 21, 2018 4:02 pm
Forum: Support and Development
Topic: [SOLVED] Is it possible to have a config file next to executable?
Replies: 25
Views: 5771

Re: [SOLVED] Is it possible to have a config file next to executable?

I don't agree with ivan's suggestions that INI files have been gone for a long time. They're super useful for changing game settings when you can't do that ingame, due to wrong game settings! And also a bunch of other stuff. They're still used for many commercial games and nearly every game has an i...
by KayleMaster
Thu Jun 21, 2018 9:45 am
Forum: General
Topic: Gamescom Showcase Contest
Replies: 2
Views: 1168

Re: Gamescom Showcase Contest

Well I guess Stone Kingdoms doesn't qualify then, damn!
It's really cool that you have a booth! Are you showcasing any new game?
by KayleMaster
Wed Jun 20, 2018 9:57 am
Forum: Support and Development
Topic: Prevent freezing while working with large files?
Replies: 28
Views: 8766

Re: Prevent freezing while working with large files?

I mean, I can optimize it if you need to. But I'd need your project folder and data to do that.
Anyways, Love2D isn't really meant for this, obviously it's a gamedev framework, but I don't think it's that slow.
by KayleMaster
Wed Jun 20, 2018 9:27 am
Forum: Support and Development
Topic: Prevent freezing while working with large files?
Replies: 28
Views: 8766

Re: Prevent freezing while working with large files?

You can still do that in C, using FFI, if you absolutely need to. I don't think loading a 600k line file into a contiguous array would work well tho.
by KayleMaster
Wed Jun 20, 2018 8:54 am
Forum: Support and Development
Topic: Using mouse input, left mouse button not doing anything??
Replies: 5
Views: 1410

Re: Using mouse input, left mouse button not doing anything??

I guess he has text in a love.graphics.print in love.draw.
Anyways, you've got them wrong, they're the other way around. 1 is left mouse, 2 is right mouse, 3 is middle mouse button.
by KayleMaster
Wed Jun 20, 2018 8:13 am
Forum: Support and Development
Topic: Using mouse input, left mouse button not doing anything??
Replies: 5
Views: 1410

Re: Using mouse input, left mouse button not doing anything??

Where did you put that code? Can you share your project? It should work, but I don't know the context.
EDIT: isn't 1 left mouse button and 2 right mouse button?
by KayleMaster
Wed Jun 20, 2018 7:27 am
Forum: Support and Development
Topic: Prevent freezing while working with large files?
Replies: 28
Views: 8766

Re: Prevent freezing while working with large files?

It sounds like you can't send your progress properly. EDIT: READ LAST CODE SNIPPET --thread.lua Files = love.filesystem.getDirectoryItems("data") for iFiles = 1, #Files do for Line in love.filesystem.lines("data/" .. Files[iFiles]) do DoCancel = ChannelCancel:pop() if DoCancel then goto done end cha...
by KayleMaster
Wed Jun 20, 2018 6:50 am
Forum: Support and Development
Topic: Prevent freezing while working with large files?
Replies: 28
Views: 8766

Re: Prevent freezing while working with large files?

Well in that case, yeah. How much faster do you need ? It might be better to read the whole file in the thread without sending each line to the other thread and do the stuff you need to do with it there.