Page 1 of 3

Life

Posted: Tue Sep 28, 2010 11:31 am
by zac352
Official Page:
Life News Post on Physibots

Current Release:
http://dl.dropbox.com/u/14976240/releas ... e-cur.love

Description:
I made this little test of my AI skills, my brother wouldn't stop bugging me, and now it's a little evolution game.

Notes:
To modify the world size, edit the variables "worldx" and "worldy" by pressing enter. ("cont" resumes execution.) Carnivores have not been added as a default yet because they are unusually glitchy.
From 1.3.6 onward, I am now using version numbers that are not really weird. ;)

Have fun! :awesome:

Controls:
H - Show healthbars (glitchy)
S - Save (huge file)
L - Load
Print Screen - Screenshot
Arrow Keys - Move Camera
Page Keys - Camera Speed
F2 - Apocalypse
F11 - Toggle Fullscreen (doesn't leave, for some reason)
Enter/Return - debug.debug()
F1 - Print cell/food stats (lag bomb)
Left Click - Place a cell
Right Click - Place a plant
Middle Click - Eraser of Dooom!

Changelog

Screenshots:
Image

Older Versions:
1.3
1.2.1
1.2

Re: Life

Posted: Tue Sep 28, 2010 11:48 am
by kikito
I got this error:

Code: Select all

main.lua:1: attempt to call field '_openConsole' (a nil value)

Re: Life

Posted: Tue Sep 28, 2010 12:19 pm
by nevon
Same here. Commenting out that first line solves it though. I gotta say, this game is very strangely written.

Re: Life

Posted: Tue Sep 28, 2010 12:25 pm
by zac352
kikito wrote:I got this error:

Code: Select all

main.lua:1: attempt to call field '_openConsole' (a nil value)
Your love doesn't support opening the console? :o

Re: Life

Posted: Tue Sep 28, 2010 12:26 pm
by zac352
nevon wrote:Same here. Commenting out that first line solves it though. I gotta say, this game is very strangely written.
Thank you. :crazy:

Re: Life

Posted: Tue Sep 28, 2010 1:00 pm
by zac352
kikito wrote:I got this error:

Code: Select all

main.lua:1: attempt to call field '_openConsole' (a nil value)
btw, what version of love DO you have?

Re: Life

Posted: Tue Sep 28, 2010 1:05 pm
by kikito
Your love doesn't support opening the console?
That is the first time I hear about that function. I don't think it is standard.

If you are trying to open up a console, the correct way is using the config file.
btw, what version of love DO you have?
I have love 0.6.2 in Ubuntu.

Re: Life

Posted: Tue Sep 28, 2010 1:08 pm
by zac352
kikito wrote:
Your love doesn't support opening the console?
That is the first time I hear about that function. I don't think it is standard.

If you are trying to open up a console, the correct way is using the config file.
btw, what version of love DO you have?
I have love 0.6.2 in Ubuntu.
I did a dump of love (table.foreach(love,print)), and love._openConsole was sitting there, just asking for me to asign a key to run debug.debug(). :P

Anyway, thanks for showing me the right way. :neko:

Re: Life

Posted: Tue Sep 28, 2010 2:15 pm
by bartbes
love._openConsole() is an internal function, which probably only exists on windows. On a related sidenote: table.foreach()? From the wiki page "Incompatibilities with the Previous Version":
Functions table.foreach and table.foreachi are deprecated. You can use a for loop with pairs or ipairs instead.

Re: Life

Posted: Wed Sep 29, 2010 11:33 am
by zac352
bartbes wrote:love._openConsole() is an internal function, which probably only exists on windows. On a related sidenote: table.foreach()? From the wiki page "Incompatibilities with the Previous Version":
Functions table.foreach and table.foreachi are deprecated. You can use a for loop with pairs or ipairs instead.
I like table.foreach. It's useful when you don't need 5 lines of code to do one thing. ;o