问题描述
我们基于Windows C ++ Ogre的游戏即将完成.在我们公开发布它之前,我们必须解决此问题:
如果许多测试计算机上的Ogre没有更新为最新的Dx9.0c版本,它们将崩溃.所有这些计算机都已经安装了9.0c,但是必须是较早的操作系统预安装的子版本,因此会导致崩溃.
第一个问题是:如何确保用户具有正确的9.0c版本,以使游戏不会在用户的面前崩溃,而是显示一条消息,例如从有 ....?
第二个问题是:在安装游戏期间,是否有一种标准的自动化方法将用户的计算机更新到最新的9.0c版本?那将是最好的解决方案.
非常感谢,
账单
最好的方法是从Game Installer静默更新/安装DirectX.连同其他必需的系统组件(例如PhysX,vcredist等)一起 Silently ,而无需询问您是否要安装DirectX"(用户可能不知道他是否需要DirectX,并且是否已经安装了DirectX)将会发生).
请参见面向游戏开发者的DirectX安装.另外,我建议您查看游戏"
这是因为(我认为)在制作游戏时,您应该假设计算机用户是白痴. IE.如果您给出了说明,请期望用户会搞砸,损坏系统并为此归咎于您.相比于静默的DirectX安装,它几乎是简单的.而且,它更加方便-用户不必搜寻DirectX下载,安装后即可立即播放.
AFAIK,DXSDK包括DirectX可再发行文件,而AFAIK应该在产品中包括这些可再发行文件.
Our Windows C++ Ogre-based game is nearing completion. Before we publicly release it, we have to solve this matter :
Ogre crashes on many test-computers if they are not updated to the latest Dx9.0c version. All these computers already had 9.0c installed, but that must have been an older OS-pre-installed sub-version, hence the crash..?
The 1st questions is : how can I ensure that a user has the correct 9.0c version so that the game doesn't crash on the user's face, but instead show a message like "Go get the latest 9.0c version from there...."?
The 2nd question is : is there a standard, automated method to update the user's computer to the latest 9.0c version during the game's installation? That would be the best solution.
Many many thanks in advance,
Bill
The best idea is to update/install DirectX silently from Game Installer. Along with other required system components like PhysX, vcredist, etc. Silently, without asking "do you want to install DirectX" (user may not know if he needs DirectX, and if it is already installed, nothing will happen).
See DirectX Installation for Game Developers. Also, I'd recommend to see "Instalation and Maintenance of Games"
This is because (I believe that) when you're making games, you should assume that computer user is total idiot. I.e. if you give instructions, expect that user will screw up, damage the system and blame you for it. Compared to that silent DirectX install is almost fool-proof. Also, it is much more convenient - user won't have to hunt for DirectX download, and will be able to play immediately after installation.
AFAIK, DXSDK includes DirectX redistributable, and AFAIK you're supposed to include those redistributables with your product.
这篇关于DirectX 9.0c的最低版本以及如何检查的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!