I tried compressing my game into a love folder but it's having issues with the ttf file

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
MaxGamz
Party member
Posts: 107
Joined: Fri Oct 28, 2022 3:09 am

I tried compressing my game into a love folder but it's having issues with the ttf file

Post by MaxGamz »

I already checked and there was a post stating that I simply had to change the extension from TTF to ttf, but after doing this love still won't recognize the file after being zipped, are there other options?
Andlac028
Party member
Posts: 174
Joined: Fri Dec 14, 2018 2:27 pm
Location: Slovakia

Re: I tried compressing my game into a love folder but it's having issues with the ttf file

Post by Andlac028 »

Do you have any reproducible example?
MaxGamz
Party member
Posts: 107
Joined: Fri Oct 28, 2022 3:09 am

Re: I tried compressing my game into a love folder but it's having issues with the ttf file

Post by MaxGamz »

Andlac028 wrote: Fri Jan 06, 2023 5:52 pm Do you have any reproducible example?
I can send the .love file but I think the issue isn't the ttf file. I tried using an image font instead and I'm having the same problems. It runs perfectly on VS code but the .love file won't work.
Attachments
Game.love
(4.44 MiB) Downloaded 40 times
Andlac028
Party member
Posts: 174
Joined: Fri Dec 14, 2018 2:27 pm
Location: Slovakia

Re: I tried compressing my game into a love folder but it's having issues with the ttf file

Post by Andlac028 »

MaxGamz wrote: Fri Jan 06, 2023 5:57 pm
Andlac028 wrote: Fri Jan 06, 2023 5:52 pm Do you have any reproducible example?
I can send the .love file but I think the issue isn't the ttf file. I tried using an image font instead and I'm having the same problems. It runs perfectly on VS code but the .love file won't work.
You are using file-system that is case-insensitive (probably NTFS on Windows), but ZIPs are case-sensitive, so you have to make sure, you provide exactly same name - your image font is at "Sprites/Imagefont.png", but you access it with "Sprites/imagefont.png", so make sure, all letters are in same case (this is why correct case of extension fixed problem you found). After changing lower case i to upper case I (first letter of imagefont) in main.lua, game loaded correctly.
MaxGamz
Party member
Posts: 107
Joined: Fri Oct 28, 2022 3:09 am

Re: I tried compressing my game into a love folder but it's having issues with the ttf file

Post by MaxGamz »

Andlac028 wrote: Fri Jan 06, 2023 6:03 pm
MaxGamz wrote: Fri Jan 06, 2023 5:57 pm
Andlac028 wrote: Fri Jan 06, 2023 5:52 pm Do you have any reproducible example?
I can send the .love file but I think the issue isn't the ttf file. I tried using an image font instead and I'm having the same problems. It runs perfectly on VS code but the .love file won't work.
You are using file-system that is case-insensitive (probably NTFS on Windows), but ZIPs are case-sensitive, so you have to make sure, you provide exactly same name - your image font is at "Sprites/Imagefont.png", but you access it with "Sprites/imagefont.png", so make sure, all letters are in same case (this is why correct case of extension fixed problem you found). After changing lower case i to upper case I (first letter of imagefont) in main.lua, game loaded correctly.
Thanks for the help, I didn't pay close enough attention to the cases
Post Reply

Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot], GetAsync, Google [Bot] and 6 guests