Pokemon Showdown accessibility guide

2017-01-30 Thread AudioGames . net ForumArticles Room : keyIsFull via Audiogames-reflector


  


Pokemon Showdown accessibility guide

I have written a pokemon Showdown accessibility guide. The guide is too long for the forum and I think the forum software messes up the links, so the URL ishttps://gamemadnessinteractive.wordpres … ity-guide/

URL: http://forum.audiogames.net/viewtopic.php?pid=256226#p256226





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Pokemon Showdown accessibility guide

2017-01-10 Thread AudioGames . net ForumArticles Room : keyIsFull via Audiogames-reflector


  


Pokemon Showdown accessibility guide

I have written a pokemon Showdown accessibility guide. The guide is too long for the forum and I think the forum software messes up the links, so the URL ishttps://gamemadnessinteractive.wordpres … ity-guide/

URL: https://forum.audiogames.net/viewtopic.php?pid=256226#p256226





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Pokemon SHowdown accessibility guide

2016-04-06 Thread AudioGames . net ForumArticles Room : keyIsFull via Audiogames-reflector


  


Pokemon SHowdown accessibility guide

I have written a pokemon Showdown accessibility guide. The guide is too long for the forum and I think the forum software messes up the links, so the URL ishttps://gamemadnessinteractive.wordpres … ity-guide/

URL: http://forum.audiogames.net/viewtopic.php?pid=256226#p256226





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

BGTCompile errors: a blessing in disguise

2015-02-25 Thread AudioGames . net ForumArticles Room : keyIsFull via Audiogames-reflector


  


BGTCompile errors: a blessing in disguise

For many people who use the bgt engine, they are newbies to scripting. The process of game creation can be an intimidating one, especially for those who do not realize the task that is ahead of them. Besides developing the game mechanics, finding sounds and/or music, and making documentation, the game has to be programmed, tested, debugged and tested again.  Writing the code that makes the game can be the hardest part for many. Evidently, you will make mistakes. Even I make them. There are two major kinds of mistakes when programming, syntactical mistakes and logical mistakes.syntactical mistakes are errors in the code that stop bgt from understanding your code. For example, calling a function with the wrong kinds of parameters. Bgt will either give you a compilation error when you try and run the game, or a runtime error if the game is already running, when it sees a syntactical mistake. In both cases, the program will close and it will be 
 your job to fix the problem.Logical mistakes do not stop bgt from running the game, but something will act oddly. For example, if you are making a sidescroller and you have defined pits, it is logical that if the player does not jump over the pit, he should fall into it. If he does not fall in, this is a logical mistake. Logical mistakes are often harder to correct than syntactical mistakes, especially for people who are novices to programming. These novices often copy example code without fully understanding what it does, and pay the price for it later. Understanding what the code does is integral to fixing logical mistakes.Newbies to bgt are often put off by what seems like insurmountable compilation errors. But really, these errors are tremendously helpful when troubleshooting syntactical mistakes. BGT really makes a notable effort to point you in the right direction towards fixing the nitty-gritty so that you can get back to programming new featu
 res into your game. Ill attempt to cover some of the most common compilation errors and warnings you will receive from bgt, and strategies to fixing them and/or avoiding them in the future.Remember, compilation errors always reference line numbers. Use your text editors go to line feature to help narrow your search.Expected x, instead found yDid you terminate your last statement with a semicolon? This is by far the biggest reason for this error. A lot of novices, as well as people who are transitioning from some other programming language, such as _javascript_, that doesnt require semicolons, get this error.Too many closing parentheses? This is another common one for me. I often nest 2 or 3 function calls in a single statement and put an incorrect number of closing parentheses at the end. Wrong numbers of closed braces and quotes will be discussed later.unexpected end of file
 Anyone whos made a game in bgt knows and dreads this error. The main reason you get it is that you didnt close a brace in your code. Bgt will let you know where the unclosed brace is, which is a tremendous help. Go there and count your braces carefully. A useful technique is to comment out what youre closing so that you dont have to puzzle over it later. For example:void main)
{
int x=4, y=7;
while(xy)
{
if(x==6)
{
alert(,x is 6);
] //if
x++;
]//while
]//void mainunexpected tokenThis usually happens if you have too many closing braces, but you are not defining a class (see the next error if you are). Since you cant define an if statement outside a function, you often get if as the unexpected token, though you also often get } as the unexpected token. Either way, it means you over closed your brace.expected method or propertyUsually this error shows up if you close too many braces while defining a class method.Expected _expression_ valueThis usually references the condition of an if, while, doWhile, or for statement. The error is usually pretty easy to spot and its usually a typo, for example you use = instead of == to denote is equal to.non-terminated string literalThis one is one of the most annoying errors to receive if you dont test your code often. The main reason for the annoyance is that the line
  number that BGT shows you rarely is the culprit. The problem is always on a line above the referenced line, and there is no limit to how far up it could be. You usually get this error if you are concatonating strings and variables together and accidentally switch the plus sign and the quotation mark, or forget one of them. It is also possible that you simply forgot to close your opening quote, or you forgot an opening quote. If you forget both quotes and you havent concatonated aynthing, you will get a message about something not being declared instead.variable x is not declaredThis is usually easy enough to fix. You either forgot to put quotes around a literal string, or just forgot to define a variable.no matching signatures to and candidates areWhen you call a function, bgt looks for a signature 

