It is currently Thu Dec 13, 2018 7:26 am Advanced search

Yet Another Viewer

Random stuff about the contest, posts that don't fit in the other forums.

Yet Another Viewer

Postby dutchflyboy » Tue Feb 09, 2010 11:00 pm

Hi,

For the people who (like me) prefer having a normal interface to a command-line based tool, I've made a program to test your programs. It should be easy enough to use without manual, so just ask if something isn't clear.

EDIT: Added the right file here. Just download the .NET 2.0 version.
Attachments
TronBotViewer.zip
Current Version (for .NET 2.0)
(9.78 KiB) Downloaded 57 times
TronBotViewer.zip
Old version (for .NET 4.0)
(9.84 KiB) Downloaded 49 times
Last edited by dutchflyboy on Wed Feb 10, 2010 11:56 am, edited 2 times in total.
dutchflyboy
Colonel
 
Posts: 57
Joined: Sun Feb 07, 2010 1:08 am

Re: Yet Another Viewer

Postby Savaron » Tue Feb 09, 2010 11:10 pm

Can you make it available for official versions of .Net? Need to install 4.0 for your viewer.
Savaron
Captain
 
Posts: 22
Joined: Tue Feb 09, 2010 10:32 pm

Re: Yet Another Viewer

Postby dutchflyboy » Tue Feb 09, 2010 11:10 pm

Just one comment, this is NOT an official program, and I do not guarantee it works perfectly. I haven't tested it extensively, so I'm not sure it reacts the way it's supposed to.
dutchflyboy
Colonel
 
Posts: 57
Joined: Sun Feb 07, 2010 1:08 am

Re: Yet Another Viewer

Postby dutchflyboy » Tue Feb 09, 2010 11:17 pm

Yes, no problem. Here's the same program for .Net 2.0
Attachments
TronBotViewer.zip
(9.78 KiB) Downloaded 59 times
dutchflyboy
Colonel
 
Posts: 57
Joined: Sun Feb 07, 2010 1:08 am

Re: Yet Another Viewer

Postby Savaron » Wed Feb 10, 2010 11:27 am

Do you mind making it open-source?
Savaron
Captain
 
Posts: 22
Joined: Tue Feb 09, 2010 10:32 pm

Re: Yet Another Viewer

Postby dutchflyboy » Wed Feb 10, 2010 11:50 am

Well, I could, it's just that it's not really finished yet (for example, the two boxes on the right are supposed to receive the error stream -> easier debugging), and that the source code is a real mess (it was written to be finished fast, not to be maintainable). But I'll share it once I think it's about finished.
dutchflyboy
Colonel
 
Posts: 57
Joined: Sun Feb 07, 2010 1:08 am

Re: Yet Another Viewer

Postby Queue29 » Wed Feb 10, 2010 8:32 pm

I take it this program only works with bots that can compile to .exe's?
Queue29
Lieutenant-Colonel
 
Posts: 41
Joined: Sat Feb 06, 2010 5:43 am

Re: Yet Another Viewer

Postby dutchflyboy » Wed Feb 10, 2010 8:46 pm

No, it works with any bot. It's just easier to load .exe files. For .exe's, you simply use the browse button. But if you enter "java -jar MyBot.jar" in the box, it will execute it as a command.
dutchflyboy
Colonel
 
Posts: 57
Joined: Sun Feb 07, 2010 1:08 am

Re: Yet Another Viewer

Postby Queue29 » Thu Feb 11, 2010 2:04 am

I got it to work, but had a lot of trouble. The only way I could make it run my java bot was to copy the .class files into the same folder as the program and then have it run "java MyTronBot" . It doesn't seem to like paths. Secondly, it executes way too fast! It's useless for actually watching what the bot does! Thirdly, it only seems to work with 15x15 maps. It either hangs or crashes on anything other than empty-room.txt
Queue29
Lieutenant-Colonel
 
Posts: 41
Joined: Sat Feb 06, 2010 5:43 am

Re: Yet Another Viewer

Postby dutchflyboy » Thu Feb 11, 2010 4:07 pm

Mmm. Strange, I got the following command to work: "java -jar example_bots\Chaser.jar", so paths shouldn't cause a problem. Could you send the command that causes it to crash (or to have a problem)?

The speed, well yes, I know. But this is just because your bot executes too fast, I have a bot that takes 1s for each move. That one doesn't go too fast. But I'll try adding a setting so you can change it at will.

I haven't encountered your problem with the maps though. I've tested it with all maps of the C# starter package and one custom 50x50 map, they all work. It uses the code provided in the c# starter package to parse the map, so any standard map should work. Could you post a map that doesn't work?
dutchflyboy
Colonel
 
Posts: 57
Joined: Sun Feb 07, 2010 1:08 am


Return to Misc

Who is online

Users browsing this forum: No registered users and 2 guests

cron