Cannot export to SWF

hummerz5

  • Posts: 9
I have a bug (maybe) where I can't export my game as an SWF.

This has been working fine for me until I updated my software today. I haven't updated the software since I first got it three months ago. When I try to export as .SWF it says "Unable to export SWF to the requested location (could not write)

I have already posted my problem somewhere and was told to post it here. (I'm new to the forum thing) Does anyone know how to solve my problem?


Joe

  • *
  • Posts: 2480
Welcome to Stencyl! Can you check and make sure any sounds/music you're using are sampled at 44.1kHz?

http://www.stencyl.com/help/viewArticle/71

hummerz5

  • Posts: 9
Thanks! Sorry it took me a while to reply, but I don't recall adding any music at all.

Joe

  • *
  • Posts: 2480
Can you post your logs? What OS are you using? Do you have StencylWorks in a directory that you have write permission to access?

hummerz5

  • Posts: 9
Can you post your logs?
 What OS are you using? Windows XP
 Do you have StencylWorks in a directory that you have write permission to access?
             Yes, in the folder before My Documents ... or something. It's like C:\documents and settings\My username\

Joe

  • *
  • Posts: 2480
Please try to do an export again and then post your logs, as discussed here.

Rob

  • *
  • Posts: 1268
To add to Joe, you can also try exporting any of the sample stencyl games to swf as a test to isolate the problem further.
GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title

hummerz5

  • Posts: 9
 Hmm. As I am still slightly new to Stencyl, my file names might be a bit confusing or funny...
lol... I hope you can bear with the names.

hummerz5

  • Posts: 9
Also, I exported 'Brick Block' to SWF with no problems.

Darkhog

  • Posts: 1243
Can you zip up game and post it here then?

There are no impossible things. There is only lack of skills.
Don't click this if your computer has less than 641 kilobytes of RAM.
Stencyl stencyling stencylish stencylers :D

hummerz5

  • Posts: 9
Zip up the game... so all I need to zip is the
stencylworks/games/level_name folder? or is there something else ?

RayonMazter

  • Posts: 123
Hi,

You have an mp3 uploaded into the game i'm assuming.

Take all the meta-data out of that mp3 (right click, properties, all the non-static information, remove it). Also convert the mp3 down to 64 or 128 kbit rate.

Samples hz    Bit Depth    Bitrate (kbps)
44.1khz    16    128

Quote
Files encoded using 'standard' MP3 format at CONSTANT bit rate will normally play, provided the sample rate is a multiple of 44.1kHz - other 'interpolating' sample rates cause Flash Player to speed up the playback. Sample rates of 96000, 44100, 22050 and 11025 samples/second at 8, 16 and 32 bit depth will all work fine.

Why is this an issue in Stencyl?
I can act like I know for sure, but I don't. I think Adobe Flash auto-converts uploaded files to the library to working formats for flash player, as where stencyl just uploads your files as-is.
To ask that stencyl auto-converts our media is a bit much, so it's perhaps one slightly 'advanced' thing we have to do when working with Stencyl.
Perhaps an update will be made in the future to resolve this.

You may need to remove all sounds, re-convert them, add them again, then select the sound files in code again as they will reference to nothing since you removed their previous references.

If you need help converting the sounds to the above mentioned, I (or i'm sure others) can help you with that no problem, assuming that your version of the write problem is this issue, and not something else. You can toss the files to support@wrathgames.com if you would like me to convert them for you.

Best of luck.



Edit/ps:
-I only figure this is the problem because I just had to deal with it in one of my projects. Testing worked fine, export to swf did not until I performed the above mentioned procedure.

Rob

  • *
  • Posts: 1268
This is great info. Cannot export to swf because of sound issues have been one of the more frequent problems users have been encountering.

We'll see what hummerz5 find out.
GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title

hummerz5

  • Posts: 9
Hi,

You have an mp3 uploaded into the game i'm assuming.


Sorry, I'm afraid I do not.

----
Would the problem perhaps be 'FNT' files? I notice that actors are renamed with numbers. [I'm looking with Windows Explorer] While most are PNG files, some are FNT. Also, PNG files show an icon while FNT files do not.

« Last Edit: December 02, 2011, 02:15:17 pm by hummerz5 »

Rob

  • *
  • Posts: 1268
Do you mean there are graphics files not in png format? Anyone can chime in what are all the supported format in sw?
GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title