BGTCompile errors: a blessing in disguise

2015-02-25 Thread AudioGames . net ForumArticles Room : keyIsFull via Audiogames-reflector


  


BGTCompile errors: a blessing in disguise

For many people who use the bgt engine, they are newbies to scripting. The process of game creation can be an intimidating one, especially for those who do not realize the task that is ahead of them. Besides developing the game mechanics, finding sounds and/or music, and making documentation, the game has to be programmed, tested, debugged and tested again.  Writing the code that makes the game can be the hardest part for many. Evidently, you will make mistakes. Even I make them. There are two major kinds of mistakes when programming, syntactical mistakes and logical mistakes.syntactical mistakes are errors in the code that stop bgt from understanding your code. For example, calling a function with the wrong kinds of parameters. Bgt will either give you a compilation error when you try and run the game, or a runtime error if the game is already running, when it sees a syntactical mistake. In both cases, the program will close and it will be 
 your job to fix the problem.Logical mistakes do not stop bgt from running the game, but something will act oddly. For example, if you are making a sidescroller and you have defined pits, it is logical that if the player does not jump over the pit, he should fall into it. If he does not fall in, this is a logical mistake. Logical mistakes are often harder to correct than syntactical mistakes, especially for people who are novices to programming. These novices often copy example code without fully understanding what it does, and pay the price for it later. Understanding what the code does is integral to fixing logical mistakes.Newbies to bgt are often put off by what seems like insurmountable compilation errors. But really, these errors are tremendously helpful when troubleshooting syntactical mistakes. BGT really makes a notable effort to point you in the right direction towards fixing the nitty-gritty so that you can get back to programming new featu
 res into your game. Ill attempt to cover some of the most common compilation errors and warnings you will receive from bgt, and strategies to fixing them and/or avoiding them in the future.Remember, compilation errors always reference line numbers. Use your text editors go to line feature to help narrow your search.Expected x, instead found yDid you terminate your last statement with a semicolon? This is by far the biggest reason for this error. A lot of novices, as well as people who are transitioning from some other programming language, such as _javascript_, that doesnt require semicolons, get this error.Too many closing parentheses? This is another common one for me. I often nest 2 or 3 function calls in a single statement and put an incorrect number of closing parentheses at the end. Wrong numbers of closed braces and quotes will be discussed later.unexpected end of file
 Anyone whos made a game in bgt knows and dreads this error. The main reason you get it is that you didnt close a brace in your code. Bgt will let you know where the unclosed brace is, which is a tremendous help. Go there and count your braces carefully. A useful technique is to comment out what youre closing so that you dont have to puzzle over it later. For example:void main)
{
int x=4, y=7;
while(xy)
{
if(x==6)
{
alert(,x is 6);
] //if
x++;
]//while
]//void mainunexpected tokenThis usually happens if you have too many closing braces, but you are not defining a class (see the next error if you are). Since you cant define an if statement outside a function, you often get if as the unexpected token, though you also often get } as the unexpected token. Either way, it means you over closed your brace.expected method or propertyUsually this error shows up if you close too many braces while defining a class method.Expected _expression_ valueThis usually references the condition of an if, while, doWhile, or for statement. The error is usually pretty easy to spot and its usually a typo, for example you use = instead of == to denote is equal to.non-terminated string literalThis one is one of the most annoying errors to receive if you dont test your code often. The main reason for the annoyance is that the line
  number that BGT shows you rarely is the culprit. The problem is always on a line above the referenced line, and there is no limit to how far up it could be. You usually get this error if you are concatonating strings and variables together and accidentally switch the plus sign and the quotation mark, or forget one of them. It is also possible that you simply forgot to close your opening quote, or you forgot an opening quote. If you forget both quotes and you havent concatonated aynthing, you will get a message about something not being declared instead.variable x is not declaredThis is usually easy enough to fix. You either forgot to put quotes around a literal string, or just forgot to define a variable.no matching signatures to and candidates areWhen you call a function, bgt looks for a signature 

