Blog


PiCraft! Minecraft raspberry pi interface!

For a while now I’ve been working on a mod for minecraft that allows the GPIO pins on a raspberry pi to be accessed from within minecraft.  There’s a demo video below (you may be able to tell this is the first video I’ve ever made, be gentle!) but first some features….

Uses the rather excellent WebIOPi library on the raspberry pi

Allows any number of inputs and outputs to be controlled (limited only by the number of raspberry pis you have!)




Magento: Image upload script

Hey all, been a long time since I posted anything since my job is keeping me pretty busy…. here’s something I implemented for prettylittlething.com that might come in useful for you.

It’s a little script that basically scans a directory for images and, if it finds any, adds them to the relevant products.

Images have to be named as follows:

SKU-1.jpgSKU-2.jpg
SKU-3.jpg

ANOTHERSKU-1.jpgANOTHERSKU-2.jpg

etc…




Magento: Sort search results by newest first

I recently (well, a few months ago) started working for online retail company prettylittlething.com.  Since then I’ve been getting back into the Magento way of doing things (along with managing their IT infrastructure… but that’s a whole other set of posts) and decided I might as well publish some of the minor tips and bits of code I’ve worked on.

Today I have a module that ‘fixes’ the default search order in magento.

By default, when you do a search in magento the results are shown in ascending order of creation.  IE: older products are shown first.  Now, I’m sure there’s some obscure reason why this is so (although it could just be that with no search order defined they’re pulled out in the order they went into the database) but anyway, after some googling and a bit of tinkering I have a fix for it.




Space Editor 2.0.3

Added ‘remove Pilot’ function….should allow fixing of savegames corrupted by the bug in the latest release of Space Engineers.

Download from github




Space Editor v2.0.2 Released

Oops…forgot to fix this before I released 2.0.1

right click behaviour is now fixed (no more having to left click then right click)

Download from github




Space Editor 2.0.1

I was going to stop making updates to this software, since the game itself now does much of what I set out to do… however, after some feedback on the forum thread (which is here by the way) I decided to carry on adding features etc.

So, I’ve added:

Moving entities
Deleting Entities
Regenerating entity IDs (this is useful if you export / import into the same savegame…each entity needs a unique id, this generates new ones)

Download from github




Space Editor 2.0.0

Major update today…

You’ll notice some functionality missing, but the important thing for this release is that the way I load / save data has been completely rewritten. I now use the same xml serialization libraries that the game itself uses…meaning that loading / saving is much, much quicker…and hopefully more stable.

So, this version can only do the basics (export / import ships) but it does it much quicker. Now I have a better base to work from I can start adding in more features.

Enjoy!

Download from github




Space Editor 0.9.6

Not much of an update, but space editor now displays a little status message when it’s doing something… should stop people thinking it’s locked up when in fact it’s just trying to export that 100k block monster of a ship 😀

Also fixed a bug when loading pilots… should be a bit more stable now.

Download from github




Space Editor 0.9.5

Updated interface

Automagically find savegame folder

New ‘cleanup’ option (remove any entities with less than a set number of blocks)

Copy savegames (create backups)

Automagically copy in required library from space editor folder

Download from github




Space Editor 0.9.4

Pretty big update today, I’ve finally (after like…a weeks worth of struggling) managed to get modular building working. This means you can construct ‘modules’ (ie: parts of ships), export them, then import tham and attach them to other ships.

Here’s how it works:

I use the ‘White inverted corner block’ as an attachment point (this isn’t configurable at the moment, but I’m hoping to make a new blocktype soon and use that instead. For now though, don’t use that white inverted corner piece for anything else). So, make your ‘module’ and stick one of those blocks on it. Pay attention to its orientation!

Now, export that module in space editor.

Then, create the ship you want to attach the module to. Put a white inverted corner piece where you want the module to be attached. Again, pay attention to the orientation… your module will be rotated so its attachment block is orientated the same way as the one on your ship.

Load up your savegame in space editor, select your ship, select ‘Import module’ and navigate to the module file you exported earlier.

And that’s about it.

It’s been pointed out that to use the import module option (which relies on the space engineers library) this version needs to be installed in the same place as space engineers, which (for the steam version) is in:

c:\program files (x86)\steam\steamapps\common\spaceengineers\

I’ll work on creating a proper installer for the next version, but for now you’ll have to manually stick the space editor executable in there.

Download from github