I have been using love2d for about six months now. I love it! Great community, wiki, and very user-friendly/appealing. Occasionally I go onto the projects and demos page and try out some games. But about 2/10 actually work for me. I never could figure out why. But after trying out another love2d users game who has been helping me a great deal. I finally figured out it is because I'm on a mac.
so this "other love2d user who has been helping me a lot" had always been sending me screenshots of his game and it looked amazing! So after begging long enough for a demo, or an alpha, he sent me it. But when I open it I immediately get an error...
"PISTOL.png" does not exist
So after looking through his files I noticed that the picture was actually called "Pistol.png". So on a windows I'm just assuming that the capitalization doesn't matter as much as on a mac. There were a lot of erros with capitalization that I decided to go through and fix.
But I'm not saying capitalization is the only difference. In playing other games I got plenty of errors that did not make any sense to me. So if someone would like to help me further explore the differences in code, between mac and pc, to help love2d users to make a game that WILL work on both mac, and pc(I'm not kicking out linux, but I just don't have one!). Then please message me!
Thanks!
Macs and PCs
- baconhawka7x
- Party member
- Posts: 494
- Joined: Mon Nov 21, 2011 7:05 am
- Location: Oregon, USA
- Contact:
Macs and PCs
Last edited by baconhawka7x on Thu Jan 05, 2012 2:35 pm, edited 1 time in total.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Macs and PCs
This is actually not the case, a .love is (should be, anyway) case-sensitive as well. Otherwise, if you just use the normal functions there won't be anything OS-dependent in your code.
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: Macs and PCs
In a windows machine, executing a game "uncompressed" (in the folder itself) will work - for windows, "Pistol.jpg" is the same as "PISTOL.JPG". But once you compress them into a .love file, they will not work any more (Inside zip files, they are different).
The other important difference I'm aware of is that window users need to add an option in the conf file in order to see the console output (in a separate window) while the rest of us (win and mac) don't.
The other problem I know of is that old graphic cards throw errors in some cases, mostly non-po2 images/framebuffers. And that's it. I don't think I have missed any other difference.
The other important difference I'm aware of is that window users need to add an option in the conf file in order to see the console output (in a separate window) while the rest of us (win and mac) don't.
The other problem I know of is that old graphic cards throw errors in some cases, mostly non-po2 images/framebuffers. And that's it. I don't think I have missed any other difference.
When I write def I mean function.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Macs and PCs
Like kikito said, a game will usually run on any OS if it works. If you get an error that's not the result of a capitalisation error, it is probably a bug in the game.baconhawka7x wrote:But I'm not saying capitalization is the only difference. In playing other games I got plenty of errors that did not make any sense to me. So if someone would like to help me further explore the differences in code, between mac and pc, to help love2d users to make a game that WILL work on both mac, and pc(I'm not kicking out linux, but I just don't have one!). Then please message me!
The best course of action would be to find the makers of the game, or to find the thread about that game on this forum, and tell them about the error.
Run LÖVE in the terminal, so you can copy/paste the traceback in your bug report and tell the maker what you did to make the error happen, and if it happens all the time or just sometimes.
Help us help you: attach a .love.
Who is online
Users browsing this forum: No registered users and 7 guests