Talk:Robocode/Mac OS X

From Robowiki
Jump to navigation Jump to search

The .bat files and .sh files are meant to start it up for you... I'm pretty sure you can get it to work without moving anything around. Try renaming the robocode.sh file to robocode.command. ".command" files are files that OS X recognizes as a double-clickable script. Then you can double click robocode.command, and it will run robocode for you. Let me know if that doesn't work... --BenHorner 00:00, 11 May 2009 (UTC)

If you run from Robocode.jar directly, let me warn you. Tde default java heap size is 128MB, which is too low. The default robocode bat/sh file set it to 512MB. The default heap size will surely give you OutOfMemoryError if you run a melee battle with Shadow,Tron,Aleph,SandboxDT,Logic,Phoenix,... They may fail even if you run just Shadow vs. SandboxDT, but I'm not sure. » Nat | Talk » 01:39, 11 May 2009 (UTC)

I think it's good to have a page for this, since Apple's support for Java tends to suck, but I do think there are some inaccuracies in what's posted here now.

  • Saying the installer "doesn't work" isn't quite right. Noting that it doesn't install a traditional Mac .app into the "Applications" folder might be good. It doesn't really matter where you install it, either, so I don't think we need that part. (Personally, I do install to my home dir, like ~/robocode_1.7.1.1.)
  • You don't need to copy things around, you can just run robocode.sh from the Terminal in the installed directory. I'm not sure about the ".command" bit, but it would be cool if that worked, too. Clearly, this isn't obvious, so it would be good to put that info here. =)
  • The shell on OS X actually isn't much different than other Unix systems...
  • I'm really not sure about 1.7.1.1 running any faster than previous versions. It seems unlikely and I haven't noticed, but I've just recently come back to active Robocoding. There are some other Mac Robocoders that could probably comment on that.

Off the top of my head, mentioning SoyLatte Java and the details (which I don't know) of the Java 6 beta on OS X seem worth posting here. Not that you need Java 6 for Robocode, but you might for some bots.

--Voidious 14:33, 11 May 2009 (UTC)

I tried it before I posted it, it worked for me (the ".command" rename thing). It opened a terminal and started robocode also. I just didn't know if it would work for sure across systems. --BenHorner 23:30, 11 May 2009 (UTC)
Just tried it... neat! --Darkcanuck 01:01, 12 May 2009 (UTC)
Voidious, I'm not a Mac user, but I can say the 1.7.1 work a LOT faster, at least in Windows. I was once run a roborumble client using 1.7.1.2alpha (checked out from SVN) with UPLOAD=NOT. That time I run only nanobot battles and I got a battle per second! And the best thing is you don't need to wait for Initializing version check date =) I don't think you need 1.7.1.1, version 1.7 with new picocontainer is faster than old one. The only reason to grab the 1.7.1 is for new repository, and 1.7.1.1 is for a brunch of bugfixed. » Nat | Talk » 15:20, 11 May 2009 (UTC)

I'd vote to mostly redo this page. The installer has worked fine under Tiger & Leopard for every version I've tried since 1.5.4 (and many before that). The instructions are incorrect since you need to run robocode.sh, not the robocode.jar file. By running the shell file, the correct paths are set so all files can be found. Speed-wise, the post 1.6 versions may be faster when minimized or run as a rumble client since the graphics code is now separate from the game engine. Are there any other Mac users who've had trouble installing or running the robocode.sh file? --Darkcanuck 16:30, 11 May 2009 (UTC)

There are no threads on this page yet.