User talk:Voidious

From Robowiki
Jump to navigation Jump to search

Contents

Thread titleRepliesLast modified
Thanks for fixing the wiki ;)004:54, 21 January 2018
Wiki spam021:27, 25 August 2017
Can we permit svg files in upload file? 015:43, 23 August 2017
Robot001423:26, 8 April 2017
FirstMark presentation point of interest007:33, 1 April 2017
blocking the spam wave106:27, 15 February 2016
I can't enter the competition018:16, 7 February 2016
new PlayBerryBots.com008:51, 1 August 2015
BerryBots updates4919:57, 2 February 2014
http://www.dijitari.com/void/robocode/419:13, 1 December 2013
BerryBots pre-release testing help6600:00, 30 October 2013
First page
First page
Previous page
Previous page
Last page
Last page

Thanks for fixing the wiki ;)

The wiki has been part of my daily check list ;)

Xor (talk)04:54, 21 January 2018

Thank you for combating the latest spam attack.

Also, it looks like you didn't move back the Main Page's talk page. It's here: http://robowiki.net/wiki/Talk:$$_1-855-665-7666@_HP_Service_Phone_Number_HP_Service_Phone_Number_Support_Number0572 GrubbmGait did this.

MultiplyByZer0 (talk)21:58, 24 August 2017

Can we permit svg files in upload file?

svg files are very useful in showing vectorized graphics. And they are even smaller than png/gif/jpeg. What a pity don't we support svg files?

Xor (talk)15:43, 23 August 2017

What is this abomination you have created? I haven't looked at it at all yet, but I'm going to guess it's an advanced/evolved MoxieBot. Second guess is just a regular bullet shielder that emphasizes shielding against more advanced targeting techniques. It's lost big to some robots, but it beat other top robots including Diamond, which is a next to impossible feat. I guess I'm partially to blame by helping bring bullet shielding into the end game. :-P

Skotty (talk)18:56, 3 April 2017

I see now. I won't share your dirty little trick, but I will be fixing the vulnerability in the next version of XanderCat. :-)

Skotty (talk)19:46, 3 April 2017

On closer inspection, looks like Robot001 probably isn't your robot. Author name is Yifan Zhu. Probably just a modified version of Diamond?

Skotty (talk)06:34, 4 April 2017

I'm sure we will talk more about this robot later. Probably should be renamed at the very least if it's not the work of Voidious. This is an interesting bot regardless, as it exposes certain vulnerabilities in some robots, including XanderCat; vulnerabilities which I've fixed in XanderCat version 12.10.

Skotty (talk)17:37, 4 April 2017
 

Yes, I would also prefer you choose an alternate package for your bot...

Voidious (talk)23:26, 8 April 2017
 
 
 

FirstMark presentation point of interest

I watched the video of your presentation at FirstMark. Pretty good presentation. A couple of points you may find of interest.

First, I thought the question about what you have learned or what skills you have improved from doing Robocode was a good question, and something that is important to have a good answer to. So beyond yourself, you might like to know what some other Robocode users have gotten from it. For me, it has helped refine and reinforce some of my math skills and methods for analyzing data. It encouraged and helped me learn some new algorithms, and has been a good exercise in creative problem solving.

Also, someone asked if Robocode was something people from Raytheon used. Raytheon is a contractor that develops a lot of software and hardware for the Department of Defense in the United States. It was a bit of an unusual question that came up because the person who asked it knew that Raytheon develops certain missile and projectile guidance systems. What makes it interesting is that I spent a number of years working on software for Raytheon. The only real connection between my Robocode work and Raytheon work is that they both involved programming, but nonetheless, at least 1 former Raytheon employee does indeed use Robocode.

Skotty (talk)07:33, 1 April 2017

blocking the spam wave

Hi Voidious,

Thanks for holding the fort against the recent spam wave. Would be wise to block registration for a week or so?

Beaming (talk)20:36, 14 February 2016

Yeah, it's off right now. It would be great if the spam just subsided after a few days, but I'm skeptical... I think we need to improve the captcha or add some custom measures for these particular spammers.

Voidious (talk)06:27, 15 February 2016
 

I can't enter the competition

I've packaged my robot Tomahawk but I don't know how to enter the competition. I found something about it but it was not detailed. Can someone help me?

Dsekercioglu (talk)18:16, 7 February 2016

new PlayBerryBots.com

Finally got the new web UI up - big things are it's in AngularJS (which is awesome) and has a "starter kit" where you can select from a few different movement and targeting snippets and it wires up a working bot for you. Pretty darn pleased with it! http://playberrybots.com

Voidious (talk)08:51, 1 August 2015

BerryBots updates

So I try not to spam you guys too much about BerryBots, but maybe I'll post about some of the bigger stuff.

A couple people have posted bots on the forums recently (both Robocoders):

  • Frohman posted the first public bot, Insolitus, a battle bot that beats supersample.BasicBattler in 1v1 and draws about even with it in Melee (which means it also crushes the other samples). Some type of antigravity movement and linear targeting.
  • Justin (of DemonicRage) has a bot called NightShade. It's the strongest 1v1 bot for now, also supports races and mazes, and has pretty sexy debugging graphics.

Next big thing coming is the Game Runner API, which I'm pretty excited about. I have it working now, probably releasing it in a week or two with some polish and related changes to results handling. Some cool things are that it handles multi-threading for you and makes it really easy to prompt the user for inputs (seasons, threads, ships, stages, etc). You launch a Game Runner script through the app kind of like starting a battle.

Voidious23:31, 7 April 2013

Just released v1.2.0 with the Game Runner API. I think it holds up pretty well in a comparison against the Robocode control API - it handles multi-threading under the covers, lets you configure input parameters and prompt the user for those fields with a graphical dialog, and includes some examples that do basic batch battles or a single-elimination tournament.

I feel like this was the final prerequisite to the kind of real bot development like I'm used to. So I'm pretty stoked on that. :-)

