Difference between revisions of "Talk:P2D"

From Robowiki
Jump to navigation Jump to search
m (→‎NullPointerException: renderables is null)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
==General Questions==
 +
 
I really think it should preserve the DrawingBot name and with clear attributation. It is not as many changes as my version so I suggest to move this page to [[User:David Alves/DrawingBot]] anyway. &raquo; <span style="font-size:0.9em;color:darkgreen;">[[User:Nat|Nat]] | [[User_talk:Nat|Talk]]</span> &raquo; 05:36, 23 May 2009 (UTC)
 
I really think it should preserve the DrawingBot name and with clear attributation. It is not as many changes as my version so I suggest to move this page to [[User:David Alves/DrawingBot]] anyway. &raquo; <span style="font-size:0.9em;color:darkgreen;">[[User:Nat|Nat]] | [[User_talk:Nat|Talk]]</span> &raquo; 05:36, 23 May 2009 (UTC)
 +
 
:@Nat, it's suppose to be a plug-in that evolves with time. I was going to change some of the functions to use the Point2D.Double variable and some new shapes. We can post the original, unedited version at the [[User:David Alves/DrawingBot]]. --[[User:J Litewski|HACKhalo2]] 05:57, 23 May 2009 (UTC)
 
:@Nat, it's suppose to be a plug-in that evolves with time. I was going to change some of the functions to use the Point2D.Double variable and some new shapes. We can post the original, unedited version at the [[User:David Alves/DrawingBot]]. --[[User:J Litewski|HACKhalo2]] 05:57, 23 May 2009 (UTC)
 +
 +
:: About new shapes, beside Point2D, and xxx2D implements Shape, we can use [http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Graphics2D.html#draw(java.awt.Shape) <code>Graphics2D.draw(Shape);</code>] and [http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Graphics2D.html#fill(java.awt.Shape) <code>Graphics2D.fill(Shape);</code>] Just ideas. &raquo; <span style="font-size:0.9em;color:darkgreen;">[[User:Nat|Nat]] | [[User_talk:Nat|Talk]]</span> &raquo; 06:57, 23 May 2009 (UTC)
  
 
And why do you need to upload .jar file? Just copy and past from source page is enough. Robocode doesn't allow you to access other .jar, and it has only one .java. When some library are downloadable in .jar, it usually contains many files. &raquo; <span style="font-size:0.9em;color:darkgreen;">[[User:Nat|Nat]] | [[User_talk:Nat|Talk]]</span> &raquo; 05:40, 23 May 2009 (UTC)
 
And why do you need to upload .jar file? Just copy and past from source page is enough. Robocode doesn't allow you to access other .jar, and it has only one .java. When some library are downloadable in .jar, it usually contains many files. &raquo; <span style="font-size:0.9em;color:darkgreen;">[[User:Nat|Nat]] | [[User_talk:Nat|Talk]]</span> &raquo; 05:40, 23 May 2009 (UTC)
 +
 +
==Errors==
 +
===NullPointerException===
 +
I just found this.
 +
''java.lang.NullPointerException at Resources.P2D.drawCircle(P2D.java:104) at hackhalotwo.Gravity.run(Gravity.java:14) at robocode.peer.RobotPeer.run(Unknown Source) at java.lang.Thread.run(Thread.java:636)''
 +
Now, I can't figure out why it's doing this when it was running fine yesterday.
 +
Usage: <code>P2D.drawCircle(test, 15.0, Color.GREEN);</code> where <code> Point2D.Double test = new Point2D.Double(60.0, 60.0);</code>. I don't know what i'm doing wrong :/ --[[User:J Litewski|HACKhalo2]] 13:39, 23 May 2009 (UTC)
 +
 +
There is no <code>renderables = new Vector();</code> so renderables is null. &raquo; <span style="font-size:0.9em;color:darkgreen;">[[User:Nat|Nat]] | [[User_talk:Nat|Talk]]</span> &raquo; 13:44, 23 May 2009 (UTC)

Latest revision as of 14:44, 23 May 2009

General Questions

I really think it should preserve the DrawingBot name and with clear attributation. It is not as many changes as my version so I suggest to move this page to User:David Alves/DrawingBot anyway. » Nat | Talk » 05:36, 23 May 2009 (UTC)

@Nat, it's suppose to be a plug-in that evolves with time. I was going to change some of the functions to use the Point2D.Double variable and some new shapes. We can post the original, unedited version at the User:David Alves/DrawingBot. --HACKhalo2 05:57, 23 May 2009 (UTC)
About new shapes, beside Point2D, and xxx2D implements Shape, we can use Graphics2D.draw(Shape); and Graphics2D.fill(Shape); Just ideas. » Nat | Talk » 06:57, 23 May 2009 (UTC)

And why do you need to upload .jar file? Just copy and past from source page is enough. Robocode doesn't allow you to access other .jar, and it has only one .java. When some library are downloadable in .jar, it usually contains many files. » Nat | Talk » 05:40, 23 May 2009 (UTC)

Errors

NullPointerException

I just found this. java.lang.NullPointerException at Resources.P2D.drawCircle(P2D.java:104) at hackhalotwo.Gravity.run(Gravity.java:14) at robocode.peer.RobotPeer.run(Unknown Source) at java.lang.Thread.run(Thread.java:636) Now, I can't figure out why it's doing this when it was running fine yesterday. Usage: P2D.drawCircle(test, 15.0, Color.GREEN); where Point2D.Double test = new Point2D.Double(60.0, 60.0);. I don't know what i'm doing wrong :/ --HACKhalo2 13:39, 23 May 2009 (UTC)

There is no renderables = new Vector(); so renderables is null. » Nat | Talk » 13:44, 23 May 2009 (UTC)