Wednesday, July 20, 2011

Version 2.0 - Development Completed !

Game overhaul completed!

Yes, it was a good game... and now it is a great game!

I've contacted Sean Parnell and he helped with his art, now the game looks awesome! you can see the updated trailer here (The 7 Elders Gameplay Trailer ! UPDATED).

But the game have changed a lot too, not only the graphics, see the list:
  • Now we have a 3D flip , it is easy to see the cards bumping each other
  • When you win a point you will see an nice effect
  • The game UI is now very simple and intuitive
  • Each card has a unique story at "My Deck"
  • The game is a LOT easy to jump in and play with the new in game tutorial (simple and effective!)
  • Each match now gives you amounts of money to buy new cards on the cards shop!

Yes so many changes that the version is now at 2.0

The new statistics:
  • 447 Lybrary Items (after a huge clean of old stuff =P)
  • 116 Movie Clips
  • 25 Custom Classes
  • Around 9000 lines of code
  • 38 Sounds (33 Sounds FX / 5 Musics)
  • FLA Size 42,4MB - lower than before because I created a new file and copy everything from the old file, Flash seems to create "junk" into the file after a ton of changes
  • SWF Size 6,4 MB - lower than before because I realized that some sounds/image quality were too high and lowering them didn't affect the game quality (80Kbps and Mono for sounds and jpg 70%-80% of quality depending on the image ammount of details, instead of PNG)

Probably this will be the game icon on most of the sites:


The 7 Elders


Thursday, July 14, 2011

Flash after my first unknown error optimizing byte code

After I got the Flash unknown error optimizing byte code, my game file wasn't the same anymore... Even doing the "memory fix" (change the jvm.ini file to 512), I've got two others strange errors... and at rare times the same "Flash unknown error optimizing byte code"

First error "reference not found" - I had a lot of as3 classes that flash generates automatically for me, like bitmaps and sounds. When you try to set up the "export for actionscript 3" Flash gives this warn to you:



But flash wasn't generating these classes...and after some other compiles, I've got the second error.

Second "NO error" - How can a "no error" be an error? Ok I know this is strange BUT Flash don't give to you an error! it compiles your project but the .swf file size is smaller than before and no as3 code is being executed, even if I trace something or try to force an error, nothing happen! My close and open flash trick is not working anymore, so... time to try new things!

Things that I tried to solve my problem:

- Remove all your library content from the folders, place it at your library root: Ok 478 items at the root of the library, some with a name Copy on the end because of their duplicated name...BUT it worked only for a few compiles! =(

- Save file as CS4 and later save file as CS5: Some say that this is because of the way .fla works if you save as CS4 you will "clean" something...but for me  this haven't worked =/

- Control > Delete ASO files, didn't worked.

- Change the publish settings a little: I have changed them a little, saved the file, tried to compile and later changed it again to the initial values...again worked only for a few compiles! =(

- Create a totally new .FLA file! I was expecting that this would fix my problem, so I created a new empty .FLA file...copied every library file to it and my scenes...again worked only for a few compiles! =(

- AS3 constants - I noticed that my CONFIG::FLASH_AUTHORING constant was not there at AS3 settings... so I've tried to put it again, but didn't work.



- THE SOLUTION - Finally the real fix for my problems...ok maybe is the new file + no folders at the library + save as CS4 and save back to CS5 + replace the as3 constant, but whatever, I have changed this AS3 library path setting below:



Instead of "Runtime shared library (RSL)" put "Merged into code" and IT WORKED!!! more than a few compiles!!!

I Hope this will be useful to someone... =)

Special Thank to these sources:
Kirupa forum 2008 for CS4, but we know that there is a lot of CS4 on CS5, so I had to give a try

Wednesday, July 6, 2011

Flash unknown error optimizing byte code

This is a totally mess, =P

I was improving my game The 7 Elders, and suddenly when I tryed to compile the project I receive this error message: Flash unknown error optimizing byte code . But what is this ?

Some people say that this occur because your .fla file is too big or have too much classes and the Java Virtual Machine can't handle the compilation. I found this solution: http://kb2.adobe.com/cps/405/kb405257.html

BUT I HAVE TO SAY, my solution was:
If I get this error, I close Flash CS5 and open it again, this is the only thing that worked for me.

UPDATED!: Please, take a look to this post: Flash after my first unknown error optimizing byte code

Now I have to say that The 7 Elders is passing by a overhaul. I am counting with the help of a good artist Sean Parnell (here, check his work)

I will leave here an image of our new map !