Search found 39 matches

by YounYokel
Sat Feb 01, 2020 8:58 am
Forum: Support and Development
Topic: Can love.filesystem.read skip custom linebreaks?
Replies: 12
Views: 6332

Re: Can love.filesystem.read skip custom linebreaks?

Oh OK, so what you want is probably this: love.filesystem.read():gsub('\r?\n', ''):gsub('\\n', '\n') Applied to your example: s = [[Hello World. This is a test file which contains some text.\n Thanks, bye! ]] print((s:gsub('\r?\n', ''):gsub('\\n', '\n'))) --[[ prints: Hello World.This is a test fil...
by YounYokel
Fri Jan 31, 2020 6:06 pm
Forum: Support and Development
Topic: Can love.filesystem.read skip custom linebreaks?
Replies: 12
Views: 6332

Re: Can love.filesystem.read skip custom linebreaks?

Not gonna edit my previous post, but instead i'll post what i *actually* wanted to: love.filesystem.read():gsub('\r', [[\r]]):gsub('\n', [[\n]]) Basically, i assumed that OP wanted to turn the functional versions into string representations of the escape sequences. (double sqr brackets don't parse ...
by YounYokel
Thu Jan 30, 2020 10:48 am
Forum: Support and Development
Topic: Can love.filesystem.read skip custom linebreaks?
Replies: 12
Views: 6332

Can love.filesystem.read skip custom linebreaks?

Hey, love.filesystem.read() returns a string with linebreaks added in a file by user with Enter button and with \n , but it makes harder to read and modify the original text. I'd like to know is there a way to ignore Enter keys but still read the \n signs? That would be useful. :awesome: Thanks.
by YounYokel
Thu Jan 30, 2020 10:41 am
Forum: Support and Development
Topic: How do I install on Linux system?
Replies: 5
Views: 3837

Re: How do I install on Linux system?

What's your graphics card? Do you have GL drivers for it? Does glxgears work for you? Also, the output of: 'glxinfo | grep string' (without the quotes) would be useful. Both are in package mesa-utils. Edit: swrast is the software rasterizer (software OpenGL). That sounds like you don't have drivers...
by YounYokel
Tue Jan 28, 2020 2:00 pm
Forum: Support and Development
Topic: How do I install on Linux system?
Replies: 5
Views: 3837

Re: How do I install on Linux system?

And... it doesn't run libGL error: No matching fbConfigs or visuals found libGL error: failed to load driver: swrast X Error of failed request: GLXBadContext Major opcode of failed request: 154 (GLX) Minor opcode of failed request: 6 (X_GLXIsDirect) Serial number of failed request: 107 Current seria...
by YounYokel
Tue Jan 28, 2020 1:54 pm
Forum: Support and Development
Topic: How do I install on Linux system?
Replies: 5
Views: 3837

Re: How do I install on Linux system?

grump wrote: Tue Jan 28, 2020 1:45 pm You did not install love yet, you just added the repository to apt. Try

Code: Select all

sudo apt install love
Oh, that's funny because it was my first thought to do that. Then I tried this I didn't recognised the packages and thought that it was some kind of system application. Silly me))

Thank you! =3
by YounYokel
Tue Jan 28, 2020 1:41 pm
Forum: Support and Development
Topic: How do I install on Linux system?
Replies: 5
Views: 3837

How do I install on Linux system?

Hey, I just setted up my Linux system and I was just trying to install the LÖVE using this command: sudo add-apt-repository ppa:bartbes/love-stable After installation it didn't appear or whatever. I tried to use love2d, love-stable commands in terminal but nothing. Is there any more ways for this? M...
by YounYokel
Mon Jan 27, 2020 1:29 pm
Forum: General
Topic: Avatars: OBEY!
Replies: 763
Views: 1010651

Re: Avatars: OBEY!

.
by YounYokel
Sun Jan 26, 2020 2:50 pm
Forum: General
Topic: Avatars: OBEY!
Replies: 763
Views: 1010651

Re: Avatars: OBEY!

Maybe offtopic, but I noticed that there is 2 Youtube link sections in Profile Options
by YounYokel
Sun Jan 26, 2020 6:35 am
Forum: Libraries and Tools
Topic: IntelliJ and Lua Plugin
Replies: 2
Views: 6187

Re: IntelliJ and Lua Plugin

Is this a right subforum to post in?