Friday, September 26, 2014

Update: Dev version should load from zip file in future:

Message to team members: Found bug that broke the doors in the dev version. Working on fixing it now. Eventually this will be fixed. Though booting up the dev version of the game takes way too long. For now, something you'll have to deal with. But on my list is to make the game load levels from zip files to make the loading go faster. The reason the game loads so slow currently is because the game has to "guess and check" to see if the files exist. Because flash is NOT allowed to see all the files in a directory. However, flash can see all the files in zip file.

Thursday, September 11, 2014

FIXED: VerifyError: Error #1068: int and * cannot be reconciled

//THIS SIMPLE CODE WILL CAUSE A STACK DUMP IN AS3:
//[Fault] exception, information=VerifyError: Error #1068: int and * cannot be reconciled.
private static function stackDump():void
{ 
 //obj can be an object, dictionary, vector, array.
 //probably anything that can be accessed using bracket notation.
 var obj:Array = [1, 2];
 var dex:int = 0;

 //if you access an object,vector,array,or dictionary using a nested incrimentor operator
 //followed by a continue statement, you will get a stack dump.
 //The loop can be a for, while, or do loop.
 while (false)
  {
  obj[dex++] = 0;
  continue;
  }

}//end stackDump


How do you fix it?
The problem is caused by using a continue statement after accessing an object using a nested increment operator on a variable.
Change the code inside the loop to:

dex++;
obj[dex] = 0;
continue;

OR:

obj[dex] = 0;
dex++;
continue;


Whichever one has the logic you are going for.


private static function stackDumpFIXED():void
{ 
 //obj can be an object, dictionary, vector, array.
 //probably anything that can be accessed using bracket notation.
 var obj:Array = [1, 2];
 var dex:int = 0;

 //if you access an object,vector,array,or dictionary using a nested incrimentor operator
 //followed by a continue statement, you will get a stack dump.
 //The loop can be a for, while, or do loop.
 while (false)
 {
  dex++;
                obj[dex] = 0;
                continue;
 }

}//end stackDump

Wednesday, September 10, 2014

I am getting stack dumps. And I am not happy.

Putting reference material to read up on this. Possibly a bug in flash, not my code. Ran on my other computer fine. Yet the build here fails... http://www.kongregate.com/forums/4-programming/topics/96607-as3-warning-stack-dump-verifyerror-error-1068-int-and-cannot-be-reconciled

AS3 Import Fails At Compile Time

My game was compiling fine on my other computer. I brought over the code base to another computer and tried to compile, and one of my imports was not found at compile time. The import was recognized by intellisense... But not when I tried to compile. I renamed a class from "TileMapCreationKeyGAS.as" to "TMCKey.as" And all of the sudden the import started working. I have NO CLUE why that worked. My thought: I know in HAXE if you name folders with capital letters, it thinks that is where the import stops because of the "Constant-Class" convention. Possibly my code was causing a parsing error at compile time? Maybe the "AS" at the end of the file name caused it to be parsed as: TileMapCreationKeyG.as instead of TileMapCreationKeyGAS.as I havent a clue. Frustrated. Unfocused.

Saturday, September 6, 2014

C# WebService accessing database on same server

I don't seem to know what I am doing. But I know what I want. And there is a lot of info to help. Will pick up here tomorrow: http://www.sqlcourse.com/create.html http://stackoverflow.com/questions/8362835/web-service-built-in-c-sharp-to-retrieve-data-from-mysql-database what is this: OleDbConnection Example: http://social.msdn.microsoft.com/Forums/en-US/9f5ae21c-c1d3-4037-93c3-c0cc8cc4214c/how-to-retrieve-data-from-database-via-web-service?forum=csharplanguage //http://www.sqlcourse.com/intro.html Basic SQL Commands: Select Insert Update Create Delete I am liking this! http://www.sqlcourse.com/select.html

Get Soap Based (XML) webservice working on non-local machines:

I was looking for the answer to this forever! Actually, more like, 1.5 hours. But still. SOURCE:http://bytes.com/topic/c-sharp/answers/492987-web-service-invoke-button-missing Jennifer, you need to explicitly enable whatever protocols are to be allowed from a remote machine in the web.config (There are additional entries beyond what is shown below): ... ... ... -- Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com UnBlog: http://petesbloggerama.blogspot.com "Jennifer" wrote: Well, I'm not sure about that. Like I said, it's worked fine before. But thanks for the thought! Thanks, Jennifer