{"assets":[],"author_link":"author\/mjau\/","author_name":"mjau","cat":"LD #12 - The Tower - 2008","categories":["LD #12 - The Tower - 2008"],"comments":[],"epoch":1218247140,"event":"LD12","likes":0,"metadata":{"p_key":"76195","p_author":"mjau","p_authorkey":"0","p_urlkey":"283958","p_title":"no love \/ linux timelapse howto","p_cat":"LD #12 - The Tower - 2008","p_event":"LD12","p_time":"1218247140","p_likes":"0","p_comments":"0","p_status":"WAYBACK","us_key":null,"us_name":null,"us_username":null,"event_start":"1218153600","event_key":"89","event_name":"LD12"},"source_url":"2008\/08\/09\/no-love-linux-timelapse-howto\/","text":"<p>The story so far:<\/p>\n<p><strong>no love<\/strong><\/p>\n<p>Woke up early today at 06:15 CEST (which is unusual..), but haven\u2019t really done anything since then, except having some more or less vague ideas about what I\u2019m going to make. For the code part I was planning to do it entirely in <a href=\"http:\/\/www.lua.org\/\">Lua<\/a>, using the <a href=\"http:\/\/love.sf.net\/\">l\u00f6ve<\/a> game box thing. I\u2019ve briefly looked at l\u00f6ve once before, but discarded it then because it was missing a few features I\u2019d like (such as fixed timestep). For some reason I thought I\u2019d actually give it a chance though, and what better time to try out new things than during Ludum Dare? It does seem to have some nice parts, and assuming I could get it to work it\u2019d save a fair bunch of engine coding in favour of actual game development. So, that\u2019s what I\u2019ve mostly been fiddling around with for these past few hours since I woke up.<\/p>\n<p>I won\u2019t be using it, though. I do like parts of it, and some annoyances are bearable or can be worked around (fixed timestep can at least be approximated, with some slight drift), but there\u2019s some serious issues that can\u2019t be overlooked. For example, I can\u2019t get it to load any png images (\u201cpng library error\u201d), and the love executable sometimes segfaults on exit.<\/p>\n<p>Also, I get the impression this isn\u2019t actually intended to use for stand-alone games(?). I couldn\u2019t find any way to get it to autorun a game on start, you have to pass the .love file or directory as a command line parameter. A bat\/shell script easily fixes that, but eh. Also, there\u2019s a ton of dependencies, so packaging the final entry would be pretty involved for the Linux version at least (though they do provide Windows binaries).<\/p>\n<p>I\u2019ll just have to code up some Lua game engine myself then, won\u2019t I =].\u00a0 I\u2019ll begin work on that in a little bit I guess..<\/p>\n<p>\u2014<br\/>\n<strong>recording a timelapse in linux<\/strong><\/p>\n<p>This comes a little bit late perhaps, but people always ask about this, so.. To record a timelapse in Linux, first get <a href=\"http:\/\/linuxbrit.co.uk\/scrot\/\">scrot<\/a> for capturing screendumps (some distros have a package for it). You can use some other screen capturing tool if you really want to, but scrot can capture screendumps without annoyingly freezing the screen like many other screen capture tools seems to do for some reason. Then just run that every x seconds with some shell scripting. Make a directory somewhere with a couple gigabytes free space, enter it, and run this (every 30 sec here):<\/p>\n<p><code>while true; do scrot; sleep 30; done<\/code><\/p>\n<p>Hit ctrl+c to stop it when you\u2019re done. Now you\u2019ve got a directory filled with lots of huge image files, which you probably want to combine into a video somehow. Er, I apparently lost my script for that, but the mencoder man page should be helpful =]<\/p>","time":"August 9th, 2008 1:59 am","title":"no love \/ linux timelapse howto"}