• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Question - IDE [SOLVED] FAILED: Run Program Complete - Can't run game

T

Tanner Helton

Guest
I have read of other people with this problem, but they all said that the newest runtime would fix it, however, for me it is still not working. Whenever I try to run my game it opens an all black window and there is nothing on it. No objects, sprites, rooms, or anything load. It's just a black screen. This happens not only on Windows, but for HTML as well in both YYC and VM for Windows. Anyone know what this could be? Thanks! (I'm on Windows 10 Pro btw)

Below is my output
------------------------------------------------
C:\WINDOWS\system32\cmd.exe DONE (0)
DoSteam
Igor complete.
[Run] Run game
Options: X:\Defender_90CA6FF3\MainOptions.json
C:\Users\Tanner\AppData\Local\GameMakerStudio2\GMS2TEMP\Defender_8354F9A_YYC\Defender.exe
Attempting to set gamepadcount to 12
DirectX11: Using hardware device
Total memory used = 563280(0x00089850) bytes
Pause event has been registered for this frame
Pause event has been unregistered
"cmd" /c subst X: /d

elapsed time 00:00:09.9950878s for command "C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.1.4.218/bin/Igor.exe" -options="C:\Users\Tanner\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -- Windows Run started at 06/26/2018 23:29:47
elapsed time 00:00:00.0330421s for command "cmd" /c subst X: /d started at 06/26/2018 23:29:57
---------- STOPPING ----------
FAILED: Run Program Complete
 

Goldoche

Member
Y̶o̶u̶ ̶h̶a̶v̶e̶ ̶t̶o̶ ̶u̶p̶d̶a̶t̶e̶ ̶G̶a̶m̶e̶m̶a̶k̶e̶r̶.̶ ̶T̶h̶e̶r̶e̶'̶s̶ ̶a̶l̶s̶o̶ ̶a̶ ̶w̶o̶r̶k̶a̶r̶o̶u̶n̶d̶ ̶i̶f̶ ̶y̶o̶u̶ ̶d̶o̶n̶'̶t̶ ̶w̶a̶n̶t̶ ̶t̶o̶.̶

Edit : Sorry I replied too quickly. I just had the same issue.
 

Toque

Member
When this happened to me it was a viewport /view issue.

The game runs but is a blank screen.



Oh sorry you got a “failed” Not sure......
 
Last edited:
T

Tanner Helton

Guest
Have you cleaned the cache before building??
Yes, I've cleaned and restarted the IDE, but still no progress. I've also gone back to older runtimes and tried it, but still won't work.
 
T

Tanner Helton

Guest
Is that all your output?
This is all my output...

"cmd" /c subst X: "C:\Users\Tanner\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE"

elapsed time 00:00:00.0295356s for command "cmd" /c subst X: "C:\Users\Tanner\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE" started at 06/27/2018 12:54:18
Saving project to: C:\Users\Tanner\Documents\GameMakerStudio2\Defender\Defender.yyp
"C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.1.4.218/bin/Igor.exe" -options="C:\Users\Tanner\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -- Windows Run

Loaded Macros from C:\Users\Tanner\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE\Defender_90CA6FF3\macros.json
Options: C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.1.4.218\bin\platform_setting_defaults.json
Options: C:\Users\Tanner\AppData\Roaming/GameMakerStudio2\tannerwh_7933\local_settings.json
Options: C:\Users\Tanner\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE\Defender_90CA6FF3\targetoptions.json
C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.1.4.218/bin/GMAssetCompiler.exe /c /zpex /mv=1 /iv=0 /rv=0 /bv=0 /j=20 /gn="Defender" /td="C:\Users\Tanner\AppData\Local\GameMakerStudio2\GMS2TEMP" /cd="X:\Defender_90CA6FF3" /zpuf="C:\Users\Tanner\AppData\Roaming/GameMakerStudio2\tannerwh_7933" /m=windows /tgt=64 /nodnd /cfg="default" /o="C:\Users\Tanner\AppData\Local\GameMakerStudio2\GMS2TEMP\Defender_74CAB9C8_VM" /sh=True /optionsini="C:\Users\Tanner\AppData\Local\GameMakerStudio2\GMS2TEMP\Defender_74CAB9C8_VM\options.ini" /cvm /baseproject="C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.1.4.218\BaseProject\BaseProject.yyp" "C:\Users\Tanner\Documents\GameMakerStudio2\Defender\Defender.yyp" /preprocess="X:\Defender_90CA6FF3"
Reading project file....C:\Users\Tanner\Documents\GameMakerStudio2\Defender
Reading project file....C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.1.4.218\BaseProject
Reading config delta 'C:\Users\Tanner\Documents\GameMakerStudio2\Defender\options\main\inherited\options_main.inherited.yy'
finished.


