SnailLife

Profile
Stockholm
Web-based snail simulation
26 comments
25 entries
Advertisement
Liza Shulyayeva
October 24, 2017
Running tests and getting coverage reports on server deployment in SnailLife

Yesterday I added tests to server deployment in my deployServer.sh script: 
 

echo "Running tests"
cd ../../server/lib

set -e
echo "mode: set" > allcoverage.out

for d in $(go list ./... | grep -v vendor); do
    parentdir=`dirname "$d"`
    subdir=`basename "$d"`
    echo "subdir: " $sub…
1,545 views
Liza Shulyayeva
August 05, 2017
Server and client for SnailLife Go

Over the last couple of days I restructured SnailLife Go into a server and client. I’m still in the “rough draft” stage, but the top level project structure now looks like this:

gosnaillife
├── client
├── cmd
├── common
├── LICENSE.md
├── README.md
├── server
└── setup
Intent
  • Split ap…
1,766 views
Liza Shulyayeva
July 29, 2017
Go auth (and other) progress
July 28

Made a bit more progress on the authentication basics today. Relevant commits are:

July 29

Today I focused a bit on the building and installati…

1,861 views
Liza Shulyayeva
July 28, 2017
Playing with authentication in Go

It’s almost 2am and I’m sleepy, but I wanted to write this down while it’s relatively fresh in my mind.

I’ve been playing around with user authentication in Go.

While actual user interaction is not the primary part of the simulation and will not be the focus in the Go rewrite as…

1,908 views
Liza Shulyayeva
July 23, 2017
Trying out Go

A couple of weeks ago I had the genius idea to rewrite SnailLife in Go. I’ve already looked into doing this once before a couple of years ago, but wasn’t really feeling it and stuck with PHP (mostly for nostaligia reasons). Now though, SnailLife is this bloated PHP app. Most of the core function…

1,569 views
Liza Shulyayeva
May 20, 2017
State of the Snail - Debugging Hell

It has been a while! SnailLife work has been moving at a snail's pace. Why? Because debugging the snail brain has turned into a highly demotivating, hellish endeavour. The snails make decisions and perform actions based on so much *crap*, that the simple log files I was using all long are just not …

3,655 views
Liza Shulyayeva
February 08, 2016
Snaily Updates: BrainHub + Runners, SnailLife Logo

I finally have two BrainRunners working on a DigitalOcean droplet, and one BrainHub on another droplet queueing and assigning tasks to the runners.

It's still rough, but let's start with the BrainHub's scheduled artisan commands (Artisan is the CLI that comes with Laravel):

[font='courier new']Que…

1,962 views
Liza Shulyayeva
January 26, 2016
BrainHub and BrainRunner - Finally Over the Hump

