Menu

Packaging Robocode 1.9.2.3 for Debian

Help
2014-10-21
2014-10-22
  • Markus Koschany

    Markus Koschany - 2014-10-21

    Hello,

    I am the new maintainer of Robocode for Debian and I'm in the process of updating the whole package to version 1.9.2.3. I have already successfully managed to build Robocode with the sources from sourceforge but the game won't start for still unknown reasons. When I use the pre-compiled setup.jar file from sourceforge everything works as intended.

    I have already found out that my self-compiled version of robocode.ui-1.9.2.3.jar behaves differently from the one provided in your setup.jar package. As soon as I replace robocode.ui-1.9.2.3.jar with the one from sourceforge the compiled game works.

    However I don't understand what is or went wrong. I also made sure that Debian's Java dependencies are not to blame and used Maven to automatically download jar files from the Internet but I still get the same result.

    I'm now at a point where I have run out of ideas. How can I debug the problem? There are no error messages when I start Robocode. I only see those messages and then nothing else happens:

    Loaded net.sf.robocode.api
    Loaded net.sf.robocode.core
    Loading plugins from /usr/share/java
    Loaded net.sf.robocode.host
    Loaded net.sf.robocode.ui.editor
    Loaded net.sf.robocode.ui
    Loaded net.sf.robocode.battle
    Loaded net.sf.robocode.sound
    Loaded net.sf.robocode.repository
    No robocode.properties. Using defaults.

    Any pointer or help would be appreciated. Btw I must use OpenJDK7 to compile Robocode. I can neither use OpenJDK6 because it is going to be removed from Debian nor can I use the non-free compiler from Oracle.

     
  • Markus Koschany

    Markus Koschany - 2014-10-21

    I have finally found the root cause of this issue. Appartently all image files were uploaded in ASCII mode instead of Binary mode. The game cannot load the files and silently fails. Please upload a new source release for version 1.9.2.3, robocode-1.9.2.3-src.zip. The tarball from Github is not affected.

     
  • Flemming N. Larsen

    Hi Markus,
    I am happy to hear that Robocode 1.9.2.3 will be made available as a Debian package.
    Thanks for putting so much effort into this. :-)

    I am not sure, what really causes the issue with the image files. Normally the problem with ASCII vs BINARY format only arises when uploading and downloading files to and from FTP -- but not with ZIP files.
    We use Maven for packaging the sources into a .zip file, which treats all files as binary files. As far as I know, this is also the case for the files on GitHub.

    Perhaps the problem arises when unzipping the zipped source archive on the system? Could it be related to how the PNG mime type is being handled?

    If the problem must be fixed for the zipped source archive, then I need to know exactly what to do so Debian will unzip the image files as binary files.

     

    Last edit: Flemming N. Larsen 2014-10-22

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.