Geeks With Blogs


Google My Blog

Catch me at: The List!

My InstallScript Utility Belt My Amazon Wishlist
My Standard Disclaimer

Chris G. Williams Beware: I mix tech and personal interests here.

Playing with the emulator: 

922446 fg0211

The WP7 emulator actually does a lot more than just run your games from VS 2010. If you want to make use of some of the “hidden” features of the emulator, you need to run it separately from VS 2010 and use some of the command line options.

If you open up a command line window and navigate to C:\Program Files (x86)\Microsoft XDE\1.0 you will find a program called XDE.exe.

Run that and you will get the this popup showing the available Command Line Options.

This by itself is not enough to run the emulator though. You need to provide a path to the ROM, which is located in a different folder. To just get the basic emulator running from the command line, you need to point it at a file called WM70C1.bin.

As of the most recent beta of XNA 4.0, you can find the ROM file in this location: c:\program files (x86)\Microsoft SDKs\WindowsPhone\v7.0\Emulation\Images\WM70C1.bin

Starting the emulator is as simple as providing this path, like so:

xde.exe “c:\program files (x86)\Microsoft SDKs\WindowsPhone\v7.0\Emulation\Images\WM70C1.bin”

Make sure you run XDE from it’s home folder and use the double quotes or your path won’t resolve properly.

At this point you should have the emulator up and running.

If you take a look at some of the options, you can see some pretty interesting stuff like loading different skin files, emulating RAM size, simulating battery power and emulating the internal flash memory (and saving it out to disk)

Try a few and see what you think.

At some point, instead of dropping out to a command line, you may want to make a more permanent shortcut. You can either create a batch file in notepad that handles changing directories and running XDE with the proper parameters, or you can create a Shortcut that does the same thing. Either of these options will allow you to tweak the command line options you pass into the emulator.

Posted on Tuesday, August 3, 2010 2:05 PM | Back to top

Comments on this post: WP7 + XNA Tips, part 1 - Running The Emulator From the Command Line

# re: WP7 + XNA Tips, part 1 - Running The Emulator From the Command Line
Requesting Gravatar...
How many of those have you played with directly? Some of them are pretty huge. Save state filename (to determine what gets stored, probably binary), flash memory emu, RAM size, sharedfolder, and screen size all make it pretty forward compatible. Most likely the bin file sets some or most of this without having to explicitly set it.

Not much of this seems to apply to XNA directly, though. You can likely pump up the RAM size if you think your game is using too many resources or screen size if you wanted to test scaling.

Skin filename is particularly interesting though. So are the various serial port routing ones.

Thanks for the find and post. Should've thought to run it with /? to look for myself.
Left by Jeremy Brayton on Aug 04, 2010 6:55 AM

# re: WP7 + XNA Tips, part 1 - Running The Emulator From the Command Line
Requesting Gravatar...
Thanks for the tip, but I think I'm doing something wrong and am wondering if I've missed something. I opem CMD and navigate to the ..\1.0. I type in xde.exe and that message appears (the one in your pic). I then try xde.exe "C:\program files\......\WM70C1.bin" but nothing happens. No error, but it just moves onto the next line in CMD. Has anyone else had this problem? From VS, it launches fine. I've double checked the directory path of the bin (including dragging/dropping into the CMD window) but no luck :/
Left by Mike A on Aug 04, 2010 12:00 PM

# re: WP7 + XNA Tips, part 1 - Running The Emulator From the Command Line
Requesting Gravatar...
I am facing same issue. This does not work.
Left by ModeLearner on Sep 27, 2012 6:14 AM

Your comment:
 (will show your gravatar)

Copyright © Chris G. Williams | Powered by: