Civ Assist For Civ4

stealingjoy

Chieftain
Joined
Feb 3, 2007
Messages
3
Hello there.

I remember when playing Civ3 there was a nifty program called Civ Assist that would provide a variety of game information in a nifty window with menus and tabs and such. I'm interested in doing something in a similar fashion, but with additional features (such as running counts of total battles lost & won, total gold earned, and other kind of statistics). I have a decent amount of experience with C++, but coming into a program that has so many source files, I'm a bit lost as to where to begin.

I've downloaded the SDK source code and such, but I don't want to mod the game, I just want to be able to access those functions for an outside program. I guess, what I'm looking for, is if someone could show me how I might go about that.

Like, for a simple example, say I wanted to use CvPlayer.cpp's getCitiesLost() function to get the number of cities lost. How can I create a project that would accomplish that? How do I actually access Civ4's gameCoreDLL (I do know where it is) to use it?

If anyone could point me on the right track for this, I would surely appreciate it. Thank you.
 
I've been doing some research and would it be true that I couldn't use the game's DLL since I don't have the associated .lib file? It would seem like such a waste to have to compile a new DLL and use it when nothing is going to be changed.

I also noticed in the source that not all functions use a DLLExport (which is just an alias for _declspec(dllexport)). I guess I would probably have to compile my own DLL if I wanted to use those that didn't have the DLLExport then, eh?
 
Back
Top Bottom