Voidious03:50, 22 April 2013
 

And now that Game Runner is out, I added a leaderboard for the LaserGallery stage. Might work on a gun myself sometime soon: LaserGallery/Scores

Voidious17:12, 22 April 2013
 

This is pretty cool - HTML5 replays: 6-bot melee on battle1

(Sorry, seems broken on Linux/FireFox, still troubleshooting that one.)

Voidious06:14, 6 May 2013

Wow, that is awesome!

Skilgannon09:06, 6 May 2013
 

Very impressive!

ABC13:09, 6 May 2013
 

I finally got around to writing a learning gun for BerryBots. At first I was just out to port Rednaxela's kd-tree to Lua, since I thought that was a prerequisite to the gun I wanted, and a prerequisite to testing correctness of a kd-tree is writing an optimized linear KNN search. But once I had a linear KNN search, I realized it would be plenty fast enough to run the targeting challenge stage, which is only a few thousand ticks per enemy with a decent gun, so I built out the rest of the gun.

So it's mostly just KNN with waves / displacement vectors. A precise MEA and GuessFactors is probably worth pursuing. But I think the next thing to start to handle is the presence of walls, which has a lot of ramifications.

It came out pretty good: testgun.lua. Not much code, runs pretty fast, reasonably effective. And it's a new high score on Laser Gallery.

Voidious (talk)01:26, 14 August 2013

Ahh, neat.

With regards to handling the presence of walls, that's a case where I see the utility of PIF versus displacement vectors and guessfactors as being significant. Guessfactors aren't really well-suited to the presence of walls. Displacement vectors allow you to handle walls occluding where they end up. PIF however allows you to handle not only walls occluding where they end up, but also handle ruling out paths which would be interrupted by walls.

Rednaxela (talk)16:04, 14 August 2013
 

