Jump to content




ComputerCraft app [Android]/[iPhone]


  • You cannot reply to this topic
96 replies to this topic

#61 amtra5

  • Members
  • 166 posts
  • LocationMelbourne, Australia

Posted 06 February 2014 - 06:23 AM

View PostXfel, on 06 February 2014 - 05:38 AM, said:

Um yeah the problem is that because of static linking&co you can't mod a c++ program the way you mod a java program. Second problem is that MCPE is not open sourced. Ok you might say "So is minecraft itself too" BUT java can be decompiled fairly easily and it till needs a lot of time to map the obfuscated names so that normal devs can work with it. C++ code is compiled to machine code, decompiling it is next to impossible. So I don't see a big chance for this, sorry.
Please see:
ModPE (iOS) (make mods in JS) http://www.minecraft...with-installer/
BlockLauncher (ModPE for Android) http://www.minecraft...hout-reinstall/
Various ModPE scripts (custom guis) http://www.minecraft...cpe-mods-tools/
Custom Blocks https://github.com/C...i/Custom-blocks

Computercraft in MCPE is plausible, and not impossible.

#62 6677

  • Members
  • 197 posts
  • LocationCambridgeshire, England

Posted 06 February 2014 - 07:51 AM

i

View Postamtra5, on 06 February 2014 - 06:23 AM, said:

View PostXfel, on 06 February 2014 - 05:38 AM, said:

Um yeah the problem is that because of static linking&co you can't mod a c++ program the way you mod a java program. Second problem is that MCPE is not open sourced. Ok you might say "So is minecraft itself too" BUT java can be decompiled fairly easily and it till needs a lot of time to map the obfuscated names so that normal devs can work with it. C++ code is compiled to machine code, decompiling it is next to impossible. So I don't see a big chance for this, sorry.
Please see:
ModPE (iOS) (make mods in JS) http://www.minecraft...with-installer/
BlockLauncher (ModPE for Android) http://www.minecraft...hout-reinstall/
Various ModPE scripts (custom guis) http://www.minecraft...cpe-mods-tools/
Custom Blocks https://github.com/C...i/Custom-blocks

Computercraft in MCPE is plausible, and not impossible.
ModPE is an alternate launcher which then hooks into the running executable. It does not mod the executable directly as computercraft would have to.

#63 apemanzilla

  • Members
  • 1,421 posts

Posted 12 February 2014 - 11:03 AM

Oh, school, y u eat all my spare time...

I'm thinking of scrapping what I have so far and redesigning it from the GUI first instead of the actual Lua system, as visuals are the hard part for me. Thanks for the icons :)

#64 Link149

  • Members
  • 46 posts
  • LocationQuebec, Canada

Posted 13 February 2014 - 06:18 PM

Wouldn't it be nice if you could send rednet messages from a phone to another ? I don't know how you would achieve this but it sounds like a nice feature to me. I do not personally have a cellphone or anything, but I'd definitely want to download this if I had one.

#65 6677

  • Members
  • 197 posts
  • LocationCambridgeshire, England

Posted 14 February 2014 - 08:51 AM

View PostLink149, on 13 February 2014 - 06:18 PM, said:

Wouldn't it be nice if you could send rednet messages from a phone to another ? I don't know how you would achieve this but it sounds like a nice feature to me. I do not personally have a cellphone or anything, but I'd definitely want to download this if I had one.
That could probably be done to be fair. Wrap rednet API over bluetooth RFComm profiles or Ad-Hoc wifi.

#66 Csstform

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

Posted 14 February 2014 - 09:56 AM

View PostApemanzilla, on 12 February 2014 - 11:03 AM, said:

Oh, school, y u eat all my spare time...

I'm thinking of scrapping what I have so far and redesigning it from the GUI first instead of the actual Lua system, as visuals are the hard part for me. Thanks for the icons :)
Icons..... better get on that :)

#67 apemanzilla

  • Members
  • 1,421 posts

Posted 14 February 2014 - 02:53 PM

View Post6677, on 14 February 2014 - 08:51 AM, said:

View PostLink149, on 13 February 2014 - 06:18 PM, said:

