Futurecraft Forums A forum dedicated to communication and innovation! |
Welcome, one and all, to the Futurecraft Forums! |
|
| Tell31's Java adventure! | |
|
+10Tell Tiel+ Iv121 hyperlite Last_Jedi_Standing fr0stbyte124 The Schmetterling Keon Laibach Dux Tell31 14 posters | |
Author | Message |
---|
hyperlite Captain
Posts : 1529 Join date : 2012-01-18
| Subject: Re: Tell31's Java adventure! Wed Jul 18, 2012 7:37 pm | |
| Don't think anyone else is going to get that. | |
| | | Laibach General
Posts : 2024 Join date : 2012-01-23 Age : 73 Location : Frozen Fields
| Subject: Re: Tell31's Java adventure! Wed Jul 18, 2012 7:58 pm | |
| - fr0stbyte124 wrote:
- Dayman wrote:
- Mackeroth? wrote:
- Dayman wrote:
- Mackeroth? wrote:
- Keon wrote:
- fr0stbyte124 wrote:
- But for loops are your greatest ally.
NAY! While loops are indeed holier than your foul for loops. The most superior loop there is could only be the fabled Loop-hole!
Yeah! Ownage!
...I don't think you know what they're talking about...
for is the best loop, for an infinite loops it's just for(;; ) versus while(true) and instead of:
int n; while(n < 10){ n++ //code here }
you can just put(I think I have the order wrong here):
for(int n = 0; n <10; n++){ //code here } In Python, if I needed an infinite loop I just went:
- Code:
-
while 1>0: #code here
Why is there no indent button? That's what I would like to know.
and it's (I think) slightly less taxing on the system to put while(true) or for(; instead of 1>0, because the system doesn't have to do as many evaluations or something.
although In python I doubt that matters. Most high level languages will do basic optimization on your code, e.g. unrolling loops, tweaking variable scope, and so forth. Pretty much there's not going to be a difference between various ways of saying "repeat forever" or for vs while, so don't stress over it. There is a difference in C++, though.
oh, thanks! | |
| | | Keon Lord/Lady Rear Admiral 1st
Posts : 3076 Join date : 2012-01-17 Location : Hahahaha.
| Subject: Re: Tell31's Java adventure! Wed Jul 18, 2012 9:03 pm | |
| Hmmmmph.. None of you are doing interesting things. How about coding Elder Scrolls 6? That would be interesting. | |
| | | hyperlite Captain
Posts : 1529 Join date : 2012-01-18
| Subject: Re: Tell31's Java adventure! Wed Jul 18, 2012 9:05 pm | |
| Elder Scrolls 6: Written in Java
Fus ro... ??? | |
| | | Laibach General
Posts : 2024 Join date : 2012-01-23 Age : 73 Location : Frozen Fields
| Subject: Re: Tell31's Java adventure! Wed Jul 18, 2012 9:15 pm | |
| - Keon wrote:
- Hmmmmph.. None of you are doing interesting things. How about coding Elder Scrolls 6? That would be interesting.
<paranoid>I'm making a <CLASSIFIED> that controls a <CLASSIFIED> that controls players in an <CLASSIFIED>, and all of it is<CLASSIFIED>. Not sure if I'll get it done this decade, also I have no idea how I would go about creating the <CLASSIFIED></paranoid> it would be 'Fus ro opensource/multiplatform' imo. | |
| | | fr0stbyte124 Super Developrator
Posts : 1835 Join date : 2011-10-13
| Subject: Re: Tell31's Java adventure! Wed Jul 18, 2012 11:57 pm | |
| - Dayman wrote:
- Keon wrote:
- Hmmmmph.. None of you are doing interesting things. How about coding Elder Scrolls 6? That would be interesting.
<paranoid>I'm making a <CLASSIFIED> that controls a <CLASSIFIED> that controls players in an <CLASSIFIED>, and all of it is<CLASSIFIED>.
Not sure if I'll get it done this decade, also I have no idea how I would go about creating the <CLASSIFIED></paranoid> I would use quicksort. | |
| | | Dux Tell31 Recruit
Posts : 379 Join date : 2012-01-05 Location : That is out of the question
| Subject: Re: Tell31's Java adventure! Thu Jul 19, 2012 4:32 pm | |
| Day 4 - Spoiler:
import java.util.Scanner;
public class Tell_Tac_Toe {
// PROJECT BRAINSTORMING: // Tic-Tac-Toe! with some sort of theme, replacing the Xs' and Os' with images. // funtion for placing "X" AND another for "Y". // Use bollan for deturmaning whose turn it is. // Use Mouse for placement of X/Y. // - function for finding mouse cordents. // - then compairs this to an array of the center points on the grid. // - the "X or Y" will be placed at the closest point. //determine which square (x, y) mouse is in //draw either an "X" or "O" /** * @param args */ public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
// Size of the Window. StdDraw.setCanvasSize(300, 400); // The graphs scale. StdDraw.setXscale(0, 300); StdDraw.setYscale(0, 400);
// Adds the tic-tac-toe grid. StdDraw.rectangle(150, 150, 150, 150); StdDraw.rectangle(150, 150, 50, 150); StdDraw.rectangle(150, 150, 150, 50);
double x = 0; double y = 0;
double minDistance = Double.MAX_VALUE; double distance; int closest = 0;
boolean O_turn = false;
int xs[] = {50, 50, 50, 150, 150, 150, 250, 250, 250}; int ys[] = {50, 150, 250, 50, 150, 250, 50, 150, 250,};
//Points that pics. need to center too. StdDraw.point(50, 50); StdDraw.point(50, 150); StdDraw.point(50, 250);
StdDraw.point(150, 50); StdDraw.point(150, 150); StdDraw.point(150, 250);
StdDraw.point(250, 50); StdDraw.point(250, 150); StdDraw.point(250, 250);
//Text at the top of screen. StdDraw.text(150, 400, "Welcome to Tell-tac-toe!"); StdDraw.setPenColor(StdDraw.BLACK); StdDraw.text(150, 350, "Player X's turn."); //arrays that stop multible placements in same square. int sq[] = {0, 0, 0, 0, 0, 0, 0, 0}; while(true) { //Very important part. if(StdDraw.mousePressed() && O_turn == true) { while(StdDraw.mousePressed()); //clears text at top of the screen. StdDraw.setPenColor(StdDraw.WHITE); StdDraw.filledRectangle(150, 350, 100, 12);
x = StdDraw.mouseX(); y = StdDraw.mouseY();
for (int e = 0; e < xs.length && e < ys.length; e++) { distance = (x-xs[e]) * (x-xs[e]) + (y-ys[e]) * (y-ys[e]); System.out.println("\nDistance to number "+e+" is "+distance);// De-bugging if (distance < minDistance) { minDistance = distance; closest = e; }//closes "if". }//closes "for".
System.out.println("Supposedly the closest one is "+closest);// De-bugging. if (sq[closest] < 1) { StdDraw.picture(xs[closest], ys[closest], "gold-letter-o-.png", 75, 75); } StdDraw.setPenColor(StdDraw.BLACK); StdDraw.text(150, 350, "Player X's turn."); sq[closest]++; closest = 0; minDistance=Double.MAX_VALUE; O_turn = !O_turn;//makes "O_turn" its opposite }// End of "if".
else if(StdDraw.mousePressed() && O_turn == false){ while(StdDraw.mousePressed()); //Clears text at top of the screen. StdDraw.setPenColor(StdDraw.WHITE); StdDraw.filledRectangle(150, 350, 100, 12);
x = StdDraw.mouseX(); y = StdDraw.mouseY(); for (int e = 0; e < xs.length && e < ys.length; e++) { distance = (x-xs[e]) * (x-xs[e]) + (y-ys[e]) * (y-ys[e]); System.out.println("\nDistance to number "+e+" is "+distance);// De-bugging. if (distance < minDistance) { minDistance = distance; closest = e; }//closes "if". }//closes "for". System.out.println("Supposedly the closest one is "+closest);// De-bugging. if (sq[closest] < 1) { StdDraw.picture(xs[closest], ys[closest], "gold-letter-X.png", 75, 75); } StdDraw.setPenColor(StdDraw.BLACK); StdDraw.text(150, 350, "Player O's turn."); sq[closest]++; closest = 0; minDistance=Double.MAX_VALUE; O_turn = !O_turn;//makes "O_turn" its opposite }//End of "else if". }// End of while statement.
}// End of "main".
}//End of Class.
| |
| | | hyperlite Captain
Posts : 1529 Join date : 2012-01-18
| Subject: Re: Tell31's Java adventure! Thu Jul 19, 2012 4:46 pm | |
| | |
| | | Keon Lord/Lady Rear Admiral 1st
Posts : 3076 Join date : 2012-01-17 Location : Hahahaha.
| Subject: Re: Tell31's Java adventure! Thu Jul 19, 2012 5:05 pm | |
| Spelling. U haz it not. Boolean.
Oh great. You got me thinking. I now need to work out the logic gates of a trinary (No, spellcheck, I did not mean urinary.) system. | |
| | | Laibach General
Posts : 2024 Join date : 2012-01-23 Age : 73 Location : Frozen Fields
| Subject: Re: Tell31's Java adventure! Thu Jul 19, 2012 5:06 pm | |
| - tell31 wrote:
- Day 4
- Spoiler:
import java.util.Scanner;
public class Tell_Tac_Toe {
// PROJECT BRAINSTORMING: // Tic-Tac-Toe! with some sort of theme, replacing the Xs' and Os' with images. // funtion for placing "X" AND another for "Y". // Use bollan for deturmaning whose turn it is. // Use Mouse for placement of X/Y. // - function for finding mouse cordents. // - then compairs this to an array of the center points on the grid. // - the "X or Y" will be placed at the closest point. //determine which square (x, y) mouse is in //draw either an "X" or "O" /** * @param args */ public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
// Size of the Window. StdDraw.setCanvasSize(300, 400); // The graphs scale. StdDraw.setXscale(0, 300); StdDraw.setYscale(0, 400);
// Adds the tic-tac-toe grid. StdDraw.rectangle(150, 150, 150, 150); StdDraw.rectangle(150, 150, 50, 150); StdDraw.rectangle(150, 150, 150, 50);
double x = 0; double y = 0;
double minDistance = Double.MAX_VALUE; double distance; int closest = 0;
boolean O_turn = false;
int xs[] = {50, 50, 50, 150, 150, 150, 250, 250, 250}; int ys[] = {50, 150, 250, 50, 150, 250, 50, 150, 250,};
//Points that pics. need to center too. StdDraw.point(50, 50); StdDraw.point(50, 150); StdDraw.point(50, 250);
StdDraw.point(150, 50); StdDraw.point(150, 150); StdDraw.point(150, 250);
StdDraw.point(250, 50); StdDraw.point(250, 150); StdDraw.point(250, 250);
//Text at the top of screen. StdDraw.text(150, 400, "Welcome to Tell-tac-toe!"); StdDraw.setPenColor(StdDraw.BLACK); StdDraw.text(150, 350, "Player X's turn."); //arrays that stop multible placements in same square. int sq[] = {0, 0, 0, 0, 0, 0, 0, 0}; while(true) { //Very important part. if(StdDraw.mousePressed() && O_turn == true) { while(StdDraw.mousePressed()); //clears text at top of the screen. StdDraw.setPenColor(StdDraw.WHITE); StdDraw.filledRectangle(150, 350, 100, 12);
x = StdDraw.mouseX(); y = StdDraw.mouseY();
for (int e = 0; e < xs.length && e < ys.length; e++) { distance = (x-xs[e]) * (x-xs[e]) + (y-ys[e]) * (y-ys[e]); System.out.println("\nDistance to number "+e+" is "+distance);// De-bugging if (distance < minDistance) { minDistance = distance; closest = e; }//closes "if". }//closes "for".
System.out.println("Supposedly the closest one is "+closest);// De-bugging. if (sq[closest] < 1) { StdDraw.picture(xs[closest], ys[closest], "gold-letter-o-.png", 75, 75); } StdDraw.setPenColor(StdDraw.BLACK); StdDraw.text(150, 350, "Player X's turn."); sq[closest]++; closest = 0; minDistance=Double.MAX_VALUE; O_turn = !O_turn;//makes "O_turn" its opposite }// End of "if".
else if(StdDraw.mousePressed() && O_turn == false){ while(StdDraw.mousePressed()); //Clears text at top of the screen. StdDraw.setPenColor(StdDraw.WHITE); StdDraw.filledRectangle(150, 350, 100, 12);
x = StdDraw.mouseX(); y = StdDraw.mouseY(); for (int e = 0; e < xs.length && e < ys.length; e++) { distance = (x-xs[e]) * (x-xs[e]) + (y-ys[e]) * (y-ys[e]); System.out.println("\nDistance to number "+e+" is "+distance);// De-bugging. if (distance < minDistance) { minDistance = distance; closest = e; }//closes "if". }//closes "for". System.out.println("Supposedly the closest one is "+closest);// De-bugging. if (sq[closest] < 1) { StdDraw.picture(xs[closest], ys[closest], "gold-letter-X.png", 75, 75); } StdDraw.setPenColor(StdDraw.BLACK); StdDraw.text(150, 350, "Player O's turn."); sq[closest]++; closest = 0; minDistance=Double.MAX_VALUE; O_turn = !O_turn;//makes "O_turn" its opposite }//End of "else if". }// End of while statement.
}// End of "main".
}//End of Class.
Lol, that's bigger than any one file I've ever done. so you came up with all of that code in 4 days? wait, I thought it was a lot more complicated then it is, do you have a class for importing pictures? or will you have to do that on your own.
Last edited by Dayman on Thu Jul 19, 2012 5:09 pm; edited 1 time in total | |
| | | Keon Lord/Lady Rear Admiral 1st
Posts : 3076 Join date : 2012-01-17 Location : Hahahaha.
| Subject: Re: Tell31's Java adventure! Thu Jul 19, 2012 5:07 pm | |
| - Dayman wrote:
- tell31 wrote:
- Day 4
- Spoiler:
import java.util.Scanner;
public class Tell_Tac_Toe {
// PROJECT BRAINSTORMING: // Tic-Tac-Toe! with some sort of theme, replacing the Xs' and Os' with images. // funtion for placing "X" AND another for "Y". // Use bollan for deturmaning whose turn it is. // Use Mouse for placement of X/Y. // - function for finding mouse cordents. // - then compairs this to an array of the center points on the grid. // - the "X or Y" will be placed at the closest point. //determine which square (x, y) mouse is in //draw either an "X" or "O" /** * @param args */ public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
// Size of the Window. StdDraw.setCanvasSize(300, 400); // The graphs scale. StdDraw.setXscale(0, 300); StdDraw.setYscale(0, 400);
// Adds the tic-tac-toe grid. StdDraw.rectangle(150, 150, 150, 150); StdDraw.rectangle(150, 150, 50, 150); StdDraw.rectangle(150, 150, 150, 50);
double x = 0; double y = 0;
double minDistance = Double.MAX_VALUE; double distance; int closest = 0;
boolean O_turn = false;
int xs[] = {50, 50, 50, 150, 150, 150, 250, 250, 250}; int ys[] = {50, 150, 250, 50, 150, 250, 50, 150, 250,};
//Points that pics. need to center too. StdDraw.point(50, 50); StdDraw.point(50, 150); StdDraw.point(50, 250);
StdDraw.point(150, 50); StdDraw.point(150, 150); StdDraw.point(150, 250);
StdDraw.point(250, 50); StdDraw.point(250, 150); StdDraw.point(250, 250);
//Text at the top of screen. StdDraw.text(150, 400, "Welcome to Tell-tac-toe!"); StdDraw.setPenColor(StdDraw.BLACK); StdDraw.text(150, 350, "Player X's turn."); //arrays that stop multible placements in same square. int sq[] = {0, 0, 0, 0, 0, 0, 0, 0}; while(true) { //Very important part. if(StdDraw.mousePressed() && O_turn == true) { while(StdDraw.mousePressed()); //clears text at top of the screen. StdDraw.setPenColor(StdDraw.WHITE); StdDraw.filledRectangle(150, 350, 100, 12);
x = StdDraw.mouseX(); y = StdDraw.mouseY();
for (int e = 0; e < xs.length && e < ys.length; e++) { distance = (x-xs[e]) * (x-xs[e]) + (y-ys[e]) * (y-ys[e]); System.out.println("\nDistance to number "+e+" is "+distance);// De-bugging if (distance < minDistance) { minDistance = distance; closest = e; }//closes "if". }//closes "for".
System.out.println("Supposedly the closest one is "+closest);// De-bugging. if (sq[closest] < 1) { StdDraw.picture(xs[closest], ys[closest], "gold-letter-o-.png", 75, 75); } StdDraw.setPenColor(StdDraw.BLACK); StdDraw.text(150, 350, "Player X's turn."); sq[closest]++; closest = 0; minDistance=Double.MAX_VALUE; O_turn = !O_turn;//makes "O_turn" its opposite }// End of "if".
else if(StdDraw.mousePressed() && O_turn == false){ while(StdDraw.mousePressed()); //Clears text at top of the screen. StdDraw.setPenColor(StdDraw.WHITE); StdDraw.filledRectangle(150, 350, 100, 12);
x = StdDraw.mouseX(); y = StdDraw.mouseY(); for (int e = 0; e < xs.length && e < ys.length; e++) { distance = (x-xs[e]) * (x-xs[e]) + (y-ys[e]) * (y-ys[e]); System.out.println("\nDistance to number "+e+" is "+distance);// De-bugging. if (distance < minDistance) { minDistance = distance; closest = e; }//closes "if". }//closes "for". System.out.println("Supposedly the closest one is "+closest);// De-bugging. if (sq[closest] < 1) { StdDraw.picture(xs[closest], ys[closest], "gold-letter-X.png", 75, 75); } StdDraw.setPenColor(StdDraw.BLACK); StdDraw.text(150, 350, "Player O's turn."); sq[closest]++; closest = 0; minDistance=Double.MAX_VALUE; O_turn = !O_turn;//makes "O_turn" its opposite }//End of "else if". }// End of while statement.
}// End of "main".
}//End of Class.
Lol, that's bigger than any one file I've ever done.
so you came up with all of that code in 4 days? I like trains. | |
| | | Laibach General
Posts : 2024 Join date : 2012-01-23 Age : 73 Location : Frozen Fields
| Subject: Re: Tell31's Java adventure! Thu Jul 19, 2012 5:13 pm | |
| - Keon wrote:
- Dayman wrote:
- tell31 wrote:
- Day 4
- Spoiler:
import java.util.Scanner;
public class Tell_Tac_Toe {
// PROJECT BRAINSTORMING: // Tic-Tac-Toe! with some sort of theme, replacing the Xs' and Os' with images. // funtion for placing "X" AND another for "Y". // Use bollan for deturmaning whose turn it is. // Use Mouse for placement of X/Y. // - function for finding mouse cordents. // - then compairs this to an array of the center points on the grid. // - the "X or Y" will be placed at the closest point. //determine which square (x, y) mouse is in //draw either an "X" or "O" /** * @param args */ public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
// Size of the Window. StdDraw.setCanvasSize(300, 400); // The graphs scale. StdDraw.setXscale(0, 300); StdDraw.setYscale(0, 400);
// Adds the tic-tac-toe grid. StdDraw.rectangle(150, 150, 150, 150); StdDraw.rectangle(150, 150, 50, 150); StdDraw.rectangle(150, 150, 150, 50);
double x = 0; double y = 0;
double minDistance = Double.MAX_VALUE; double distance; int closest = 0;
boolean O_turn = false;
int xs[] = {50, 50, 50, 150, 150, 150, 250, 250, 250}; int ys[] = {50, 150, 250, 50, 150, 250, 50, 150, 250,};
//Points that pics. need to center too. StdDraw.point(50, 50); StdDraw.point(50, 150); StdDraw.point(50, 250);
StdDraw.point(150, 50); StdDraw.point(150, 150); StdDraw.point(150, 250);
StdDraw.point(250, 50); StdDraw.point(250, 150); StdDraw.point(250, 250);
//Text at the top of screen. StdDraw.text(150, 400, "Welcome to Tell-tac-toe!"); StdDraw.setPenColor(StdDraw.BLACK); StdDraw.text(150, 350, "Player X's turn."); //arrays that stop multible placements in same square. int sq[] = {0, 0, 0, 0, 0, 0, 0, 0}; while(true) { //Very important part. if(StdDraw.mousePressed() && O_turn == true) { while(StdDraw.mousePressed()); //clears text at top of the screen. StdDraw.setPenColor(StdDraw.WHITE); StdDraw.filledRectangle(150, 350, 100, 12);
x = StdDraw.mouseX(); y = StdDraw.mouseY();
for (int e = 0; e < xs.length && e < ys.length; e++) { distance = (x-xs[e]) * (x-xs[e]) + (y-ys[e]) * (y-ys[e]); System.out.println("\nDistance to number "+e+" is "+distance);// De-bugging if (distance < minDistance) { minDistance = distance; closest = e; }//closes "if". }//closes "for".
System.out.println("Supposedly the closest one is "+closest);// De-bugging. if (sq[closest] < 1) { StdDraw.picture(xs[closest], ys[closest], "gold-letter-o-.png", 75, 75); } StdDraw.setPenColor(StdDraw.BLACK); StdDraw.text(150, 350, "Player X's turn."); sq[closest]++; closest = 0; minDistance=Double.MAX_VALUE; O_turn = !O_turn;//makes "O_turn" its opposite }// End of "if".
else if(StdDraw.mousePressed() && O_turn == false){ while(StdDraw.mousePressed()); //Clears text at top of the screen. StdDraw.setPenColor(StdDraw.WHITE); StdDraw.filledRectangle(150, 350, 100, 12);
x = StdDraw.mouseX(); y = StdDraw.mouseY(); for (int e = 0; e < xs.length && e < ys.length; e++) { distance = (x-xs[e]) * (x-xs[e]) + (y-ys[e]) * (y-ys[e]); System.out.println("\nDistance to number "+e+" is "+distance);// De-bugging. if (distance < minDistance) { minDistance = distance; closest = e; }//closes "if". }//closes "for". System.out.println("Supposedly the closest one is "+closest);// De-bugging. if (sq[closest] < 1) { StdDraw.picture(xs[closest], ys[closest], "gold-letter-X.png", 75, 75); } StdDraw.setPenColor(StdDraw.BLACK); StdDraw.text(150, 350, "Player O's turn."); sq[closest]++; closest = 0; minDistance=Double.MAX_VALUE; O_turn = !O_turn;//makes "O_turn" its opposite }//End of "else if". }// End of while statement.
}// End of "main".
}//End of Class.
Lol, that's bigger than any one file I've ever done.
so you came up with all of that code in 4 days? I like trains. wait a minute.. did we just say trinary within 1 minute of each other..? | |
| | | Dux Tell31 Recruit
Posts : 379 Join date : 2012-01-05 Location : That is out of the question
| Subject: Re: Tell31's Java adventure! Thu Jul 19, 2012 6:02 pm | |
| - Dayman wrote:
- tell31 wrote:
- Day 4
- Spoiler:
import java.util.Scanner;
public class Tell_Tac_Toe {
// PROJECT BRAINSTORMING: // Tic-Tac-Toe! with some sort of theme, replacing the Xs' and Os' with images. // funtion for placing "X" AND another for "Y". // Use bollan for deturmaning whose turn it is. // Use Mouse for placement of X/Y. // - function for finding mouse cordents. // - then compairs this to an array of the center points on the grid. // - the "X or Y" will be placed at the closest point. //determine which square (x, y) mouse is in //draw either an "X" or "O" /** * @param args */ public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
// Size of the Window. StdDraw.setCanvasSize(300, 400); // The graphs scale. StdDraw.setXscale(0, 300); StdDraw.setYscale(0, 400);
// Adds the tic-tac-toe grid. StdDraw.rectangle(150, 150, 150, 150); StdDraw.rectangle(150, 150, 50, 150); StdDraw.rectangle(150, 150, 150, 50);
double x = 0; double y = 0;
double minDistance = Double.MAX_VALUE; double distance; int closest = 0;
boolean O_turn = false;
int xs[] = {50, 50, 50, 150, 150, 150, 250, 250, 250}; int ys[] = {50, 150, 250, 50, 150, 250, 50, 150, 250,};
//Points that pics. need to center too. StdDraw.point(50, 50); StdDraw.point(50, 150); StdDraw.point(50, 250);
StdDraw.point(150, 50); StdDraw.point(150, 150); StdDraw.point(150, 250);
StdDraw.point(250, 50); StdDraw.point(250, 150); StdDraw.point(250, 250);
//Text at the top of screen. StdDraw.text(150, 400, "Welcome to Tell-tac-toe!"); StdDraw.setPenColor(StdDraw.BLACK); StdDraw.text(150, 350, "Player X's turn."); //arrays that stop multible placements in same square. int sq[] = {0, 0, 0, 0, 0, 0, 0, 0}; while(true) { //Very important part. if(StdDraw.mousePressed() && O_turn == true) { while(StdDraw.mousePressed()); //clears text at top of the screen. StdDraw.setPenColor(StdDraw.WHITE); StdDraw.filledRectangle(150, 350, 100, 12);
x = StdDraw.mouseX(); y = StdDraw.mouseY();
for (int e = 0; e < xs.length && e < ys.length; e++) { distance = (x-xs[e]) * (x-xs[e]) + (y-ys[e]) * (y-ys[e]); System.out.println("\nDistance to number "+e+" is "+distance);// De-bugging if (distance < minDistance) { minDistance = distance; closest = e; }//closes "if". }//closes "for".
System.out.println("Supposedly the closest one is "+closest);// De-bugging. if (sq[closest] < 1) { StdDraw.picture(xs[closest], ys[closest], "gold-letter-o-.png", 75, 75); } StdDraw.setPenColor(StdDraw.BLACK); StdDraw.text(150, 350, "Player X's turn."); sq[closest]++; closest = 0; minDistance=Double.MAX_VALUE; O_turn = !O_turn;//makes "O_turn" its opposite }// End of "if".
else if(StdDraw.mousePressed() && O_turn == false){ while(StdDraw.mousePressed()); //Clears text at top of the screen. StdDraw.setPenColor(StdDraw.WHITE); StdDraw.filledRectangle(150, 350, 100, 12);
x = StdDraw.mouseX(); y = StdDraw.mouseY(); for (int e = 0; e < xs.length && e < ys.length; e++) { distance = (x-xs[e]) * (x-xs[e]) + (y-ys[e]) * (y-ys[e]); System.out.println("\nDistance to number "+e+" is "+distance);// De-bugging. if (distance < minDistance) { minDistance = distance; closest = e; }//closes "if". }//closes "for". System.out.println("Supposedly the closest one is "+closest);// De-bugging. if (sq[closest] < 1) { StdDraw.picture(xs[closest], ys[closest], "gold-letter-X.png", 75, 75); } StdDraw.setPenColor(StdDraw.BLACK); StdDraw.text(150, 350, "Player O's turn."); sq[closest]++; closest = 0; minDistance=Double.MAX_VALUE; O_turn = !O_turn;//makes "O_turn" its opposite }//End of "else if". }// End of while statement.
}// End of "main".
}//End of Class.
Lol, that's bigger than any one file I've ever done.
so you came up with all of that code in 4 days? wait, I thought it was a lot more complicated then it is, do you have a class for importing pictures? or will you have to do that on your own. Ya, thats about right. Although I did use Standard Draw for displaying everything in a window and such. But its still got some logic bugs that absolutely refuse to go away. For example in the code above, the red parts are supposed to make it so someone can't put more than one(1) "X" or "O" in a spot. But its not working... Any suggestions? I used Oracle . B.T.W. If you try and run this code without "Standard Draw" and replacing the code in green (which is the images for "X" and "O"), IT WILL CRASH!!! | |
| | | hyperlite Captain
Posts : 1529 Join date : 2012-01-18
| Subject: Re: Tell31's Java adventure! Thu Jul 19, 2012 6:07 pm | |
| I like spaghetti. Edit: Make NIM You won't beat the computer, go play it
Last edited by hyperlite on Thu Jul 19, 2012 6:19 pm; edited 1 time in total | |
| | | Laibach General
Posts : 2024 Join date : 2012-01-23 Age : 73 Location : Frozen Fields
| Subject: Re: Tell31's Java adventure! Thu Jul 19, 2012 6:15 pm | |
| - tell31 wrote:
- Dayman wrote:
- tell31 wrote:
- Day 4
- Spoiler:
import java.util.Scanner;
public class Tell_Tac_Toe {
// PROJECT BRAINSTORMING: // Tic-Tac-Toe! with some sort of theme, replacing the Xs' and Os' with images. // funtion for placing "X" AND another for "Y". // Use bollan for deturmaning whose turn it is. // Use Mouse for placement of X/Y. // - function for finding mouse cordents. // - then compairs this to an array of the center points on the grid. // - the "X or Y" will be placed at the closest point. //determine which square (x, y) mouse is in //draw either an "X" or "O" /** * @param args */ public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
// Size of the Window. StdDraw.setCanvasSize(300, 400); // The graphs scale. StdDraw.setXscale(0, 300); StdDraw.setYscale(0, 400);
// Adds the tic-tac-toe grid. StdDraw.rectangle(150, 150, 150, 150); StdDraw.rectangle(150, 150, 50, 150); StdDraw.rectangle(150, 150, 150, 50);
double x = 0; double y = 0;
double minDistance = Double.MAX_VALUE; double distance; int closest = 0;
boolean O_turn = false;
int xs[] = {50, 50, 50, 150, 150, 150, 250, 250, 250}; int ys[] = {50, 150, 250, 50, 150, 250, 50, 150, 250,};
//Points that pics. need to center too. StdDraw.point(50, 50); StdDraw.point(50, 150); StdDraw.point(50, 250);
StdDraw.point(150, 50); StdDraw.point(150, 150); StdDraw.point(150, 250);
StdDraw.point(250, 50); StdDraw.point(250, 150); StdDraw.point(250, 250);
//Text at the top of screen. StdDraw.text(150, 400, "Welcome to Tell-tac-toe!"); StdDraw.setPenColor(StdDraw.BLACK); StdDraw.text(150, 350, "Player X's turn."); //arrays that stop multible placements in same square. int sq[] = {0, 0, 0, 0, 0, 0, 0, 0}; while(true) { //Very important part. if(StdDraw.mousePressed() && O_turn == true) { while(StdDraw.mousePressed()); //clears text at top of the screen. StdDraw.setPenColor(StdDraw.WHITE); StdDraw.filledRectangle(150, 350, 100, 12);
x = StdDraw.mouseX(); y = StdDraw.mouseY();
for (int e = 0; e < xs.length && e < ys.length; e++) { distance = (x-xs[e]) * (x-xs[e]) + (y-ys[e]) * (y-ys[e]); System.out.println("\nDistance to number "+e+" is "+distance);// De-bugging if (distance < minDistance) { minDistance = distance; closest = e; }//closes "if". }//closes "for".
System.out.println("Supposedly the closest one is "+closest);// De-bugging. if (sq[closest] < 1) { StdDraw.picture(xs[closest], ys[closest], "gold-letter-o-.png", 75, 75); } StdDraw.setPenColor(StdDraw.BLACK); StdDraw.text(150, 350, "Player X's turn."); sq[closest]++; closest = 0; minDistance=Double.MAX_VALUE; O_turn = !O_turn;//makes "O_turn" its opposite }// End of "if".
else if(StdDraw.mousePressed() && O_turn == false){ while(StdDraw.mousePressed()); //Clears text at top of the screen. StdDraw.setPenColor(StdDraw.WHITE); StdDraw.filledRectangle(150, 350, 100, 12);
x = StdDraw.mouseX(); y = StdDraw.mouseY(); for (int e = 0; e < xs.length && e < ys.length; e++) { distance = (x-xs[e]) * (x-xs[e]) + (y-ys[e]) * (y-ys[e]); System.out.println("\nDistance to number "+e+" is "+distance);// De-bugging. if (distance < minDistance) { minDistance = distance; closest = e; }//closes "if". }//closes "for". System.out.println("Supposedly the closest one is "+closest);// De-bugging. if (sq[closest] < 1) { StdDraw.picture(xs[closest], ys[closest], "gold-letter-X.png", 75, 75); } StdDraw.setPenColor(StdDraw.BLACK); StdDraw.text(150, 350, "Player O's turn."); sq[closest]++; closest = 0; minDistance=Double.MAX_VALUE; O_turn = !O_turn;//makes "O_turn" its opposite }//End of "else if". }// End of while statement.
}// End of "main".
}//End of Class.
Lol, that's bigger than any one file I've ever done.
so you came up with all of that code in 4 days? wait, I thought it was a lot more complicated then it is, do you have a class for importing pictures? or will you have to do that on your own.
Ya, thats about right. Although I did use Standard Draw for displaying everything in a window and such. But its still got some logic bugs that absolutely refuse to go away.
For example in the code above, the red parts are supposed to make it so someone can't put more than one(1) "X" or "O" in a spot. But its not working...
Any suggestions?
I used Oracle .
B.T.W. If you try and run this code without "Standard Draw" and replacing the code in green (which is the images for "X" and "O"), IT WILL CRASH!!! Oracle? you mean the java distribution? or do you mean netbeans...? also, I'm not familiar with arrays yet, but I don't think(I'm probably wrong) that you can just go "someArray[]++" | |
| | | Tell Recruit
Posts : 220 Join date : 2012-02-25 Age : 109 Location : Winterhold
| Subject: Re: Tell31's Java adventure! Sun Oct 14, 2012 3:23 pm | |
| Alright its been about 3 months since we took the java corse back in july and I've just made/almost done my first mod in minecraft! All it does is add a "Steel" block in to the game. Next I'm going to be working to add steel items such as pickaxes. The only problem is that I'm a very bad texture person so I need a person to texture a steel block for me and then all share the mod with you guys! | |
| | | Iv121 General
Posts : 2396 Join date : 2012-02-05 Location : -> HERE ! <-
| Subject: Re: Tell31's Java adventure! Sun Oct 14, 2012 3:32 pm | |
| 16x16 , 32x32 , animated ? Pick your choice and let me know ... | |
| | | The Schmetterling DEV
Posts : 3123 Join date : 2011-08-31 Location : I'm a butterfly.
| Subject: Re: Tell31's Java adventure! Sun Oct 14, 2012 5:03 pm | |
| - Iv121 wrote:
- 16x16 , 32x32 , animated ? Pick your choice and let me know ...
For steel, it would be a simple matter of darkening normal iron (because iron is not white), and making steel what iron is now. It took me 30 seconds on Photoshop when I did a similar thing ages ago. I then tried to turn a boat into a pick. Didn't go so well. | |
| | | Tell Recruit
Posts : 220 Join date : 2012-02-25 Age : 109 Location : Winterhold
| Subject: Re: Tell31's Java adventure! Sun Oct 14, 2012 5:51 pm | |
| Just do what the Schmetterling said, make the iron block but like two shades darker. | |
| | | Iv121 General
Posts : 2396 Join date : 2012-02-05 Location : -> HERE ! <-
| Subject: Re: Tell31's Java adventure! Sun Oct 14, 2012 6:11 pm | |
| Yep 30 secs ... I thought you'd like a wholey new texture ... here I just uploaded it , a nice methalish color: Right click on this image and press "save picture": This picture is a preview: Srsly I can do much more than tweaking brightness and contrast ... | |
| | | Tiel+ Lord/Lady Rear Admiral 1st
Posts : 5497 Join date : 2012-02-20 Age : 27 Location : AFK
| Subject: Re: Tell31's Java adventure! Sun Oct 14, 2012 6:26 pm | |
| Yet that seems the only thing you did with that texture..? | |
| | | Tell Recruit
Posts : 220 Join date : 2012-02-25 Age : 109 Location : Winterhold
| Subject: Re: Tell31's Java adventure! Sun Oct 14, 2012 8:39 pm | |
| Okay so I tryed running minecraft with the mod and stuff but it ran in to a problem. So far I think its Mod loader and it trying to load mods that are not there. If any one know's how to fix this please tell me. Here's the code of what happend - Spoiler:
27 achievements 195 recipes Setting user: Player448, - Client asked for parameter: server LWJGL Version: 2.4.2 ModLoader 1.3.2 Initializing... Failed to load mod from "mod_airship.class" Failed to load mod from "mod_StickMod.class" Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: component argument pData at sun.java2d.windows.GDIWindowSurfaceData.initOps(Native Method) at sun.java2d.windows.GDIWindowSurfaceData.<init>(Unknown Source) at sun.java2d.windows.GDIWindowSurfaceData.createData(Unknown Source) at sun.java2d.d3d.D3DScreenUpdateManager.getGdiSurface(Unknown Source) at sun.java2d.d3d.D3DScreenUpdateManager.createGraphics(Unknown Source) at sun.awt.windows.WComponentPeer.getGraphics(Unknown Source) at java.awt.Component.getGraphics(Unknown Source) at sun.awt.RepaintArea.paint(Unknown Source) at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Overriding /terrain.png with /Bones/BoneTorch.png @ 26. 31 left. Failed to load mod from "mod_BoneTorch.class" Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: component argument pData at sun.java2d.windows.GDIWindowSurfaceData.initOps(Native Method) at sun.java2d.windows.GDIWindowSurfaceData.<init>(Unknown Source) at sun.java2d.windows.GDIWindowSurfaceData.createData(Unknown Source) at sun.java2d.d3d.D3DScreenUpdateManager.getGdiSurface(Unknown Source) at sun.java2d.d3d.D3DScreenUpdateManager.createGraphics(Unknown Source) at sun.awt.windows.WComponentPeer.getGraphics(Unknown Source) at java.awt.Component.getGraphics(Unknown Source) at sun.awt.RepaintArea.paint(Unknown Source) at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Overriding /gui/items.png with /daftpvf/crystalWing.png @ 38. 80 left. Failed to load mod from "mod_crystalWing.class" Failed to load mod from "mod_ElementalCreepers.class" Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: component argument pData at sun.java2d.windows.GDIWindowSurfaceData.initOps(Native Method) at sun.java2d.windows.GDIWindowSurfaceData.<init>(Unknown Source) at sun.java2d.windows.GDIWindowSurfaceData.createData(Unknown Source) at sun.java2d.d3d.D3DScreenUpdateManager.getGdiSurface(Unknown Source) at sun.java2d.d3d.D3DScreenUpdateManager.createGraphics(Unknown Source) at sun.awt.windows.WComponentPeer.getGraphics(Unknown Source) at java.awt.Component.getGraphics(Unknown Source) at sun.awt.RepaintArea.paint(Unknown Source) at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Failed to load mod from "mod_Millenaire.class" Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: component argument pData at sun.java2d.windows.GDIWindowSurfaceData.initOps(Native Method) at sun.java2d.windows.GDIWindowSurfaceData.<init>(Unknown Source) at sun.java2d.windows.GDIWindowSurfaceData.createData(Unknown Source) at sun.java2d.d3d.D3DScreenUpdateManager.getGdiSurface(Unknown Source) at sun.java2d.d3d.D3DScreenUpdateManager.createGraphics(Unknown Source) at sun.awt.windows.WComponentPeer.getGraphics(Unknown Source) at java.awt.Component.getGraphics(Unknown Source) at sun.awt.RepaintArea.paint(Unknown Source) at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Failed to load mod from "mod_mocreatures.class" Failed to load mod from "mod_gravelclay.class" Failed to load mod from "mod_healOnEasy.class" Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: component argument pData at sun.java2d.windows.GDIWindowSurfaceData.initOps(Native Method) at sun.java2d.windows.GDIWindowSurfaceData.<init>(Unknown Source) at sun.java2d.windows.GDIWindowSurfaceData.createData(Unknown Source) at sun.java2d.d3d.D3DScreenUpdateManager.getGdiSurface(Unknown Source) at sun.java2d.d3d.D3DScreenUpdateManager.createGraphics(Unknown Source) at sun.awt.windows.WComponentPeer.getGraphics(Unknown Source) at java.awt.Component.getGraphics(Unknown Source) at sun.awt.RepaintArea.paint(Unknown Source) at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Failed to load mod from "mod_startingInventory.class" Failed to load mod from "mod_pirate.class" Oct 14, 2012 8:31:58 PM mod_Pistons getDataValue INFO: Using data values [100, 101, 108, 109] for pistons mod. Overriding /terrain.png with /piston.png @ 27. 30 left. Overriding /terrain.png with /spiston.png @ 41. 29 left. Failed to load mod from "mod_Pistons.class" Failed to load mod from "mod_RecipeBook.class"
Valid ID Overriding /terrain.png with /rope/top.png @ 42. 28 left. Failed to load mod from "mod_rope.class" Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: component argument pData at sun.java2d.windows.GDIWindowSurfaceData.initOps(Native Method) at sun.java2d.windows.GDIWindowSurfaceData.<init>(Unknown Source) at sun.java2d.windows.GDIWindowSurfaceData.createData(Unknown Source) at sun.java2d.d3d.D3DScreenUpdateManager.getGdiSurface(Unknown Source) at sun.java2d.d3d.D3DScreenUpdateManager.createGraphics(Unknown Source) at sun.awt.windows.WComponentPeer.getGraphics(Unknown Source) at java.awt.Component.getGraphics(Unknown Source) at sun.awt.RepaintArea.paint(Unknown Source) at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Failed to load mod from "mod_customtrees.class" Exception in thread "Minecraft main thread" java.lang.AbstractMethodError: BaseMod.getVersion()Ljava/lang/String; at ModLoader.getCrashReport(ModLoader.java:2394) at a.g(CrashReport.java:47) at a.<init>(CrashReport.java:36) at ModLoader.throwException(ModLoader.java:2371) at ModLoader.init(ModLoader.java:966) at ModLoader.addAllRenderers(ModLoader.java:185) at avy.<init>(RenderManager.java:87) at avy.<clinit>(RenderManager.java:14) at net.minecraft.client.Minecraft.a(SourceFile:260) at net.minecraft.client.Minecraft.run(SourceFile:516) at java.lang.Thread.run(Unknown Source)
| |
| | | Last_Jedi_Standing Moderator
Posts : 3033 Join date : 2012-02-19 Age : 112 Location : Coruscant
| Subject: Re: Tell31's Java adventure! Sun Oct 14, 2012 9:19 pm | |
| | |
| | | Tell Recruit
Posts : 220 Join date : 2012-02-25 Age : 109 Location : Winterhold
| Subject: Re: Tell31's Java adventure! Sun Oct 14, 2012 10:26 pm | |
| I reinstalled mod loader and that fixed it. All most likely put out the mod tomarrow so get ready! | |
| | | Iv121 General
Posts : 2396 Join date : 2012-02-05 Location : -> HERE ! <-
| Subject: Re: Tell31's Java adventure! Mon Oct 15, 2012 1:15 am | |
| - Tiel wrote:
- Yet that seems the only thing you did with that texture..?
That's what they asked for ... | |
| | | Sponsored content
| Subject: Re: Tell31's Java adventure! | |
| |
| | | | Tell31's Java adventure! | |
|
Similar topics | |
|
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| |
|