Yeah, agreed that PIF has some key advantages. Checking wall collisions every PIF tick might be slow, I'm not sure. There's no trig, but it would be (# walls) * (# projections) * (# ticks per projection) line intersection checks - not sure how much that adds to the PIF CPU load.

I'm excited to try this in Melee, too, since you can see everyone at once. Though I may need that kd-tree pretty quickly.

Voidious (talk)17:56, 14 August 2013

You don't need to do that many line intersection checks. If you store your walls in a tree (i.e. r-tree or bucket kd-tree), or even a sorted list (sorting by one of the two axis), you can avoid needing to check every single wall by quickly ruling out large groups of walls that are too far away.

If your robot is using a pathfinding algorithm to navigate the walls, you could re-use that structure to find which walls you need to check (if any) to avoid needing new structures to search walls (i.e. track the current pathfinding node, and use that node's information to know which boundaries to check on a tick if any).

To save per-tick iterations, you can also use a trick I've used and seen used in PIF implementations: Based on the minimum number of ticks away waves/walls are, you can skip ahead in your PIF history, ignoring all the ticks inbetween.

In other words... nah... you can more or less reduce both the (# walls) term and the (# ticks per projection) term to much smaller numbers.

Rednaxela (talk)01:07, 15 August 2013

Thanks for the ideas! I love the kd-tree/sorted list one. I might have to go back and optimize it in the main game engine.

Voidious (talk)17:36, 15 August 2013

I'd say for that purpose r-trees are more suited than kd-trees, but yeah. From what I've heard, it's very much standard practice to use r-trees or other structures for collision detection in game engines where you have a very large number of entities/surfaces/etc which you may want to perform collision detection with.

With regards to 'other structures', so long as things are in a bounded size region and the density variation of objects is not too extreme, rather than a tree you'd probably get better results taking a very simple approach: Divide the area into a 2d grid, scaled so that you have a no more than a few entities in each cell, and in each cell store a list of entities which are within that cell. The only reasons to use a tree instead of a coarse array, is when the density of collidable objects/surfaces varies significantly between areas (i.e. you don't want lots of cells that are near-empty with other cells that have thousands of objects)

Rednaxela (talk)18:09, 15 August 2013
 
 

So thinking this through now, the walls in BerryBots have some interesting implications for PIF, too. For instance, if a log you're replaying includes that bot hitting the wall, what do you do? Or if a replay would cause you to hit the wall? In Robocode you might throw those out - it's rare and kind of a flukey situation, since you mostly never want to hit the wall. But there's no real disincentive to hitting walls in BerryBots, so it could be super frequent. Maybe you instead replay until the wall hit, then do a sort of single tick style re-projection for similar situations from that point on. And you probably want to precisely predict the wall bounce physics too.

Voidious (talk)02:12, 18 August 2013

Maybe what would make sense would be "fuzzy" wall collision handling that validates the projection against what happened in the PIF log:

  1. Detect and log when the enemy hits a wall as part of the PIF log.
  2. If the log that is being replayed does not contain a wall collision at a similar time, throw out projection if it collides with the wall by more than a certain margin (give leeway for the projection barely glancing by it)
  3. If the log that is being replayed does contain a wall collision, throw out the projection unless the projection also contains a wall collision at a similar time (or at least a near-collision)

The idea would be to filter projections based on an approximate presence/absence of a collision matching the PIF log, in order to ensure the scenario of that projection is sufficiently similar to what you'll be predicting.

Rednaxela (talk)16:48, 19 August 2013

Very cool ideas. I guess you might need to allow for more fuzziness depending on the wall layout / wall hit frequency. I still like the idea of re-projecting from time of wall hit, but I'd really have to just try both and compare because I just don't have much sense of which would work better.

It also makes me wonder about doing the same in Robocode PIF. You could compare snapshots along the projections to further narrow down which situations match most closely or throw out irrelevant projections. You wouldn't have as many wall hits to compare, but you could still compare wall hits and distances or other stuff.

I guess the problem is you mainly want to examine stuff that causes you to alter your path, which requires knowing the future unless you're talking about walls that don't move. But if a past move log brings the enemy far away from all other bots on the field, and projecting that log now causes them to run into a swarm of bots, that might not be tough to predict and easy to realize you should throw it away.

Voidious (talk)21:59, 21 August 2013
 
 
 
 

Back at this and the replay support's almost ready. Now with ship/stage output consoles, video player controls, and results at the end! [1] [2] [3] [4] [5] Still a few loose ends and optimizing to be done. (And I think Linux/FireFox, the combo specifically, is still screwed up.)

Some things I'm really excited about:

  • The data collection is pretty fast and low overhead, so I can leave it on all the time in the engine. Last I checked it was a ~5% performance hit, which seems worth it.
  • You'll be able to save replays from the Game Runner API. So for anomalous results, you can save the replay (which includes your output console). Like right now I have a 99.7% success rate on Laser Gallery and need to figure out what's up in those 3 of 1000 cases.
  • Long term: I'd like to have a web app that lets you select a stage, some sample bots, input Lua code for your own bot, submit form to run match headless in the cloud, and view replay in the browser.
Voidious (talk)07:45, 16 September 2013

And man, now that I'm testing this with the Game Runner API, I am just salivating. You can run a tourney or a benchmark and literally save every replay to watch later without any problem, besides maybe disk space. (Looks like ~100 bytes per tick in these 1v1 matches I just ran. So 10,000 ticks would be 1 meg.) How cool would it have been to have replays for every match in the Twin Duel every week when it was running?

Sorry to boast, just excited... :-)

Voidious (talk)04:34, 18 September 2013

Sounds cool.

Chase07:23, 18 September 2013
 

I'm not sure I'll make the time, but I don't see any reason we couldn't add this same style of replay support to Robocode. All you really need is fast/native buffers to cache all the pertinent data during the match in a lazy/efficient way. Java has ByteBuffers. I re-tested and with BerryBots, it really is only a 5% performance penalty with trivial bots. And of course some memory, but not even that much. And once you have sophisticated bots, the engine itself is only a small % of overall CPU usage anyway.

There's still a fair amount of work in coalescing/parsing the data, saving it, tying it into the GUI and control API, writing the replay renderer and all that, but no major technical limitations I can see. The biggest obstacle for me would just be getting my build environment setup to build Robocode, which I've never done before. The Javascript rendering could probably be forked from BerryBots, too, instead of starting from scratch.

Voidious (talk)19:59, 4 October 2013
 

Finally! BerryBots v1.3.0 is out with HTML5 replays and a killer new stage preview.

So now, out of the box, you can use the "simpletourney" sample Game Runner to run a single-elimination tournament, multi-threaded, saving replays of every match that you can post with the results. I think that's pretty sweet.

You can also save replays from your benchmarks. So for those 1 in 1,000 cases where you mysteriously lose to Walls or whatever, you can save the replay and watch the match afterwards. And replays contain your output console. I think it beats the heck out of trying to log all the right stuff to disk.

Voidious (talk)03:58, 14 October 2013

Those replays are really cool. I wonder if there's any way to get your stuff onto hackaday or the RasPi blog?

Skilgannon (talk)14:01, 14 October 2013

Thanks man!

Yeah, PR isn't exactly my forte. And BerryBots isn't the only programming game out there lacking players, so it's kinda tough not to come off as desperate. I'm a little more comfortable with it now that BerryBots is more polished with some neato features that I'm really proud of... But still, I'm more inclined to just focus on making it good and make a small PR push every once in a while.

I also try to keep in mind that I didn't even get into Robocode until 4-5 years after it came out, and that was years after the original author had stopped working on it. Programming games can have a pretty long and slow life cycle. Even here at the RoboWiki, we have some pretty long periods of low activity. And it even seems like Robocode is still growing in popularity! Which is kinda crazy.

Voidious (talk)19:54, 14 October 2013
 
 

A couple cool things:

  • v1.3.1 is out with .deb and .rpm packages for Linux. [1]
  • Frohman released a new bot the other day, Sanic, which beats every other existing bot in 1v1, most notably Jlm0924's bot NightShade. It and another new bot, Cortez, both move at high speed and bounce off walls fearlessly, which so far seems effective. A duel between them looks kind of pinball-esque.
Voidious (talk)00:10, 11 November 2013
 

Now available in a browser near you. :-) http://playberrybots.com

Voidious (talk)02:09, 20 November 2013

Wow. I am impressed.

One suggestion: when mouse is on the battlefield window one one see humongous pause symbol right in the center blocking the view. May be putting it somewhere at the conner would be a better idea.

Beaming (talk)03:29, 20 November 2013

Thanks, that's good feedback. If you didn't notice, the controls disappear if the mouse is still for a certain time - I'm basically trying to emulate typical video player behavior. So I think I should probably do two things:

  • Shorten the delay before the controls disappear on desktop (responding to mouse movement).
  • Make the controls graphics smaller on desktop.

As a side note, the timer is actually much longer on tablets because I thought that felt more natural there. Probably because you typically make a lot more ambient mouse movements than touch events to extend the timer.

Voidious (talk)03:41, 20 November 2013

Well, as Skotty mentioned below it is FAST. Sometime player control has no time to disappear and game is already done. May be it is enough to respond on click event in the battle field area for "pause"? We are all sort of used to this behavior in players.

And I second Skotty, it definitely need slow down button. I think it exists in the desktop version.

Beaming (talk)05:05, 20 November 2013

Alright, I think these have been addressed, though I've kept the video player style overlay.

  • Defaults to 30 fps (half speed) with options for faster.
  • On desktop, pause/play controls are smaller and disappear more quickly (by ~30%).
  • All the controls are shifted down a bit.

Thanks to both you guys for the feedback! I'm pretty happy with these changes.

Voidious (talk)03:47, 23 November 2013
 
 
 

Awesome. Very well done. Not that I'm an expert on the variety of these types of games, but I've never seen one where you could do all the coding and battles online before.