Note: This post may make more sense if you also check out the one I posted before Christmas on my blog (which I unfortunately forgot to also post here at the time: http://liza.io/the-brain-scope-is-growing-brainhub/

I've started this post maybe twenty times now, since before Christmas, and each ti…

2,424 views
Liza Shulyayeva
October 01, 2015
Snail Organs, Immune System, and Ageing
Organs! Immune systems! Old age! Dying from old age!

I'm super excited. I was thinking: "How do I implement old age and death, and health in general? Is health just energy? When the snail is out of energy, it dies? But that seems too simplistic."

At this point I should have realized that 'simplistic'…
4,319 views
Liza Shulyayeva
September 25, 2015
Wild snails around the world
Did you know that there is an entirely separate formula to calculate the distance between two points on the surface of a sphere? I mean...it kind of makes sense when you think about it. The shortest distance between two points without accounting for the curvature of the sphere would go right throug…
2,231 views
Liza Shulyayeva
September 19, 2015
Bringing snail stables down to earth
SnailLife snail stables have always lived in the ether - in some virtual universe with no physical location. Since I'm trying to make SnailLife based in reality, users' snail stables should also be based in real locations. This is why now, upon registration, the user's physical location is used as …
2,160 views
Liza Shulyayeva
August 03, 2015
Laravel Log File Backups to S3
SnailLife does a lot of logging for debugging purposes. Aside from the general [font='courier new']laravel.log[/font] I have separate loggers for each snail and also write logs for stuff like deleted items etc in separate files.

The problem is all the space this takes up on my Digital Ocean droplet …
3,846 views
Liza Shulyayeva
July 26, 2015
SnailLife messaging system
"What's SnailLife", you say? Well I'm glad you asked! My snail simulation has gone through a couple of names...and even though I was never 100% happy with Gastropoda it was the best I could come up with - a name that was unique and didn't allow the project to sound too "gamey" (because it's not a g…
2,039 views
Liza Shulyayeva
June 30, 2015
Snaily Updates
I was going to try to remember all the things I've done in the last month on snails, but this seems impossible. So here's a lazy list of git commits within this time:

* 5 seconds ago, User messaging and cause of death [deploy:development]* 4 days ago, Some race view fixes, test out increasing AMR fo…
1,743 views
Liza Shulyayeva
May 27, 2015
Items
After finishing yesterday's post about generating images for user-combined substrate items I realized that I never really provided an explanation about how items work in general (or how they work for now, anyway).

We have a few different item-associated models in Gastropoda. They are (model followed…
1,543 views
Liza Shulyayeva
May 27, 2015
Generating images for combined substrate
The Laravel 5 migration is complete and I'm back to substrate mixing and brain bug fixing!

Actually, I think now that basic mixing is done I'm going to do a few weeks of just bug fixing. The substrate has no effect on snails' attributes or behaviour yet, but it will. For now you can just mix differe…
1,471 views
Liza Shulyayeva
May 06, 2015
Migrating to Laravel 5
A few days ago I decided that there's no use putting it off any longer - it's time to upgrade to Laravel 5. I've been sitting on 4.2 for months and 5 is a major revision to...well...everything.

I knew this would be a large setback in terms of feature work. The migration would break things, things th…
1,632 views
Liza Shulyayeva
April 04, 2015
Thinking Through Substrate
After checking in the basic substrate item implementation yesterday I got to thinking - never a good sign.

The original idea was to have some pre-set types of substrate - garden dirt, rock, potting soil, pellets, whatever. But how would these items affect the snails and the jar? Would I need to inve…
1,584 views
Liza Shulyayeva
April 02, 2015
Jar Substrate Is a Go
It's finally in. Well, the beginning stages anyway. Jar substrate. Anyone who knows anything about snails knows that they can't live in a glass box without some sort of substrate to hide in, get moisture from, and burrow under. So now you can apply one type of substrate (so far) to a jar. Eventuall…
1,734 views
Liza Shulyayeva
March 09, 2015
Tackling Gastropoda's memory usage - Match One
[font=arial]
I've been having to power cycle my Gastropoda Digital Ocean droplet every day lately because something was hogging up all the memory. It was a little annoying to diagnose because I know the problem had to do with the recurring events that are run using a cron job, of which there are qui…
1,640 views
Liza Shulyayeva
March 07, 2015
It's not so bad. We have snail babies, after all
I haven't been able to focus on snails much lately because for the past three weeks our kitten has been very very sick. He is in hospital two hours away and I can barely think about anything else. So while I'm working on little bits and pieces when I can, there hasn't really been anything blog-wort…
1,904 views
Liza Shulyayeva
February 22, 2015
On your mark, get set, crawl!
In my previous post I wrote about rethinking racing (aka ripping out the existing racing system).

Today I got most of the work done on that. There is a lot left to do, but as of right now:

  • A new jar gets created when a user hosts a race
  • When the race starts all entrants are placed into that jar in ord…
1,632 views
Liza Shulyayeva
February 21, 2015
Rethinking Racing. Also Cool Snail Art!
Racing in Gastorpoda has been implemented for months in its most basic state, but has never really gotten the attention it needs. So things like jars, in-jar positioning, and movement ended up evolving past the stage of the racing and making the current racing system kind of an outdated one.

Basical…
1,820 views
Liza Shulyayeva
February 16, 2015
Snail brain semi-stable and reviewing visual traits set during breeding
The snail brain, while still very basic, seems somewhat stable now. By "stable" I mean a snail can survive and reproduce without human intervention if it has a steady supply of food.

When I first embarked on the journey to power my snails' actions with a simple snail brain I threw together this diag…
2,210 views
Liza Shulyayeva
February 15, 2015
Gastropoda - a snail simulation
My hobby project doesn't really fall into the category of a "game", but it seems game dev communities are still among the most relevant to discuss it. I guess that's because there are no popular simulation-specific communities that I've seen yet (but if you know of any, a link would be appreciated)…
3,074 views
Advertisement

Popular Blogs

shawnhar
Generalist
101 Entries
9 Followers
15 Entries
10 Followers
johnhattan
Programmer
1,277 Entries
47 Followers
ApochPiQ
Generalist
628 Entries
44 Followers
dgreen02
Generalist
338 Entries
56 Followers
Advertisement