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

GMS 2.3+ SOLVED:: HELP! Not compiling. Where are paths for vcvars32.bat and UWP Tools directory?

Director_X

Member
Hi. Am trying to build file for the game jam tomorrow :( , but am running into errors:

Options: Z:/Party_Adve_2C11BDAC_B3568CE9\PlatformOptions.json
Options: Z:/Party_Adve_2C11BDAC_B3568CE9\MainOptions.json
Options: Z:/Party_Adve_2C11BDAC_B3568CE9\PackageOptions.json
Connecting to X:/bin\dpdeploy.exe with username admin and password
Unable to decode the returned string from dpdeploy:System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:50443
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at dpdeploy.Program.HttpGetExpect200(String _uri)



Connecting to X:/bin\dpdeploy.exe with username admin and password
Connecting to X:/bin\dpdeploy.exe with username admin and password
Unable to decode the returned string from dpdeploy:System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:50443
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at dpdeploy.Program.HttpGetExpect200(String _uri)



Error : Could not connect to device localhost:50443. Please follow the setup guide (http://help.yoyogames.com/hc/en-us/articles/115001100548) and try again.
Igor complete.
-----------------------------------------------------------------------------
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: Error connecting to device localhost:50443.
at Igor.WinUWPBuilder..ctor()
--- End of inner exception stack trace ---
at Igor.Program.(String[] )
-----------------------------------------------------------------------------
EXCEPTION FILE - W:\Temp\69f0c35a97fe4cb99f2200cd5b9a8b7b.yyg.saencryptedreport
-----------------------------------------------------------------------------
elapsed time 00:00:11.6998328s for command "C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.3.1.409/bin/Igor.exe" -j=8 -options="W:\\GameMakerStudio2\GMS2TEMP\build.bff" -v -- WinUWP Package started at 03/01/2021 00:33:46
"cmd" /c subst Z: /d

elapsed time 00:00:00.1600426s for command "cmd" /c subst Z: /d started at 03/01/2021 00:33:57
"cmd" /c subst Y: /d

elapsed time 00:00:00.1598087s for command "cmd" /c subst Y: /d started at 03/01/2021 00:33:57
"cmd" /c subst X: /d

elapsed time 00:00:00.1456234s for command "cmd" /c subst X: /d started at 03/01/2021 00:33:58
FAILED: Package Program Complete
For the details of why this build failed, please review the whole log above and also see your Compile Errors window.

:(

My firewall is off. What is: dpdeploy.exe with username admin and password ??
What am I doing wrong?

Thanks.
 

EvanSki

Raccoon Jam Host
Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:50443
" Error : Could not connect to device localhost:50443. Please follow the setup guide (http://help.yoyogames.com/hc/en-us/articles/115001100548) and try again. "

Are you trying to make a game for a windows pc or an xbox?

Im assuming your host machine running gms is not windows thus its giving the error that its trying to build your game on the target device, however its not accepting the ping from gms
 

EvanSki

Raccoon Jam Host
Also if you are running on a PC windows you should be able to bypass that by compiling with VM instead of YYC.
judging by the output, I think the issue is one of the following
  1. Host machine isnt windows and can not connect to a device runing windows
  2. the YYC or UWB export isnt set up correctly
  3. Other windows OS issue such as windows 10 desktop windows UWP or xbox
 

curato

Member
Yeah I was saying if it 2 then VM would work without it, but you right it likely not a windows machine and that is the issue.
 

Director_X

Member
" Error : Could not connect to device localhost:50443. Please follow the setup guide (http://help.yoyogames.com/hc/en-us/articles/115001100548) and try again. "

Are you trying to make a game for a windows pc or an xbox?

Im assuming your host machine running gms is not windows thus its giving the error that its trying to build your game on the target device, however its not accepting the ping from gms
Windows 10 PC. I have a UWP and a Desktop license, and I'm trying to compile and generate a Windows .exe file for the Game Jam due tomorrow. :(

Thanks for the info, I'll try to set it up....
 
Last edited:

Director_X

Member
I have just redownloaded the Visual Studio 2017 v15.9.33, but it doesn't give the option to download the UWP / C++, and Win 10 SDKs.
I have tried looking via the Tools/Extensions and Updates and none of these show up for download. :(
 

curato

Member
Make sure you downloaded 2017. The new version wont work. Also confirm you have the target platform set to window in the upper right corner.
 

EvanSki

Raccoon Jam Host
Windows 10 PC. I have a UWP and a Desktop license, and I'm trying to compile and generate a Windows .exe file for the Game Jam due tomorrow. :(

Thanks for the info, I'll try to set it up....
If you're on a windows 10 pc,
Theres no need to do anything fancy with exporting

Have your target settings in the top right, set to the defaults shown
Untitled.png

Then go and select build -> create executable or press CTRL+F8
02.png

Then pick package as Zip
03.png

It should export and create a zip of your game for the jam.

Make sure you downloaded 2017. The new version wont work. Also confirm you have the target platform set to window in the upper right corner.
VS2019 works the setup is slightly different, apparently its not supported on all platforms but I've yet to notice any issue with it
 

Director_X

Member
I'm afraid GM is not finding the path for Visual Studio correctly, and the the output is still timing out.


Anyone know where the bin/vcvars32.bat file is located in 2017 Visual studio? :( I cannot find EITHER of the above locations. :( Is the UWP Tools for the Windows 10 SDK path? Or is that part of the VB path?

I've just installed Visual Studio 2017 v15.9.33 - which version do you guys have, so I can install that instead?
Thanks
 
Last edited:

EvanSki

Raccoon Jam Host
I'm afraid GM is not finding the path for Visual Studio correctly, and the the output is still timing out.


Anyone know where the bin/vcvars32.bat file is located in 2017 Visual studio? :( I cannot find EITHER of the above locations. :( Is the UWP Tools for the Windows 10 SDK path? Or is that part of the VB path?

I've just installed Visual Studio 2017 v15.9.33 - which version do you guys have, so I can install that instead?
Thanks
go to the install directory of visual studio and in search bar of the window search for the bat file
 

Director_X

Member
Thanks for trying to help. Much appreciated. :)

Found "a" batch file. Not sure of this is the right one.
uwp.JPG
Still cannot locate the TOOLS path. :(



On the plus side, Visual Studio 2019 install however, allowed me to install all the required options listed here:
 

Director_X

Member
Ok moved a bit forward:

"cmd" /c subst Z: "W:\Temp\GMS2CACHE"

elapsed time 00:00:00.1096581s for command "cmd" /c subst Z: "W:\Temp\GMS2CACHE" started at 03/01/2021 04:08:11
"cmd" /c subst Y: "W:\\GameMakerStudio2\GMS2TEMP"

elapsed time 00:00:00.1201784s for command "cmd" /c subst Y: "W:\\GameMakerStudio2\GMS2TEMP" started at 03/01/2021 04:08:11
"cmd" /c subst X: "C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.3.1.409"

elapsed time 00:00:00.1200325s for command "cmd" /c subst X: "C:\ProgramData\GameMakerStudio2\Cache\runtimes\runtime-2.3.1.409" started at 03/01/2021 04:08:11
"C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.3.1.409/bin/Igor.exe" -j=8 -options="W:\\GameMakerStudio2\GMS2TEMP\build.bff" -v -- WinUWP Package

Loaded Macros from W:\Temp\GMS2CACHE\Party_Adve_2C11BDAC_B3568CE9\macros.json
Options: X:/bin\platform_setting_defaults.json
Options: C:\Users\admin.MSI\AppData\Roaming/GameMakerStudio2\director_x_502\local_settings.json
Options: W:\Temp\GMS2CACHE\Party_Adve_2C11BDAC_B3568CE9\targetoptions.json
Setting up the Asset compiler
X://bin/GMAssetCompiler.exe /c /mv=1 /zpex /iv=0 /rv=0 /bv=0 /j=8 /gn="Party Adventure 68" /td="Y:/" /cd="Z:/Party_Adve_2C11BDAC_B3568CE9" /zpuf="C:\Users\admin.MSI\AppData\Roaming/GameMakerStudio2\directors_x_502" /m=winUAP /tgt=35184372088832 /nodnd /cfg="Default" /o="Y:/Party_Adventure_68_45D754DF_VM" /sh=True /optionsini="Y:/Party_Adventure_68_45D754DF_VM\options.ini" /cvm /baseproject="X:/BaseProject\BaseProject.yyp" "C:\Users\admin.MSI\Desktop\Party Adventure 68\Party Adventure 68.yyp" /v /preprocess="Z:/Party_Adve_2C11BDAC_B3568CE9"
We have a Zeus Project!
Found Project Format 2
ProjectFileWatcher:StartWatching:C:\Users\admin.MSI\Desktop\Party Adventure 68
Started: 01/03/2021 04:08:12
Finished: 01/03/2021 04:08:13
Diff: 00:00:01.5399818
Loaded Project: Party Adventure 68
finished.
Release build
Options: Z:/Party_Adve_2C11BDAC_B3568CE9\PlatformOptions.json
Options: Z:/Party_Adve_2C11BDAC_B3568CE9\MainOptions.json
Options: Z:/Party_Adve_2C11BDAC_B3568CE9\PackageOptions.json
Connecting to X:/bin\dpdeploy.exe with username admin and password
Options: Z:/Party_Adve_2C11BDAC_B3568CE9\ExtensionOptions.json
[Compile] Run asset compiler
X://bin/GMAssetCompiler.exe /c /mv=1 /zpex /iv=0 /rv=0 /bv=0 /j=8 /gn="Party Adventure 68" /td="Y:/" /cd="Z:/Party_Adve_2C11BDAC_B3568CE9" /zpuf="C:\Users\admin.MSI\AppData\Roaming/GameMakerStudio2\directors_x_502" /m=winUAP /tgt=35184372088832 /nodnd /cfg="Default" /o="Y:/Party_Adventure_68_45D754DF_VM" /sh=True /optionsini="Y:/Party_Adventure_68_45D754DF_VM\options.ini" /cvm /baseproject="X:/BaseProject\BaseProject.yyp" "C:\Users\admin.MSI\Desktop\Party Adventure 68\Party Adventure 68.yyp" /v /optionsini="Y:/Party_Adventure_68_45D754DF_VM\options.ini" /bt=exe /rt=vm
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:/Party_Adventure_68_45D754DF_VM\Party Adventure 68.win
Writing Chunk... GEN8
option_game_speed=60
Writing Chunk... OPTN
Writing Chunk... LANG
Writing Chunk... EXTN
Writing Chunk... SOND
Converting spe_daddy to Wav 16bit mono @ 44100Hz
Converting spe_thank_you to Wav 16bit mono @ 44100Hz
Converting spe_oh to Wav 16bit mono @ 44100Hz
Converting spe_suprise to Wav 16bit mono @ 44100Hz
Converting bgm_dialogue_theme to Wav 16bit mono @ 44100Hz
Converting sfx_car_ignition to Wav 16bit mono @ 44100Hz
Converting bgm_loading_screen to Wav 16bit mono @ 44100Hz
Converting spe_i_hope_you_had_a_good_time to Wav 16bit mono @ 44100Hz

Converting bgm_credits_theme_tune to Wav 16bit mono @ 44100Hz
Converting bgm_title_theme to Wav 16bit mono @ 44100Hz
Converting spe_hmm to Wav 16bit mono @ 44100Hz
Converting bgm_room_2_1_theme_tune to Wav 16bit mono @ 44100Hz
Converting spe_alright_son to Wav 16bit mono @ 44100Hz

Converting bgm_room_1_3_theme_tune to Wav 16bit mono @ 44100Hz
Converting spe_ok_i_will to Wav 16bit mono @ 44100Hz
Converting sfx_car_driving to Wav 16bit mono @ 44100Hz

Converting spe_hey_mate to Wav 16bit mono @ 44100Hz
Converting spe_because_you_asked to Wav 16bit mono @ 44100Hz
Converting sfx_car_brake to Wav 16bit mono @ 44100Hz

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
Texture Group - Default
Writing Chunk... TGIN
Writing Chunk... CODE
Writing Chunk... VARI
Writing Chunk... FUNC
Writing Chunk... STRG
Writing Chunk... TXTR
0 Compressing texture... writing texture texture_0.png...
1 Compressing texture... writing texture texture_1.png...
2 Compressing texture... writing texture texture_2.png...
3 Compressing texture... writing texture texture_3.png...
Writing Chunk... AUDO
Stats : GMA : Elapsed=9659.6193
Stats : GMA : sp=44,au=19,bk=0,pt=0,sc=0,sh=0,fo=1,tl=0,ob=57,ro=14,da=0,ex=0,ma=3623,fm=0xB0080CE00020
Publisher Name:CN=Sandbox
C:/Program Files (x86)/Windows Kits/10/bin/x86\makepri.exe new /pr "Y:/Party_Adventure_68_45D754DF_VM\packagedata\package_x64" /cf "X:/WindowsUAP\bin\priconfig.xml" /mn "Y:/Party_Adventure_68_45D754DF_VM\packagedata\package_x64\AppxManifest.xml" /of "Y:/Party_Adventure_68_45D754DF_VM\packagedata\package_x64\resources.pri" /o
System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at Igor.Command.(String , String , Boolean , String , YYDictionary`2 , Boolean , String , Boolean )
at Igor.WinUWPBuilder.BuildWindowsUAPProject(String package_name, String _targetfile, Boolean _final)
at Igor.WinUWPBuilder.Package()
Igor complete.
elapsed time 00:00:13.9989328s for command "C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.3.1.409/bin/Igor.exe" -j=8 -options="W:\\GameMakerStudio2\GMS2TEMP\build.bff" -v -- WinUWP Package started at 03/01/2021 04:08:11
"cmd" /c subst Z: /d

elapsed time 00:00:00.1111527s for command "cmd" /c subst Z: /d started at 03/01/2021 04:08:25
"cmd" /c subst Y: /d

elapsed time 00:00:00.1045882s for command "cmd" /c subst Y: /d started at 03/01/2021 04:08:25
"cmd" /c subst X: /d

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

But still failing.... Don't know what these KITs are? Do I need further SDKs (besides the one that comes ticked/bundled with the VS2019 install pictured here?
 
Last edited:

Director_X

Member
Soo... found the tools kit here:

GM auto-detected the path for the tools. But....
back to zero.JPG

Tried the bin paths for both x86 and x64, still no luck. :(
sdk_x86.JPG
sdk_x64.JPG

One step forward, two steps back! :(

Is there a .exe file I need to be pointing it to?
 

Amon

Member
This is the path to my Win UWP tools location:
C:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x64

My VS Location path is:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat

Make sure you are using the correct windows kit and that you are using VS 2017 version for the vcvars32.bat
 

Director_X

Member
This is the path to my Win UWP tools location:
C:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x64

My VS Location path is:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat

Make sure you are using the correct windows kit and that you are using VS 2017 version for the vcvars32.bat
Many thanks. That helped a lot, I could link the Tools dir and got it working! :)
SDK_working_for_v2.x.jpg
GM is still misbehaving - probably will do a clean re-install to kickstart it.

Really appreciate all the help guys - specially in the middle of a stressful GM Jam night!

Great GM community!👍👍👍👍

Many many thanks! :)
⭐⭐⭐⭐⭐
 

Director_X

Member
If you're on a windows 10 pc,
Theres no need to do anything fancy with exporting

Have your target settings in the top right, set to the defaults shown
View attachment 38466

Then go and select build -> create executable or press CTRL+F8
View attachment 38467

Then pick package as Zip
View attachment 38468

It should export and create a zip of your game for the jam.


VS2019 works the setup is slightly different, apparently its not supported on all platforms but I've yet to notice any issue with it

Many thanks for taking the time to screenshot and explain the method. Greatly appreciated. :) :)
 
Top