Is there a way to adjust the game play speed? I don't recall seeing that. It would be nice if play could be slowed down. The default speed seems so ADD.

Skotty (talk)04:54, 20 November 2013

Thanks. It's certainly not the first to run in a browser. Most of the ones I've seen use Javascript for the bots and actually execute the game engine in the browser too. This is offloading the game processing to an Amazon EC2 instance and then viewing the replay. Also, some web based games are like a whole platform where you upload your bots, compete in ladders... This is more of a stand-alone try it / demo thing, at least for now.

In the desktop app, you can adjust the playback speed, but I didn't get that into the replays yet. And I've been considering switching the default from 60 to 30 fps... I guess that's one vote in favor. :-)

Voidious (talk)05:08, 20 November 2013
 

Alright, the web UI now defaults to 30 fps with options for fast (old speed) or crazy fast. I think I just have an affinity for smooth 60 fps graphics, but it really just feels so much more sane this way. You calling it "ADD" gave me a chuckle. ;)

Voidious (talk)09:29, 21 November 2013
 
 

BerryBots v1.3.2 brings Game Runner API and replay/web rendering updates, plus a bunch of bug fixes. [1]

But what I'm really excited about is it adds functions to the Game Runner API that let runners write to the ships and stages directories. Since Lua is interpreted, there's no compile step necessary and this is all that's needed to make genetic algorithms (and similar) possible. I included a simple example program that evolves a ship to solve a maze: MazerEvolver.

Voidious (talk)18:56, 4 December 2013
 

By the way, I ripped off the "Chronicle" idea for BerryBots: BerryBots Chronicle of 2013. (Not that the RoboWiki invented the end-of-year recap...) It was a big year!

Voidious (talk)18:15, 9 January 2014
 

Kicking off the first real BerryBots competition: BerryBots Little League. :-) A month to write a duelist and win a t-shirt or $25 Amazon gift card. I didn't want to force things, which is why it's taken this long to do this... But finally a couple people brought it up in the forums, so here we are!

Most exciting part for me is you can develop and submit your bot right from the web UI at PlayBerryBots.com/battle.

Voidious (talk)22:36, 26 January 2014

How robust are your servers? Do you think you could handle a RaspberryPi.org blog entry?

Skilgannon (talk)21:04, 28 January 2014

Haha, I really doubt it. :-) But I dunno. It would be a good problem to have. :-P It's on Amazon EC2 and on a single instance of their smallest tier. But theoretically, it shouldn't be too hard to scale it up with EC2, since that's basically their core strength as a platform. It's a pretty simple app.

Voidious (talk)21:17, 28 January 2014
 

Er, I think berrybots.com could handle it. That site's pretty lightweight and on its own VPS. But playberrybots.com is on EC2 and obviously running matches server-side could slow down pretty quickly. Most matches only take 1-2s to run, so it should be able to handle at least a few people at a time.

Voidious (talk)21:29, 28 January 2014
 

Got my t-shirt yesterday! http://imgur.com/a/TlZMS :-)

Voidious (talk)19:57, 2 February 2014
 
 

http://www.dijitari.com/void/robocode/

on http://www.dijitari.com/void/robocode/ there are unreleased versions of diamond and dookious and other robots why didn't you release them voidious WHY

Tmservo (talk)17:26, 1 December 2013

BerryBots pre-release testing help

Edited by author.
Last edit: 06:47, 8 March 2013

Hey dudes - I'm gearing up to release BerryBots v1.1.0 with a full GUI for Mac/Linux/Windows. If any of you would be willing to grab this release candidate and test it on your systems, I would be super duper grateful! I mainly just want to know it launches and runs battles ok, but obviously any/all feedback is also welcome.

Voidious05:19, 6 March 2013

I just downloaded the windows version. It is launching and running battles alright, so far.

I'll also add that it has a very nice, simplistic interface.

Sheldor13:38, 6 March 2013

Awesome, thanks Sheldor!

Voidious15:46, 6 March 2013
 

I get the following error with the Linux 64 bit version:

[andrew@host-110-86 berrybots]$ ./bbgui ./bbgui: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory [andrew@host-110-86 berrybots]$ sh berrybots.sh ./bbgui: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

AW16:21, 6 March 2013

Great, thanks for testing this! What Linux distro/version is this?