BGTCompile errors: a blessing in disguise

2015-01-17 Thread AudioGames . net ForumArticles Room : keyIsFull via Audiogames-reflector


  


BGTCompile errors: a blessing in disguise

For many people who use the bgt engine, they are newbies to scripting. The process of game creation can be an intimidating one, especially for those who do not realize the task that is ahead of them. Besides developing the game mechanics, finding sounds and/or music, and making documentation, the game has to be programmed, tested, debugged and tested again.  Writing the code that makes the game can be the hardest part for many. Evidently, you will make mistakes. Even I make them. There are two major kinds of mistakes when programming, syntactical mistakes and logical mistakes.syntactical mistakes are errors in the code that stop bgt from understanding your code. For example, calling a function with the wrong kinds of parameters. Bgt will either give you a compilation error when you try and run the game, or a runtime error if the game is already running, when it sees a syntactical mistake. In both cases, the program will close and it will be 
 your job to fix the problem.Logical mistakes do not stop bgt from running the game, but something will act oddly. For example, if you are making a sidescroller and you have defined pits, it is logical that if the player does not jump over the pit, he should fall into it. If he does not fall in, this is a logical mistake. Logical mistakes are often harder to correct than syntactical mistakes, especially for people who are novices to programming. These novices often copy example code without fully understanding what it does, and pay the price for it later. Understanding what the code does is integral to fixing logical mistakes.Newbies to bgt are often put off by what seems like insurmountable compilation errors. But really, these errors are tremendously helpful when troubleshooting syntactical mistakes. BGT really makes a notable effort to point you in the right direction towards fixing the nitty-gritty so that you can get back to programming new featu
 res into your game. Ill attempt to cover some of the most common compilation errors and warnings you will receive from bgt, and strategies to fixing them and/or avoiding them in the future.Remember, compilation errors always reference line numbers. Use your text editors go to line feature to help narrow your search.Expected "x", instead found "y"Did you terminate your last statement with a semicolon? This is by far the biggest reason for this error. A lot of novices, as well as people who are transitioning from some other programming language, such as _javascript_, that doesnt require semicolons, get this error.Too many closing parentheses? This is another common one for me. I often nest 2 or 3 function calls in a single statement and put an incorrect number of closing parentheses at the end. Wrong numbers of closed braces and quotes will be discussed later.unexpected end of fileAnyone whos
  made a game in bgt knows and dreads this error. The main reason you get it is that you didnt close a brace in your code. Bgt will let you know where the unclosed brace is, which is a tremendous help. Go there and count your braces carefully. A useful technique is to comment out what youre closing so that you dont have to puzzle over it later. For example:void main)
{
int x=4, y=7;
while(xy)
{
if(x==6)
{
alert("","x is 6");
] //if
x++;
]//while
]//void mainunexpected tokenThis usually happens if you have too many closing braces, but you are not defining a class (see the next error if you are). Since you cant define an if statement outside a function, you often get "if" as the unexpected token, though you also often get "}" as the unexpected token. Either way, it means you over closed your brace.expected method or propertyUsually this error shows up if you close too many braces while defining a class method.Expected _expression_ valueThis usually references the condition of an if, while, doWhile, or for statement. The error is usually pretty easy to spot and its usually a typo, for example you use = instead of == to denote "is equal to".non-terminated string literalThis one is one of the most annoying errors to receive if you dont test your code often. The main reason for the annoyance is that the line number that BGT shows you rar
 ely is the culprit. The problem is always on a line above the referenced line, and there is no limit to how far up it could be. You usually get this error if you are concatonating strings and variables together and accidentally switch the plus sign and the quotation mark, or forget one of them. It is also possible that you simply forgot to close your opening quote, or you forgot an opening quote. If you forget both quotes and you havent concatonated aynthing, you will get a message about something not being declared instead.variable x is not declaredThis is usually easy enough to fix. You either forgot to put quotes around a literal string, or just forgot to define a variable.no matching signatures to and candidates areWhen you call a function, bgt looks 

BGTCompile errors: a blessing in disguise

2015-01-17 Thread AudioGames . net ForumArticles Room : keyIsFull via Audiogames-reflector


  


BGTCompile errors: a blessing in disguise

