Announcement

Collapse
No announcement yet.

I'm hacking

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

  • I'm hacking

    Imagine this:

    When you open a city window and you have 5 shields towards a settler. You hit Ctrl+B. A window appears asking how many shields you want to buy: 20, 30, or 40 (you have just discovered feudalism so warrior is not on the list). You choose 30 and hit enter -- suddenly you have 30 shields towards the settler, with appropriate amount of money deducted from your treasury.

    The version will be MGE. I have gathered all necessary information and now I'm writing the program.

    Since I have never written a trainer type program I may need help. Please give your opinions and comments here.

    Thanks!

  • #2
    I was ready to make a smart remark about how I smoke too.

    What about buying off advances?
    Sure many a time I'd like to hurry along faster that I'm able to.
    Life is not measured by the number of breaths you take, but by the moments that take your breath away.
    "Hating America is something best left to Mobius. He is an expert Yank hater.
    He also hates Texans and Australians, he does diversify." ~ Braindead

    Comment


    • #3
      Sounds great. The AI can apparently do this (incremental buying). Not sure it can do that with beakers too.
      No matter where you go, there you are. - Buckaroo Banzai
      "I played it [Civilization] for three months and then realised I hadn't done any work. In the end, I had to delete all the saved files and smash the CD." Iain Banks, author

      Comment


      • #4
        Very nice..although i won't be able to use it(Mac) but maybe we'll use yours as a kinda template.

        This will be excellent for scenarios.And..if it works well,could save oodles of time in MP games.
        The only thing that matters to me in a MP game is getting a good ally.Nothing else is as important.......Xin Yu

        Comment


        • #5
          No, Smash, not for multiplayer. Two reasons. First, it is more difficult to hack multiplayer and I'll have less help with it (most websites only have single player hacking tutorials). Secondly, if I release a multiplayer version then it can easily be used for cheating -- somebody can easily change my program and cheat in a multiplayer game (like, give himself a lot of money and buy units for free).

          As for Mac, hope that it has similar functions as windows system's 'readfrommemory' and 'writetomemory'.

          Comment


          • #6
            Sounds great Xin - Please send me your results - and I wouldn't mind your PMing me the urls of those hacking sites ...
            "Our words are backed by empty wine bottles! - SG(2)
            "One of our Scouse Gits is missing." - -Jrabbit

            Comment


            • #7
              I apologize for asking, but what the hell good would this hack be for?
              I'm
              I see the world through bloodshot eyes
              Streets filled with blood from distant lies.

              Comment


              • #8
                I assume the hack is intended to implement incremental buying benefits without having to keep changing and rushbuilding more expensive units to get what you want. It will be nice if you can do it.

                While you're at it, see if you can make a hack that automatically causes your civ to revolt in a future turn if you tell it to. I'm sick and tired of forgetting to revolt in oedo years. Really I am.
                "I think the advantages by the proposal which I have made are obvious and many, as well as of the highest importance."
                Jonathan Swift

                Comment


                • #9
                  So basically its just another tool to help lazy people

                  An Oedo year alert would be nice too
                  I see the world through bloodshot eyes
                  Streets filled with blood from distant lies.

                  Comment


                  • #10
                    Progress: Compiled the C++ program with no error/warning. However the dialogue box wouldn't show when running. Either I did not get the program name right (I used "Civilization II Multiplayer Gold"), or my function call of CreateDialog (a win95 function) was not working properly . Another problem is with IsKeyPressed function (another win95 function) since I do not know what string should be used for Ctrl-B as I have only seen examples for F1-F10 before .

                    It was all caused by using Visual C++ codes which I copied from somewhere on the web. I used them to generate a dialogue box but they failed me. It was too time-consuming to generate a C++ code for the same functions. All other parts of the program was in C++ and I have no problem with them.

                    Once it works, adding Oedo year warning to the program should be easy.

                    Comment


                    • #11
                      Xin Yu,
                      how do you find out the status of the game? and how the program changes shields and gold?

                      I suppose that your program must save the game, search through a savefile, then modify it and load the game?
                      Is the savegame format known generally or did you have to find out a placement of gold and shield within the savefile?



                      Why do I ask you?
                      Originally posted by drake
                      An Oedo year alert would be nice too
                      It is not only the problem of Oedo years: you have to remember future plans constantly.
                      I will start a new thread: I am not hacking yet (a general reminding program)
                      Civ2 "Great Library Index": direct download, Apolyton attachment

                      Comment


                      • #12
                        *Bump*

                        I have tried a lot of things but couldn't get Visual C++ to work for me. Every time I compiled and linked correctly but the **** graphic window never showed (I got several run time errors, was able to get them down to one but that last one sticked to my program and won't leave). So I bought some books and from the attached CDs I found some useful VC++ programs -- at least they work. Now I'll start from those programs and add new functions for game hacking.

                        Again, any suggestions and comments?

                        Comment


                        • #13
                          Well, guess what, I have successfully modified a program and now whenever civ2 MPE is running the white civ will have 30000 golds reguardless how much it spends. Now I need to refine the interface and add more functions to the program.

                          The first step toward success!

                          Comment


                          • #14
                            I choose the Romans next time we play, Xin.
                            "I think the advantages by the proposal which I have made are obvious and many, as well as of the highest importance."
                            Jonathan Swift

                            Comment


                            • #15
                              Now the program will give the current player (regardless which civ it is) 30000 golds if he changes production. I plan to use the 'change production' window to trigger money and shield update since this will prevent people from buying part of the production for unique units in some scenarios.

                              The money did change, however the change won't appear on the title bar until I change to another city or close the city window and open it again. Similarly, after return to the map screen I have to click on the map to change cursor position or open and close a city window to update the money amount shown on the right side.

                              Comment

                              Working...
                              X