C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.1.4.218/bin/GMAssetCompiler.exe DONE (0)
Release build
OptionsIni
Options: X:\Defender_90CA6FF3\PlatformOptions.json
[Compile] Run asset compiler
C:\WINDOWS\system32\cmd.exe /c ""C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.1.4.218/bin/GMAssetCompiler.exe" /c /zpex /mv=1 /iv=0 /rv=0 /bv=0 /j=20 /gn="Defender" /td="C:\Users\Tanner\AppData\Local\GameMakerStudio2\GMS2TEMP" /cd="X:\Defender_90CA6FF3" /zpuf="C:\Users\Tanner\AppData\Roaming/GameMakerStudio2\tannerwh_7933" /m=windows /tgt=64 /nodnd /cfg="default" /o="C:\Users\Tanner\AppData\Local\GameMakerStudio2\GMS2TEMP\Defender_74CAB9C8_VM" /sh=True /optionsini="C:\Users\Tanner\AppData\Local\GameMakerStudio2\GMS2TEMP\Defender_74CAB9C8_VM\options.ini" /cvm /baseproject="C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.1.4.218\BaseProject\BaseProject.yyp" "C:\Users\Tanner\Documents\GameMakerStudio2\Defender\Defender.yyp" /bt=run"
Reading project file....C:\Users\Tanner\Documents\GameMakerStudio2\Defender
Reading project file....C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.1.4.218\BaseProject
Reading config delta 'C:\Users\Tanner\Documents\GameMakerStudio2\Defender\options\main\inherited\options_main.inherited.yy'
finished.
Compile Constants...finished.
Remove DnD...finished.
Compile Scripts...finished.
Compile Objects...finished.
Compile Timelines...finished.
Compile Triggers...finished.
Compile Rooms...finished.
Compile Extensions...finished.
Global scripts...finished.
Final Compile...finished.
Saving IFF file... C:\Users\Tanner\AppData\Local\GameMakerStudio2\GMS2TEMP\Defender_74CAB9C8_VM\Defender.win
Writing Chunk... GEN8
option_game_speed=60
Writing Chunk... OPTN
Writing Chunk... LANG
Writing Chunk... EXTN
Writing Chunk... SOND
Writing Chunk... AGRP
Writing Chunk... SPRT
Writing Chunk... BGND
Writing Chunk... PATH
Writing Chunk... SCPT
Writing Chunk... GLOB
Writing Chunk... SHDR
Writing Chunk... FONT
Writing Chunk... TMLN
Writing Chunk... OBJT
Writing Chunk... ROOM
Writing Chunk... DAFL
Writing Chunk... EMBI
Writing Chunk... TPAGE
Texture Group - Default
Writing Chunk... CODE
Writing Chunk... VARI
Writing Chunk... FUNC
Writing Chunk... STRG
Writing Chunk... TXTR
0 Compressing texture... writing texture texture_0.png...
Writing Chunk... AUDO
Writing Chunk... SCPT
Writing Chunk... DBGI
Writing Chunk... INST
Writing Chunk... LOCL
Writing Chunk... STRG
Stats : GMA : Elapsed=545.7036
Stats : GMA : sp=1,au=0,bk=1,pt=0,sc=0,sh=0,fo=0,tl=0,ob=1,ro=2,da=0,ex=0,ma=3,fm=0x200000800000