For many people who use the bgt engine, they are newbies to scripting. The process of game creation can be an intimidating one, especially for those who do not realize the task that is ahead of them. Besides developing the game mechanics, finding sounds and/or music, and making documentation, the game has to be programmed, tested, debugged and tested again.  Writing the code that makes the game can be the hardest part for many. Evidently, you will make mistakes. Even I make them. There are two major kinds of mistakes when programming, syntactical mistakes and logical mistakes.syntactical mistakes are errors in the code that stop bgt from understanding your code. For example, calling a function with the wrong kinds of parameters. Bgt will either give you a compilation error when you try and run the game, or a runtime error if the game is already running, when it sees a syntactical mistake. In both cases, the program will close and it will be 
 your job to fix the problem.Logical mistakes do not stop bgt from running the game, but something will act oddly. For example, if you are making a sidescroller and you have defined pits, it is logical that if the player does not jump over the pit, he should fall into it. If he does not fall in, this is a logical mistake. Logical mistakes are often harder to correct than syntactical mistakes, especially for people who are novices to programming. These novices often copy example code without fully understanding what it does, and pay the price for it later. Understanding what the code does is integral to fixing logical mistakes.Newbies to bgt are often put off by what seems like insurmountable compilation errors. But really, these errors are tremendously helpful when troubleshooting syntactical mistakes. BGT really makes a notable effort to point you in the right direction towards fixing the nitty-gritty so that you can get back to programming new featu
 res into your game. Ill attempt to cover some of the most common compilation errors and warnings you will receive from bgt, and strategies to fixing them and/or avoiding them in the future.Remember, compilation errors always reference line numbers. Use your text editors go to line feature to help narrow your search.Expected x, instead found yDid you terminate your last statement with a semicolon? This is by far the biggest reason for this error. A lot of novices, as well as people who are transitioning from some other programming language, such as _javascript_, that doesnt require semicolons, get this error.Too many closing parentheses? This is another common one for me. I often nest 2 or 3 function calls in a single statement and put an incorrect number of closing parentheses at the end. Wrong numbers of closed braces and quotes will be discussed later.unexpected end of file
 Anyone whos made a game in bgt knows and dreads this error. The main reason you get it is that you didnt close a brace in your code. Bgt will let you know where the unclosed brace is, which is a tremendous help. Go there and count your braces carefully. A useful technique is to comment out what youre closing so that you dont have to puzzle over it later. For example:void main)
{
int x=4, y=7;
while(xy)
{
if(x==6)
{
alert(,x is 6);
] //if
x++;
]//while
]//void mainunexpected tokenThis usually happens if you have too many closing braces, but you are not defining a class (see the next error if you are). Since you cant define an if statement outside a function, you often get if as the unexpected token, though you also often get } as the unexpected token. Either way, it means you over closed your brace.expected method or propertyUsually this error shows up if you close too many braces while defining a class method.Expected _expression_ valueThis usually references the condition of an if, while, doWhile, or for statement. The error is usually pretty easy to spot and its usually a typo, for example you use = instead of == to denote is equal to.non-terminated string literalThis one is one of the most annoying errors to receive if you dont test your code often. The main reason for the annoyance is that the line
  number that BGT shows you rarely is the culprit. The problem is always on a line above the referenced line, and there is no limit to how far up it could be. You usually get this error if you are concatonating strings and variables together and accidentally switch the plus sign and the quotation mark, or forget one of them. It is also possible that you simply forgot to close your opening quote, or you forgot an opening quote. If you forget both quotes and you havent concatonated aynthing, you will get a message about something not being declared instead.variable x is not declaredThis is usually easy enough to fix. You either forgot to put quotes around a literal string, or just forgot to define a variable.no matching signatures to and candidates areWhen you call a function, bgt looks for a signature 

BGTCompile errors: a blessing in disguise

2015-01-17 Thread AudioGames . net ForumArticles Room : keyIsFull via Audiogames-reflector


  


BGTCompile errors: a blessing in disguise

