Error creating Hello World game

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.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Error creating Hello World game

Post by kikito »

nevon wrote: I would suggest that you get a different text editor. Coding without whitespace really isn't an option.
I suspect the problem isn't the editor, but the way it was used. In some editors (Notepad++, for example) there's a menu option for "changing charset used" and a different one for "converting the file to a another charset". They don't convert the file, even if you change the charset, automatically (bad decision IMHO). Probably the same happens with Textwrangler.

Anyway, if he's changed the settings to UTF without BOM by default, any new files should be ok.
When I write def I mean function.
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Re: Error creating Hello World game

Post by zac352 »

I sense that GEdit decoded it properly.
Attachments
encodingwin.PNG
encodingwin.PNG (36.69 KiB) Viewed 1706 times
Hello, I am not dead.
pighead10
Prole
Posts: 6
Joined: Fri Oct 29, 2010 5:32 pm

Re: Error creating Hello World game

Post by pighead10 »

I suggest using Notepad++, if you have Windows. It has support for many different languages, including Lua.
User avatar
ishkabible
Party member
Posts: 241
Joined: Sat Oct 23, 2010 7:34 pm
Location: Kansas USA

Re: Error creating Hello World game

Post by ishkabible »

notepad++ is what i use for all scripting languages except Lua. i use SciTi for Lua, mostly because for i got used to using it for Lua making non-love programs. for compiled languages i tend to use an IDE. i recommend both SciTi (for Lua) and notepad++ (for dam near everything including Lua)
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Error creating Hello World game

Post by kikito »

Dudes, stop suggesting Notepad++. He's said on his first post that he is on mac. It has no textpad. Textwrangler (the one he uses) seems good enough.
When I write def I mean function.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Error creating Hello World game

Post by Robin »

kikito wrote:Textwrangler (the one he uses) seems good enough.
Then he needs to change his settings to stop emitting no-break spaces.
Help us help you: attach a .love.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 5 guests