←  Suggestions

ComputerCraft | Programmable Computers for Minecraft

»

ComputerCraft app [Android]/[iPhone]

Cranium's Photo Cranium 18 Oct 2012

I have never worked with making apps, but I get the feeling that at least SOMEONE in this community has. I propose making a ComputerCraft app for Android/iPhone. At the very least it would be nice to have a decent Lua interpreter on the mobile platform.
I think it would be nice to have, and although probably difficult, I think I can make some suggestions:
  • Add a built in memory manager. For things that have the potential to crash a server, we wouldn't want something like that to brick our phones, right? Simply have a trigger that trips if the memory being used exceeds a certain amount.
  • Add the ability to input/output redstone signals, which can be displayed on a status indicator.
    • Due to memory limitations, rednet and multiple terminals may not be a good idea. Not everyone has a superphone.
  • Support for the HTTP API already existing in ComputerCraft. That way, you don't have to copy/paste your huge code into your phone, or to a notepad. Upload and download your scripts!
I hope this can be made a reality, because it would be VERY cool. Again, though, I have no idea how this all works on the PC(pixie dust?), but being one of those who can't code/script on the go really makes me want this utility.
Quote

D3matt's Photo D3matt 18 Oct 2012

View PostCranium, on 18 October 2012 - 09:39 PM, said:

[list=1]
Due to memory limitations, rednet and multiple terminals may not be a good idea. Not everyone has a superphone.
So? Make it an option for those who do. If your phone can't handle it, don't add multiple terminals and don't use rednet.
Quote

lieudusty's Photo lieudusty 19 Oct 2012

This is a nice idea! I would love to code in CC on my phone while I'm bored on the car and have nothing to do :P/>
Quote

chiloxsan's Photo chiloxsan 19 Oct 2012

I don't know if you'll be able to get it past Apple's approval process. They're pretty strict about running user code (emulator or not) on their devices.
Quote

matejdro's Photo matejdro 19 Oct 2012

So you basically want CC emulator on phones?

I don't think that memory is the issue. Most smartphones today have at least 512 MB of RAM, lets say that at least 100 MB is always free for user programs. If you manage to fill up that with lua program, then you are crazy. Also I don't know for iPhone, but there is no way to brick Android phone just by filling its memory.

If you ask me, programming is not for mobile phones unless you use bluetooth keyboard or something like that. Maybe for short programs, but I can't see me writing large programs on phone.
Quote

Cloudy's Photo Cloudy 19 Oct 2012

View Postchiloxsan, on 19 October 2012 - 07:42 AM, said:

I don't know if you'll be able to get it past Apple's approval process. They're pretty strict about running user code (emulator or not) on their devices.

Lua is allowed under app store guidelines - many apps utilise it now, some dedicated to Lua, others games (e.g Angry Birds).
Quote

Hackingroelz's Photo Hackingroelz 19 Oct 2012

View PostCloudy, on 19 October 2012 - 09:44 AM, said:

View Postchiloxsan, on 19 October 2012 - 07:42 AM, said:

I don't know if you'll be able to get it past Apple's approval process. They're pretty strict about running user code (emulator or not) on their devices.

Lua is allowed under app store guidelines - many apps utilise it now, some dedicated to Lua, others games (e.g Angry Birds).

"They're pretty strict about running user code"
He's talking about code written by users. It is allowed, altough they don't seem to like it that much. (Codea)
Quote

Cloudy's Photo Cloudy 19 Oct 2012

View PostHackingroelz, on 19 October 2012 - 03:27 PM, said:

View PostCloudy, on 19 October 2012 - 09:44 AM, said:

View Postchiloxsan, on 19 October 2012 - 07:42 AM, said:

I don't know if you'll be able to get it past Apple's approval process. They're pretty strict about running user code (emulator or not) on their devices.

Lua is allowed under app store guidelines - many apps utilise it now, some dedicated to Lua, others games (e.g Angry Birds).

"They're pretty strict about running user code"
He's talking about code written by users. It is allowed, altough they don't seem to like it that much. (Codea)

What? I know what he was saying - but Lua is allowed, and there are already apps out there which utilise it - which was my point. Even ones which allow user code. For example: https://itunes.apple...d398073834?mt=8

And if they didn't like it, it wouldn't be allowed - this is Apple we're talking about.
Quote

ChunLing's Photo ChunLing 19 Oct 2012

Isn't there already a CC emulator online somewhere? You can just access the webpage and...hmm, I must be mistaking another online lua interpreter and the CC emulator someone made.
Quote

Tiin57's Photo Tiin57 19 Oct 2012

I have actually been working to port an old open source version of ccemu to Android. Objective C is not my forte, though. Someone else can deal with Apple.
Quote

Cranium's Photo Cranium 22 Oct 2012

I looked around for some Lua interpreters on the Android, but I didn't find anything that I wouldn't have to hack into my phone. I was just at the least hoping for some tiny support, just to pass the time while riding the bus or on a long flight. Angry Birds is not my cup of tea....
Quote

Creeper32605's Photo Creeper32605 20 Dec 2013

ok.. I found this http://www.computerc...ow/page__st__80 emulator, and it runs with love (available for android too)! But I couldn't get further than this: http://imgur.com/WlvQwiz
Quote

M4sh3dP0t4t03's Photo M4sh3dP0t4t03 20 Dec 2013

I have a little bit of experience with developing iOS apps with Xamarin(a cross platform C# framework), but I'm not sure wether it is possible to use Java on iOS.
Quote

Engineer's Photo Engineer 20 Dec 2013

View PostM4sh3dP0t4t03, on 20 December 2013 - 01:57 PM, said:

I have a little bit of experience with developing iOS apps with Xamarin(a cross platform C# framework), but I'm not sure wether it is possible to use Java on iOS.
You obviously don't need Java, at all. The original Lua compiler is already in c++.. so yeah.. why do you need java again?
Please don't say cc, because you simply cannot use that, like at all.
Quote

Symmetryc's Photo Symmetryc 20 Dec 2013

There is an app called TouchLua for iPhone that I've been using for quite some time, it has indent adjustment (fixes your indentation!), syntax highlighting, code completion, free , and has some built in libraries too.
Quote

M4sh3dP0t4t03's Photo M4sh3dP0t4t03 20 Dec 2013

View PostEngineer, on 20 December 2013 - 02:45 PM, said:

You obviously don't need Java, at all. The original Lua compiler is already in c++.. so yeah.. why do you need java again?
Please don't say cc, because you simply cannot use that, like at all.
Yeah, but LuaJ and normal Lua have a few differences, so it would behave different from CC sometimes. I will try it with normal Lua though, but I still have to figure out a couple of things before I can do this.

Edit: btw the original Lua compiler isn't in C++ but in C(although that doesn't really make a difference)
Edited by M4sh3dP0t4t03, 20 December 2013 - 06:02 PM.
Quote

Buho's Photo Buho 27 Dec 2013

What's wrong with opening http://turtle.ryazanez.com/ in your phone's browser? It's pure HTML5 and works great on Chrome (webkit). (I haven't tried on a mobile device.) See this thread for more info.
Quote

3dsboy08's Photo 3dsboy08 30 Dec 2013

I don't want to be mean, but I think someone will find a exploit in the app and just use it as a jailbreak tool.
Quote

Bomb Bloke's Photo Bomb Bloke 30 Dec 2013

What.
Quote

H4X0RZ's Photo H4X0RZ 30 Dec 2013

There is an app called SigmaScript for Android.
Edited by Freack100, 30 December 2013 - 04:19 PM.
Quote