←  General

ComputerCraft | Programmable Computers for Minecraft

»

Gamax92's CCLite ComputerCraft Emulato...

gamax92's Photo gamax92 16 Mar 2014

Currently, Any 32bit OS and 64bit windows will have it dropped down to 32bit.
Mac and 64bit linux iirc should have it dropped to 52bit.
Edited by gamax92, 16 March 2014 - 07:45 PM.
Quote

freeapps's Photo freeapps 25 Mar 2014

Maybe someone can program in FreeBASIC. I made a very little program (specially for a DOS system) that can run Lua files, but currently most of the APIs are not implented yet.
My dream is to get ComputerCraft as an alternating system running on FreeDOS. So that means you could use ComputerCraft on every device with DOSBox (or MS-DOS) installed.
The only problems are, that i have no power to learn in FreeBASIC and programming for the CC-Emulator for Dos then.
Quote

Csstform's Photo Csstform 28 Mar 2014

PC Support planned?
Quote

Engineer's Photo Engineer 28 Mar 2014

 Csstform, on 28 March 2014 - 11:04 AM, said:

PC Support planned?
what? 0.0
Quote

Csstform's Photo Csstform 28 Mar 2014

 Engineer, on 28 March 2014 - 03:14 PM, said:

 Csstform, on 28 March 2014 - 11:04 AM, said:

PC Support planned?
what? 0.0
Pocket Computer - I'm too lazy to type it all out on my ipod :P
Quote

Agoldfish's Photo Agoldfish 28 Mar 2014

 Csstform, on 28 March 2014 - 03:16 PM, said:

 Engineer, on 28 March 2014 - 03:14 PM, said:

 Csstform, on 28 March 2014 - 11:04 AM, said:

PC Support planned?
what? 0.0
Pocket Computer - I'm too lazy to type it all out on my ipod :P
Look where that got you, you have to type twice as much now. XD
Quote

apemanzilla's Photo apemanzilla 28 Mar 2014

 Csstform, on 28 March 2014 - 11:04 AM, said:

PC Support planned?
Pocket computers are essentially normal computers with a smaller screen at this point...
Quote

Csstform's Photo Csstform 28 Mar 2014

 Apemanzilla, on 28 March 2014 - 03:35 PM, said:

 Csstform, on 28 March 2014 - 11:04 AM, said:

PC Support planned?
Pocket computers are essentially normal computers with a smaller screen at this point...
But, I would like a option so that I dont have to manually set a screen size.
Quote

apemanzilla's Photo apemanzilla 29 Mar 2014

1.6 support planned? :P
Quote

gamax92's Photo gamax92 05 Apr 2014

Updated CCLite to CC1.62
Pocket Computer are still not supported yet

Also, I've been feeling large unmotivated to work on anything lately, sorry this took so long.
Quote

Engineer's Photo Engineer 05 Apr 2014

Can you take a look at this issue?
https://github.com/g...cclite/issues/4
Quote

gamax92's Photo gamax92 05 Apr 2014

Realistically, that can only be fixed in the single computer version.

I don't know how modifying the string table gets to the strings, it doesn't have a metatable on it or anything.
Making it so that the emulated environment uses the real string table poses a problem in the multiple computers version, where each computer would share the same string api.
Quote

gamax92's Photo gamax92 05 Apr 2014

Just moved Computer state (not api things) out of api, so labels stays during session and peripherals stay in frames version.
Quote

apemanzilla's Photo apemanzilla 08 Apr 2014

I think there may be a bug in the love2d side of this with string wild cards. Try running the "chat" program and you'll see it error on line 313.
Quote

axel.codeFail()'s Photo axel.codeFail() 09 Apr 2014

 gamax92, on 23 January 2014 - 07:36 PM, said:

The basics for the virtual peripheral is this:
function peripheral.base.dummy()
	local obj = {}
	obj.type = "dummy" -- same name as peripheral.(this thing)
	function obj.getMethods() return {} end
	function obj.ccliteGetMethods() return {} end
	function obj.call(sMethod, ...)
		local tArgs = {...}
		if sMethod == "blah" then
		   -- do stuff
		end
	end
	function obj.ccliteCall(sMethod, ...)
		local tArgs = {...}
		if sMethod == "blah" then
		   -- do stuff
		end
	end
	return obj
end
peripheral.types.dummy = "dummyblock" -- dummy is the same as obj.type, "dummyblock" is what peripheral.getType sees.

call is for peripheral.call and should be used for things you want to do normally in lua.

ccliteCall is for cclite.call and should be used to do things one would normally do in the minecraft world.
For example, diskDrive has "diskLoad" which configures the kind of "virtual disk" is in the fake drive.

When you've made one, just throw it in the peripheral folder inside the .love and it should be avaliable for you to use.

What are the peripherals that you have implemented into CCLite already?
Quote

Graypup's Photo Graypup 14 Apr 2014

Found a bug in http support. Temporarily hosting a demo site so that it can be fixed.
local h = http.get("http://ma.sdf.org:1254")
print(h.readAll())
EXPECTED RESULT: http.get taking 5 seconds
ACTUAL RESULT: http.get returning nil instantly

Server code, in nodejs:
var h = require('http')

var s = h.createServer(function (req, resp) {
  req.on('data', function(datas) {
    console.log('Got: ' + datas)
  })

  var body = 'yaaays\r\n'

  setTimeout(function () {
    resp.writeHead(200, {'Content-Length' : body.length, 'Content-Type' : 'text/plain'})
    resp.end(body)
  }, 5000)
})
console.log('running')
s.listen(1254)
Quote

RoD's Photo RoD 15 Apr 2014

I am using this in android, and its really good :) I just want to point out a few things:
  • You should add some arrow buttons into the screen so people can move arround in edit mode
  • You should add a ctrl button as well
But awesome job :D
Quote

apemanzilla's Photo apemanzilla 15 Apr 2014

 RoD, on 15 April 2014 - 08:03 PM, said:

I am using this in android, and its really good :) I just want to point out a few things:
  • You should add some arrow buttons into the screen so people can move arround in edit mode
  • You should add a ctrl button as well
But awesome job :D
I think it was intended to be used on PC more than mobile :P Maybe a "mobile mode" in the config that adds those? Heck, I could probably add that...
Quote

RoD's Photo RoD 15 Apr 2014

Really? If you could do that i would be really grateful :D And i use this emulator more on android than pc, for pc i use the original mod and sometimes tomass1996's CCEmu.
Quote

apemanzilla's Photo apemanzilla 15 Apr 2014

 RoD, on 15 April 2014 - 08:21 PM, said:

Really? If you could do that i would be really grateful :D And i use this emulator more on android than pc, for pc i use the original mod and sometimes tomass1996's CCEmu.
I can do it but I cant test it on mobile. If I get some spare time later I'll fork it.
Quote