Wouldn't it be nice if you could send rednet messages from a phone to another ? I don't know how you would achieve this but it sounds like a nice feature to me. I do not personally have a cellphone or anything, but I'd definitely want to download this if I had one.
That could probably be done to be fair. Wrap rednet API over bluetooth RFComm profiles or Ad-Hoc wifi.
hmmm... Interesting idea, but I'd see it just creating more problems than it solves. (How would distance be calculated?) I'd rather just stick to people using HTTP.

#68 6677

  • Members
  • 197 posts
  • LocationCambridgeshire, England

Posted 14 February 2014 - 03:01 PM

View PostApemanzilla, on 14 February 2014 - 02:53 PM, said:

View Post6677, on 14 February 2014 - 08:51 AM, said:

View PostLink149, on 13 February 2014 - 06:18 PM, said:

Wouldn't it be nice if you could send rednet messages from a phone to another ? I don't know how you would achieve this but it sounds like a nice feature to me. I do not personally have a cellphone or anything, but I'd definitely want to download this if I had one.
That could probably be done to be fair. Wrap rednet API over bluetooth RFComm profiles or Ad-Hoc wifi.
hmmm... Interesting idea, but I'd see it just creating more problems than it solves. (How would distance be calculated?) I'd rather just stick to people using HTTP.
RSSI as an approximation or simply enter the co-ordinates that the computer block is supposed to be at as some of the other emulators used to do.

Edited by 6677, 14 February 2014 - 03:02 PM.


#69 apemanzilla

  • Members
  • 1,421 posts

Posted 14 February 2014 - 04:36 PM

View Post6677, on 14 February 2014 - 03:01 PM, said:

View PostApemanzilla, on 14 February 2014 - 02:53 PM, said:

View Post6677, on 14 February 2014 - 08:51 AM, said:

View PostLink149, on 13 February 2014 - 06:18 PM, said:

Wouldn't it be nice if you could send rednet messages from a phone to another ? I don't know how you would achieve this but it sounds like a nice feature to me. I do not personally have a cellphone or anything, but I'd definitely want to download this if I had one.
That could probably be done to be fair. Wrap rednet API over bluetooth RFComm profiles or Ad-Hoc wifi.
hmmm... Interesting idea, but I'd see it just creating more problems than it solves. (How would distance be calculated?) I'd rather just stick to people using HTTP.
RSSI as an approximation or simply enter the co-ordinates that the computer block is supposed to be at as some of the other emulators used to do.
Mmm.... I still don't think it would work out very well. For now at least I want to keep it as consistent as possible with plain ComputerCraft.

#70 6677

  • Members
  • 197 posts
  • LocationCambridgeshire, England

Posted 14 February 2014 - 06:23 PM

View PostApemanzilla, on 14 February 2014 - 04:36 PM, said:

Mmm.... I still don't think it would work out very well. For now at least I want to keep it as consistent as possible with plain ComputerCraft.
Some of the CC emulators that already exist require you to configure the X, Y and Z co-ordinate of the computer when you fire up the emulator. So if you did that for every device, Ad Hoc'ed them together, they just need to pass their X, Y and Z co-ordinates between each other. The emulator version of the rednet API can deal with the rest.

On second thought the RSSI would be rather useless for computercraft consistency, but is how your phone/computer knows how to change the signal strength indicator for wifi, 3G etc so would technically be more realistic than the computercraft implementation. Was just my first thought and should be discarded.

#71 Left4Cake

  • Members
  • 272 posts
  • LocationEarth

Posted 27 February 2014 - 04:08 AM

View PostLink149, on 13 February 2014 - 06:18 PM, said:

Wouldn't it be nice if you could send rednet messages from a phone to another ? I don't know how you would achieve this but it sounds like a nice feature to me. I do not personally have a cellphone or anything, but I'd definitely want to download this if I had one.

You mean to have a chat client that could send and receive text messages. Witch I believe can be done with HTTP api via a number of ways.

#72 apemanzilla

  • Members
  • 1,421 posts

Posted 27 February 2014 - 01:38 PM

View PostLeft4Cake, on 27 February 2014 - 04:08 AM, said:

View PostLink149, on 13 February 2014 - 06:18 PM, said:

Wouldn't it be nice if you could send rednet messages from a phone to another ? I don't know how you would achieve this but it sounds like a nice feature to me. I do not personally have a cellphone or anything, but I'd definitely want to download this if I had one.

You mean to have a chat client that could send and receive text messages. Witch I believe can be done with HTTP api via a number of ways.
Text messaging with mobile computercraft.

Who knew.

