WiiFlashServerJ is a Java application built on top of the great WiiremoteJ library by Michael Diamond which also uses the Bluecove library. WiiFlashServerJ sends and receives data from the Wiimote via WiiremoteJ. The data is transformed to a byte array in a way the WiiFlash library can handle it.
In the current version all data from a Wiiremote can be sent (button states, battery level, the acceleration axes, 4 IR points and sizes and data from the Nunchuck extension). Data sent from the Classic Controller extension has not been tested yet and can be considered ‘guessplimented’. Its possible to activate the vibrating and LEDs as well as activate the Mouse mode by WiiFlash now. If an error occurs while connecting the Wiimote is disconnected again.
Note
The software should be considered experimental. There is no guarantee the data sent by WiiFlashServerJ is exactly the same as by the Windows version provided by WiiFlash. WiiFlashServerJ was coded on lazy weekends and without insight into the interna of the official (Windows) version.
Download
WiiFlashServerJ (Alpha version, 21 Dec. 2008)
WiiFlashServerJ (Alpha version, 30 Jun. 2008)
WiiFlashServerJ (Alpha version, 24 Apr. 2008)
WiiFlashServerJ (Alpha version, 14 Apr. 2008)
Examples
You can find some simple examples making use of the WiiFlash library in combination with e.g. Papervision here.
Known Issues
- Sometimes Wiiremote is not properly connected and in that case does not send data (properly)
- Sometimes its not possible to activate the LEDs, or rumble function
- If Nunchuck extension is plugged in, the IR point size does not change.
- Point size, battery level and perhaps some other data (extensions?) are sent, but values could differ from what the windows server sends. (Feedback would be great…)
- Battery level is just read once, when connecting or extensions are connected / disconnected. Working on that one…
- Button states and IR start playing random. In this case you are probably using an older version of the WiiFlash API.
(Since the first release of WiiFlash 0.4 there have been small, but important changes: In “Wiimote.as” -> “function update” -> pack.position = 36 has been changed to 37 and in WiiSocket.as you will find a “I80″ in the newer version. So make sure you have the newer version of WiiFlash 0.4. or even better WiiFlash 0.4.1)
- Nunchuck does not send data. This sometimes happens, just restart WiiFlashServerJ
- Classic Controller has not been tested yet
Used libraries and software
Java Wiiremote library: WiiremoteJ
Java Bluetooth library: Bluecove
Flash Wiiremote library WiiFlash
35 Comments. Leave a comment too
April 14, 2008
Awesome news Alan !
WiiFlash on Mac !
kind regards,
Thibault
April 14, 2008
fantastique, grandiose, glamour !
April 15, 2008
Very exciting news but, server for Mac???
Sorry if I am missing something but the file contained in the downloaded zip (WiiFlashServerJ (.zip)) WIIFlash Server.exe is a PC executable and does not mount on a MAC.
Will you be releasing a MAC native .dmg file in the near future?
Thanks,
Phil
April 16, 2008
Happy happy joy joy a mac version!
The wiimote works fine on the mac server but I don’t seem to recieve any data from the nunchuk. Any ideas what could cause the problem.
thanx.
Laurent
April 21, 2008
i’ve the same problem
the numchuck don’t realy works. it is detect in Log, but isn’t in wiiflash.
April 24, 2008
Nunchuck should work now… Thanks all for your feedback. It’s been valuable help!
Alan
April 29, 2008
Thanks a lot for this Mac port!
The connecting takes a few tries to succeed (on my Macbook Pro), but besides that it works great!
You’re a lifesaver
May 7, 2008
hi,
thanks for this mac version
.
Everything works fine, but I have a hard time getting ir info. When I use ir leds or plain candles as a sensor bar, wiiflash on my windows pc gives data constantly about ir points et cetera, but on my macbook and this mac server (with the latest api too), ir data very seldom come in. Is this a known issue?
Thanks a lot though,
Jeff.
May 7, 2008
hi,
my wiimote seems to be properly connected, but the server doesn´t send data to the flash file.
I restarted the server and connected the wiimote several times, but i just don´t get it to run.
What´s the trick?
thanx
Nico
May 21, 2008
I’m having a little problem with connecting to the remote…WiiFlashServerJ logs look OK.
Welcome to WiiFlashServerJ
WiiFlashServerJ: Start searching. Press Button 1 & 2 on Wiimote
WiiFlashServerJ: starting Server
WiiFlashServerJ: waiting for client on default WiiFlash port: 19028
WiiFlashServerJ: added [Wiimote 0]:
WiiMoteAdapter 0: starting up
WiiMoteAdapter 0: status | Battery level: 85.0%
WiiMoteAdapter 0: status | Continuous: true
WiiMoteAdapter 0: status | Remote continuous: true
But there is an Exception in the console log. Any clues?
BlueCove version 2.0.3-SNAPSHOT on mac
May 21, 2008 5:00:50 PM wiiremotej.WiiRemoteDiscoverer deviceDiscovered
FINE: Found Nintendo RVL-CNT-01 (001E35728268)
May 21, 2008 5:00:50 PM wiiremotej.WiiRemoteDiscoverer deviceDiscovered
FINE: Nintendo RVL-CNT-01 is a WiiRemote.
May 21, 2008 5:00:51 PM wiiremotej.WiiRemote construct
INFO: btl2cap://001E35728268
May 21, 2008 5:00:52 PM wiiremotej.WiiRemote calibrateAccelerometer
FINER: Calibrating accelerometer…
May 21, 2008 5:00:52 PM wiiremotej.WiiRemote construct
FINER: Initialization complete.
May 21, 2008 5:00:52 PM wiiremotej.WiiRemote$1 run
FINEST: Data write finished.
May 21, 2008 5:00:52 PM wiiremotej.WiiRemote$1 run
FINEST: Data write finished.
May 21, 2008 5:00:52 PM wiiremotej.WiiRemote$1 run
FINEST: Data write finished.
May 21, 2008 5:01:13 PM wiiremotej.WiiRemote construct
INFO: btl2cap://001E35728268
May 21, 2008 5:01:13 PM wiiremotej.WiiRemoteDiscoverer getWiiRemote
SEVERE: Error getting device!
java.io.IOException: WiiRemote failed to connect!
at wiiremotej.WiiRemote.construct(WiiRemote.java:301)
at wiiremotej.WiiRemote.(WiiRemote.java:214)
at wiiremotej.WiiRemoteDiscoverer.getWiiRemote(WiiRemoteDiscoverer.java:94)
at wiiremotej.WiiRemoteJ.findRemote(WiiRemoteJ.java:208)
at wiiremotej.WiiRemoteJ.access$100(WiiRemoteJ.java:22)
at wiiremotej.WiiRemoteJ$2.run(WiiRemoteJ.java:284)
at java.lang.Thread.run(Thread.java:613)
Caused by: javax.bluetooth.BluetoothConnectionException: Failed to open connection(3)
at com.intel.bluetooth.BluetoothStackOSX.l2OpenClientConnectionImpl(Native Method)
at com.intel.bluetooth.BluetoothStackOSX.l2OpenClientConnection(BluetoothStackOSX.java:605)
at com.intel.bluetooth.BluetoothL2CAPClientConnection.(BluetoothL2CAPClientConnection.java:33)
at com.intel.bluetooth.MicroeditionConnector.openImpl(MicroeditionConnector.java:397)
at com.intel.bluetooth.MicroeditionConnector.open(MicroeditionConnector.java:506)
at javax.microedition.io.Connector.open(Connector.java:95)
at wiiremotej.WiiRemote.construct(WiiRemote.java:295)
… 6 more
May 21, 2008 5:01:34 PM wiiremotej.WiiRemote construct
INFO: btl2cap://001E35728268
May 21, 2008 5:01:35 PM wiiremotej.WiiRemoteDiscoverer getWiiRemote
SEVERE: Error getting device!
java.io.IOException: WiiRemote failed to connect!
at wiiremotej.WiiRemote.construct(WiiRemote.java:301)
at wiiremotej.WiiRemote.(WiiRemote.java:214)
at wiiremotej.WiiRemoteDiscoverer.getWiiRemote(WiiRemoteDiscoverer.java:94)
at wiiremotej.WiiRemoteJ.findRemote(WiiRemoteJ.java:208)
at wiiremotej.WiiRemoteJ.access$100(WiiRemoteJ.java:22)
at wiiremotej.WiiRemoteJ$2.run(WiiRemoteJ.java:284)
at java.lang.Thread.run(Thread.java:613)
Caused by: javax.bluetooth.BluetoothConnectionException: Failed to open connection(3)
at com.intel.bluetooth.BluetoothStackOSX.l2OpenClientConnectionImpl(Native Method)
at com.intel.bluetooth.BluetoothStackOSX.l2OpenClientConnection(BluetoothStackOSX.java:605)
at com.intel.bluetooth.BluetoothL2CAPClientConnection.(BluetoothL2CAPClientConnection.java:33)
at com.intel.bluetooth.MicroeditionConnector.openImpl(MicroeditionConnector.java:397)
at com.intel.bluetooth.MicroeditionConnector.open(MicroeditionConnector.java:506)
at javax.microedition.io.Connector.open(Connector.java:95)
at wiiremotej.WiiRemote.construct(WiiRemote.java:295)
… 6 more
Does the Wiimote need to be paired in the Blutooth settings? Mine is not?
Paired: No
Configured: Yes
Favorite: No
Connected: No
May 23, 2008
Thanks! i have been looking for it, since i got my new mac
May 23, 2008
Has anyone implemented 3D head tracking on the wiimote using this server?
May 24, 2008
Hi John Paul,
have a look at the examples. There is a simple example using Papervision to get basic head tracking done…
http://lab.tojio.com/2008/05/05/wiiflash-interactive-ribbons-and-some-other-wiiflash-examples/
bye
Alan
July 4, 2008
Awesome!
Brilliant!!
It does work very well, thanks a lot lot
July 16, 2008
hi Alan,
does the version of june 30 allow you to connect your wiimote to a swf online? I see a new socket class in the src files, so i guess it does
.
That’s great (and fast) !
thanks,
Jeff.
July 16, 2008
by the way,
check out my last video demo using your mac version, combined with UMap,
http://seedylifestyle.blogspot.com/2008/07/wiiflash-and-umap-v10-component.html
thanks again,
Jeff.
July 16, 2008
Hi Jeff!
yes, you should be able to connect your wiimote to an online swf now.
You can give it a try with this little example:
http://lab.tojio.com/projects/wiiflashribbons/
Have fun
Alan
August 19, 2008
Great work! Thank you so much for making this for Mac OS.
I hate to be a pain, but do you have anything in the works for the Wii balance board? WiiFlash.org says that your Mac version should “support it very soon.”
October 1, 2008
Hi There,
First of all: Great work!
Lately i am having problems: using the latest wiiflashserver and the ribbon demo here and the demo reacts only for the mouse, not for wiimote, although the server says it is connected.
I also had the following error one time:
Warning: [strict] Ignoring policy file at xmlsocket://127.0.0.1:19028 due to incorrect syntax. ../strict_policy_files to fix this problem.
*** Security Sandbox Violation ***
Connection to 127.0.0.1:19028 halted
I am using the latest Wiiflashserverj 0.41 on a Macbook. Any ideas?
October 8, 2008
sorry it’s me again. Is there someone for whom the online ribbon demo is working? I tried everything but i still get:
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://lab.tojio.com/projects/wiiflashribbons/WiiFlashRibbons.swf cannot load data from 127.0.0.1:19028.
at WiiSocket()[/Users/ross/Sites/RIA/Projects/WiiFlashRibbons/org/wiiflash/WiiSocket.as:91]
Has someone tried this with the flash player 10 beta version?
thanks
October 13, 2008
Great work on the Wii-Mac server. It is really great to play with! Is there an ETA on when the Mac version will support the Balance Board? Cheers.
October 14, 2008
cool site
November 13, 2008
/ *
thanks to your efforts, i was able to combine WiiFlash + Papervision3d + Flash panels that run within Photoshop CS4 and control 3d objects within a PS 3d layer – all on my mac! you can check it out here.
* /
woohoo!
d.
December 13, 2008
Thanks a lot !!!
But may you offer us the last WiiFlash 0.4.3 version ?
I can’t wait testing the new wii balance functionnalities