Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By pbrockway2

Thread: rewrite dos abandonware games to java

  1. #1
    Join Date
    Mar 2012
    Posts
    2
    Rep Power
    0

    Default rewrite dos abandonware games to java

    Hi all,

    I verrrry recently ( = 3 weeks ago )started learning java, this for the sole purpose of rewriting old dos games to run as a java game on my android tablet and/or android cellphone.

    I would like to know this though:

    how do I decompile a single .exe file in order to read the program, so i see how the program works in order to rewrite into java?

    what's used best?

    to give an example of these abandonware games, one of my favourites when i was a kid is Alley Cat : Best Old Games | Alley Cat download [eng]

    it's a very small file as you can see, and beginner as i am, i have no clue on how to read that file in order to make things work on java.

    any help is greatly appreciated!

    thanks in advance!

    Izzy

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default Re: rewrite dos abandonware games to java

    I am not at all sure that decompiling the executable files is the way to proceed.

    First of all it will probably result in code that is cryptic, at best, when compared with a higher level language. Secondly there is no reason to think that a program written in Java will correspond, step by step, with its counterpart written in some other language. In other words the original source code (which you don't get from merely decompiling) would offer, at best, hints about how to proceed in Java.

    There is an alternative, and that it to write the Java version from scratch. If the games are simple they might be good candidates for such "reverse engineering".

    In any case a good knowledge of Java is required and there's no "royal road" to acquiring that knowledge. I don't say this to put you off - in fact the games (or cut down versions of them) might be just the thing to experiment with as you are learning the language. You don't say how much of a beginner you are, but at the very beginning the games you write will be very cut down(!). As you make progress you should be able to make more and more acceptable Java versions. Basically you move from only being able to write simple things based on what you already know, to having the games suggest areas you want to find out about (graphics, timers, etc) and, thereby, guide your learning rather than merely follow it as textbook exercises do.

    Good luck!
    KevinWorkman likes this.

  3. #3
    Join Date
    Mar 2012
    Posts
    2
    Rep Power
    0

    Default Re: rewrite dos abandonware games to java

    Quote Originally Posted by pbrockway2 View Post
    I am not at all sure that decompiling the executable files is the way to proceed.

    First of all it will probably result in code that is cryptic, at best, when compared with a higher level language. Secondly there is no reason to think that a program written in Java will correspond, step by step, with its counterpart written in some other language. In other words the original source code (which you don't get from merely decompiling) would offer, at best, hints about how to proceed in Java.

    There is an alternative, and that it to write the Java version from scratch. If the games are simple they might be good candidates for such "reverse engineering".

    In any case a good knowledge of Java is required and there's no "royal road" to acquiring that knowledge. I don't say this to put you off - in fact the games (or cut down versions of them) might be just the thing to experiment with as you are learning the language. You don't say how much of a beginner you are, but at the very beginning the games you write will be very cut down(!). As you make progress you should be able to make more and more acceptable Java versions. Basically you move from only being able to write simple things based on what you already know, to having the games suggest areas you want to find out about (graphics, timers, etc) and, thereby, guide your learning rather than merely follow it as textbook exercises do.

    Good luck!
    It is indeed as you say very cryptic and weird code that's beyond my grasp for understanding :s. I indeed plan to write those programs from scratch, but my goal with this reverse engineering was mainly intended to use original files from the games like backgrounds, images and static objects. try alleycat and you'll see what i mean :) (use dosbox to load it since it won't work on a w7 or vista OS)
    tx for the quick reply though!

  4. #4
    fatabass is offline Senior Member
    Join Date
    Nov 2011
    Location
    Turkey
    Posts
    380
    Blog Entries
    24
    Rep Power
    4

    Default Re: rewrite dos abandonware games to java

    omg.. this game.. :) brings good memories.. thanks for asking this question :)

Similar Threads

  1. Replies: 0
    Last Post: 03-03-2012, 11:16 AM
  2. Help with Java interaction with flash games?
    By Yoni201 in forum New To Java
    Replies: 3
    Last Post: 01-30-2012, 02:28 AM
  3. Replies: 0
    Last Post: 09-07-2011, 01:43 PM
  4. JAVA based site. Games over IP
    By AndreiM in forum Jobs Offered
    Replies: 3
    Last Post: 08-02-2011, 08:28 AM
  5. Replies: 3
    Last Post: 07-16-2007, 12:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •