Comments and suggestions are welcome below.
I did not even notice that someone had replied here. The reason why I am delaying the release is because I am usually online at school, and for some interesting reason, WebSense blocks the Robocode Repository but none of the other Robocode pages. I am also delaying the release of my robot because I wanted to add better wall avoidance. However, my robot has gotten worse :(, so I may just release it now, since I am already planning to create a new robot from scrap. (Now that I think about it, I think that I will release it, probably, by the end of this week. But do not expect much.)
Thanks for all your bug reports for the Robocode editor!
I have looked into your bug report "Replace function generates extra tabs", but I am not able to reproduce it. Can you give me some details for how to reproduce it. E.g. what to write in the editor, and what to select and write in the replace dialog? You are running on Windows with Java 1.4 / 1.4.2?
I have also looked into your bug report "Cancel button does not work". What do you mean? It is supposed to close the notification window with the "Yes", "No", "Cancel" buttons. It does so on my machine!? Again, I should like to know your OS version and Java version so I can reproduce the error.
Sorry if I was a bit vague. For the replace function, opening any robot file and using the replace dialog to replace "public" or "private" with "replace" or something else properly replaces the occurances. However, the last line of code is then filled with tabs. For the cancel button, I would expect that it does not close the file, as it does currently. I am using Windows XP and Java 1.5.
On a side note, I have noticed some other bugs, but they only happen on Windows 98.
I am running on Windows XP with SP2 and no tweak programs on two different machines. One with XP Pro and another with XP Home. I am running Java 1.4.0, 1.4.2_11, Java 1.5.0_7 (5.0 Update 7) and Java 1.6 (6.0) Beta 2. I have had a really hard time switching machines and Java version, and trying to reproduce the two errors. In addition, I have looked into the code. In the replace case one single String.replace/replaceAll is called, letting the native side of Java taking care of the replacement. In the case of the "Cancel" button error, and standard JOptionPane?.YES_NO_CANCEL_OPTION dialog is used returning JOptionPane?.YES_OPTION, NO_OPTION, CANCEL_OPTION. In the case of the CANCEL_OPTION nothing is done. The JOptionPane?.YES_NO_CANCEL_OPTION is closed automatically. It all sums up to that no bug can be found inside Robocode, so I cannot fix it. I can only make some kind of workaround for systems where the bugs occurs. Are you sure that Sun's Java VM is the one running, and not e.g. Microsofts buggy Java VM? --Fnl
Regarding Win98.. yes, it's well-known that a lot of bugs occur with Java running on this OS, and that Sun haven't been able to make workaround for the buggy parts of Win98. Some issues were fixed with the Win98 SE and WinME, and new introduced. Luckly, there is not as many with Win2000 and WinXP ;-) --Fnl
I have tried out the cancel bug and I think that it is only with Win98. I probably got mixed up because I use Win98 and WinXP to run Robocode and I thought that it was on the WinXP. But, the replace option still occurs on the WinXP (with SP2) computer. The only difference is that I am using Java 1.5.0_06. -- Kinsen
I think you are right that the dialog issue (cancel button) only occurs on win98, which has some issues regarding dialoges.. at least with Java on top of it. One way to avoid this bug is to avoid using the standard JOptionPane?.YES_NO_CANCEL_OPTION dialog and make one myself. This will require some work, but it is of course possible. A workaround for the replace-problem might be to remove trailing spaces in the end of the source file. I think I will do this in the comming 1.1.2 Beta. --Fnl
I should like you to verify your bug report regarding the [Cancel button does not work] bug that this problem only occurs on Window 98. If this is the case I might close the issue, as it will require too much work for a deprecated OS. --Fnl
It is fine if you close the issue because I don't Robocode on the Windows 98 computer often. I tried to replicate it on the Windows XP computer and it seemed to work. Also, thank you for fixing the other problem--Robocode is so much easier to use with all the additions! -- Kinsen
If its lateral velocity is near 8. (follow the link for details) -- Martin
Do you still have the source for Senticous? May I see it? -- Simonton
Sorry to hear that, Kinsen, but I know the feeling. Best of luck with your next time-consuming hobby. ;) -- Voidious
I realized that I still have the source for Senticous on my USB so I can post it if you want although it does not do well compared to Quarrelet since I had only changed the gun (and used setTurnRightRadians?(e.getBearingRadians?() - Math.PI / 2) instead of + Math.PI / 2). -- Kinsen Correction: I actually did delete Senticous.java but I still have the obfuscation mapping.