I managed, after about an hour of work on it, to run the wiidesktopvr (developed by Johnny Chung Lee) on my Vista 64bit.
NOTE: i’m planning to release an updated version that uses 1.8beta library which supports wiimotion plus 🙂
BLUESOLEIL USERS: update to the latest version to avoid problems running the application!!!
Causes:
- The software is unable to start because the compiler predefined target machine is set to 64bit and you can’t change inside visual c# express […]
- The software is unable to find my wiimote (proper connected, i checked using WiimoteLib_1.2.1 (and also the 1.2) utility wiimotetest.exe), this issue went away switching the wiimote lib to 1.2.1 instead of the embedded 1.1
Prerequisites
- Wii Remote
- Bluetooth Enabled and wii sync-ed
- Wii control bar / Home made control bar
- Visual c# 2008 Express
- DirectX SDK April 2007 or later (i’m using November 2007), if i’m not wrong the visual c# asked to download in the installation phase, check if is true in the Add/Remove Programs after the visual c# installation.
Simpler way
FIXED LINK::download the package i created (about 2MB);
Not so simple way
:: follow the instruction below:
Begin:
- download wiidesktopvr and wiimotelib sources 1.2.1 (developed by Brian Peek),
(if you use the 1.2 you will have to remove ir3 and ir4 calls, two if/else that checked these infrared devices and an event capture, i managed to run both but the 1.2.1 avoid to modify the code) ; - unpack both zip in different folders;
step 1: compile under x64 enviroment
- open the wiidesktopvrfolder, and double click the wiidesktopvr.csproj, let the visual c# 2008 and let it convert (don’t let it create backup files, you have the zip)
- close visual c# and in the wiidesktopvr folder open with notepad/text editor the wiidesktopvr.csproj file: search for
(there are two occurrences of these entries one for debug and the other for release so replace both for security)and add the following line
Now, when you build/rebuild the project it will be x86 and will works. But for me this wasn’t enough.
step 2: Replacing wiimotelib from 1.1 to 1.2.1
- now we need to replace the 1.1 lib with the 1.2.1 version.
- with the wiidesktopvr project open, on the right exclude from the project (right click ->exclude from project) except
- Keep only these:
- datatype.cs
- events.cs
- hidimports.cs
- wiimote.cs
- close the c# editor
- if there is the wiimotelib folder inside the wiidesktopvr folder, enter and delete all files left inside (sometimes it happens because i keep them opened with other appz),otherwise create WiimoteLib folder again (must be empty) under the wiidesktopvr main folder (the path is WiiDesktopVR\WiimoteLib)
- copy all the files from the WiimoteLib_1.2.1_src\src\WiimoteCS\WiimoteLib into the wiimotelib folder inside wiidesktopvr folder (the folder created before wasWiiDesktopVR\WiimoteLib). Below the new content of the folder (overwite if asked):
- reopen wiidesktopvr project with visual c# (if you find some files with exclamation marks the solution is to right click on those files again ->Exclude from project or delete them) remember always to keep those 4 .cs files.
- You will get some errors due to some changes in the lib interface:
- GetBatteryLevel() not found -> replace with getStatus() (for remote2 and remote instances)
- OnWiimoteChanged -> replace with WiimoteChanged (for remote2 and remote instances)
- You’ll get now after compiling only 5 warning on “error list” tab: don’t care.
Finally:
- Build project, and start it.
If you get a wii not connected or unable to find it in HID list (to close these messages if your mouse doesn’t work, alt+F4 twice and you will go back to the project) : resync your wiimote, and check using wiimotelib utility (taken from the runtime library package) if the wiimote transmit.
Addendum: error opening in design mode wiidesktopVR.cs or other gui files
If you try to open WiiDesktopVR.cs form you will get the following error:
C# express 2008 needs the visual class on top of other classes.
The solution is to cut and paste the top class that isn’t the gui class under the gui class, keeping the gui class on top; in this case, having only two classes into the file we need to put at bottom of the file :
class Point2D
{
public float x = 0.0f;
public float y = 0.0f;
public void set(float x, float y)
{
this.x = x;
this.y = y;
}
}
needs to be moved to (reach the end of the file):
}
}
}
}//End of file
put the point2D class here:
}
}
}
}//End of file
so it will be:
}
}
}
class Point2D
{
public float x = 0.0f;
public float y = 0.0f;
public void set(float x, float y)
{
this.x = x;
this.y = y;
}
}
}
Save e reopen the wiidesktopvr.cs, now you’ll see without errors:
Still cant get it too work 🙁 I installed all the required software includeing yours. I get Fish Tank Error, I have Win 7 64 bit