Encountered Errors While Building Your Game-

isaacnite

  • Posts: 31
I recently upgraded to Stencyl 3.4 and can't load my game now :(


captaincomic

  • *
  • Posts: 6109
Code: [Select]
2015-11-17 01:43:41,466 INFO  [Thread-13] stencyl.sw.io.write.resource.HXWriter: Finished: Building for Standalone (windows)
2015-11-17 01:43:41,466 DEBUG [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Running command: link.exe -out:ApplicationMain.exe -nologo -machine:x86 -subsystem:windows,5.01 -libpath:lib user32.lib -libpath:e:/VS8/PlatformSDK/Lib "@C:/Users/Chris/AppData/Roaming/Stencyl/stencylworks/games-generated/Cosmo True/Export/windows/cpp/obj/obj/msvc16-ncxp/all_objs"
2015-11-17 01:43:41,550 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe] LINK : fatal error LNK1104: cannot open file 'obj/msvc16-ncxp/67f4fc5e_MyAssets.obj'
2015-11-17 01:43:41,554 INFO  [Thread-13] stencyl.sw.io.write.resource.HXWriter: Finished: Building for Standalone (windows)
2015-11-17 01:43:41,555 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe] Error: Error running: link.exe -out:ApplicationMain.exe -nologo -machine:x86 -subsystem:windows,5.01 -libpath:lib user32.lib -libpath:e:/VS8/PlatformSDK/Lib @C:/Users/Chris/AppData/Roaming/Stencyl/stencylworks/games-generated/Cosmo True/Export/windows/cpp/obj/obj/msvc16-ncxp/all_objs []
2015-11-17 01:43:41,588 DEBUG [pool-1-thread-1] stencyl.sw.util.Util: Process 'haxelib.exe' exited with code: 1

Try Run -> Clean Project.

isaacnite

  • Posts: 31
I am still getting the same error.  :-[



captaincomic

  • *
  • Posts: 6109
It looks different now:
Code: [Select]
2015-11-17 19:32:26,251 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe] Running command: RUN
2015-11-17 19:32:26,251 DEBUG [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Changing directory: Export/windows/cpp/bin/
2015-11-17 19:32:26,252 DEBUG [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe]  - Running command: Cosmo True.exe -verbose -livereload
2015-11-17 19:32:28,030 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe] Universal.hx:194: Stage Width: 1920
2015-11-17 19:32:28,030 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe] Universal.hx:195: Stage Height: 1080
2015-11-17 19:32:28,030 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe] Universal.hx:196: Screen Width: 1600
2015-11-17 19:32:28,030 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe] Universal.hx:197: Screen Height: 900
2015-11-17 19:32:28,031 INFO  [Thread-13] stencyl.sw.io.write.resource.HXWriter: Finished: Building for Standalone (windows)
2015-11-17 19:32:28,031 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe] Universal.hx:198: Screen DPI: 96
2015-11-17 19:32:28,031 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe] Universal.hx:365: Theoretical Scale: 1
2015-11-17 19:32:28,031 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe] Universal.hx:377: Max Scale: 4
2015-11-17 19:32:28,031 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe] Universal.hx:378: Engine Scale: 1x
2015-11-17 19:32:28,031 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe] Universal.hx:400: Algorithm: Stretch to Fit
2015-11-17 19:32:28,032 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe] Universal.hx:732: Scale X: 0.833333333333333
2015-11-17 19:32:28,032 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe] Universal.hx:733: Scale Y: 0.833333333333333
2015-11-17 19:32:35,052 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe] Data.hx:324: Load Atlas: 2
2015-11-17 19:32:35,052 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe] Data.hx:324: Load Atlas: 0
2015-11-17 19:32:35,053 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe] Data.hx:324: Load Atlas: 3
2015-11-17 19:32:35,053 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe] Data.hx:324: Load Atlas: 1
2015-11-17 19:32:35,054 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe] Script.hx:3582: Loaded Save: mySave
2015-11-17 19:35:11,760 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe] Engine.hx:1709: Switching to scene 7
2015-11-17 19:35:44,194 INFO  [Thread-13] stencyl.sw.util.StreamGobbler: [haxelib.exe] Engine.hx:1709: Switching to scene 0
2015-11-17 19:36:11,483 DEBUG [pool-1-thread-1] stencyl.sw.util.Util: Process 'haxelib.exe' exited with code: 1
2015-11-17 19:36:11,483 ERROR [pool-1-thread-1] stencyl.sw.io.write.resource.HXWriter: Failed: Running Standalone (windows). (Return code: 1)
It seems to be building the game successfully, but than crashes after switching scenes.

