Bug Issue: Failed to build game in latest release, now fails when building in prev version


Pages: 1

SirCrocketz

  • Subscriber - Stencyl Studio
  • *
March 02, 2018, 02:17:50 pm
As the title states. I compiled my game for Flash in build 9782, Stencyl  flashed an error.

Now when I build my game in 3.4 it just creates a black screen, and fails when I test in Windows as well.


New attachment added by SirCrocketz - March 02, 2018, 02:18:03 pm


Justin

  • Master Stencyler
  • *
March 02, 2018, 02:45:13 pm
It looks like you don't have a default scene set.


Justin

  • Master Stencyler
  • *
March 02, 2018, 04:47:56 pm
I can't say with 100% certainty that that was the cause, but I've put in a check in b9783 anyway to let you know you don't have a default scene if you try testing without one.

edit: Marking this as resolved, but feel free to tell me that's not the case.
  • Status changed from New to Resolved
  • Issue Assigned from (none) to Justin
« Last Edit: March 02, 2018, 04:48:15 pm by Justin »


SirCrocketz

  • Subscriber - Stencyl Studio
  • *
March 03, 2018, 08:20:42 am
So I did some more testing. Setting a default scene let me build my game in 3.4, so that fix worked. But...before I opened my project in 3.5 I had a default scene set.

I figured it out. I opened the game in 3.5 and a default scene is set correctly. I perform a windows test build which fails with the included (WinCard) error. Then I go back to 3.4 and suddently my default scene is no longer set.

I've tested this on multiple projects and it is reproducable.
« Last Edit: March 03, 2018, 08:26:01 am by SirCrocketz »


New attachment added by SirCrocketz - March 03, 2018, 08:21:09 am


New attachment added by SirCrocketz - March 03, 2018, 08:25:39 am


Justin

  • Master Stencyler
  • *
March 03, 2018, 10:27:48 am
Could you try this temporary debug build and reproduce the issue again? It'll log a little more information which will hopefully help track this down.

http://www.polydes.com/openfl4/sw.jar

Download it and replace the existing sw.jar in your 3.5 install folder.

By the way, the reason that windows won't compile in 3.5 seems to be that the updated hxcpp lib in 3.5 can detect Visual Studio 2017, but you don't have the C++ components installed in VS2017.
« Last Edit: March 03, 2018, 10:28:42 am by Justin »


SirCrocketz

  • Subscriber - Stencyl Studio
  • *
March 03, 2018, 05:29:25 pm
Uploading Windows Card log-2018-03-03 after replacing the sw.jar.

And that's weird about VS2017, I can launch it for C++ development, I'll reinstall it.


New attachment added by SirCrocketz - March 03, 2018, 05:29:38 pm


Justin

  • Master Stencyler
  • *
March 03, 2018, 05:47:02 pm
Oh. I see what's going on here, and in hindsight it should have been pretty obvious. 3.4 can't read the defaultSceneID saved by 3.5. Stencyl projects aren't really supposed to be backward compatible, so this is fine.

I need to make sure that 3.4 knows it can't open a game that's been saved in 3.5, and perhaps also make it obvious that you won't be able to go backward when opening a 3.4 or less game in 3.5.


SirCrocketz

  • Subscriber - Stencyl Studio
  • *
March 03, 2018, 07:01:01 pm
Ok, that makes perfect sense. It just took me off guard, I thought I broke my entire game for a second. After uninstalling all versions of Visual Studio and then installing through the engine I got it to build for me on all platforms. I'd re-installed and modified VS so many times to only give me that error in the past but now it works. So thanks Justin!
« Last Edit: March 03, 2018, 07:01:26 pm by SirCrocketz »


Justin

  • Master Stencyler
  • *
March 04, 2018, 05:30:05 pm
To recap before I forget about this issue:

- Detect cl.exe error, let the user know they need to look into whether they've installed the c++ components for Visual Studio.
- Update save format for 3.5 and show the "upgrade this game" dialog
  • Status changed from Resolved to Assigned
  • Tags added: 3.5 HP


Pages: 1

Details

  • Reported
    March 02, 2018, 02:17:50 pm
  • Updated
    March 04, 2018, 05:30:05 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Assigned
  • Priority
    Normal
  • Version
    Stencyl 3.4, Stencyl 3.5
  • Fixed in
    (none)
  • Assigned to
    Justin
  • Category
    Compiling/Testing Games

Tags


Attachments

* Test Flash log-2018-03-02.zip (91.22 kB - downloaded 22 times.)
* Windows log-2018-03-03.zip (195.51 kB - downloaded 18 times.)
* WinCard log-2018-03-03.zip (228.03 kB - downloaded 16 times.)
* Windows Card log-2018-03-03.zip (126.13 kB - downloaded 19 times.)