V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Game Engines
Unreal Engine
MyCryENGINE
szhshp
V2EX  ›  游戏开发

GMS2(Gamemaker Studio 2)运行工程时遇到的问题解决

  •  
  •   szhshp · 2017-06-06 14:52:15 +08:00 · 3402 次点击
    这是一个创建于 2508 天前的主题,其中的信息可能已经有所发展或是发生改变。

    文章最初发表于szhshp 的第三边境研究所 转载请注明

    近期使用了 GMS2, 刚开始运行官方 Demo 的时候出现了一些问题,这里集中一下解决方案

    FAILED: Run Program Complete

    在 Win10 下直接运行 Demo 出现错误:

     C:\Windows\system32\cmd.exe exited with non-zero status (1)
    elapsed time 00:00:02.5630000s for command "C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.0.1.16/bin/Igor.exe" -options="C:\Users\Kaiser\AppData\Local\Temp\GameMakerStudio2\build.bff" -- Windows Run started at 02/12/2017 20:25:49
    FAILED : Run Program Complete
    

    这是运行环境安装出现了问题,可能和杀毒软件或者系统权限有关。解决方法:

    1. file/prefrences/feeds/master 下载最新的 Runtime, 如果已经是最新的就删掉重装
    2. 关闭杀软
    3. 以管理员权限打开 GMS2

    System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified

    这也是一个很典型的安装环境失败的问题

    C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.0.1.16/windows/Runner.exe  -game "C:\Users\Dave\AppData\Local\Temp\GameMakerStudio2\Test_50CBC7E2\Test.win"
    System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
       at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
       at System.Diagnostics.Process.Start()
       at Igor.Command.ExecuteCommandSync(String _command, String _args, Boolean _fail_on_error, String _cwd, Dictionary`2 _env, Boolean as_admin) in c:\hudson\ZeusBase\ZeusGreen\GameMaker\Zeus\Igor\Program.cs:line 64
       at Igor.WindowsBuilder.Run() in c:\hudson\ZeusBase\ZeusGreen\GameMaker\Zeus\Igor\Builders\WindowsBuilder.cs:line 144
    elapsed time 00:00:03.6157316s for command "C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.0.1.16/bin/Igor.exe" -options="C:\Users\Dave\AppData\Local\Temp\GameMakerStudio2\build.bff"  -- Windows Run started at 11/17/2016 12:29:14 AM
    

    和第一个问题一样,Runtime 安装失败,步骤类似可以使用同样的方法解决

    关于无法创建 Temp 文件夹

    这个比较特别可能是没有对应磁盘的文件,GMS1 曾经尝试在 C 盘根目录创建游戏文件失败,可以将临时文件修改为其他磁盘解决问题

    如图修改:

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1068 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 19:10 · PVG 03:10 · LAX 12:10 · JFK 15:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.