- Sky
- Blueberry
- Slate
- Blackcurrant
- Watermelon
- Strawberry
- Orange
- Banana
- Apple
- Emerald
- Chocolate
- Charcoal
sirdabalot
-
Content Count
9 -
Joined
-
Last visited
-
Days Won
2
Posts posted by sirdabalot
-
-
I usually go through random hyperlinks that look relevant xD But yeah the microcontroller article is a stub at the moment I think, hopefully someone better than me will have the time to fill it in some day =D
-
Feeling pretty thick for posting this but here goes...
So I've decided to add a micro-controller to my world, after a while playing around I've figured out how to use components with them, but I have absolutely no idea ( even with an extensive wiki search ) how to get the events API working with them, of course my initial thought was to try and require it in but that obviously doesn't work because of the whole lack of openOS thing, what can I do? Are micro-controllers supposed to be so basic that you can't use events, or am I being a total sock-witt?
Any help would be much appreciated. xD
EDIT: Obviously the search wasn't extensive enough, found all the answers in funnily enough the writing a custom OS wiki page.
For anyone stuck in the same boat as me: http://ocdoc.cil.li/tutorial:custom_oses
-
Much appreciated! =D I will do xD
-
https://github.com/sirdabalot/OCGUIFramework
Hello everyone! This is my first API post so go easy on me. =P
This is an OpenComputers GUI framework, its currrent features are:
- Movable Windows
- Buttons
- Textboxes
- Text inputs
This is my new GUI framework API, designed to be simple as possible.
Simply require the lua file into your program and start using the functions.
Method information can be found on the readme on the github page.
By the way windows can be moved by clicking the # in the top left corner, also note that after you've entered text into a textInput you must press enter.
Example code:
This code was to be used with the mekanism teleporters.
require( "SOCGUIF" ) term = require( "term" ) components = require( "component" ) tele = components.teleporter gpu = components.gpu function setTeleCus( ) code = codeIn.text for i = 0, 3 do tele.set( i, tonumber( string.sub( code, i+1, i+1 ) ) ) end end function setTeleP1( ) code = "0001" for i = 0, 3 do tele.set( i, tonumber( string.sub( code, i+1, i+1 ) ) ) end end function setTeleP2( ) code = "0002" for i = 0, 3 do tele.set( i, tonumber( string.sub( code, i+1, i+1 ) ) ) end end function exitProg( ) gpu.setBackground( 0x000000 ) gpu.setForeground( 0xFFFFFF ) term.clear( ) os.exit( ) end controlPanelWindow = window( point( 120, 3 ), 18, 6, "Control panel", 0xFFFFFF, 0x00FF00 ) exitButton = button( controlPanelWindow, point( 2, 2 ), 15, 3, "Exit", 0xFFFFFF, 0xFF0000, exitProg ) customTeleWindow = window( point( 3, 3 ), 22, 9, "Custom teleport", 0xFFFFFF, 0x00FF00 ) codeInTB = textBox( customTeleWindow, point( 2, 2 ), #"Custom code:", 1, "Custom code:", 0xFFFFFF, 0xFF0000 ) codeIn = textInput( customTeleWindow, point( 1, 3 ), 19, 0xFFFFFF, 0xFF0000 ) customTeleButton = button( customTeleWindow, point( 2, 5 ), 19, 3, "Set", 0xFFFFFF, 0xFF0000, setTeleCus ) presetTeleWindow = window( point( 3, 17 ), 22, 10, "Preset teleport", 0xFFFFFF, 0x00FF00 ) customTeleButton1 = button( presetTeleWindow, point( 2, 2 ), 19, 3, "To portal 1", 0xFFFFFF, 0xFF0000, setTeleP1 ) customTeleButton2 = button( presetTeleWindow, point( 2, 6 ), 19, 3, "To portal 2", 0xFFFFFF, 0xFF0000, setTeleP2 ) table.insert( windowTable, customTeleWindow ) table.insert( windowTable, controlPanelWindow ) table.insert( windowTable, presetTeleWindow ) GUILoop( 0x0000FF )
Result in attached file...
-
Upon join: ID 14226 is mismatched between world and server.
-
Nick/MC Name/IRC Name: sirdabalot
Age: 18
-
Just read the notice at the top of the sub-forum, sorryyyyyy I dunno how to delete the topic. D:
-
This is a really simple and basic request, but could you make the scan( ) method for the geolyzer accept negative numbers? Otherwise it's a major pain in the rear tryin' to get global scanning on the go instead of local. =D
EDIT: Submitted github issue @ https://github.com/MightyPirates/OpenComputers/issues/571
Log file API - Updated to export CSV files ( view logs in excel/calc )
in Libraries & API's
Posted
Hello, everyone!
As an opencomputers refresher after a long break from minecraft I've made a log file API.
It currently offers:
A link to the repo: https://github.com/sirdabalot/OCLOGAPI
(All documentation in the API code)
Sample program for creating a log file:
Sample program for reading a log file:
And of course I had best throw in some semi-pretty pictures: