My first simple program not working :(

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Kronoze
Prole
Posts: 12
Joined: Thu Apr 19, 2012 9:34 pm

My first simple program not working :(

Post by Kronoze »

So I've watched a Introduction to LOVE tutorial on YouTube, and I did exactly what the guy said. I installed the Zipped 32-bit, and then renamed that folder as "Love2D". I then created a new folder inside Love2D called "Games". Finally, I made a folder inside Games called "HelloWorld". Inside HelloWorld, I made main.lua, and typed this inside.

Code: Select all

function love.draw()
love.graphics.print("Hello World!",300,300)
end
I then dragged the HelloWorld folder on top of the love.exe inside of the Love2D folder. When I ran it, it said "love.exe has stopped working (blah blah)". I'm assuming this is because I've made an error. Does anyone know what I did wrong, and could they explain it to me?
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: My first simple program not working :(

Post by Nixola »

No error, it seems it's (partially) LOVE's fault. It requires something, but I don't remember what... Maybe .NET Framework?
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: My first simple program not working :(

Post by bartbes »

The visual c++ runtime.. 2008, I think.
This is a case where using the installer would've worked (afaik).
Kronoze
Prole
Posts: 12
Joined: Thu Apr 19, 2012 9:34 pm

Re: My first simple program not working :(

Post by Kronoze »

So what you're saying is I should download the installer 32-bit version? Then it will work?
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: My first simple program not working :(

Post by Nixola »

No, 'cause I used the installer and had the same problem, you have to download The Visual C++ Runtime .. 2008, I think
EDIT: No, I didn't have the same problem
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
Boolsheet
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: My first simple program not working :(

Post by Boolsheet »

The only dependency of LÖVE 0.8.0 is at least Windows XP and a graphics driver with decent OpenGL support. (Hell, even the Microsoft OpenGL fallback driver works)

It's likely that your graphics driver has an issue with LÖVE. What graphics card and driver are you using? Can you update it?
Shallow indentations.
Kronoze
Prole
Posts: 12
Joined: Thu Apr 19, 2012 9:34 pm

Re: My first simple program not working :(

Post by Kronoze »

I'm sorry, I don't know anything about graphic cards or drivers. Is it simple to update? What do I have to do? It's for sure the graphic card then, right?
User avatar
Boolsheet
Inner party member
Posts: 780
Joined: Wed Dec 29, 2010 4:57 am
Location: Switzerland

Re: My first simple program not working :(

Post by Boolsheet »

Kronoze wrote:Is it simple to update?
That really depends on your hardware. The hardest part may be the search for the latest driver.
First, you need to know what hardware you have. You can use one of the many system information programs, like speccy.

If you have a desktop card from NVIDIA or ATI/AMD you can visit their drivers website and select it from the dropdown menu.
A laptop graphics card might get trickier. It's possible that it works like above with the desktop cards, but you may have to go to the laptop manufacturer's website and search for the driver. This can be a huge pain.
It's for sure the graphic card then, right?
No. It's just that the most crashes I have heard about with 0.8.0 were related to the graphics driver.
Shallow indentations.
Kronoze
Prole
Posts: 12
Joined: Thu Apr 19, 2012 9:34 pm

Re: My first simple program not working :(

Post by Kronoze »

Do you think it might work if I got the installer version instead of the zipped?
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: My first simple program not working :(

Post by Robin »

Can't hurt to try. ;)
Help us help you: attach a .love.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest