Announcement

Collapse
No announcement yet.

You don't need the source code to make Civ2 better...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #61
    As a programmer, I thought I should probably make some comments on this topic. Firstly, Mercator is right in that all things can be done in assembly without the source code using assembly language. That being said, anything but the most basic of hacks (hacks meaning thrown together code to achieve a particular result) would be extremely difficult. By extremely difficult I mean it would likely be easier to code Civ 2 again from scratch than go into assembly and do some of the changes suggested in this thread. To put it in perspective, each line of c++ code translates into a large number of lines in assembly (ranging anywhere from ~10 lines to ~100 lines of assembly code per line of c++ code). Also, you get no complex structures in assembly. No loops, no if - then statements, no functions. All of these must be handled by hand. You also must handle all of the memory management by hand, including loading file segments into memory. You also get no data types, everything is a WORD or a BYTE (word meaning a number of bytes totaling the word size of the processor (generally 2 - 4 bytes).

    What it boils down to is that I probably could figure out how to do everything you wanted done, but I would need a lot of time and incentive to do so. That doesn't even get me into the legal issues of playing around with software that has a copyright without permission. I probably would be able to do the changes legally if I did it for free, BUT as I have already said I would need compensation for undertaking a project this large.

    If I were looking to do this, I would not look into changing the assembly code by hand. Rather I would look into ways of inserting compiled C or C++ code into another executable. This would require some in depth knowledge of both C and assembly, but would likely end up much easier than changing things in assembly.

    Before I did anything, I would also make sure I was not going to violate the copyright.

    Sorry for the long post, but there are a lot of issues involved in this, and I wanted those in this thread to be aware of some of them. Hopefully I did not discourage you guys too much, because it would be cool to get some of these things done.

    StuporMan
    Man had always assumed that he was more intelligent than dolphins because he had achieved so much - the wheel, New York, wars and so on - whilst all the dolphins had ever done was muck about in the water having a good time. But conversely, the dolphins had always believed that they were far more intelligent than man - for precisely the same reasons.

    StuporMan's Supply and Demand Calculator
    Supply and Demand Calculator 2.0.1 Beta Now loading savegames!

    Comment


    • #62
      This also reminds me of that Korean bioengineer

      Comment


      • #63
        I think we may need a Dalek to do the coding required!

        http://sleague.apolyton.net/index.php?title=Home
        http://totalfear.blogspot.com/

        Comment


        • #64
          Below is a link on DLL patching, this would most likely be the easiest way to modify Civ 2 the way you want as it allows code insertion from compiled sources instead of assembly code (as I referenced at the end of my last post). Sorry I did not include this earlier, but it has been a while since I have looked into complex game modifications.

          DLL Patching

          StuporMan
          Man had always assumed that he was more intelligent than dolphins because he had achieved so much - the wheel, New York, wars and so on - whilst all the dolphins had ever done was muck about in the water having a good time. But conversely, the dolphins had always believed that they were far more intelligent than man - for precisely the same reasons.

          StuporMan's Supply and Demand Calculator
          Supply and Demand Calculator 2.0.1 Beta Now loading savegames!

          Comment

          Working...
          X