• 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.

SOLVED Can't Build & Run Games

L

LilyMoriya

Guest
I have just bought and installed GMS2 for Windows development earlier today through Steam and have been trying to work through an issue for the better part of 4 hours now. I do not know if this is a bug or unique to me, but searching online has given me a decent amount of solutions to try out. I have:
  • Reinstalled & changed runtimes.
  • Tried to use both Steam and Standalone versions of GMS2.
  • Adjusted Windows Defender settings to exclude folders according to this guide, as well as Igor.exe and GameMakerStudio.exe themselves and rebooted my computer.
  • Ran GMS2 as administrator for both Steam & Standalone.
  • Fresh installed and cleaned up leftover files.

Yet no matter whatever I do I still get the included error report in the Output tab of GMS2 whenever I try to Run, Debug, or Create Executable for any project that has files, code, and assets in it, as well as any completely empty projects. I don't know if I am missing anything here. Any and all assistance would be appreciated.

"cmd" /c subst Z: "C:\Users\Lily Moriya\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE"

elapsed time 00:00:00.0490159s for command "cmd" /c subst Z: "C:\Users\Lily Moriya\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE" started at 03/08/2021 16:21:08
"cmd" /c subst Y: "C:\Users\Lily Moriya\AppData\Local\GameMakerStudio2\GMS2TEMP"

elapsed time 00:00:00.0490110s for command "cmd" /c subst Y: "C:\Users\Lily Moriya\AppData\Local\GameMakerStudio2\GMS2TEMP" started at 03/08/2021 16:21:09
"cmd" /c subst X: "C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.3.1.406"

elapsed time 00:00:00.0490040s for command "cmd" /c subst X: "C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.3.1.406" started at 03/08/2021 16:21:09
"C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.3.1.406/bin/Igor.exe" -j=8 -options="C:\Users\Lily Moriya\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -v -- Windows Run

