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
Search found 8 matches
- Fri Jan 13, 2023 9:55 pm
- Forum: Support and Development
- Topic: Love Error handling question
- Replies: 6
- Views: 1924
- Fri Jan 13, 2023 7:40 pm
- Forum: Support and Development
- Topic: Love Error handling question
- Replies: 6
- Views: 1924
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...
- Fri Jan 13, 2023 7:34 pm
- Forum: Support and Development
- Topic: love.audio.newSource Cannot use full path
- Replies: 5
- Views: 1180
Re: love.audio.newSource Cannot use full path
ok thanks but thats allright i dont use the love filesystem, built my own lib instead
- Sun Jan 08, 2023 9:06 pm
- Forum: Support and Development
- Topic: love.audio.newSource Cannot use full path
- Replies: 5
- Views: 1180
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 ...
- Sun Jan 08, 2023 8:36 pm
- Forum: Support and Development
- Topic: love.audio.newSource Cannot use full path
- Replies: 5
- Views: 1180
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...
- Sat Jan 07, 2023 5:41 am
- Forum: Support and Development
- Topic: UTF-8 decoding issue
- Replies: 3
- Views: 1158
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, ...
- Fri Jan 06, 2023 11:48 pm
- Forum: Support and Development
- Topic: Fullscreen Resolution incorrect when using windows scaling
- Replies: 4
- Views: 1617
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'
- 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'
- Fri Jan 06, 2023 11:44 pm
- Forum: Support and Development
- Topic: UTF-8 decoding issue
- Replies: 3
- Views: 1158
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...