I think the cleanest solution is probably just to ask people to install libpng (and/or check that it's installed from an install or run script first). Maybe testing a few other distros to figure out what needs installing would be a good idea before release. I know it doesn't require anything on the last two Ubuntu's.

Voidious16:42, 6 March 2013
 

Sweet, was able to duplicate this on Mageia 2. Will try to either get to the bottom of it or maybe just building it on non-Ubuntu will solve the problem. Right now looking to test on Ubuntu / Mageia / Fedora - still curious to hear what you're using.

Voidious17:10, 7 March 2013
 

Oops, I forgot I didn't say. I'm using fedora 18. I installed libpng, but then hit more libraries that I was missing. I'll try it on Windows today.

AW17:35, 7 March 2013
 

After some research, I think the problem is that you have a newer version of libpng (like libpng14 or libpng15), not that you don't have libpng at all. My Mageia 2 install has libpng15. I know what libpng is but this whole problem is pretty new to me, so I have to figure out what's the right way to address it.

Thanks man!

Voidious17:42, 7 March 2013
 

Versions after libpng12 broke compatability with libpng12 in notable ways. For this reason, libpng12 still has maintnance release, and many distributions (i.e. Arch Linux, Ubuntu, Debian, and after checking, Fedora 18 too) have pakages for both libpng12 and the newst version of libpng, which can be installed simuntaneously without conflict.

AW: You should be able to install a "libpng12" package from your package manager I believe.

Rednaxela18:05, 7 March 2013

I have no attachment to any libpng versions, so I guess the best move is to compile against whichever version works most commonly across default installs of Ubuntu / Mageia / Fedora, probably libpng14. Is that what you'd recommend?

Voidious19:01, 7 March 2013
 

No clue about Mageia, but Fedora and Arch provide both libpng15 and libpng12 (libpng12 isn't installed by default, but should be easy to install). Ubuntu and Debian however only provide libpng12. To me libpng12 looks like the safest for binary releases of software for now. Well, safer still is statically linking libpng, but yeah.

Rednaxela19:43, 7 March 2013
 

Thanks Rednaxela, this has been really helpful. If installing libpng12 is simple on most distros that don't ship with it, that sounds like the way to go.

I could still have a problem, though. wxWidgets will dynamically link to GTK, which dynamically links to system libpng. So I could then be linking to libpng12 and libpng15, which seems bad, but maybe it's not. I'll do some tests. Maybe I just have to build a separate binary release for Ubuntu/Debian and Fedora/Arch/Mageia, which isn't really a big deal.

Voidious20:47, 7 March 2013
 

Yeah, I installed libpng 1.2 and now I need libGLEW 1.8 (fedora's package mannager only has 1.7) It runs fine on Windows though!

AW22:58, 7 March 2013
 

Cool, thanks AW! Funny, Windows was the platform I was most worried about. :-) Btw are you on Windows 7?

I guess offering binaries compiled on several common Linux distros is probably a fairly safe way to go. Packaging as an RPM may help in defining/managing these dependencies, too, though.

Voidious00:13, 8 March 2013
 

It works here as well. But does seem to have an unused console window. Windows tends to be fairly straight forward once you know what it needs to have. Namely dlls.

On a side note, I have noticed random bot hitting itself with its own laser shots.

Chase05:11, 8 March 2013
 

Woot, thanks! And yeah, he's dumb like that. Chaser's even worse. :-)

Voidious05:12, 8 March 2013
 

Compiled on Fedora 18 64-bit, if you want it: [1] (It does give a harmless warning about receiving unicode text input that I am not sure I can fix.)

But hopefully I can figure out a way not to have to offer per-distro Linux binaries...

Voidious02:43, 8 March 2013

Bah, I'm not finding much to indicate I can make this any easier than separate binaries for a few major Linux distros and providing source / good build instructions (which I have) for anyone else to compile it themselves.

Still very open to advice from any resident Linux gurus tho. :-)

Voidious05:11, 8 March 2013
 

Mainly what I have seen lately is many programs have moved to being managed by a package manager. I have opinions on that. But other programs such as audacity offer a few different packages for a few major distro's and the source code.

Chase05:22, 8 March 2013
 

If you statically link libpng and libglew, I'd expect that to work better across distros probably Voidious.

Rednaxela18:35, 8 March 2013
 

Aren't the odds high that those each link to the system specific version of something else which has the same problem? I'm also concerned about ending up linking in two versions of libpng and libglew, since something like GTK would dynamically link them in.

Voidious18:38, 8 March 2013
 

Those two would link to other things yes, but those (libc, zlib and and OpenGL itself) have a very stable ABI so far as I know, and likely would not have the same problem. If really worried though, one could probably staticly link everything except OpenGL and wxWidgets. GTK dynamically linking a different one in shouldn't be a problem I think, it should coexist just fine.

Rednaxela18:52, 8 March 2013
 

I tried out the fedora binary and it works now. Thanks!

AW22:50, 9 March 2013
 
 

I noticed this game has a lot of fast-moving bright colors--many more than Robocode.

It would be wise to put in some kind of legal disclaimer, such as:

"Do not use this product if you have been diagnosed with epilepsy or any other photosensitive medical condition."

Sheldor16:26, 6 March 2013
 

Hi mate,

Right now i have not much time to check it out, but on my macbook the app crash instantly.

I can send you the full crash report if you want but maybe the first lines help you to see whats wrong

Date/Time:       2013-03-06 06:50:35.838 +0100
OS Version:      Mac OS X 10.6.8 (10K549)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   ???                           	000000000000000000 0 + 0
1   libwx_baseu-2.9.4.0.0.dylib   	0x00000001926c7e8b wxEntry(int&, char**) + 11
2   voidious.BerryBots            	0x00000001919610b6 0x19195d000 + 16566
3   voidious.BerryBots            	0x000000019195ece4 0x19195d000 + 7396

Thread 1:  Dispatch queue: com.apple.libdispatch-manager
0   libSystem.B.dylib             	0x00007fff83bcec0a kevent + 10
1   libSystem.B.dylib             	0x00007fff83bd0add _dispatch_mgr_invoke + 154
2   libSystem.B.dylib             	0x00007fff83bd07b4 _dispatch_queue_invoke + 185
3   libSystem.B.dylib             	0x00007fff83bd02de _dispatch_worker_thread2 + 252
4   libSystem.B.dylib             	0x00007fff83bcfc08 _pthread_wqthread + 353
5   libSystem.B.dylib             	0x00007fff83bcfaa5 start_wqthread + 13

Thread 2:
0   libSystem.B.dylib             	0x00007fff83bcfa2a __workq_kernreturn + 10
1   libSystem.B.dylib             	0x00007fff83bcfe3c _pthread_wqthread + 917
2   libSystem.B.dylib             	0x00007fff83bcfaa5 start_wqthread + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000109f80  rbx: 0x0000000000000000  rcx: 0x0000000000000001  rdx: 0x00000000000fc080
  rdi: 0x000000000013b7e0  rsi: 0x0000000000100000  rbp: 0x00007fff5fbffa90  rsp: 0x00007fff5fbff978
   r8: 0x0000000000000000   r9: 0x000000000013b300  r10: 0x00007fff8ab4b630  r11: 0x0000000000000000
  r12: 0x00007fff5fbffa08  r13: 0x0000000000109f60  r14: 0x0000000000000000  r15: 0x00007fff5fbff9f0
  rip: 0x0000000000000000  rfl: 0x0000000000010206  cr2: 0x0000000000000000


I plan to give it a deeper look on weekend.

take care wompi

Wompi07:45, 7 March 2013