#73 Alice

  • Members
  • 429 posts
  • LocationBehind you.

Posted 27 February 2014 - 08:50 PM

View PostApemanzilla, on 27 February 2014 - 01:38 PM, said:

View PostLeft4Cake, on 27 February 2014 - 04:08 AM, said:

View PostLink149, on 13 February 2014 - 06:18 PM, said:

Wouldn't it be nice if you could send rednet messages from a phone to another ? I don't know how you would achieve this but it sounds like a nice feature to me. I do not personally have a cellphone or anything, but I'd definitely want to download this if I had one.

You mean to have a chat client that could send and receive text messages. Witch I believe can be done with HTTP api via a number of ways.
Text messaging with mobile computercraft.

Who knew.
Someone's already done it and I'm working on it now.
  • Send messages to my e-mail server via txt message
  • e-mail server then puts the messages into a file
  • program takes files and puts them in a directory with program
  • above program uses sockets with HTTP API, when called with HTTP, sends the text message
  • computer interprets message into what it should do.


#74 Dave-ee Jones

  • Members
  • 456 posts
  • LocationVan Diemen's Land

Posted 04 March 2014 - 11:25 AM

I've been wondering why people haven't already made this for like a year or so now, lol. I use Codea, it's a LUA coding program that allows you to program games and utilities and then execute the program you made. It's quite a good tool, and I've seen some pretty nice stuff people have made with it :) (It also has a HTTP API)

#75 Engineer

  • Members
  • 1,378 posts
  • LocationThe Netherlands

Posted 04 March 2014 - 01:11 PM

You can use gamax' emulator for this.
Step 1: download the love sdl app: https://love2d.org/f...376edd642b2d401
Step 2: enable temporarily the setting to install apps which are not on the android market
Step 3: install the downloaded .apk
Step 4: disable the setting again if you prefer that
Step 5: Download the .love with the link in gamax' thread: http://www.computerc...craft-emulator/
Step 6: run the .love with the app emulator (don't actually run the downloaded open, open the .love with the app)
Step 7: there ya go :)/>

Edited by Engineer, 04 March 2014 - 01:11 PM.


#76 apemanzilla

  • Members
  • 1,421 posts

Posted 04 March 2014 - 03:06 PM

View PostEngineer, on 04 March 2014 - 01:11 PM, said:

You can use gamax' emulator for this.
Step 1: download the love sdl app: https://love2d.org/f...3cd447b6376edd642b2d401
Step 2: enable temporarily the setting to install apps which are not on the android market
Step 3: install the downloaded .apk
Step 4: disable the setting again if you prefer that
Step 5: Download the .love with the link in gamax' thread: http://www.computerc...craft-emulator/
Step 6: run the .love with the app emulator (don't actually run the downloaded open, open the .love with the app)
Step 7: there ya go :)
Well I guess its a good thing I'm making an iOS version and not an Android version :)

#77 6677

  • Members
  • 197 posts
  • LocationCambridgeshire, England

Posted 04 March 2014 - 05:11 PM

View PostEngineer, on 04 March 2014 - 01:11 PM, said:

Step 4: disable the setting again if you prefer that
I wasnt aware anyone preferred that :P

#78 amtra5

  • Members
  • 166 posts
  • LocationMelbourne, Australia

Posted 04 March 2014 - 08:53 PM

View PostEngineer, on 04 March 2014 - 01:11 PM, said:

You can use gamax' emulator for this.
Step 1: download the love sdl app: https://love2d.org/f...3cd447b6376edd642b2d401
Step 2: enable temporarily the setting to install apps which are not on the android market
Step 3: install the downloaded .apk
Step 4: disable the setting again if you prefer that
Step 5: Download the .love with the link in gamax' thread: http://www.computerc...craft-emulator/
Step 6: run the .love with the app emulator (don't actually run the downloaded open, open the .love with the app)
Step 7: there ya go :)/>/>
Already tried.
Once you close the keyboard, you can't open it again though :/

#79 negamartin

  • Members
  • 46 posts

Posted 08 March 2014 - 02:40 AM

In the main.lua update method, add love.keyboard.setTextInput(true)

#80 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 09 March 2014 - 10:57 AM

I have a question, Is it possible to install iAndroid on my iPhone to then install Love2D to then install Gamax' emulator? :P
I really want to have an emulator on my iPhone .-.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users