• Register
Post article RSS Articles

Space Colonisation with Programmable Spacecraft

Colonise procedurally generated environments with your trusty Multi-Purpose Spacecraft (MPS), allowing integrated modding by controlling thrusters, lights and other devices via applications running on the 3001SQ central computer.

Start programming your spacecraft using AngelScript and nandOS, an operating system interface inspired by POSIX/Linux.

In the following 2 months we will be pushing the current technology demo to a full Multiplayer Test featuring docking with automated asteroid stations.

Code example

A little 3001SQ application controlling the cockpit lights to get you started - copy & paste into the Launcher Code Tab and start hacking!

#include "unistd.h"
#include "fcntl.h"

int main(uint argc, vector<var> &in argv)
{
    // We are starting to interact with the light: open the file descriptor
    int fdLight = open("/dev/light0", O_WRONLY);

    log("Turn off the light!");
    vector<var> controlOff = { Control_Device_Power, Device_PowerMode_Off };
    write(fdLight, controlOff);

    log("Waiting for 5s");
    sleep(5);

    log("Fiat lux!");
    vector<var> controlOn = { Control_Device_Power, Device_PowerMode_On };
    write(fdLight, controlOn);

    // We finished interacting with the light device: close the file descriptor
    close(fdLight);

    return 0;
}

Documentation

Add file RSS Files
3001SQ Technology Demo (64-bit Windows)

3001SQ Technology Demo (64-bit Windows)

Demo

3001SQ Launcher allowing the coding of user applications.

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Twitter

Latest tweets from @3001sq

Post-Campaign plans: Kickstarter.com #Kickstarter #3001SQ

Aug 19 2016

RT @tproger: На Kickstarter представлен проект игры по колонизации Вселенной с программируемым космическим кораблём Tproger.ru

Jul 21 2016

Programmable ingame #ui for #docking permission requests, system inspection and distress calls! #spacegames... Youtu.be

Jul 15 2016

RT @IndieDB: 3001SQ Tech Demo Indiedb.com Space Colonisation Simulator with Programmable Spacecraft @3001sq #indiedev T.co

Jul 6 2016

2 projects backed and #3001SQ is one of them - a good omen? Thanks to everyone supporting our #Kickstarter so far! T.co

Jul 4 2016