It just won't work on anything before 10.7. I tried to get it compatible with 10.5 or 10.6 but couldn't get the main gfx library (SFML 2.0) to compile with that. Still like 30% of folks on 10.6, so that kind of sucks... But I'm a late updater and even I'm on 10.8 now so hopefully most people will be on at least 10.7 pretty soon.

Thx for giving it a shot tho!

Voidious15:55, 7 March 2013
 

Actually, I am going to take another pass at 10.6 compatibility. I'll let you know if I have any success and maybe I can get you to try it again...

Voidious16:50, 7 March 2013
 

Argh.. i didn't read the requirements, sorry that was my bad. If it comes to updates, I usually switch to the next version if there is a program I want and which needs those requirements. And because I desperately want to have a look at BerryBots, it is a perfect time to get "Lion", I guess.

Please don't bother with 10.6 compatibility, it's not worth the time.

Take Care

Wompi07:45, 9 March 2013
 

Wow, I'm honored. :-)

I'm all in favor of being as backwards compatible as possible, so I gave 10.6 compatibility another shot, but I couldn't get it working. I got wxWidgets and SFML to compile with the 10.6 SDK and 10.6 target version, but my XCode project itself still fails with some linker errors I can't figure out when I set the target to 10.6. Seems like I'm close, but I'm at a loss...

Voidious11:45, 9 March 2013
 

Hi mate. Finally I got my system upgraded. It was quite a tough task, because "Lion" is not on sale anymore and thats the only upgrade my old macbook can handle. Anyway, one data loss and near heart attack later I figured out how to bring the system back to work - I guess you owe me a beer :).
I'm not sure if I need more updates (there are still some shown in "Software Update"), because BerryBots is still crashing. It starts, and I can choose a stage and bots but if I hit start game the App ends.
Maybe you have an idea what could be wrong. And if you need more info, I can give you the whole crash report if needed.

take care

Identifier:      voidious.BerryBots
Version:         1.1.0 (rc1)
Code Type:       X86-64 (Native)
Parent Process:  launchd [177]

Date/Time:       2013-04-01 20:25:54.514 +0200
OS Version:      Mac OS X 10.7 (11A511)
Report Version:  9

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000004

EDIT: Sure I will try it out right away.

Wompi20:49, 1 April 2013
 

Argh! For the sake of testing clarity, could you try this one? [1] I know that's the exact v1.1.0 that my brother tried on his 10.7 iMac. You could also try v1.1.3 from the downloads page.

If that doesn't work, please do post the whole crash report, or email it to me (voidious at gmail). Thanks man! Hopefully you didn't upgrade to Lion in vain!

Voidious20:57, 1 April 2013
 

So far it's working on my Windows XP box. But the first match I tried seems potentially buggy. I put Drifter and MyFirstShip into lasergallery. Is lasergallery just meant for 1 ship? The two ships seems to start on top of each other. Is robot positioning random? Or controlled by the level perhaps? Sometimes Drifter drifts away and it runs okay, but most of the time Drifter holds still while MyFirstShip totally spazzes out, always appearing to touch Drifter but bouncing from side to side like mad. [1]

Skotty16:43, 9 March 2013

A couple other things. I realize this is still an early release, but is there a way to set descriptions for stages? One of the first things I noticed was that I had no idea what the stages were meant for, outside of guessing based on the file name. It would be nice if their was a way for stage designers to set descriptions for their stages that could be read by users when picking a stage to run.

Also, when the New Match window is open, the BerryBots window where the battle plays out doesn't repaint. A minor thing, and it's interesting the patterns I can make by running other windows over top of it, but I doubt that's an intended feature. :-)

Skotty16:55, 9 March 2013

