Coremoter : a simulator helper

http://developer.anscamobile.com/showcase/coremoter-0

Before your downloading, you can watch following videos to roughly learn how coremoter can do.
Demo videos:
on youtube.com (USA):
http://www.youtube.com/watch?v=gI_kqk05z8k
http://www.youtube.com/watch?v=FZFkz1Ho5bA
http://www.youtube.com/watch?v=WKbnPHx9JkI
http://www.youtube.com/watch?v=Wxzeg2ytxVI
http://www.youtube.com/watch?v=Wwh_EB3x5us

on youku.com (China):
http://www.youku.com/playlist_show/id_15431266.html
http://v.youku.com/v_show/id_XMzAzNzQyMTM2.html
http://v.youku.com/v_show/id_XMzAzNzQ0MjEy.html
http://v.youku.com/v_show/id_XMzAzNzQ1MzIw.html
http://v.youku.com/v_show/id_XMzAzNzQ1OTU2.html
http://v.youku.com/v_show/id_XMzAzNzQ3MDU2.html

Coremoter is a development utility for corona SDK.
It helps corona developers testing their programs in corona simulator with accelerometer events and tuner events(or you must build the app for device and test it on device).
It has a wonderful feature: you can create a fake input textfield in simulator. By touching the fake inputfield, a real inputfield will be actived on the coremoter’s screen (on your device) so you can test your input and really changes the text in simulator.
It also supports multitouch on device, so you can test your app’s multitouch feature in simulator by touching your device.
It can save a lot of your building and testing time.
Coremoter sends all events over wifi. It support’s both UDP and TCP protocol. UDP is for fast event transmission. TCP is for testing when you do not have a device or you want to make some specific event by hand :slight_smile: (That means, by TCP protocol, you can telnet to the simulator and input the event string you wanted to generate a accelerometer event or tuner event)

You can try it for FREE by downloading this lite version:
http://itunes.apple.com/us/app/coremoterlite/id455625403?ls=1&mt=8
It has full feature except for some activation count limits.

How to test

  1. download the latest corona SDK from : http://developer.anscamobile.com/downloads/coronasdk
    you need a corona account, just register one. It’s easy.
    after downloading, you should install it to your mac.
  2. then get lua source code at google code by subversion:
    svn checkout http://coremoter.googlecode.com/svn/trunk/ coremotertst
    (you can also downlaod the lastest package from: http://code.google.com/p/coremoter/downloads/list and extract files into a directory named “coremotertst”)
  3. run the corona simulator and load the main.lua from the directory coremotertst
  4. run the coremoter app on your device
  5. touch TCP button to change it to UDP
  6. press connect
  7. enter the server IP (which is your mac’s ip)
  8. press the OK button ( the green hook button)
  9. then press the buttons from “off” to “on” to see the effects in the corona simulator.
    (shake or change pose or shout at your device)

Important information:
At begin of remoter.lua, there is a detailed description about usage of this code

Following are some examples about how to modify Corona SDK Sample Code to accept events from coremoter.
You will find it is very easy.

  1. DebugDraw
    copy the files (remoter.lua, whnet.lua, base64.lua) to DebugDraw source code directory

in main.lua

add following code at the beginning of file

require(“remoter”)
remoter.startService(“udp”, 1974)

find
j:addEventListener( “touch”, dragBody )

change it to following:
function j:touch(event)
dragBody(event)
end
j:addEventListener( “touch”, j )

then, run it in simulator
open coremoter
connect to youreip:1974
turn multitouch on

  1. ShapeTumbler
    copy the files (remoter.lua, whnet.lua, base64.lua) to ShapeTumbler source code directory

in main.lua

add following code at the beginning of file

require(“remoter”)
remoter.startService(“udp”, 1974)

find
Runtime:addEventListener( “accelerometer”, onTilt )

change it to:
remoter.startAccelerometer(onTilt) [import]uid: 35642 topic_id: 15380 reply_id: 315380[/import]

Hi weihua
I tried coremotor and it works quite well. Thanks [import]uid: 13632 topic_id: 15380 reply_id: 56816[/import]

My pleasure. Thank you for using it :slight_smile: [import]uid: 35642 topic_id: 15380 reply_id: 56821[/import]

I am working on a game that uses accelerometer to set gravity… and it was very easy to implement your code so coremotor worked with it. So thanks again!

I am wondering if I am allowed to use your whnet.lua class for my own project?
and if it would be possible to do a device to device connection with it… instead of device to computer connection?
[import]uid: 13632 topic_id: 15380 reply_id: 56848[/import]

I will be very happy if my code can help you.
You can use it any where for any purpose.
p.s. I am working on my code. In next version, registering accelerometer will be more natural and I will support registering more than one accelerometer listeners. [import]uid: 35642 topic_id: 15380 reply_id: 57015[/import]

version 1.2 is released now.
remoter.lua is optimized.
multitouch point can be viewed.
[import]uid: 35642 topic_id: 15380 reply_id: 70530[/import]

version 1.3 will be released soon.
GPS and compass events will be supported.
The price of PRO version is 0.99$ now and for ever.

Please update your lua code from http://coremoter.googlecode.com when the version 1.3 is released on appstore. [import]uid: 35642 topic_id: 15380 reply_id: 91886[/import]

Coremoter 1.3 and CoremoterLite 1.3 are released today.
Please update! [import]uid: 35642 topic_id: 15380 reply_id: 93432[/import]

version 1.4 will be released soon.
All landscapes and full resolution are supported by mslack’s wishes.
Now you can test your app in the landscape you expected with multi touch. [import]uid: 35642 topic_id: 15380 reply_id: 104372[/import]

Coremoter appears to be broken on iPhone 6 plus/8.1.3?

coremoter.jpg

Coremoter appears to be broken on iPhone 6 plus/8.1.3?

coremoter.jpg