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 > Call To Power II > CtP2-Source Code Project > COMPILE: Getting the source to compile on VS.NET
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
CivGroups
CTP2 Source Code Project (59): Not a Member - Join

bottom of page
  
Author
Thread   
Pages (3): [ 1   2   3   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
kaan is offline kaan
Prince
Aarhus
Mar 2001
time: 05:31
  Old Post 04-07-2004 01:48
Edit/Delete Message Reply w/Quote
#61 Report this post to a moderator
Re: Success Support Apolyton, buy GURPS/ Alpha Centauri

quote:
Originally posted by vovan
Don't know if anyone cares now, but I have successfully compiled the game on Visual Studio.NET just now. (That's .net 2002 + sp2, not 2003.)


thats strange, i havent been able to locate a service pack for visual studio .NET 2002
do you have a link?

kaan is offline kaan
Prince
Aarhus
Mar 2001
time: 05:31
  Old Post 05-07-2004 20:55
Edit/Delete Message Reply w/Quote
#62 Report this post to a moderator
Support Apolyton or Terrorists Win

I managed to get the source to compile and i even played a few turns.

ill recreate it in a few days time, document it properly and make a patch with the code.

kaan is offline kaan
Prince
Aarhus
Mar 2001
time: 05:31
  Old Post 08-07-2004 09:25
Edit/Delete Message Reply w/Quote
#63 Report this post to a moderator
Help yourself to an AD-FREE life

I have made a codepatch containing all that is needed for compiling in .NET.
Thank you for making it possible guys

Someone please confirm that it also works outside my computer.

Here is the readme

quote:

Instructions for compiling CTP2 in .NET

Please note that this code patch is based on 2004.06.05.CTP2.All.zip
To achieve 0 compile errors the multiplayer part of the game has been modified and is now broken, please dont use it.
The fact that this example uses C:\ for all installs is no coincidense.
You can use other drives (i normaly use E:\ without problems) but please use one drive for everything.
Information collected and codepatch made by Klaus Kaan. As always im standing on the heads of giants.

First of all start by installing CTP2 to C:\CTP2 or whereever you want it, if you dont install it to C:\CTP2 please make corrections accordingly.

Download the files "DirectX 9.0 Software Development Kit Update (Summer 2003)" and "DirectX Media 6.0 SDK" from microsoft and installed them in these directories:

DirectX sdk: C:\DX90SDK
DirectX Media sdk: C:\DXMedia

Pick up the sourcecode patch from Activision on Apolyton and install it to C:\CTP2

Create the directory C:\CTP2\ctp2_code\libs\directx\lib and copy the contents of C:\DX90SDK\lib into it

Create the directory C:\CTP2\ctp2_code\libs\dxmedia\lib and copy the contents of C:\DXMedia\lib into it

Pick up the latest sourcecode patch from Apolyton (currently named 2004.06.05.CTP2.All.zip) and extract the contents to C:\CTP2

Extract the contents of the DOTNET patch to C:\CTP2

Create the directory C:\tmp

In order to build, you need an environment variable named CDKDIR on your computer. In Windows XP/2000, go to Control
Panel->System->Environment Variables, and add it, with it's value set to C:/ctp2/bin

Start visual studio and open the file C:\CTP2\ctp2_code\ctp\civctp.dsw
It will ask wheather you want to convert to Visual C++ 7.0, select "Yes To All".

If you have visual sourcesafe installed there will be an error message concerning that the project isnt in it. select "ok" and then "Work disconnected".

In the solution explorer select the project "ctp2", right click it and choose "Set as StartUp Project".

Goto the menu Tools->Options

In the menu on the left hand side select "Projects" and "VC++ Directories".
Platform should read "win32" and "Show directories for" should read "Executable files".
Add a new line at the top of the list and point it to "C:\CTP2\bin".
Change "Show directories for" to "Include files"
Add these 3 lines to the top of the list:

C:\DX90SDK\Include
C:\DXMEDIA\classes\base
C:\DXMEDIA\include

Change "Show directories for" to "Library files"
Add these 2 lines to the top of the list:

C:\DX90SDK\Lib
C:\DXMEDIA\lib

Click the "Ok" button.

Goto the menu Project->Properties

In the menu on the left hand side select "Linker" and "Input".
In the line "Additional Dependencies" change the entry "..\libs\anet\win\lib\anet2d.lib" to "..\libs\anet\win\lib\anet2.lib"

In the menu on the left hand side select "C/C++" and "Preprocessor".
"Configuration:" should read "Active(Debug)".
In the line "Preprocessor Definitions" add the definition DOTNET
Change "Configuration:" to read "Release" (choose yes to save if it asks).
In the line "Preprocessor Definitions" add the definition DOTNET

There, you should be all set now, good luck :-)

Attachment: 20040708.ctp2_for_dotnet.zip
This has been downloaded 8 time(s).

 
Pages (3): [ 1   2   3   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:31.
Apolyton Time is 00:31.
    top of page
Rate This Thread:
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.0367 seconds (87.22% PHP - 12.78% MySQL) with 36 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