You can try testing the game in Flash, that might show an error instead of crashing.

Vectrex71

  • Posts: 534
I know, it's an old thread, but there is no solution until yet ? Because i have the same problem :-(

- Flash Build works
- Windows does not :-(

I have uninstalled Visual Studio and installed it via Stencyl again but, same error !

Any ideas ?

Minimo

  • Posts: 201
Same here.

Getting 
Code: [Select]
[haxelib.exe] Process creation failure : cl.exe
Failed: Running Standalone (windows). (Return code: 1)

On Windows 7, Stencyl 8868.

« Last Edit: February 06, 2016, 10:37:16 pm by Minimo »

Minimo

  • Posts: 201
Did some checking and found these:


http://community.openfl.org/t/process-creation-failure-cl-exe/6859
http://community.openfl.org/t/windows-c-process-creation-failure-cl-exe/1135/4

I tried to edit the environment variable (suggested in one thread) and it made no difference.
The problem seems to be hxcpp ??

Minimo

  • Posts: 201
Could the problem be the hxcpp_config?
 C:\Users\Username\.hxcpp_config.xml)


Code: [Select]
<!--

  This file will get included twice - once at the beginning - once at the end.

  The first time though, the "vars" section is parsed, and this is where you can
   set variables to control the setup of the standard compilers and install paths etc.

  The second time, the "exes" section is parsed, and you can modify the linkers/compilers
   by adding flags to these executables.
 
-->

<xml>

  <!-- This section is parses at the beginning of the build .... -->
  <section id="vars">

<setenv name="JAVA_HOME" value="" />
<set name="ANDROID_HOST" value="windows" />
<set name="ANDROID_SETUP" value="true" if="android" />
<set name="ANDROID_SDK" value="C:\Users\Admin\AppData\Roaming\Stencyl\stencylworks\android-sdk/android-sdk-windows/" if="android" />
<set name="ANDROID_NDK_ROOT" value="C:\Users\Admin\AppData\Roaming\Stencyl\stencylworks\android-sdk/android-ndk-r7b/" if="android" />
<set name="ANT_HOME" value="C:\Users\Admin\AppData\Roaming\Stencyl\stencylworks\android-sdk/apache-ant/" if="android" />
</section>


  <!-- Use this section to add flags to the compilers and linkers -->
  <section id="exes">

     <!-- Compiling on windows ... -->
     <compiler id="MSVC" if="windows">
        <!-- Example adding a build flag -->
        <flag value = "-Ie:/VS8//PlatformSDK/Include"/>
     </compiler>

     <!-- Linking on windows ... -->
     <linker id="dll" if="windows">
        <!-- Add library paths for windows (DirectX needed for building NME) -->
        <flag value = "-libpath:e:\VS8\DirectXSDK\Lib\x86"/>
        <flag value = "-libpath:e:/VS8/PlatformSDK/Lib"/>
     </linker>

     <!-- And for linking executables -->
     <linker id="exe" if="windows">
        <flag value = "-libpath:e:/VS8/PlatformSDK/Lib"/>
     </linker>

  </section>

</xml>


Valinor Games

  • Posts: 55
Hello,

Sorry about necroing this thread, but I am having the same problem, and the link for the solution goes to a closed forum, could someone please help?

Thanks.

mdotedot

  • Posts: 1560
This snippet is from that thread:

 SOLUTION: Delete VIsual Studio 2015 (completely !) and install VIsual Studio 2013 !!!
Hanging out in the Chat:  http://www.stencyl.com/chat/

Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.