For many people who use the bgt engine, they are newbies to scripting. The process of game creation can be an intimidating one, especially for those who do not realize the task that is ahead of them. Besides developing the game mechanics, finding sounds and/or music, and making documentation, the game has to be programmed, tested, debugged and tested again.  Writing the code that makes the game can be the hardest part for many. Evidently, you will make mistakes. Even I make them. There are two major kinds of mistakes when programming, syntactical mistakes and logical mistakes.syntactical mistakes are errors in the code that stop bgt from understanding your code. For example, calling a function with the wrong kinds of parameters. Bgt will either give you a compilation error when you try and run the game, or a runtime error if the game is already running, when it sees a syntactical mistake. In both cases, the program will close and it will be 
 your job to fix the problem.Logical mistakes do not stop bgt from running the game, but something will act oddly. For example, if you are making a sidescroller and you have defined pits, it is logical that if the player does not jump over the pit, he should fall into it. If he does not fall in, this is a logical mistake. Logical mistakes are often harder to correct than syntactical mistakes, especially for people who are novices to programming. These novices often copy example code without fully understanding what it does, and pay the price for it later. Understanding what the code does is integral to fixing logical mistakes.Newbies to bgt are often put off by what seems like insurmountable compilation errors. But really, these errors are tremendously helpful when troubleshooting syntactical mistakes. BGT really makes a notable effort to point you in the right direction towards fixing the nitty-gritty so that you can get back to programming new featu
 res into your game. Ill attempt to cover some of the most common compilation errors and warnings you will receive from bgt, and strategies to fixing them and/or avoiding them in the future.Remember, compilation errors always reference line numbers. Use your text editors go to line feature to help narrow your search.Expected "x", instead found "y"Did you terminate your last statement with a semicolon? This is by far the biggest reason for this error. A lot of novices, as well as people who are transitioning from some other programming language, such as _javascript_, that doesnt require semicolons, get this error.Too many closing parentheses? This is another common one for me. I often nest 2 or 3 function calls in a single statement and put an incorrect number of closing parentheses at the end. Wrong numbers of closed braces and quotes will be discussed later.unexpected end of fileAnyone whos
  made a game in bgt knows and dreads this error. The main reason you get it is that you didnt close a brace in your code. Bgt will let you know where the unclosed brace is, which is a tremendous help. Go there and count your braces carefully. A useful technique is to comment out what youre closing so that you dont have to puzzle over it later. For example:void main)
{
int x=4, y=7;
while(xy)
{
if(x==6)
{
alert("","x is 6");
] //if
x++;
]//while
]//void mainunexpected tokenThis usually happens if you have too many closing braces, but you are not defining a class (see the next error if you are). Since you cant define an if statement outside a function, you often get "if" as the unexpected token, though you also often get "}" as the unexpected token. Either way, it means you over closed your brace.expected method or propertyUsually this error shows up if you close too many braces while defining a class method.Expected _expression_ valueThis usually references the condition of an if, while, doWhile, or for statement. The error is usually pretty easy to spot and its usually a typo, for example you use = instead of == to denote "is equal to".non-terminated string literalThis one is one of the most annoying errors to receive if you dont test your code often. The main reason for the annoyance is that the line number that BGT shows you rar
 ely is the culprit. The problem is always on a line above the referenced line, and there is no limit to how far up it could be. You usually get this error if you are concatonating strings and variables together and accidentally switch the plus sign and the quotation mark, or forget one of them. It is also possible that you simply forgot to close your opening quote, or you forgot an opening quote. If you forget both quotes and you havent concatonated aynthing, you will get a message about something not being declared instead.variable x is not declaredThis is usually easy enough to fix. You either forgot to put quotes around a literal string, or just forgot to define a variable.no matching signatures to and candidates areWhen you call a function, bgt looks 

BGTCompile errors: a blessing in disguise

2015-01-17 Thread AudioGames . net ForumArticles Room : keyIsFull via Audiogames-reflector


  


BGTCompile errors: a blessing in disguise

