Search found 8 matches

by elfrea
Fri Jan 13, 2023 9:55 pm
Forum: Support and Development
Topic: Love Error handling question
Replies: 6
Views: 1188

Re: Love Error handling question

darkfrei : did you read my question? I was not asking about to check if a file exists or of any type, it's about exception handling. But thanks anyway :)

pgimeno : Thank you, thats exactly what i was looking for
by elfrea
Fri Jan 13, 2023 7:40 pm
Forum: Support and Development
Topic: Love Error handling question
Replies: 6
Views: 1188

Love Error handling question

Hi, I just want to know if its possible to catch a love.graphics.newImage error (file not found) and manage what happens myself. in other words, i don't want the program to crash. something like that in C: try { image = love.graphics.newImage("test.png") } catch { image = nil } What im doi...
by elfrea
Fri Jan 13, 2023 7:34 pm
Forum: Support and Development
Topic: love.audio.newSource Cannot use full path
Replies: 5
Views: 1009

Re: love.audio.newSource Cannot use full path

ok thanks but thats allright i dont use the love filesystem, built my own lib instead
by elfrea
Sun Jan 08, 2023 9:06 pm
Forum: Support and Development
Topic: love.audio.newSource Cannot use full path
Replies: 5
Views: 1009

Re: love.audio.newSource Cannot use full path

Ok thanks everyone, im gonna wait for v12. Actually what im doing is not exactly a game, its a tilemap editor with an audio player included in it, so i wanted to be able to load any song on my computer. but its ok, ive changed it so it scans all files in a music directory instead, so I just have to ...
by elfrea
Sun Jan 08, 2023 8:36 pm
Forum: Support and Development
Topic: love.audio.newSource Cannot use full path
Replies: 5
Views: 1009

love.audio.newSource Cannot use full path

Hi, i've been messing with the audio lib, and i could make it work no problem. I can load a song if i give a path like : "music/music.ogg" which is located in "E:\lovegame" if I give it the full path : "E:\lovegame\music\music.ogg" or "E:/lovegame/music/music.ogg&q...
by elfrea
Sat Jan 07, 2023 5:41 am
Forum: Support and Development
Topic: UTF-8 decoding issue
Replies: 3
Views: 984

Re: UTF-8 decoding issue

yeah i understand. but i cant really use the love.filesystem functions because i read that you're locked inside the 'game folder' probably in "appdata" folder. I got to have access to the whole file system. I'll just let it go for now, and i'll probably do either a conversion like u said, ...
by elfrea
Fri Jan 06, 2023 11:48 pm
Forum: Support and Development
Topic: Fullscreen Resolution incorrect when using windows scaling
Replies: 4
Views: 1425

Re: Fullscreen Resolution incorrect when using windows scaling

One could simply
- rightclick the 'love.exe' file, (probably in c:\program files\LOVE\)
- click 'properties'
- click 'Compatibility' tab
- click 'Change high DPI settings'
- check 'Override high DPI scaling behavior' and select 'scaling performed by Application'
by elfrea
Fri Jan 06, 2023 11:44 pm
Forum: Support and Development
Topic: UTF-8 decoding issue
Replies: 3
Views: 984

UTF-8 decoding issue

Hi everyone, i've stumbled nto an UTF-8 decoding issue. I've made a function to fetch all files from a specified path. everything is working well, but when checking a certain folder content, my program would crash saying : UTF-8 decoding error: Invalid UTF-8 i've checked with the file explorer to se...