Jump to content




Gamax92's CCLite ComputerCraft Emulator (Updated for CC1.75)


132 replies to this topic

#41 gamax92

  • Members
  • 157 posts

Posted 16 March 2014 - 07:45 PM

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.


#42 freeapps

  • New Members
  • 1 posts

Posted 25 March 2014 - 09:22 PM

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.

#43 Csstform

  • Members
  • 410 posts
  • LocationU.S.A.

Posted 28 March 2014 - 11:04 AM

PC Support planned?

#44 Engineer

  • Members
  • 1,378 posts
  • LocationThe Netherlands

Posted 28 March 2014 - 03:14 PM

View PostCsstform, on 28 March 2014 - 11:04 AM, said:

PC Support planned?
what? 0.0

#45 Csstform

  • Members
  • 410 posts
  • LocationU.S.A.

Posted 28 March 2014 - 03:16 PM

View PostEngineer, on 28 March 2014 - 03:14 PM, said:

View PostCsstform, 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

#46 Agoldfish

  • Members
  • 451 posts
  • LocationSome Fish Bowl in Ohio.

Posted 28 March 2014 - 03:18 PM

View PostCsstform, on 28 March 2014 - 03:16 PM, said:

View PostEngineer, on 28 March 2014 - 03:14 PM, said:

View PostCsstform, 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

#47 apemanzilla

  • Members
  • 1,421 posts

Posted 28 March 2014 - 03:35 PM

View PostCsstform, on 28 March 2014 - 11:04 AM, said:

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

#48 Csstform

  • Members
  • 410 posts
  • LocationU.S.A.

Posted 28 March 2014 - 03:36 PM

View PostApemanzilla, on 28 March 2014 - 03:35 PM, said:

View PostCsstform, 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.

#49 apemanzilla

  • Members
  • 1,421 posts

Posted 29 March 2014 - 12:54 PM

1.6 support planned? :P

#50 gamax92

  • Members
  • 157 posts

Posted 05 April 2014 - 03:49 PM

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.

#51 Engineer

  • Members
  • 1,378 posts
  • LocationThe Netherlands

Posted 05 April 2014 - 03:50 PM

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

#52 gamax92

  • Members
  • 157 posts

Posted 05 April 2014 - 04:19 PM

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.

#53 gamax92

  • Members
  • 157 posts

Posted 05 April 2014 - 04:57 PM

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

#54 apemanzilla

  • Members
  • 1,421 posts

Posted 08 April 2014 - 11:26 PM

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.

#55 axel.codeFail()

  • Members
  • 47 posts
  • LocationA bit lost

Posted 09 April 2014 - 02:51 AM

View Postgamax92, 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?

#56 Graypup

  • Members
  • 90 posts

Posted 14 April 2014 - 04:38 AM

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)


#57 RoD

  • Members
  • 313 posts

Posted 15 April 2014 - 08:03 PM

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

#58 apemanzilla

  • Members
  • 1,421 posts

Posted 15 April 2014 - 08:14 PM

View PostRoD, 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...

#59 RoD

  • Members
  • 313 posts

Posted 15 April 2014 - 08:21 PM

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.

#60 apemanzilla

  • Members
  • 1,421 posts

Posted 15 April 2014 - 10:47 PM

View PostRoD, 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.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users