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
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 (8): [ <<   2   3   4   5   6   7   8   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 02-11-2003 20:55 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#121 Report this post to a moderator
Suffering from ads?

Locutus my idea was to use the clean order from the menue and just recompile everything again. Afterwards I replaced my dummy mss.h with the stub from this thread and replacing the altered sound files by the original ones my VC6 rejected to rebuild the *.exe it just told that there were no errors, but there no recompiling no relinking. The file was definatly the same from last night. But fortunatly the recompiling worked. So I can try again to add the pollution graph.

-Martin

ErichG is offline ErichG
Settler

Nov 2003
time: 05:31
  Old Post 02-11-2003 23:24
Edit/Delete Message Reply w/Quote
#122 Report this post to a moderator
Re: Re: VS6 to VS.NET conversion Support Apolyton buy from Amazon

quote:
Originally posted by mjs0


Well...for VS.NET this approach fixed all the custom build errors so the calls to flex, byacc, ctpdb et al ran successfully.

Now I just have the compiler problems (3275 errors and 1486 warnings) to resolve!!

Martin.


How far did you get with VS.net? There have been successfuk builds with VC6. With VS.net I had trouble with STL - Looks like the Bidit template has gotten 2 more params. Has anyone got a compliable version for VC7?

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 03-11-2003 02:21 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#123 Report this post to a moderator
VS6 to VS.NET conversion Tired of ads?

quote:
Originally posted by ErichG
How far did you get with VS.net? There have been successfuk builds with VC6. With VS.net I had trouble with STL - Looks like the Bidit template has gotten 2 more params. Has anyone got a compliable version for VC7?


See http://apolyton.net/forums/showthre...threadid=100314

MrBaggins is offline MrBaggins
King

May 1999
time: 05:31
  Old Post 04-11-2003 00:39
Edit/Delete Message Reply w/Quote
#124 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

I've now got my Visual Studio disks, just finished installing those, plus the SP.

Followed the info, and just compiled the debug exe successfully. *chuckles* Its pretty slow, eh?

Just seeing if the final compiles OK.

Having the code actually working should help my ability to contribute to the project. *smiles*

Joss is offline Joss
Settler

Nov 2003
time: 05:31
  Old Post 05-11-2003 00:22
Edit/Delete Message Reply w/Quote
#125 Report this post to a moderator
Increase the size of your Attachments

Hi,
Hi have the great_libary.txt problem, too. But ctp2_code and ctp2_data are at the same level:
\ctp2\ctp2_code\ctp
\ctp2\ctp2_data

I think it has to do with my German version of CTP2. Can someone help me?

Last edited by Joss on 05-11-2003 at 00:34

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 05-11-2003 00:42 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#126 Report this post to a moderator
Get a bigger avatar today!

Joss go into the ..\ctp2_code\ctp\ directory and open there the civpath.txt find there a string english and replace it by german or copy the civpath.txt from your ctp2_program\ctp\ directory to the project directory.

-Martin

Solver is offline Solver
Apolyton Duke Of Something
Latvia, Riga
Sep 2000
time: 07:31
  Old Post 05-11-2003 20:03 Visit Solver<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#127 Report this post to a moderator
Get a bigger avatar today!

BTW, did anyone else have any problems with playing the original CtP2 after running the compiled one? I did, but was able to solve those by just replacing the Registry entries...

Raster is offline Raster
Settler

Nov 2003
time: 05:31
  Old Post 05-11-2003 21:19
Edit/Delete Message Reply w/Quote
#128 Report this post to a moderator
Miles sound system. Support Apolyton

Does CtP2 use the DLL version of the Miles Sound system? (I don't have the CD yet).

Couldn't you build a lib from the dll, and manually rebuild the header?

I found a source of the MSS32.dll, http://www.dll-files.com/dllindex/dll-files.shtml?mss32

But, that should be on the cd, or somewhere on the computer after install. (possibly \Windows\System or \Windows\System32, if not in the same directory as the exe)

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 05-11-2003 21:22 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#129 Report this post to a moderator
Re: Miles sound system. Support Apolyton, buy GURPS/ Alpha Centauri

quote:
Originally posted by Raster
Couldn't you build a lib from the dll, and manually rebuild the header?


Yep, and someone already has. See http://apolyton.net/forums/showthre...116#post2459116

MrBaggins is offline MrBaggins
King

May 1999
time: 05:31
  Old Post 05-11-2003 21:26
Edit/Delete Message Reply w/Quote
#130 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

We're a couple of steps ahead of you, chief. mss32.dll was always included with the regular game. It gets installed. Being that the game will always be installed first, prior to any patch or replacement .exe that we provide, its not a problem.

And we actually seem to have some movement on including sound, period...

See this thread.

Joss is offline Joss
Settler

Nov 2003
time: 05:31
  Old Post 06-11-2003 01:28
Edit/Delete Message Reply w/Quote
#131 Report this post to a moderator
Support Apolyton buy from Amazon

@Martin Gühmann:
Did this work by you? Now the meassagebox that he cant find greatlibary.txt doesnt appear but the assert failure is still their. Does the exe need more than the data director because i copyed only this from the install into my ctp directory?

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 06-11-2003 21:27 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#132 Report this post to a moderator
Put an end to popups!

Joss you mean the assert that you get on startup? So far I just ignored it. But of course it needs to be fixed.

-Martin

Joss is offline Joss
Settler

Nov 2003
time: 05:31
  Old Post 07-11-2003 22:03
Edit/Delete Message Reply w/Quote
#133 Report this post to a moderator
Put an end to popups!

but then the games doesnt run :-)
not so cool

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 07-11-2003 23:57 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#134 Report this post to a moderator
Get a bigger avatar today!

Joss, do you mean the ..\ctp2_code\ui\interface\greatlibrary.cpp Line: 334
Expression: entry_pos < MAX_ENTRY - 6

Assertion?

If yes just press the ignore button and continue.

-Martin

kaan is offline kaan
Prince
Aarhus
Mar 2001
time: 05:31
  Old Post 09-11-2003 04:53
Edit/Delete Message Reply w/Quote
#135 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

I have compiled the game as described by Mr. Ogre now.
That means that i have no sound but everything works fine.
I have compiled and tested the following setups:
Release
Debug
Final
NDebug
Test
Optimized Test

The Release version runs fine without anything special to note.
The Debug version needs the file anet2d.dll in the game dir, it can be found in the source dir with the .exe. While running debug the game complains about an assertion failing because some soundmanager var is NULL. I press the "Ignore"button and the game carries on unaffected until next turn when the same error pops up again.
The Final version came with two warnings about some unused local vars and it ran fine (I actually think it was a bit faster at runtime than the release vesion).
The NDebug version compiled with one warning and ran like the normal versions without a glitch.
The Test version on the other hand comes up with no less than 244 errors an 15 warnings. I think it is safe to conclude that this build is far from the CD release version.
The Optimized Test version only has 2 errors so it is probably more up to date.

I would like to hear if anyone has got a clue to what the different builds are meant to be for.
The Debug_browse version has an explenation earlier in this thread and the regular debug version sort of explain itself. But what about the rest?
What is the difference between Release, Final and NDebug?
Is Test and Optimized Test just leftovers from the past or is it a playground?
Is Leak a testsetup for memory leaks?

Update:
I just had the idea to eject the CTP2 cd from the drive and see if it made any difference, and it did!
The exe from the CD had CD check on.
The Final exe had CD check on.
The Debug exe had no CD check.
The Release exe had no CD check.
The NDebug exe had no CD check.

Now i have tried with the 1.11 patch and there were no difference.
The 1.11 exe had CD check on.

kaan

Last edited by kaan on 09-11-2003 at 06:52

ahenobarb is offline ahenobarb
Prince

Nov 2001
time: 05:31
  Old Post 09-11-2003 08:24
Edit/Delete Message Reply w/Quote
#136 Report this post to a moderator
Support Apolyton

Well, my copy of MS VC++ finally arrived today. It should have arrived days a couple days ago, but they shutdown all our post offices for fear of anthrax (are they ever going to catch that a$$?), but I bumped into the postman and he gave me the package.

In a few short hours I have successfully COMPILED THE CODE WITH NO ERRORS!!! Also, the sound is working perfect. Thanks jonwil!! ... and I have played several turns with no crashes!!!



I do get the assertion failure on shutdown however, but still...
THe advantage of building the way that is outlined in the attached file (not that this will work for everyone) is that it requires absolutely NO CHANGES TO THE SOURCE CODE to get it to compile. Therefore, it does not create a compiler compatibility problem later on.

It took some time because most of the information on what to do is scattered all over the place. So... I went ahead and put together an .rtf file explaining how to compile the code with MS VC++ 6.0 and Windows 98SE (It seems Martin and I are in the same boat). Thanks for asking all the questions earlier in this thread Martin, I followed that like scripture!

[aside: Where are my dancing bananas? You know, like this one -> ?]

Attachment: how to compile ctp2 source code.rtf
This has been downloaded 114 time(s).

Last edited by ahenobarb on 09-11-2003 at 08:42

Keygen is offline Keygen
Emperor
Athens, Hellas
Jan 2000
time: 07:31
  Old Post 12-11-2003 00:08 Visit Keygen's homepage!
Edit/Delete Message Reply w/Quote
#137 Report this post to a moderator
Support Apolyton, buy Call to Power 2

I followed ahenobarb's steps and the code compiled and run successfully under Windows XP Professional with Service Pack 1. I got the assertion messages too after exiting the game. Good work there gathering all the information into a single file

Keygen is offline Keygen
Emperor
Athens, Hellas
Jan 2000
time: 07:31
  Old Post 12-11-2003 00:20 Visit Keygen's homepage!
Edit/Delete Message Reply w/Quote
#138 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

Here's the log file for the CivCTP_dbg.exe compilation in case someone wants to take a quick look at the files that are associated with CivCTP_dbg.exe (the debug version of the ctp2.exe).

Attachment: output - build.zip
This has been downloaded 5 time(s).

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:31
  Old Post 12-11-2003 00:58 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#139 Report this post to a moderator
Support Apolyton buy from Amazon

just what i wanted ahenobarb

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:31
  Old Post 12-11-2003 03:08 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#140 Report this post to a moderator
Lose 30 kilos (of popups)

Woohoo it worked Thanks ahenobarb

i got the same 2 exit errors too.

ahenobarb is offline ahenobarb
Prince

Nov 2001
time: 05:31
  Old Post 12-11-2003 08:56
Edit/Delete Message Reply w/Quote
#141 Report this post to a moderator
Put an end to popups!

Happy to help!

And it is good to see that it worked on different OS platforms.

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:31
  Old Post 12-11-2003 13:53 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#142 Report this post to a moderator
Full PM-box? Change here!

i set some time apart from my version of hell which is my life to compile the code has your guide got the sound working

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:31
  Old Post 12-11-2003 14:14 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#143 Report this post to a moderator
Full PM-box? Change here!

Well i was using Win98SE and MS Visual C++ 6 too, so it was straight forward following the guide, thankfully.

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:31
  Old Post 12-11-2003 14:58 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#144 Report this post to a moderator
Get a bigger avatar today!

yes but did it have sound

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:31
  Old Post 13-11-2003 01:06 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#145 Report this post to a moderator
Support Apolyton

yep

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:31
  Old Post 13-11-2003 02:10 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#146 Report this post to a moderator
Tired of ads?

good

berXpert is offline berXpert
King
Home :)
Jan 2001
time: 23:31
  Old Post 13-11-2003 22:29 Visit berXpert's homepage!
Edit/Delete Message Reply w/Quote
#147 Report this post to a moderator
Support Apolyton buy from Amazon

Thx ahenobarb,

I follow your directions and I've compiled on WinXP VC++ 6.0

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:31
  Old Post 13-11-2003 22:55 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#148 Report this post to a moderator
Help yourself to an AD-FREE life

on xp did you edit Autoexec.bat

berXpert is offline berXpert
King
Home :)
Jan 2001
time: 23:31
  Old Post 14-11-2003 05:46 Visit berXpert's homepage!
Edit/Delete Message Reply w/Quote
#149 Report this post to a moderator
Get a bigger avatar today!

What file is that?

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:31
  Old Post 14-11-2003 19:16 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#150 Report this post to a moderator
Put an end to popups!

quote:
2. Go to the Root Directory of your computer (C:\) and open “Autoexec.bat”. In “Autoexec.bat” add the following lines:
SET CDKDIR=C:\Activision\CTP2\bin
SET PATH=%PATH%;C:\Activision\CTP2\bin

 
Pages (8): [ <<   2   3   4   5   6   7   8   ]
< 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.0653 seconds (91.38% PHP - 8.62% 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