Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Archive > Civ2-Strategy-Archive > I'm hacking
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Xin Yu is offline Xin Yu
King
Emeryville, CA, USA
Jan 1970
time: 21:14
Lightbulb  Old Post 23-05-2001 23:28 Visit Xin Yu's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
I'm hacking Support Apolyton, buy Galactic Civilizations: Deluxe Edition

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!

SlowwHand is offline SlowwHand
King
of The Cooler
Sep 1999
time: 23:14
Question  Old Post 24-05-2001 00:14 Visit SlowwHand's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

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.

Blaupanzer is offline Blaupanzer
Prince
Fairfax, VA
Oct 2000
time: 00:14
Wink  Old Post 24-05-2001 01:10
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Tired of ads?

Sounds great. The AI can apparently do this (incremental buying). Not sure it can do that with beakers too.

Smash is offline Smash
Emperor
Civ2 Diehard
Jul 1999
time: 21:14
  Old Post 24-05-2001 01:41
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton buy from Amazon

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.

Xin Yu is offline Xin Yu
King
Emeryville, CA, USA
Jan 1970
time: 21:14
Post  Old Post 24-05-2001 02:47 Visit Xin Yu's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Suffering from ads?

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'.

Scouse Gits is offline Scouse Gits

Emperor
Liverpool, United Kingdom
Nov 1999
time: 05:14
  Old Post 24-05-2001 14:54 Visit Scouse Gits<br><a href=/members><img src=/forums/images/lifer-icon.gif border=0></a><BR>'s homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

Sounds great Xin - Please send me your results - and I wouldn't mind your PMing me the urls of those hacking sites ...

drake is offline drake
King
Maine, US
Oct 2000
time: 00:14
Question  Old Post 24-05-2001 18:21 Visit drake's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton, buy Call to Power 2

I apologize for asking, but what the hell good would this hack be for?
I'm

Bird is offline Bird
King
South Orange, New Jersey
Jan 1970
time: 00:14
  Old Post 24-05-2001 18:53
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Increase the size of your Attachments

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.

drake is offline drake
King
Maine, US
Oct 2000
time: 00:14
Thumbs up  Old Post 24-05-2001 19:00 Visit drake's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton buy from Amazon

So basically its just another tool to help lazy people

An Oedo year alert would be nice too

Xin Yu is offline Xin Yu
King
Emeryville, CA, USA
Jan 1970
time: 21:14
  Old Post 24-05-2001 21:19 Visit Xin Yu's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Browse Apolyton AD-FREE

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.

SlowThinker is offline SlowThinker
King
homeless, Praha, Czech Republic
Jan 2000
time: 06:14
  Old Post 25-05-2001 18:33 Visit SlowThinker's homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Support Apolyton buy from Amazon

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?
quote:
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)

Xin Yu is offline Xin Yu
King
Emeryville, CA, USA
Jan 1970
time: 21:14
  Old Post 31-05-2001 01:22 Visit Xin Yu's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

*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?

Xin Yu is offline Xin Yu
King
Emeryville, CA, USA
Jan 1970
time: 21:14
  Old Post 31-05-2001 07:43 Visit Xin Yu's homepage!
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Enter the AD-FREE zone

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!

Bird is offline Bird
King
South Orange, New Jersey
Jan 1970
time: 00:14
  Old Post 31-05-2001 23:33
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

I choose the Romans next time we play, Xin.

Xin Yu is offline Xin Yu
King
Emeryville, CA, USA
Jan 1970
time: 21:14
Wink  Old Post 01-06-2001 01:08 Visit Xin Yu's homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Increase the size of your Attachments

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.

Xin Yu is offline Xin Yu
King
Emeryville, CA, USA
Jan 1970
time: 21:14
Thumbs up  Old Post 05-06-2001 11:31 Visit Xin Yu's homepage!
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Got spare money?

OK, I have a workable version now. There's a lot more to do but I'd like to have people testing it. If you are interested please respond and give me your e-mail address. It's just a test version so no need to post it for downloading.

I don't have a readme file yet so I'll just post it here:

System Requirement:

Windows version: Win ME (should work under Win95 and Win 98 as well, not sure about NT and 2000).

Civ version: must be MPE (UCC, FW, etc. doesn't work).

Installation:
Unzip LazyCiv.zip, you'll see a file named LazyCiv.exe. Put it anywhere in your hard drive (remember the path). Run the file from windows explorer while civ2 MPE is running (you can either run LazyCiv first or after civ2 is activated).

Run-Time Help:
When you open a city window and change production type, the LazyCiv program will kick in and a window will pop up. It has three buttons: 'About', 'Purchase 10 shields', and 'Finish'.

Each time you click on 'Purchase 10 shields' button, your shield production will increase by 10 while your treasury decreasing by 25. After apropriate number of clicks you click on 'Finish', the LazyCiv window will disappear.

You will NOT see changes immediately. Shield changes will appear after you click on the 'OK' button on the lower-right edge of the 'change production type' window. Money will change after you move to another city or close then re-open the city window. Money on the side bar after you close the city window will change after you right-click on the map to change the cursur position.

There is no limit in money spending -- you can get a negative treasury if you keep on buying. Also you may purchase too much for the current unit. These will be fixed in the next version.

Warning 1: you MUST not change production type (e.g., from city improvement to unit) while purchasing -- you may lose half of your purchased shields! When you need to change type, simply click Finish in LazyCiv, then do the change and click OK. Afterwards you can re-open the change production window to purchase.

Warning 2: you MUST use the 'OK' button to quit the change production window. If you use 'Auto' then cancel or the like you'll lose any purchased shields and you cannot get your money back.

I know a way to fix the above problems but it will need A LOT more searching into the memory and will cause the program to run slower. I can't decide now whether to deal with them in the program or let you take care of them.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:14.
Apolyton Time is 00:14.
    top of page
Rate This Thread:
archivepost
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0435 seconds (90.94% PHP - 9.06% MySQL) with 31 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net