Shootorials #3, #4, #5 and #6 with Free Tools - mtasc and swfmill page 5

120 posts

Flag Post

Is that on windows? Versions before this one tend to do that.

The XML looks fine… your problem must be something in the code. Make sure you’re referring to it as _root.ship.shield

 
Flag Post

Yeah I looked over the code and double checked everything…..and it is on windows. It’s been bugging me for the last couple of days cuz i cant get it to work. Thanks though

 
Flag Post

Do u think you can help me out with adding sound to my game? I’ve imported sounds to my xml but when i click build it says that the file is not a valid mp3 file…

 
Flag Post

mp3s need to be encoded at 44.1k sampling rate (called “bit rate” by some programs), last time I checked. Particularly not VBR! See the first post in this thread, near the bottom. I had best luck with this using lame; if you’re on windows there are plenty of lame frontends you can use.

 
Flag Post

If i upload it could you look at it. I changed it to what you told me and it still doesn’t work.

 
Flag Post

How would you make an enemy fire 3 bullets all in a different angle or direction?

 
Flag Post

That would require some mathematics and actionscript stuff… please ask about it in the programming forum, more people will be able to help you there. :)

 
Flag Post

could u upload ur code with sound??

 
Flag Post

There is nowhere to get CS3 or 4 unless you have $$$ or get a pirated copy. Which is Illegal.

 
Flag Post

There is nothing called a free lunch is this world. If things needed to be resolved then initiative needs a support to be sorted out.

RPG

 
Flag Post

No shoot.swf fie at all

It doesn’t send me any error code AT ALL, but I don’t see shoot.swf

 
Flag Post

Did you try downloading the example code and compiling it with no changes?

If that works I’ll need a lot more detail on what code/compilers/compile script you’re using and what relevant changes you might have made.

 
Flag Post

Sorry, when editing the code I made a typo

Instead of:
if (a==280) b=0

it was like
if (a=280) b=0

 
Flag Post

Ok, this is quite a weird issue. I just got to the point of the tutorials when I add an animation. While copy and pasting, swfmill suddenly started crashing, without any error messages.

I started making various changes to the Shoot.xml to hunt for it. I dont know how I found it, but by removing two tab characters on line 32 (the only characters on that line) swfmill crashes. I add them again, it can create the swf files, without errors. Remove them again, back to crashing.

I have no idea what could be causing this! I mean, those characters shouldnt even be seen by the interpreter according to the xml standard.

I want to know why this strange behaviour occurs and how to prevent it. Shoot.xml currently feels so fragile that I hesitate to add anything to it. :p

Just tell if you want to see the entire file or anything.

Edit:
Found another crash. If I change
for (var i in _root.ship)
to
for (var i in _root.ship.enemies)

swfmill crashes, revert to make it work again, of course, then the game doesnt work :p
What on earth is going on with my swfmill install?

 
Flag Post

I don’t see how the second thing can possibly cause a crash. swfmill doesn’t even read your actionscript files. Doesn’t touch them directly at all!

What it does do is take the swf generated by mtasc (which does read the AS files) and inject code and data structures into it.

So, that’s a bit awkward… it seems like some kind of extremely unlikely condition to do with the exact binary layout of your mtasc generated swf file.

You can try uploading everything you have somewhere and posting to the swfmill mailing list, but it’s quite inactive and the original author is mostly working on other things.

It seems a little suspicious that these bizarre crashes would suddenly start happening after no problems for a while. Only thing I can suggest would be to try a different version of mtasc or swfmill. :/

 
Flag Post

I tried a later (experimental) version, but it gave the same crash in the same way. I checked the svn repository of swfmill, the latest commit to the trunk was a year ago, the trac issue tracker seems to be used mostly by spamming bots, no irc channel or forum just a mailing list that doesnt see much activity.

What bugs me the most that its a real hard crash, not that swfmill gives me weird error codes. If this happens again later, when the project is bigger, it will probably be a real headache to figure out if it was me or swfmill.

It is also a shame, the lack of open source tools is the very reason I havent looked into flash until now. Your tutorial changed that, so kudos to you :) but, sadly, I cannot see the swfmill project as anything other than dead.

 
Flag Post

Yes, it’s a real shame. swfmill is a very useful tool but nobody seems to want to maintain it. I don’t really have the know-how or the time myself.

I know that a lot of people use it successfully in real project, I’ve talked to plenty of such people online, but there are some little things it just won’t do. Never heard of it being as fragile as it is being in your case, though, but it just goes to show that it has some fundamental issues.

I consider this guide as a “starter” for people who don’t know ActionScript or Flash initially, and haven’t got a windows machine or the money to splash out on Flash IDE. Once they’ve got started, they almost certainly want to move on to mature supported systems like flex or haxe.

 
Flag Post

I would like to thank the creator of this tutorial, i think it’s very well made. Only one thing, I think the part where you explain how to create and set the score bar is a little confused. For example, you don’t tell the reader that he has to create a new layer.

 
Flag Post

Just wanted to add my appreciation too. I’m in the same boat of using Linux instead of Windows and these are fantastic tutorials for some otherwise fairly cryptic tools

http://ezinearticles.com/?Review-of-Paraslim-Force&id=3271797

 
Flag Post

Sorry for resurrecting a dead topic, but it’s stickied anyway and I really need to ask this question.

Everything works fine…except that every so often a stage-wide horizontal flickering line (a scanline?) travels slowly from the top to the bottom of the stage. I tried to record a video of this with CamStudio and even by recording my screen with my webcam, but teh flickering line won’t show up in the videos, which just makes the whole thign even more irritating.

I can’t recall this happening in any other Flash game I’ve played – just in this one. Does anyone know what might be going on?