compile error

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
navira
Prole
Posts: 2
Joined: Tue Nov 29, 2016 12:40 pm

compile error

Post by navira »

Hi everyone :awesome: , i new in this engine. Try to create simple platformer.
i found nice example https://www.youtube.com/watch?v=I7MYvFAgoXM
but faced with the problem.
first
Error: [string "boot.lua"]:395: conf.lua:18: attempt to index field 'screen' (a nil value)
I found that in screen was renamed to window and fix it, but I can not understand how to fix this error
Error: main.lua:5: attempt to index field 'joystick' (a nil value)
the joystick has connected, can somebody help me?
User avatar
Sir_Silver
Party member
Posts: 286
Joined: Mon Aug 22, 2016 2:25 pm
Contact:

Re: compile error

Post by Sir_Silver »

Hi there, welcome to the forums.

It's going to be pretty difficult to help you debug your code unless we can see it, would you mind posting your code or attaching a .love file here?
User avatar
raidho36
Party member
Posts: 2063
Joined: Mon Jun 17, 2013 12:00 pm

Re: compile error

Post by raidho36 »

The problem it seems that the example uses old version. One way to go about it is to update all code to the current version. The other way is to simply download and use older version to match the example you're doing. Once you grasp everything you wanted, you can switch back to modern version and build all the code necessary from scratch anyway.

Here is the downloads page. Scroll down to see older versions. https://bitbucket.org/rude/love/downloads
navira
Prole
Posts: 2
Joined: Tue Nov 29, 2016 12:40 pm

Re: compile error

Post by navira »

yeah, with love-0.8.0 work fine thank you ;)
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 4 guests