Giter VIP home page Giter VIP logo

opencomputers's Introduction

TBD

  • Create some sort of test harness to run *.lua (maybe except for test.lua) in tests/

The goal

OpenComputers in minecraft uses Lua code and it exposes a bunch of different APIs and components specific to the game (robots, navigation, etc).

But trying to write code actually in Minecraft, using the half-assed text editor and terminal etc makes me want to kick babies. I want to develop out here IRL.

But the code I'm going to be writing needs to make use of those APIs provided by the in-game version of Lua. So this project is meant to include callable libraries that accept the same args and return values of the same types returned by those APIs, as documented in the OpenComputers docs.

Get started

Edit init.sh; make sure its path matches wherever you checked this repo out to. Next:

$ source init.sh
$ lua tests/test.lua
$ ./tests/test.lua

The two invocations of test.lua should work identically. test.lua isn't much more than Hello World. The other test scripts in tests/ are meant to show that the actual libraries work. They're also examples of how those libs should be called.

OPPM Packages

oppm_example.cfg

From here.
This needs to be copied to programs.cfg and edited as needed.

oppm register tmtowtdi/OpenComputers

Tests

in ROOT/tests/.

These test scripts are not meant to test every function in a given lib, since the functions are all purposely just stubs.

The main point of these tests is to ensure that the library or component can be required and run. Every script in here (other than test.lua) really should run.

The test.lua test is pretty much for just dicking around, testing whatever you want to test.

opencomputers's People

Contributors

tmtowtdi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.