Just before releasing a game... (help!)

This forum is currently in read-only mode.
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • Can you reproduce these issues in a new .cap and post them to the tracker? I haven't heard anyone else having that kind of problem.

    It is pretty weird, isn't it? I will attempt a couple more approaches, and then I will see if these issues can be reproduced. As I said, it's hard to see an understandable pattern. I have done actual programming before, so I'm always trying to think in terms of what the program might be doing, and this makes little sense.

    Will keep you posted.

    (Currently it appears that the huge times it takes to load new layouts seem to be related to me using oggs. When I switched to mp3s again, it went really quickly. I guess they're played differently? Edit: re-read the wiki entry. OK, obviously this makes sense. The rest is still crazy, though.)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I brought the game into more or less the state it started out in. I was wondering whether it was maybe the actual specific XAudio2 object itself that was causing the problems - I had copy-pasted it from one layout to the other a couple of times, and Construct sometimes reacts weirdly to copy-paste. I can't really tell what's going on. I've tried to many approaches and gotten so many different responses that I'm just confused. When I started out working on this game, it had no problems at all. Could it be that Construct can't handle the size of the game? It's certainly gotten a lot slower and crasher more often.

    I'm still getting the random crashes in the second intro, even when disabling the music in the layout that it loads. Still no pattern. It runs fine 10 times in a row and then crashes. Both when running it in Construct and when running the compiled .exe on its own.

    All I can say for certain is that something very strange appears to be going on with the XAudio2 object, and that it may be hard for people to submit bug reports because of the seeming lack of a pattern.

    Back to the fight...

  • Well, the official line has been Construct is still in beta (since it's pre-1.0) so it would be wise to think twice before starting a large project, but I think a few others are currently working on large projects without so many problems.

    The problem really has to be isolated for us to do anything about it. Another way you can try to find what's causing it is delete parts of the game away bit by bit (back it up first obviously) and see when the problems go away - then the last thing you deleted it probably caused it. Also, for the record, one global XAudio2 object is the intended way to use it, although there shouldn't be any difference to a per-layout system other than it forces all sounds and music to stop between layouts and might be a bit slower (since it's closing down and reinitialising the audio engine between layouts).

    Did you try 0.99.72?

  • Well, the official line has been Construct is still in beta (since it's pre-1.0) so it would be wise to think twice before starting a large project, but I think a few others are currently working on large projects without so many problems.

    Oh, absolutely. It's not like I'm blaming anyone or anything. As I said before, Construct is awesome. But I do think it would be great if a large game (hopefully with some acclaim) was released before Construct even reached 1.0... because even in this state, I prefer it a thousand times to Game Maker (or regular programming, for that matter).

    [quote:2kpg8c1i]The problem really has to be isolated for us to do anything about it. Another way you can try to find what's causing it is delete parts of the game away bit by bit (back it up first obviously) and see when the problems go away - then the last thing you deleted it probably caused it. Also, for the record, one global XAudio2 object is the intended way to use it, although there shouldn't be any difference to a per-layout system other than it forces all sounds and music to stop between layouts and might be a bit slower (since it's closing down and reinitialising the audio engine between layouts).

    I've tried this, and it looks like the crashes are definitely being caused by XAudio2. My guess right now is that something went wrong when I copy-pasted it. If I manage to get everything working again and finish the game, I will experiment with this and see if I can create a simple example of what's happening. Unless, that is, this problem is somehow related to the size of the project (70+ layouts, even more event sheets, etc.).

    [quote:2kpg8c1i]Did you try 0.99.72?

    Will try it now.

  • In feeblethemighty's recent Guyman Hero thread he was having audio distortion problems as well. Apparently XA2 was creating multiple instances of itself on restarting a layout. He checked the "No serialize" attribute and that fixed it.

    You could try that, eh it couldn't hurt v<img src="http://www.scirra.com/forum/images/smilies/icon_confused.gif">v

  • As far as I can tell, nothing works. In one version of the project I got the crashes to stop, but then it wouldn't play anything via channels anymore. None of it makes any sense. None of it follows any patterns. I've never felt this confused in my life.

    What drives me crazy is that for more than nine months, while I was working on this game, none of these issues showed up once. I playtested it over and over, and I never had any of this.

    *sigh*

  • If you like, you can pm your .cap to me and I'll take a look. It might help to have another set of eyes on it.

  • If you like, you can pm your .cap to me and I'll take a look. It might help to have another set of eyes on it.

    I'm not sure that'll be so easy - it's nearly 20MB big, and very, very long. (And probably very silly.) But thank you very much for the offer. If I can't solve this tomorrow, I might send you something to have a look at.

    However - it appears that despite my despair, at least one of these issues has a rational answer. I still can't explain the crashing, or why the damn thing was refusing to play anything via the channels, but I might be able to explain the tinny sound I kept getting at random. My computer has two sound drivers (and two sound cards) installed. I just ran the game on my wife's computer, and it seemed fine. Of course, when these things are so random it's hard to be sure, but it's a possibility. One that I will look into further tomorrow, when I've gotten some sleep.

    By the way, many thanks to all of you for your advice and your patience. Another thing about Construct that is really awesome.

  • Okay then. The offer still stands, though. Just let me know if you change your mind.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)