For many people who use the bgt engine, they are newbies to scripting. The process of game creation can be an intimidating one, especially for those who do not realize the task that is ahead of them. Besides developing the game mechanics, finding sounds and/or music, and making documentation, the game has to be programmed, tested, debugged and tested again.  Writing the code that makes the game can be the hardest part for many. Evidently, you will make mistakes. Even I make them. There are two major kinds of mistakes when programming, syntactical mistakes and logical mistakes.syntactical mistakes are errors in the code that stop bgt from understanding your code. For example, calling a function with the wrong kinds of parameters. Bgt will either give you a compilation error when you try and run the game, or a runtime error if the game is already running, when it sees a syntactical mistake. In both cases, the program will close and it will be 
 your job to fix the problem.Logical mistakes do not stop bgt from running the game, but something will act oddly. For example, if you are making a sidescroller and you have defined pits, it is logical that if the player does not jump over the pit, he should fall into it. If he does not fall in, this is a logical mistake. Logical mistakes are often harder to correct than syntactical mistakes, especially for people who are novices to programming. These novices often copy example code without fully understanding what it does, and pay the price for it later. Understanding what the code does is integral to fixing logical mistakes.Newbies to bgt are often put off by what seems like insurmountable compilation errors. But really, these errors are tremendously helpful when troubleshooting syntactical mistakes. BGT really makes a notable effort to point you in the right direction towards fixing the nitty-gritty so that you can get back to programming new featu
 res into your game. Ill attempt to cover some of the most common compilation errors and warnings you will receive from bgt, and strategies to fixing them and/or avoiding them in the future.Remember, compilation errors always reference line numbers. Use your text editors go to line feature to help narrow your search.Expected x, instead found yDid you terminate your last statement with a semicolon? This is by far the biggest reason for this error. A lot of novices, as well as people who are transitioning from some other programming language, such as _javascript_, that doesnt require semicolons, get this error.Too many closing parentheses? This is another common one for me. I often nest 2 or 3 function calls in a single statement and put an incorrect number of closing parentheses at the end. Wrong numbers of closed braces and quotes will be discussed later.unexpected end of file
 Anyone whos made a game in bgt knows and dreads this error. The main reason you get it is that you didnt close a brace in your code. Bgt will let you know where the unclosed brace is, which is a tremendous help. Go there and count your braces carefully. A useful technique is to comment out what youre closing so that you dont have to puzzle over it later. For example:void main)
{
int x=4, y=7;
while(xy)
{
if(x==6)
{
alert(,x is 6);
] //if
x++;
]//while
]//void mainunexpected tokenThis usually happens if you have too many closing braces, but you are not defining a class (see the next error if you are). Since you cant define an if statement outside a function, you often get if as the unexpected token, though you also often get } as the unexpected token. Either way, it means you over closed your brace.expected method or propertyUsually this error shows up if you close too many braces while defining a class method.Expected _expression_ valueThis usually references the condition of an if, while, doWhile, or for statement. The error is usually pretty easy to spot and its usually a typo, for example you use = instead of == to denote is equal to.non-terminated string literalThis one is one of the most annoying errors to receive if you dont test your code often. The main reason for the annoyance is that the line
  number that BGT shows you rarely is the culprit. The problem is always on a line above the referenced line, and there is no limit to how far up it could be. You usually get this error if you are concatonating strings and variables together and accidentally switch the plus sign and the quotation mark, or forget one of them. It is also possible that you simply forgot to close your opening quote, or you forgot an opening quote. If you forget both quotes and you havent concatonated aynthing, you will get a message about something not being declared instead.variable x is not declaredThis is usually easy enough to fix. You either forgot to put quotes around a literal string, or just forgot to define a variable.no matching signatures to and candidates areWhen you call a function, bgt looks for a signature 

BGTCompile errors: a blessing in disguise

2015-01-17 Thread AudioGames . net ForumArticles Room : keyIsFull via Audiogames-reflector


  


BGTCompile errors: a blessing in disguise

For many people who use the bgt engine, they are newbies to scripting. The process of game creation can be an intimidating one, especially for those who do not realize the task that is ahead of them. Besides developing the game mechanics, finding sounds and/or music, and making documentation, the game has to be programmed, tested, debugged and tested again.  Writing the code that makes the game can be the hardest part for many. Evidently, you will make mistakes. Even I make them. There are two major kinds of mistakes when programming, syntactical mistakes and logical mistakes.syntactical mistakes are errors in the code that stop bgt from understanding your code. For example, calling a function with the wrong kinds of parameters. Bgt will either give you a compilation error when you try and run the game, or a runtime error if the game is already running, when it sees a syntactical mistake. In both cases, the program will close and it will be 
 your job to fix the problem.Logical mistakes do not stop bgt from running the game, but something will act oddly. For example, if you are making a sidescroller and you have defined pits, it is logical that if the player does not jump over the pit, he should fall into it. If he does not fall in, this is a logical mistake. Logical mistakes are often harder to correct than syntactical mistakes, especially for people who are novices to programming. These novices often copy example code without fully understanding what it does, and pay the price for it later. Understanding what the code does is integral to fixing logical mistakes.Newbies to bgt are often put off by what seems like insurmountable compilation errors. But really, these errors are tremendously helpful when troubleshooting syntactical mistakes. BGT really makes a notable effort to point you in the right direction towards fixing the nitty-gritty so that you can get back to programming new featu
 res into your game. Ill attempt to cover some of the most common compilation errors and warnings you will receive from bgt, and strategies to fixing them and/or avoiding them in the future.Remember, compilation errors always reference line numbers. Use your text editors go to line feature to help narrow your search.Expected "x", instead found "y"Did you terminate your last statement with a semicolon? This is by far the biggest reason for this error. A lot of novices, as well as people who are transitioning from some other programming language, such as _javascript_, that doesnt require semicolons, get this error.Too many closing parentheses? This is another common one for me. I often nest 2 or 3 function calls in a single statement and put an incorrect number of closing parentheses at the end. Wrong numbers of closed braces and quotes will be discussed later.unexpected end of fileAnyone whos
  made a game in bgt knows and dreads this error. The main reason you get it is that you didnt close a brace in your code. Bgt will let you know where the unclosed brace is, which is a tremendous help. Go there and count your braces carefully. A useful technique is to comment out what youre closing so that you dont have to puzzle over it later. For example:void main)
{
int x=4, y=7;
while(xy)
{
if(x==6)
{
alert("","x is 6");
] //if
x++;
]//while
]//void mainunexpected tokenThis usually happens if you have too many closing braces, but you are not defining a class (see the next error if you are). Since you cant define an if statement outside a function, you often get "if" as the unexpected token, though you also often get "}" as the unexpected token. Either way, it means you over closed your brace.expected method or propertyUsually this error shows up if you close too many braces while defining a class method.Expected _expression_ valueThis usually references the condition of an if, while, doWhile, or for statement. The error is usually pretty easy to spot and its usually a typo, for example you use = instead of == to denote "is equal to".non-terminated string literalThis one is one of the most annoying errors to receive if you dont test your code often. The main reason for the annoyance is that the line number that BGT shows you rar
 ely is the culprit. The problem is always on a line above the referenced line, and there is no limit to how far up it could be. You usually get this error if you are concatonating strings and variables together and accidentally switch the plus sign and the quotation mark, or forget one of them. It is also possible that you simply forgot to close your opening quote, or you forgot an opening quote. If you forget both quotes and you havent concatonated aynthing, you will get a message about something not being declared instead.variable x is not declaredThis is usually easy enough to fix. You either forgot to put quotes around a literal string, or just forgot to define a variable.no matching signatures to and candidates areWhen you call a function, bgt looks 

