Lua is annoying sometimes.

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Lua is annoying sometimes.

Post by zac352 »

I spent 3 days debugging my script to find out Lua doesn't support order of operations. :cry:
Then I got it to work, and it made up for the fail. But I can't upload it.
The extension bmp is not allowed.
:death:
Hello, I am not dead.
User avatar
vrld
Party member
Posts: 917
Joined: Sun Apr 04, 2010 9:14 pm
Location: Germany
Contact:

Re: Lua is annoying sometimes.

Post by vrld »

zac352 wrote:Lua doesn't support order of operations.
I am not sure I can follow you on that one. Do you mean 6 + 7 * 8 evaluates to (6 + 7) * 8 =104 rather than the correct 6 + (7 * 8) = 62? If so, then you are clearly mistaken...
The extension bmp is not allowed.
Why would you want to upload a bmp anyway? Use jpg or png.
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum.

hump | HC | SUIT | moonshine
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Lua is annoying sometimes.

Post by kikito »

bmp = :halloween:

Kill it! Now!
When I write def I mean function.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Lua is annoying sometimes.

Post by bartbes »

And why do you keep spawning "Lua is <something negative>"?
User avatar
Taehl
Dreaming in associative arrays
Posts: 1025
Joined: Mon Jan 11, 2010 5:07 am
Location: CA, USA
Contact:

Re: Lua is annoying sometimes.

Post by Taehl »

What fail. Lua does fully support OoO.

And .bmp is terrible. Use .png instead, since it's better in every single way.
Earliest Love2D supporter who can't Love anymore. Let me disable pixel shaders if I don't use them, dammit!
Lenovo Thinkpad X60 Tablet, built like a tank. But not fancy enough for Love2D 0.10.0+.
User avatar
Jasoco
Inner party member
Posts: 3725
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Lua is annoying sometimes.

Post by Jasoco »

BMP is soooo 1998. You upload BMP to the internet, you need to have your internetting license revoked. Use PNG, JPEG or in some cases GIF if it's animated and small. But not the horrible uncompressed and bloated BMP. BMP is a relic from the early days of Windows that should have died along with PCX.
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Re: Lua is annoying sometimes.

Post by zac352 »

vrld wrote:
zac352 wrote:Lua doesn't support order of operations.
I am not sure I can follow you on that one. Do you mean 6 + 7 * 8 evaluates to (6 + 7) * 8 =104 rather than the correct 6 + (7 * 8) = 62? If so, then you are clearly mistaken...
The extension bmp is not allowed.
Why would you want to upload a bmp anyway? Use jpg or png.
I tried both love and the Lua 5.1 console. Both came out with division coming before multiplication. >_>
Hello, I am not dead.
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Re: Lua is annoying sometimes.

Post by zac352 »

Taehl wrote:What fail. Lua does fully support OoO.

And .bmp is terrible. Use .png instead, since it's better in every single way.
I like png, but love forces me to save in either bmp or tga. :halloween:
Hello, I am not dead.
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Re: Lua is annoying sometimes.

Post by zac352 »

bartbes wrote:And why do you keep spawning "Lua is <something negative>"?
Because I haven't used it in a while, and I'm noticing how simpler (and thus lacking in features) Lua is compared to C++.
Although I do admit coroutine.wrap and coroutine.yield are really, really useful. :P
Hello, I am not dead.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Lua is annoying sometimes.

Post by kikito »

Taehl wrote:love forces me to save in either bmp or tga. :halloween:
MMm.. I'm assuming you are refering to saving screenshots.

Robin, bartbes: Is that still correct? Only bmp and tga in screenshots?
When I write def I mean function.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], darkfrei, Semrush [Bot] and 53 guests