Loaded Macros from C:\Users\Lily Moriya\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE\DragAndDro_5C6B013_8436E8BA\macros.json
Options: X:/bin\platform_setting_defaults.json
Options: C:\Users\Lily Moriya\AppData\Roaming/GameMakerStudio2\lancevo73_2754492\local_settings.json
Failed to load Options from C:\Users\Lily Moriya\AppData\Roaming/GameMakerStudio2\lancevo73_2754492\local_settings.json
Options: C:\Users\Lily Moriya\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE\DragAndDro_5C6B013_8436E8BA\targetoptions.json
Setting up the Asset compiler
X://bin/GMAssetCompiler.exe /c /mv=1 /zpex /iv=0 /rv=0 /bv=0 /j=8 /gn="DragAndDropProjectLily" /td="Y:/" /cd="Z:/DragAndDro_5C6B013_8436E8BA" /zpuf="C:\Users\Lily Moriya\AppData\Roaming/GameMakerStudio2\lancevo73_2754492" /m=windows /tgt=64 /nodnd /cfg="Default" /o="Y:/DragAndDropProjectLily_55A50E31_VM" /sh=True /optionsini="Y:/DragAndDropProjectLily_55A50E31_VM\options.ini" /cvm /baseproject="X:/BaseProject\BaseProject.yyp" "C:\Users\Lily Moriya\Documents\GameMakerStudio2\DragAndDropProjectLily\DragAndDropProjectLily.yyp" /preprocess="Z:/DragAndDro_5C6B013_8436E8BA"
We have a Zeus Project!
Found Project Format 2
Core Resources : Info - GMAudioGroup Resource version is newer than supported version in CoreResources: 1.3 > 1.0
Core Resources : Info - GMTextureGroup Resource version is newer than supported version in CoreResources: 1.3 > 1.0
ProjectFileWatcher:StartWatching:C:\Users\Lily Moriya\Documents\GameMakerStudio2\DragAndDropProjectLily
Started: 3/8/2021 4:21:09 PM
Finished: 3/8/2021 4:21:10 PM
Diff: 00:00:00.1880439
Loaded Project: DragAndDropProjectLily
finished.
Release build
Options: Z:/DragAndDro_5C6B013_8436E8BA\ExtensionOptions.json
OptionsIni
Options: Z:/DragAndDro_5C6B013_8436E8BA\PlatformOptions.json
[Compile] Run asset compiler
X://bin/GMAssetCompiler.exe /c /mv=1 /zpex /iv=0 /rv=0 /bv=0 /j=8 /gn="DragAndDropProjectLily" /td="Y:/" /cd="Z:/DragAndDro_5C6B013_8436E8BA" /zpuf="C:\Users\Lily Moriya\AppData\Roaming/GameMakerStudio2\lancevo73_2754492" /m=windows /tgt=64 /nodnd /cfg="Default" /o="Y:/DragAndDropProjectLily_55A50E31_VM" /sh=True /optionsini="Y:/DragAndDropProjectLily_55A50E31_VM\options.ini" /cvm /baseproject="X:/BaseProject\BaseProject.yyp" "C:\Users\Lily Moriya\Documents\GameMakerStudio2\DragAndDropProjectLily\DragAndDropProjectLily.yyp" /bt=run /rt=vm /64bitgame=false
Compile Constants...finished.
Remove DnD...finished.
Compile Scripts...finished.
Compile Rooms...finished.
Compile Objects...finished.
Compile Timelines...finished.
Compile Triggers...finished.
Compile Extensions...finished.
Global scripts...finished.
finished.
collapsing enums.
Final Compile...finished.
Saving IFF file... Y:/DragAndDropProjectLily_55A50E31_VM\DragAndDropProjectLily.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... ACRV
Writing Chunk... SEQN
Writing Chunk... TAGS
Writing Chunk... ROOM
Writing Chunk... DAFL
Writing Chunk... EMBI
Writing Chunk... TPAGE
Writing Chunk... TGIN
Writing Chunk... CODE
Writing Chunk... VARI
Writing Chunk... FUNC
Writing Chunk... STRG
Writing Chunk... TXTR
Writing Chunk... AUDO
Writing Chunk... SCPT
Writing Chunk... DBGI
Writing Chunk... INST
Writing Chunk... LOCL
Writing Chunk... DFNC
Writing Chunk... STRG
Stats : GMA : Elapsed=182.5576
Stats : GMA : sp=0,au=0,bk=0,pt=0,sc=0,sh=0,fo=0,tl=0,ob=0,ro=1,da=0,ex=0,ma=2,fm=0x0
DoSteam
Igor complete.
[Run] Run game
Options: Z:/DragAndDro_5C6B013_8436E8BA\MainOptions.json
X://windows/Runner.exe -game "Y:/DragAndDropProjectLily_55A50E31_VM\DragAndDropProjectLily.win"
System.ComponentModel.Win32Exception (0x80004005): Access is denied
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at Igor.Command.(String , String , Boolean , String , YYDictionary`2 , Boolean , String , Boolean )
at Igor.WindowsBuilder.Run()
Igor complete.
elapsed time 00:00:01.2640395s for command "C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.3.1.406/bin/Igor.exe" -j=8 -options="C:\Users\Lily Moriya\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -v -- Windows Run started at 03/08/2021 16:21:09
"cmd" /c subst Z: /d

elapsed time 00:00:00.0490141s for command "cmd" /c subst Z: /d started at 03/08/2021 16:21:10
"cmd" /c subst Y: /d

elapsed time 00:00:00.0500113s for command "cmd" /c subst Y: /d started at 03/08/2021 16:21:10
"cmd" /c subst X: /d

elapsed time 00:00:00.0500125s for command "cmd" /c subst X: /d started at 03/08/2021 16:21:10
FAILED: Run Program Complete
For the details of why this build failed, please review the whole log above and also see your Compile Errors window.

Edited to fix formatting.
 

rIKmAN

Member
System.ComponentModel.Win32Exception (0x80004005): Access is denied
This sticks out - is your Windows profile actually an Admin account on that machine?
ie. It's not a school computer or similar where you have restrictions on your profile.

I know you said you added things to Windows Defender exceptions list but it's possible something was missed.
Fully disable the AV, reboot and try again and see if it makes a difference just to completely rule it out.

Is there any other system protection type software running on the machine that may be preventing access?
If so, also disable that and retry - again to fully rule it out.

Finally, does this happen with a fresh empty project, or just with this particular project?
 
L

LilyMoriya

Guest
My windows profile on my computer is an Admin account.
I disabled Windows Defender and its Realtime Protection features in their entirety, rebooted, and tried again but was met with the same error.
I do not currently have any other system protection software installed on my pc.
This happens on every single project, fresh empty ones as well as the one I was using to follow a tutorial online with.

I even downloaded the YoYo Dungeon demo and tried to run it, but it gave me an error with the same Win32Exception in it.

"cmd" /c subst Z: "C:\Users\Lily Moriya\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE"

elapsed time 00:00:00.0620215s for command "cmd" /c subst Z: "C:\Users\Lily Moriya\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE" started at 03/09/2021 09:14:50
"cmd" /c subst Y: "C:\Users\Lily Moriya\AppData\Local\GameMakerStudio2\GMS2TEMP"

elapsed time 00:00:00.0460105s for command "cmd" /c subst Y: "C:\Users\Lily Moriya\AppData\Local\GameMakerStudio2\GMS2TEMP" started at 03/09/2021 09:14:50
"cmd" /c subst X: "C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.3.1.406"

elapsed time 00:00:00.0460103s for command "cmd" /c subst X: "C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.3.1.406" started at 03/09/2021 09:14:50
"C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.3.1.406/bin/Igor.exe" -j=8 -options="C:\Users\Lily Moriya\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -v -- Windows Run

Loaded Macros from C:\Users\Lily Moriya\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE\YoYo_Dunge_79CC1CC_24C30F70\macros.json
Options: X:/bin\platform_setting_defaults.json
Options: C:\Users\Lily Moriya\AppData\Roaming/GameMakerStudio2\lancevo73_2754492\local_settings.json
Failed to load Options from C:\Users\Lily Moriya\AppData\Roaming/GameMakerStudio2\lancevo73_2754492\local_settings.json
Options: C:\Users\Lily Moriya\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE\YoYo_Dunge_79CC1CC_24C30F70\targetoptions.json
Setting up the Asset compiler
X://bin/GMAssetCompiler.exe /c /mv=1 /zpex /iv=0 /rv=0 /bv=0 /j=8 /gn="YoYo Dungeon" /td="Y:/" /cd="Z:/YoYo_Dunge_79CC1CC_24C30F70" /zpuf="C:\Users\Lily Moriya\AppData\Roaming/GameMakerStudio2\lancevo73_2754492" /m=windows /tgt=64 /nodnd /cfg="Default" /o="Y:/YoYo_Dungeon_362CC51C_VM" /sh=True /optionsini="Y:/YoYo_Dungeon_362CC51C_VM\options.ini" /cvm /baseproject="X:/BaseProject\BaseProject.yyp" "C:\Users\Lily Moriya\Documents\GameMakerStudio2\YoYo Dungeon\YoYo Dungeon.yyp" /preprocess="Z:/YoYo_Dunge_79CC1CC_24C30F70"
We have a Zeus Project!
Found Project Format 2
Core Resources : Info - GMAudioGroup Resource version is newer than supported version in CoreResources: 1.3 > 1.0
Core Resources : Info - GMTextureGroup Resource version is newer than supported version in CoreResources: 1.3 > 1.0
ProjectFileWatcher:StartWatching:C:\Users\Lily Moriya\Documents\GameMakerStudio2\YoYo Dungeon
Started: 3/9/2021 9:14:51 AM
Finished: 3/9/2021 9:14:52 AM
Diff: 00:00:00.8551941
Loaded Project: YoYo Dungeon
finished.
Release build
Options: Z:/YoYo_Dunge_79CC1CC_24C30F70\ExtensionOptions.json
OptionsIni
Options: Z:/YoYo_Dunge_79CC1CC_24C30F70\PlatformOptions.json
[Compile] Run asset compiler
X://bin/GMAssetCompiler.exe /c /mv=1 /zpex /iv=0 /rv=0 /bv=0 /j=8 /gn="YoYo Dungeon" /td="Y:/" /cd="Z:/YoYo_Dunge_79CC1CC_24C30F70" /zpuf="C:\Users\Lily Moriya\AppData\Roaming/GameMakerStudio2\lancevo73_2754492" /m=windows /tgt=64 /nodnd /cfg="Default" /o="Y:/YoYo_Dungeon_362CC51C_VM" /sh=True /optionsini="Y:/YoYo_Dungeon_362CC51C_VM\options.ini" /cvm /baseproject="X:/BaseProject\BaseProject.yyp" "C:\Users\Lily Moriya\Documents\GameMakerStudio2\YoYo Dungeon\YoYo Dungeon.yyp" /bt=run /rt=vm /64bitgame=false
Error executing command X:\bin\Shaders\HLSLCompiler.exe -hlsl11 -shader "Y:/sh_light_shader.shader" -name "Shader_sh_light_shader" -out "Y:/" -preamble "X:\bin\Shaders" -typedefine "#define _YY_HLSL11_ 1"
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ComponentModel.Win32Exception: Access is denied
at GMAssetCompiler.GMShader.ExecuteCMD(String exe, String cmdLine)
at GMAssetCompiler.GMShader.CompileHLSL11fromGLSLES()
at GMAssetCompiler.GMShader.PrepareShader()
at GMAssetCompiler.GMShader.LoadShaders(String fragmentShaderFilename, String vertexShaderFilename)
at GMAssetCompiler.GMShader.LoadShaders()
at GMAssetCompiler.Program.(GMAssets )
at GMAssetCompiler.Program.Reentry(String[] _args)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Igor.Program.(String )
at Igor.WindowsBuilder.Compile(Boolean _exe)
at Igor.WindowsBuilder.Deploy(Boolean _exe)
at Igor.WindowsBuilder.Run()
Igor complete.
elapsed time 00:00:02.2714699s for command "C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.3.1.406/bin/Igor.exe" -j=8 -options="C:\Users\Lily Moriya\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -v -- Windows Run started at 03/09/2021 09:14:50
"cmd" /c subst Z: /d

elapsed time 00:00:00.0460106s for command "cmd" /c subst Z: /d started at 03/09/2021 09:14:53
"cmd" /c subst Y: /d

elapsed time 00:00:00.0460107s for command "cmd" /c subst Y: /d started at 03/09/2021 09:14:53
"cmd" /c subst X: /d

elapsed time 00:00:00.0460099s for command "cmd" /c subst X: /d started at 03/09/2021 09:14:53
FAILED: Run Program Complete
For the details of why this build failed, please review the whole log above and also see your Compile Errors window.
 
Since you've gone through a lot of the basic debugging advice for these kind of problems, I'd go ahead and contact yoyo games themselves (https://accounts.yoyogames.com/contact-us#bug, after you've gone through all the suggested help links, scroll to the very bottom and click "I still need to report a bug" if there is no solution to your problem). This forum is community-run and so there's a limit to the amount of technical help you can get with issues like this. Yoyo will be in a better position to help you than most users here (though there's always the chance a user will come up with something that fixes it).
 

rIKmAN

Member
My windows profile on my computer is an Admin account.
I disabled Windows Defender and its Realtime Protection features in their entirety, rebooted, and tried again but was met with the same error.
I do not currently have any other system protection software installed on my pc.
This happens on every single project, fresh empty ones as well as the one I was using to follow a tutorial online with.

I even downloaded the YoYo Dungeon demo and tried to run it, but it gave me an error with the same Win32Exception in it.
It's usually a different message for this problem but is worth a try - since you bought your licence have you logged out of the IDE and then logged back in to pull fresh updated licence data from the servers?

Also give the ui.log file a look (Help menu in the IDE) and see if there is anything in there that might be relevant to the problem.
If it's a massive file you can close GMS2, delete the ui.log file and then open GMS2 again go through the steps to reproduce the error - then look at the ui.log file and it will contain just the info from the last boot to the error and should be way less data for yiou (and YYG) to look through to pinpointanything that might be logged in there.

Failing that take RefresherTowels advice and log a ticket with YYG, adding your ui.log file to the report and giving as much info as you can.
 
L

LilyMoriya

Guest
Logged out and back in and the issue persists.
Looked into the ui.log file but nothing stood out to me within it.
I have submitted a ticket with all the information I could provide on the issue and everything I have done to attempt to fix it, so hopefully I'll be able to get a response and solution if there is one possible.
Thank you for your assistance, and if I find a solution I'll post it here in case anyone else ends up with a similar issue.
 
L

LilyMoriya

Guest
A friend of mine successfully solved the issue by going into the Preferences > General Settings > Compiling and toggled the 'Use subst for drive paths' setting and it successfully solved the issue.
This is after the tech support agent closed my ticket and told me that they could not assist me, and closed it.
 
A friend of mine successfully solved the issue by going into the Preferences > General Settings > Compiling and toggled the 'Use subst for drive paths' setting and it successfully solved the issue.
This is after the tech support agent closed my ticket and told me that they could not assist me, and closed it.
I don't even see that option under Compiling. Does anyone know if this " Use subst for drive paths " is supposed to be in a different spot since the recent update?
 
Top