如何同时运行 Windows Phone 7 模拟器的多个实例?

发布于 2024-09-30 18:50:45 字数 52 浏览 3 评论 0 原文

我正在为 Windows Phone 7 创建多人游戏。如何运行模拟器的多个实例来调试它?

I'm creating a multiplayer game for windows phone 7. How can I run multiple instances of the emulator in order to debug it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

感情废物 2024-10-07 18:50:45

您确实可以同时运行 Windows Phone 7 模拟器的多个实例,甚至可以同时调试它们,如我在 博客文章

  1. 打开文件夹 [您的驱动器盘符]:\ProgramData\Microsoft\Phone Tools\CoreCon\10.0\addons
  2. 找到文件 ImageConfig.en-US.xsl
  3. 获取该文件的副本,将其保留在同一目录中,并将其命名为类似ImageConfig.en-US 2nd Instance.xsl
  4. 在文本编辑器中打开副本。
  5. 找到元素 DEVICE 并更改其 Name 属性,同时为 ID 分配一个新的 GUID 值。
  6. 向下滚动文件以找到显示 PROPERTY ID=”VMID” 的部分:
  7. 在该元素内放置一个新的 Guid - 确保使用大写字母而不是小写字母。
  8. 保存文件
  9. 重新打开 XAP 部署工具或 Visual Studio(如果您已打开它们),您将看到新的模拟器实例。

有关更多详细信息和屏幕截图,请参阅博客文章澄清一些步骤

You can indeed run multiple instances of the Windows Phone 7 emulator at the same time, and even debug them simultaneously, as I show in my blog post.

  1. Open the folder [Your Drive Letter]:\ProgramData\Microsoft\Phone Tools\CoreCon\10.0\addons
  2. Locate the file ImageConfig.en-US.xsl
  3. Take a copy of it, leaving it in the same directory, and name it something like ImageConfig.en-US 2nd Instance.xsl
  4. Open the copy in a text editor.
  5. Locate the element DEVICE and change it's Name attribute, also assign a new GUID value to ID.
  6. Scroll down the file to locate the part that says PROPERTY ID=”VMID”:
  7. Put a new Guid inside that element – make sure though that you use capital letters rather than lower case.
  8. Save the file
  9. Re open the XAP deployment tool, or Visual Studio, if you already have them open, and you’ll see your new Emulator instances.

See the blog post for more details, and screenshots to clarify some of the steps

メ斷腸人バ 2024-10-07 18:50:45

您一次只能在一台计算机上运行 Windows Phone 7 模拟器的一个实例 - 这是默认设置,如果您不想弄乱自定义配置的话。从 Visual Studio 进行部署时,同一实例在开发环境的运行实例之间共享。

但是,如果您按照 这篇文章。确保在编辑配置文件之前对其进行备份。

You can only run one instance of the Windows Phone 7 emulator at a time on a single machine - that's set by default, and if you don't want to mess with custom configurations. When you deploy from Visual Studio, the same instance is shared between the running instances of the development environment.

However, you can create additional instances of the WP emulator if you follow the instructions in this article. Make sure you backup the config files before editing them.

一页 2024-10-07 18:50:45

我遇到了同样的问题,试图测试我的多人游戏,最终我在 eBay 上购买了一台 WP7 设备(HTC HD7),将其解锁用于开发目的,并使用它和模拟器进行测试。

由于我有 Android 环境的经验,我可以说否认多个模拟器实例的可能性确实会损害开发工作。希望微软能改变这一点。

顺便说一句,我正在使用 Skiller SDK 来实现游戏的多人游戏和社交功能(他们的官方 WP7 SDK 将在几天内推出,您可以从 http://dev.skiller-games.com)。我完全推荐它。

祝你好运。

I had the same problem, trying to test my multiplayer game, and i eventually bought a WP7 device (HTC HD7) on ebay, unlocked it for development purposes, and used it and the emulator for testing.

Since I have experience with the android environment, I can say that denying the possibility of multiple emulator instances really damage the development efforts. Hope Microsoft will change this.

BTW, i'm using the Skiller SDK for the multiplayer and social side of my game (Their official WP7 SDK will be avialable in a few days, and you can download it from http://dev.skiller-games.com). I totally recommend it.

Good Luck.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文