Blogus Maximus

Rubbing people the wrong way since 1970...

  Home  |   Contact  |   Syndication    |   Login
  1366 Posts | 10 Stories | 2226 Comments | 1336 Trackbacks

News


Google My Blog

Catch me at: The List!


My InstallScript Utility Belt My Amazon Wishlist
My Standard Disclaimer

Tag Cloud


Archives

Post Categories

Image Galleries

Blogs

Code Camps

CTown Geeks

Geeky Webcomics

High Geek

Magenic Blogs

Microsoft Blogs

My Articles

My Sites

PodCasts

UG

XNA

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

Feedback

# re: WP7 + XNA Tips, part 1 - Running The Emulator From the Command Line 8/4/2010 6:55 AM Jeremy Brayton
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.

# re: WP7 + XNA Tips, part 1 - Running The Emulator From the Command Line 8/4/2010 12:00 PM Mike A
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 :/

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

Post A Comment
Title:
Name:
Email:
Comment:
Verification: