This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
xurei's profile picture

Computercraft Emulator

Started by xurei, 12 September 2014 - 10:05 AM
xurei #1
Posted 12 September 2014 - 12:05 PM
Hello people,

I recently built a web-based emulator for Computercraft for my own use. I thought some of you might be interested…

The purpose of this emulator is to help you write your Lua code with syntax highlighting (powered by Ace.js) and simulate the behavior of peripherals, so you can test your code before using it ingame.

Try it here : http://www.xurei-des...craft-emulator/

The emulator in still in beta stages. If you find any bug, please refer it on the github page : https://github.com/x...rcraft-emulator/issues

MAIN FEATURES
- Complete Lua emulator. All you can do in Lua, you can do here.
- Sleep() support
- Syntax & errors highlighting
- Peripherals API support (in progress)

PERIPHERALS LIST (in progress)
- Computercraft Monitor
- Big Reactor Computer Port
- Redstone API (except bundled)

The project is open source, you can find it here : https://github.com/x...rcraft-emulator. Anyone who wants to help is welcome !
Edited on 30 November 2017 - 10:19 AM
flaghacker #2
Posted 13 September 2014 - 06:30 AM
That looks really nice! I can't wait untill more of the standard computercraft API's are ported.
Zudo #3
Posted 13 September 2014 - 10:15 AM
For the UI I recommend Bootstrap. I like the idea a lot!
xurei #4
Posted 25 September 2014 - 05:46 PM
I just made an update of the tool. It now supports the Bigreactor Computer Port, the colors for the Monitor and the sleep() function.

This last one was a pain to implement, but I loved doing it, am I insane ?
rik_mclightning1 #5
Posted 01 April 2015 - 05:43 AM
I've been looking for an emulator for my phone for a program I'm working on and this is perfect, but I need to use math.random() in my program. Is there a different way to do it or would it be too difficult? (I'm kinda new to programming)
Bomb Bloke #6
Posted 01 April 2015 - 07:18 AM
Bearing in mind that the author of the "emulator" hasn't logged into the forum in months, I can't see anything that'd stop you from using math.random()…?
xurei #7
Posted 10 June 2015 - 11:06 AM
Hi guys,

I've been away from this project for a while. Mostly because I have a lot of projects and not much time to work on them all.

Is there people actually using it ? I don't want to work on something if it isn't worth the effort…
DannySMc #8
Posted 17 June 2015 - 03:53 PM
Looks nice, although needs a bit of work, make it look like an actual PC, and possibly add in support for moving a monitor around and it can like clip the the side of a PC?
Creator #9
Posted 17 June 2015 - 04:22 PM
When printing, it prints twice.
Noiro #10
Posted 01 July 2015 - 03:07 PM
Can you do turtles with a small dot-indicator of position? That'd be amazing. For normal CC output, I'd focus on colors, monitor, and term api's before working about peripherals.
Edited on 01 July 2015 - 01:09 PM