BGTCompile errors: a blessing in disguise

2015-01-17 Thread AudioGames . net ForumArticles Room : keyIsFull via Audiogames-reflector


  


BGTCompile errors: a blessing in disguise

For many people who use the bgt engine, they are newbies to scripting. The process of game creation can be an intimidating one, especially for those who do not realize the task that is ahead of them. Besides developing the game mechanics, finding sounds and/or music, and making documentation, the game has to be programmed, tested, debugged and tested again.  Writing the code that makes the game can be the hardest part for many. Evidently, you will make mistakes. Even I make them. There are two major kinds of mistakes when programming, syntactical mistakes and logical mistakes.syntactical mistakes are errors in the code that stop bgt from understanding your code. For example, calling a function with the wrong kinds of parameters. Bgt will either give you a compilation error when you try and run the game, or a runtime error if the game is already running, when it sees a syntactical mistake. In both cases, the program will close and it will be 
 your job to fix the problem.Logical mistakes do not stop bgt from running the game, but something will act oddly. For example, if you are making a sidescroller and you have defined pits, it is logical that if the player does not jump over the pit, he should fall into it. If he does not fall in, this is a logical mistake. Logical mistakes are often harder to correct than syntactical mistakes, especially for people who are novices to programming. These novices often copy example code without fully understanding what it does, and pay the price for it later. Understanding what the code does is integral to fixing logical mistakes.Newbies to bgt are often put off by what seems like insurmountable compilation errors. But really, these errors are tremendously helpful when troubleshooting syntactical mistakes. BGT really makes a notable effort to point you in the right direction towards fixing the nitty-gritty so that you can get back to programming new featu
 res into your game. Ill attempt to cover some of the most common compilation errors and warnings you will receive from bgt, and strategies to fixing them and/or avoiding them in the future.Remember, compilation errors always reference line numbers. Use your text editors go to line feature to help narrow your search.Expected x, instead found yDid you terminate your last statement with a semicolon? This is by far the biggest reason for this error. A lot of novices, as well as people who are transitioning from some other programming language, such as _javascript_, that doesnt require semicolons, get this error.Too many closing parentheses? This is another common one for me. I often nest 2 or 3 function calls in a single statement and put an incorrect number of closing parentheses at the end. Wrong numbers of closed braces and quotes will be discussed later.unexpected end of file
 Anyone whos made a game in bgt knows and dreads this error. The main reason you get it is that you didnt close a brace in your code. Bgt will let you know where the unclosed brace is, which is a tremendous help. Go there and count your braces carefully. A useful technique is to comment out what youre closing so that you dont have to puzzle over it later. For example:void main)
{
int x=4, y=7;
while(xy)
{
if(x==6)
{
alert(,x is 6);
] //if
x++;
]//while
]//void mainunexpected tokenThis usually happens if you have too many closing braces, but you are not defining a class (see the next error if you are). Since you cant define an if statement outside a function, you often get if as the unexpected token, though you also often get } as the unexpected token. Either way, it means you over closed your brace.expected method or propertyUsually this error shows up if you close too many braces while defining a class method.Expected _expression_ valueThis usually references the condition of an if, while, doWhile, or for statement. The error is usually pretty easy to spot and its usually a typo, for example you use = instead of == to denote is equal to.non-terminated string literalThis one is one of the most annoying errors to receive if you dont test your code often. The main reason for the annoyance is that the line
  number that BGT shows you rarely is the culprit. The problem is always on a line above the referenced line, and there is no limit to how far up it could be. You usually get this error if you are concatonating strings and variables together and accidentally switch the plus sign and the quotation mark, or forget one of them. It is also possible that you simply forgot to close your opening quote, or you forgot an opening quote. If you forget both quotes and you havent concatonated aynthing, you will get a message about something not being declared instead.variable x is not declaredThis is usually easy enough to fix. You either forgot to put quotes around a literal string, or just forgot to define a variable.no matching signatures to and candidates areWhen you call a function, bgt looks for a signature 