I think I've fixed the repainting issue, but I don't have any machine where I can reproduce it. If you could try this on XP sometime (no rush) I'd love to know if it's fixed: [1] (I'm actually kinda of surprised/excited BerryBots even works on XP...)

Also took a pass at the stage description / wrong number of ships stuff.

Voidious02:58, 10 March 2013

I'd say the repainting issue is fixed. It still happens while dragging the New Match window over the battle window, but then it repaints as soon as you stop dragging the New Match window. And it doesn't happen at all anymore when dragging other application windows. I wouldn't bother with it anymore, especially if it just happens on XP.

Skotty21:54, 10 March 2013
 
 

Another bug or perhaps just me not understanding the level, on the drift stage I put WallHugger and Drifter in it. WallHugger wanders around the walls while Drifter tries to go up the middle. Drifter always wins, but WallHugger always makes it to and around the zone at the top before Drifter gets there. If the goal is to get to the zone first, WallHugger should be winning. Or maybe I misunderstand the goal?

Skotty17:03, 9 March 2013

Looks like what's happening on this stage is that it was meant for only 1 robot. It appears as though whichever robot comes first in the alphabet gets to play, while the other robot just wanders around pointlessly wondering why the other kids won't play with him.

Skotty17:06, 9 March 2013
 

Would you rather me be spamming all this feedback in your BerryBots forum? Or do you want to keep it here among Robocoders for the moment. I have been assuming the latter.

Skotty17:09, 9 March 2013
 

Either is fine. Here probably makes more sense for now. Huge thanks for all the testing/feedback!

  • Not knowing which bots/stages work together is definitely the biggest source of confusion I see at the moment. Indeed lasergallery and drift are only designed for one ship. I'm not sure the best way to address this, but I think I'll raise the priority on this and get it fixed before release.
    • I could just read any comments at the top of the stage file as the description (they do all have such comments) and put it in the UI somewhere, like stage preview.
    • In addition, each of the 1p stages could just destroy any player ships beyond 1 and print a message to the screen. (The mazes do print a message actually, but not the others.)
    • It's no substitute for fixing this in-game, but if you do want to read about the stages, they all have write-ups (though some with out-of-date source code) at the wiki: [1]
  • Specific start positions can be defined by the stage, any beyond that they're random.
  • Did you mean literally "on top of each other", like they were overlapping and stuck? If so, that's a bug I'd love to reproduce. It's fairly low level in the game engine that this should never be possible.
  • The New Match dialog is styled to be a modal thing. The main window doesn't accept input or update until/unless you close New Match. I'd never seen any visual artifacts like that though (just tested here Mac and Win 8). I'll see if I can reproduce somewhere and try to figure out a fix. This happens even with New Match retaining focus the whole time, just covering/uncovering part of the main window?
Voidious18:02, 9 March 2013
 

Ok, I see what's happening now on lasergallery. The first ship nabs the built-in starting position, but the second ship is what the stage saves as the "player ship", and the stage tries to set its position to that spot each tick.

I have a bunch of thoughts on the ship/stage compatibility issue. I'm trying not to over-engineer it, but it is lacking right now for sure.

  • The stage description would go a long way, I think that's a must-have.
  • In general, I think for ships/stages you download yourself, you have a good idea what you're doing, and engineering solutions to ensure compatibility are probably overkill. In Robocode, I don't see a lot of confusion trying to run 1v1 bots in Melee battles, or Movement Challenge bots in regular battles, etc. So I partly see this as an issue specific to sample ships/stages, or at least magnified there.
  • An API to let the stage set min/max ships is an idea I'm considering. This would let me fail fast and not even start a misconfigured match. My issue with this is it's still not sufficient (Snail would be pretty dumb on lasegallery).
  • On my to-do list is to let a stage set a tag for the rule set it's using. Just a string, like "battle" or "maze". Then ships could check this value in case they wanted to behave differently based on the rule set. E.g., a team might support "battle" and "ctf". I could expand on this by letting ships define what rule sets they support, though I'm on the fence about that.

I think for now I'll just do:

  • Show stage descriptions in New Match dialog somewhere.
  • Update sample stages to gracefully handle too many ships.
Voidious19:28, 9 March 2013

Oh, and:

  • Include in the stage descriptions which sample bots work.
Voidious19:30, 9 March 2013
 
 

I was playing kind of dumb in my earlier testing, but doing so helps ensure everything is as user friendly as it can be. I like the idea of a stage being able to indicate min/max bots, though I see your point about it still being possible to pair robots with stages they were not meant for.

I'm not sure if this is even possible, and I certainly wouldn't worry about it anytime soon, but the one thing that I think would be *really* cool in a game like BerryBots, Robocode, or similar would be if they provided a way for a user to paint his/her own ship/tank/robot; something more than just setting colors. This would greatly enhance interactive play. I'm not sure how many others would be into this idea though. Just an idea for the backburner.

Skotty21:13, 9 March 2013

Doesn't sound that far-fetched to me. I'll already have to roll my own basic graphics API to add debugging graphics, so using that same architecture for customizing your ship graphics might be pretty cool.

Voidious21:48, 9 March 2013
 

Kind of interesting, I put 2 Jouster's into the stage joust and within just a few runs experienced two different tie scenarios. The first one, both Jouter's ended up head to head trying to push each other to the opposite side, neither budging at all. The second one, apparently they both bounced out to zone at the same time, and it just said Game Over instead of declaring a winner. Luckily, I didn't have to put a quarter in my computer to play again (that's what it made me think of).

Skotty21:19, 9 March 2013

Yeah, maybe just a time limit before it's a tie would be good? I added a time limit for rounds on the battle stages when I realized 2 WallHuggers can get in a pattern where they never hit each other. Joust could also do well to have multiple rounds, for that matter...

Voidious21:44, 9 March 2013
 

I tried to run BerryBots but instead I got this error message:

"The program can't start because sfml-graphics-2.dll is missing from your computer. Try reinstalling the program to fix this problem."

It worked fine before.

Sheldor13:27, 10 March 2013

Hmm - do you see sfml-graphics-2.dll in the same directory as BerryBots.exe?

Voidious16:28, 10 March 2013

Yes.

Sheldor16:30, 10 March 2013

Any chance you are clicking into the zip and not the extracted folder? I know I've done that when Windows is hiding file extensions.

If it's not that, I'm pretty confused and will have to do some research. Windows 7 for you right? And does re-extracting to another location work? Thanks.

Voidious17:18, 10 March 2013
 
 

Aha!

When I open it straight from Explorer, it works fine. But, when I go through the shortcut I put on my desktop, I get the error. Are you making some kind of reference to that DLL that wouldn't work through a desktop shortcut?

You are correct, I am using Windows 7. (I've tried linux, but I haven't gotten the hang of it yet.)

Sheldor18:15, 10 March 2013
 

Ah! Ok, that makes some sense. Really glad you uncovered this one!

It needs the DLLs somewhere that the system will find them. Having them in the same dir as the .exe works, and lets me avoid needing an installer or polluting your system with DLLs (or so I thought). But maybe I do need an installer after all, or to static link everything (all the required DLL code goes right into the .exe, basically).

The desktop shortcut works for me on Windows 8. It's definitely a shortcut on your desktop right? Not a copy of the .exe? I think if you want a work-around for now, you could copy the DLLs into Windows\System32, or add the BerryBots directory to your PATH.

Voidious18:49, 10 March 2013
 

You're right. I actually copied the .exe file to my desktop folder. It's fixed now.

It probably would be a good idea to use an installer or have all code in one file, in case somebody else does something stupid. ;)

Sheldor19:05, 10 March 2013
 

Oh cool, good to hear. I am looking into installers now, Inno Setup looks promising.

But I may put the installer off to next release if it's not totally breaking anything. The bigger piece of work here is that with the code in "Program Files", I'd also want to move bots/stages to somewhere else (configurable, eg My Documents\BerryBots), and then need a way to find them (like via the registry). I already have to do it this way on Mac OS X, and it does seem like a better setup. Right now it just knows to look in the subdirectories on Windows/Linux.

Voidious19:14, 10 March 2013
 