C:\WINDOWS\system32\cmd.exe DONE (0)
DoSteam
Igor complete.
[Run] Run game
Options: X:\Defender_90CA6FF3\MainOptions.json
C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.1.4.218/windows/Runner.exe -game "C:\Users\Tanner\AppData\Local\GameMakerStudio2\GMS2TEMP\Defender_74CAB9C8_VM\Defender.win"
Attempting to set gamepadcount to 12
DirectX11: Using hardware device
Total memory used = 3388197(0x0033b325) bytes
Pause event has been registered for this frame
Pause event has been unregistered


C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.1.4.218/windows/Runner.exe exited with non-zero status (-1)
elapsed time 00:00:04.7298431s for command "C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.1.4.218/bin/Igor.exe" -options="C:\Users\Tanner\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -- Windows Run started at 06/27/2018 12:54:18
"cmd" /c subst X: /d

elapsed time 00:00:00.0295127s for command "cmd" /c subst X: /d started at 06/27/2018 12:54:23
---------- STOPPING ----------
FAILED: Run Program Complete
 
M

MarceloP

Guest
C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.1.4.218/windows/Runner.exe exited with non-zero status (-1)
Please, check your "Syntax Error" report, and tell us if you get anything there when trying to compile.
Also, I've faced a similar problem before. The only way I got it working was removing all my Runtimes (through the IDE), closing the IDE, deleting all runtime cache at (in your case): "C:\ProgramData/GameMakerStudio2/Cache/runtimes". Then I installing the latest Runtime again and cleaned my project Cache before running again.

Also, what I think that @Smiechu meant is that you should try to compile a completely empty project, only having one empty room. If that doesn't work as well, then you'll have a big problem in hands (even worse if that happens even after doing what I asked you to try).

If your completely empty project compiles, then I recommend you to backup your project, create a new one. Re-import your code from the backup in this new project and then try to compile it. Even better would be to import it part by part and test it to found a possible problem. It can be a corrupted asset....

You can also check this, since it may have something to do with your problem. But I'd say that it is not the same problem.
 
T

Tanner Helton

Guest
Please, check your "Syntax Error" report, and tell us if you get anything there when trying to compile.
Also, I've faced a similar problem before. The only way I got it working was removing all my Runtimes (through the IDE), closing the IDE, deleting all runtime cache at (in your case): "C:\ProgramData/GameMakerStudio2/Cache/runtimes". Then I installing the latest Runtime again and cleaned my project Cache before running again.

Also, what I think that @Smiechu meant is that you should try to compile a completely empty project, only having one empty room. If that doesn't work as well, then you'll have a big problem in hands (even worse if that happens even after doing what I asked you to try).

If your completely empty project compiles, then I recommend you to backup your project, create a new one. Re-import your code from the backup in this new project and then try to compile it. Even better would be to import it part by part and test it to found a possible problem. It can be a corrupted asset....

You can also check this, since it may have something to do with your problem. But I'd say that it is not the same problem.
There's nothing in my syntax error report, but I'll try deleting the runtimes and installing them and see what happens. If not I will do a new project. I'll post once I've done all of that and hopefully that'll work.
 
T

TitanAnteus

Guest
I had this issue a while back. If the game errors out on roomstart/gamestart due to some code reasons, it won't give you an error message, but just fail to start. If it errors out after the first draw call, it'll give you actual messages. Some code REALLY early in your game is causing an error. Maybe it's an instance order thing where the you're trying to reference an instance that doesn't exist yet or something like that. I highly recommend you look at the code that should run at the beginning of your game.
 
T

Tanner Helton

Guest
Alright I've got it working now. Not sure what the actual cause was, but I deleted all of the runtimes from cache and then uninstalled Gamemaker in it's entirety. I reinstalled it and opened my project and it worked fine. Thanks for the help everyone!
 
Top