BGTCompile errors: a blessing in disguise

2014-08-05 Thread AudioGames . net ForumArticles Room : keyIsFull via Audiogames-reflector


  


BGTCompile errors: a blessing in disguise

For many people who use the bgt engine, they are newbies to scripting. The process of game creation can be an intimidating one, especially for those who do not realize the task that is ahead of them. Besides developing the game mechanics, finding sounds and/or music, and making documentation, the game has to be programmed, tested, debugged and tested again.  Writing the code that makes the game can be the hardest part for many. Evidently, you will make mistakes. Even I make them. There are two major kinds of mistakes when programming, syntactical mistakes and logical mistakes.syntactical mistakes are errors in the code that stop bgt from understanding your code. For example, calling a function with the wrong kinds of parameters. Bgt will either give you a compilation error when you try and run the game, or a runtime error if the game is already running, when it sees a syntactical mistake. In both cases, the program will close and it will be 
 your job to fix the problem.Logical mistakes do not stop bgt from running the game, but something will act oddly. For example, if you are making a sidescroller and you have defined pits, it is logical that if the player does not jump over the pit, he should fall into it. If he does not fall in, this is a logical mistake. Logical mistakes are often harder to correct than syntactical mistakes, especially for people who are novices to programming. These novices often copy example code without fully understanding what it does, and pay the price for it later. Understanding what the code does is integral to fixing logical mistakes.Newbies to bgt are often put off by what seems like insurmountable compilation errors. But really, these errors are tremendously helpful when troubleshooting syntactical mistakes. BGT really makes a notable effort to point you in the right direction towards fixing the nitty-gritty so that you can get back to programming new featu
 res into your game. Ill attempt to cover some of the most common compilation errors and warnings you will receive from bgt, and strategies to fixing them and/or avoiding them in the future.Remember, compilation errors always reference line numbers. Use your text editors go to line feature to help narrow your search.Expected x, instead found yDid you terminate your last statement with a semicolon? This is by far the biggest reason for this error. A lot of novices, as well as people who are transitioning from some other programming language, such as _javascript_, that doesnt require semicolons, get this error.Too many closing parentheses? This is another common one for me. I often nest 2 or 3 function calls in a single statement and put an incorrect number of closing parentheses at the end. Wrong numbers of closed braces and quotes will be discussed later.unexpected end of file
 Anyone whos made a game in bgt knows and dreads this error. The main reason you get it is that you didnt close a brace in your code. Bgt will let you know where the unclosed brace is, which is a tremendous help. Go there and count your braces carefully. A useful technique is to comment out what youre closing so that you dont have to puzzle over it later. For example:void main)
{
int x=4, y=7;
while(xy)
{
if(x==6)
{
alert(,x is 6);
] //if
x++;
]//while
]//void mainunexpected tokenThis usually happens if you have too many closing braces, but you are not defining a class (see the next error if you are). Since you cant define an if statement outside a function, you often get if as the unexpected token, though you also often get } as the unexpected token. Either way, it means you over closed your brace.expected method or propertyUsually this error shows up if you close too many braces while defining a class method.Expected _expression_ valueThis usually references the condition of an if, while, doWhile, or for statement. The error is usually pretty easy to spot and its usually a typo, for example you use = instead of == to denote is equal to.non-terminated string literalThis one is one of the most annoying errors to receive if you dont test your code often. The main reason for the annoyance is that the line
  number that BGT shows you rarely is the culprit. The problem is always on a line above the referenced line, and there is no limit to how far up it could be. You usually get this error if you are concatonating strings and variables together and accidentally switch the plus sign and the quotation mark, or forget one of them. It is also possible that you simply forgot to close your opening quote, or you forgot an opening quote. If you forget both quotes and you havent concatonated aynthing, you will get a message about something not being declared instead.variable x is not declaredThis is usually easy enough to fix. You either forgot to put quotes around a literal string, or just forgot to define a variable.no matching signatures to and candidates areWhen you call a function, bgt looks for a signature