Just wanted to give a big thanks to all you dudes for helping me out with this. It would've been an ugly, bug-ridden first release of the BerryBots GUI without you. I owe y'all some testing whenever you need it. :-) Details on v1.1.0 if anyone wants to check it out: [1]

Voidious06:15, 12 March 2013
 

Tried it on Debian wheezy (current stable) 32 bits.

Upon start up I see the following error message: error while loading shared libraries: libGLEW.so.1.6: cannot open shared object file: No such file or directory

Quick search in the Debian package repositories shows that it has only libglew1.7

Beaming (talk)03:33, 16 October 2013

This thread is pretty out of date - which version was it you tried? I've got some Ubuntu binaries for v1.3.0 on the downloads page which might work better for you. [1]

If not, there are compilation instructions on the wiki, and I'd be happy to figure out building a Debian binary and adding it for the latest version. It's not hard to compile, but then I've also done it a zillion times. :-)

I'm not exactly an expert on packaging Linux apps, so feedback is more than welcome. Probably the model I trust most is that Chrome releases:

  • 32 bit .deb (For Debian/Ubuntu)
  • 64 bit .deb (For Debian/Ubuntu)
  • 32 bit .rpm (For Fedora/openSUSE)
  • 64 bit .rpm (For Fedora/openSUSE)

But so far it's just a simple binary in a zip.

Voidious (talk)03:49, 16 October 2013

I tried the old version BerryBots for Ubuntu/Mint 32-bit v1.1.0-rc1

if I download berrybots_ubuntu-32bit_1.3.0.tar.gz than for debian I now miss libGLEW.so.1.8.

The debian stable has libGLEW.so.1.7

Quick attempt to compile it myself from the source failed, since I did not installed a lot of prerequisites.

Why one would need cmake, if compilation is designed for make?

Beaming (talk)04:09, 16 October 2013

Building SFML requires cmake. Those instructions build everything from source.

I'll install Debian "wheezy" 32-bit here and put together a binary for you, and then move "better packaging on Linux" way up on my to-do list. It's hard enough getting someone to install anything at all when so much stuff happens through a browser these days, so getting this right is pretty important...

Voidious (talk)04:13, 16 October 2013
 

Alright, getting Debian 32-bit installed now, but I need to get to bed. So probably won't have it posted until sometime tomorrow night, if you're still interested. Then I'll see about packaging as .deb and .rpm as a hopefully better solution.

Voidious (talk)07:13, 16 October 2013
 

Actually, here you go: [1] ... Hopefully that works for ya!

Voidious (talk)08:03, 16 October 2013

This one worked without a hitch.

Seeing replay in a browser is super cool, but a bit unexpected :)

I use to make a few debian packages for my own needs. It is not too complicated, especially if you are not to worried about 100% complaint to the distribution policy. But it should be fine for non official packages.

If you can do debian that mean that ubuntu is done as well.

I feel silly to ask but how to see updates and replies to the messages? I used the recent changes page but this seems to be an overkill and not very convenient.

Beaming (talk)03:51, 17 October 2013

Whew, glad to hear it! Good point about the HTML replays surprising you, which is not a good UI trait. I'll figure out a way to indicate that somehow.

I started working on the .deb packaging earlier. So far doesn't seem too scary...

About wiki messages, the main thing I use is you can "watch" pages and threads and get an email when they're updated. Thread updates even include the whole text, and page updates have a link to the diff. There's also "new messages" along the top, which I think is stuff you watch plus thread replies, but I almost never use it so I'm not sure. And yeah, I also check Recent Changes.

Voidious (talk)04:29, 17 October 2013
 

FYI I've made a lot of progress towards a .deb package. Revamped the build process with autoconf/configure along the way. Right now there's still binary incompatibility because Debian has libglew17 and Ubuntu libglew18. But at worst, I'll be able to offer .deb's instead of .zip's, it's no worse in terms of binary incompatibility, better installation process, run from anywhere and data's stored in your chosen location (like on Mac), and I can see about submitting the source package to the Debian repo so you can eventually get the binary you need in whatever distro.

And hopefully wxWidgets 2.9 and SFML 2 will hit Debian stable eventually and make my life a little easier...

Also someone came along and packaged it for the Arch Linux repository, which was a nice surprise. His first pass is semi-broken because it was before I did all this other necessary stuff to make it work smoothly running from an installed location, but he has my latest code and I think will update it sometime.

Voidious (talk)00:34, 27 October 2013

Yep, it is a pain when libraries are not in the main distro.

But may be there is no reason to push so hard. You already have good enough binary zip which runs by itself, so anyone interested can run it on Debian with no problem. The only thing to do maybe, is to come up with a list of packages required to run it. As I reported it runs fine for me, but may be I have big enough collection of library packages. Debian has some script which runs through binary and report its dependencies, it is run from inside of deb-maker scripts so I cannot say which one exactly.

Also, if you do deb packages just because of my request. Please, do not fill obligated. For the next couple month I will be busy trying to reach something in robocode. And I cannot handle one more addictive game :)

Though, I will be happy to test installation of berrybots packages.

Beaming (talk)01:02, 27 October 2013

Haha, well, real packaging on Linux was already a to-do, but having actual people show some interest has a way of helping prioritize things. :-) And I can pay my Apple tax (er, developer license) to get rid of a scary warning there, maybe write an installer for Windows too, and I've got a nice "easier to build or install / run" story for the next version.

I've tested the .zip on a fresh install of Ubuntu, so I don't think there's anything major that I'm unknowingly depending on. I think I tried the Debian binary on a fresh install too.

Voidious (talk)01:24, 27 October 2013
 

If you're interested, here's a Debian 32-bit .deb: [1].

Got both .deb and .rpm packages working now. Never thought I'd be so happy to see my icon in the Linux Applications menu. :-)

Voidious (talk)06:06, 29 October 2013
 
 
 
 
 
 
 
 
First page
First page
Previous page
Previous page
Last page
Last page