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 > Foolproof way of compiling CTP2?
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 (2): [ 1   2   ]
< 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:30
Post  Old Post 23-02-2005 20:56 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#31 Report this post to a moderator
Increase Your PM Length

The first thing I would do here is to recompile the according source files to vidplay.obj, to do this just delete that file in the folder that contains all the Release subfolder. And then just start the compiler again, it should just compile the according files.

-Martin

sekel is offline sekel
Chieftain
São Paulo
May 2004
time: 05:30
  Old Post 25-02-2005 19:11
Edit/Delete Message Reply w/Quote
#32 Report this post to a moderator
Help yourself to an AD-FREE life

I am using Visual C++ 6.0 .... could it be because I need the .NET compiler???

I found something about this error in the DirectMedia SDK Help files, and they say that I must do millions of changes in my project´s settings in order to fix this. I did and it introduced so many errors that I had to simply install the all pack again =(

I am trying to compile the Release version .... should I be compiling another version?

Are you all able to compile Source Code download + latest all pack???

The error persists. I´m thinking seriously about comenting this code out, or downloading other all pack because this one gives some error messages in the install.

-

Felipe

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:30
  Old Post 25-02-2005 19:28 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#33 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

quote:
Originally posted by sekel
I am using Visual C++ 6.0 .... could it be because I need the .NET compiler???


It should work with either.

Can you describe what include and library directories you have set in the msdev options?

quote:
I am trying to compile the Release version .... should I be compiling another version?


Debug and Final are the ones I usually compile.

quote:
The error persists. I´m thinking seriously about comenting this code out, or downloading other all pack because this one gives some error messages in the install.


What do you mean by "error messages in the install" - which install?

sekel is offline sekel
Chieftain
São Paulo
May 2004
time: 05:30
  Old Post 26-02-2005 18:25
Edit/Delete Message Reply w/Quote
#34 Report this post to a moderator
Help yourself to an AD-FREE life

quote:
Originally posted by J Bytheway Can you describe what include and library directories you have set in the msdev options?


C:\JOGOS\CTP2\CTP2_CODE\LIBS\DXMEDIA\LIB
C:\JOGOS\CTP2\CTP2_CODE\LIBS\DXMEDIA\INCLUDE
C:\JOGOS\CTP2\CTP2_CODE\LIBS
C:\ARQUIVOS DE PROGRAMAS\MICROSOFT VISUAL STUDIO\DXMEDIA\CLASSES\BASE
C:\ARQUIVOS DE PROGRAMAS\MICROSOFT VISUAL STUDIO\DXMEDIA\INCLUDE
C:\JOGOS\CALL TO POWER\CTP2_CODE\INCLUDE
C:\JOGOS\CALL TO POWER\CTP2_CODE\LIB
C:\JOGOS\CTP2\CTP2_CODE\LIBS\DXMEDIA\CLASSES\BASE
C:\JOGOS\CTP2\CTP2_CODE\LIBS\DIRECTX\LIB
C:\JOGOS\CTP2\CTP2_CODE\LIBS\DIRECTX\INCLUDE
C:\Arquivos de programas\Microsoft Visual Studio\VC98\INCLUDE
C:\Arquivos de programas\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Arquivos de programas\Microsoft Visual Studio\VC98\ATL\INCLUDE

in this order. Just noted a mistake ... the correct directory is CTP2 not Call to power. I corrected that, but the error persists.

I copyed all DirectX and DirectMedia files to ...CTP2_CODE\LIBS\... in the apropriate directory

quote:
What do you mean by "error messages in the install" - which install?


Installing 2004.12.27.CTP2.ALL.zip

The error is in the unzip process, and the program creates this log:

.........

Extraindo arquivo: C:\Jogos\ctp2\ctp2_data\french\uidata\layouts\civs
tatus.ldl OK
Extraindo arquivo: C:\Jogos\ctp2\ctp2_data\french\uidata\layouts\city
status.ldl Erro: Erro na abertura do arquivo
Extraindo arquivo: C:\Jogos\ctp2\ctp2_data\french\uidata\layouts\city
status.ldl OK
Extraindo arquivo: C:\Jogos\ctp2\ctp2_data\french\uidata\layouts\dipw
izard.ldl OK
Extraindo arquivo: C:\Jogos\ctp2\ctp2_data\french\uidata\layouts\ns_s
trings.ldl Erro: Erro na abertura do arquivo
Extraindo arquivo: C:\Jogos\ctp2\ctp2_data\french\uidata\layouts\ns_s
trings.ldl OK
Extraindo arquivo: C:\Jogos\ctp2\ctp2_data\french\uidata\layouts\scen
arioeditor.ldl OK
Extraindo arquivo: C:\Jogos\ctp2\ctp2_data\french\uidata\layouts\spne
wgamepopups.ldl OK
Extraindo arquivo: C:\Jogos\ctp2\ctp2_data\french\uidata\layouts\km_s
creen.ldl Erro: Erro na abertura do arquivo
Extraindo arquivo: C:\Jogos\ctp2\ctp2_data\french\uidata\layouts\km_s
creen.ldl OK
.................................

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:30
  Old Post 26-02-2005 18:42 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#35 Report this post to a moderator
Lose 30 kilos (of popups)

quote:
Originally posted by sekel
C:\JOGOS\CTP2\CTP2_CODE\LIBS\DXMEDIA\LIB
C:\JOGOS\CTP2\CTP2_CODE\LIBS\DXMEDIA\INCLUDE
C:\JOGOS\CTP2\CTP2_CODE\LIBS
C:\ARQUIVOS DE PROGRAMAS\MICROSOFT VISUAL STUDIO\DXMEDIA\CLASSES\BASE
C:\ARQUIVOS DE PROGRAMAS\MICROSOFT VISUAL STUDIO\DXMEDIA\INCLUDE
C:\JOGOS\CALL TO POWER\CTP2_CODE\INCLUDE
C:\JOGOS\CALL TO POWER\CTP2_CODE\LIB
C:\JOGOS\CTP2\CTP2_CODE\LIBS\DXMEDIA\CLASSES\BASE
C:\JOGOS\CTP2\CTP2_CODE\LIBS\DIRECTX\LIB
C:\JOGOS\CTP2\CTP2_CODE\LIBS\DIRECTX\INCLUDE
C:\Arquivos de programas\Microsoft Visual Studio\VC98\INCLUDE
C:\Arquivos de programas\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Arquivos de programas\Microsoft Visual Studio\VC98\ATL\INCLUDE

in this order. Just noted a mistake ... the correct directory is CTP2 not Call to power. I corrected that, but the error persists.


There are seperate lists of include and library directories. Do you have all of these in just one of those lists?

quote:
The error is in the unzip process, and the program creates this log:

.........

Extraindo arquivo: C:\Jogos\ctp2\ctp2_data\french\uidata\layouts\civs
tatus.ldl OK
Extraindo arquivo: C:\Jogos\ctp2\ctp2_data\french\uidata\layouts\city
status.ldl Erro: Erro na abertura do arquivo
Extraindo arquivo: C:\Jogos\ctp2\ctp2_data\french\uidata\layouts\city
status.ldl OK
Extraindo arquivo: C:\Jogos\ctp2\ctp2_data\french\uidata\layouts\dipw
izard.ldl OK
Extraindo arquivo: C:\Jogos\ctp2\ctp2_data\french\uidata\layouts\ns_s
trings.ldl Erro: Erro na abertura do arquivo
Extraindo arquivo: C:\Jogos\ctp2\ctp2_data\french\uidata\layouts\ns_s
trings.ldl OK
Extraindo arquivo: C:\Jogos\ctp2\ctp2_data\french\uidata\layouts\scen
arioeditor.ldl OK
Extraindo arquivo: C:\Jogos\ctp2\ctp2_data\french\uidata\layouts\spne
wgamepopups.ldl OK
Extraindo arquivo: C:\Jogos\ctp2\ctp2_data\french\uidata\layouts\km_s
creen.ldl Erro: Erro na abertura do arquivo
Extraindo arquivo: C:\Jogos\ctp2\ctp2_data\french\uidata\layouts\km_s
creen.ldl OK
.................................


Well, I can't translate this, but it might mean a corrupted download, so it's probably worth downloading again. None of the files mentioned here are important to the compilation, but I guess there may be other problems too.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:30
Post  Old Post 27-02-2005 04:45 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#36 Report this post to a moderator
Support Apolyton or Terrorists Win

quote:
Originally posted by J Bytheway
Well, I can't translate this, but it might mean a corrupted download, so it's probably worth downloading again. None of the files mentioned here are important to the compilation, but I guess there may be other problems too.


Robot translation is your friend John, well the outcome might suck but better than nothing.

OK, http://ets.freetranslation.com/ says it is:

Error: Error in the opening of the file

I guess that should be: Error: Cannot open file

Or something like this.

Well if there are just problems with these files mentioned here then there shouldn't be any problem if you don't use the French version. If you use the French version then you shouldn't have any problems with compiling.

The other thing are these many include directories actual you should only need those starting with C:\Arquivos de programas\, the other shouldn't be necessary with ctplinuxfan's update. The other thing I wonder is that the DirectX stuff is found in the program files folder my are on C:\ and I can't remeber that I was asked to install them elsewhere. Maybe a DirectX 9 issure.

-Martin

sekel is offline sekel
Chieftain
São Paulo
May 2004
time: 05:30
  Old Post 27-02-2005 10:04
Edit/Delete Message Reply w/Quote
#37 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

quote:
Originally posted by J Bytheway There are seperate lists of include and library directories. Do you have all of these in just one of those lists?


Well ..... I did not know that! Those were all in the include directory list you just found the problem!!!

See, in Delphi we don´t have lib files, we have .dcp and .bpl packages ... similar, but not the same.


Thanks a lot people ^^

The new build:

--------------------Configuration: ctp2 - Win32 Debug--------------------
Linking...

CivCTP_dbg.exe - 0 error(s), 0 warning(s)

sekel is offline sekel
Chieftain
São Paulo
May 2004
time: 05:30
  Old Post 05-03-2005 08:56
Edit/Delete Message Reply w/Quote
#38 Report this post to a moderator
Get a bigger avatar today!

Does anyone what to do to show the AI tasks (NO_PATH, CHOKEPOINT, etc) for each unit? I think that it would be a good to add a button (perhaps on the cheat menu?) for it.

E is offline E
King
July 24,2005 Ctp2 Tiles in sig!
May 1999
time: 21:30
  Old Post 05-03-2005 11:22 Visit E's homepage!
Edit/Delete Message Reply w/Quote
#39 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

Martin should know but yeah thats a good idea about making it a cheat menu option...

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:30
Post  Old Post 06-03-2005 00:00 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#40 Report this post to a moderator
Got spare money?

Take a look on this function and you know what I did and can start to add the stuff to the cheat editor. By the way there is a lot more that could be added to the cheat editor.

code:
GraphicsOptions::GraphicsOptions() { m_armyTextOn = false; m_cellTextOn = false; // m_armyTextOn = true; // m_cellTextOn = true; m_cellAVL = new AvlTree; }


-Martin

sekel is offline sekel
Chieftain
São Paulo
May 2004
time: 05:30
  Old Post 06-03-2005 18:03
Edit/Delete Message Reply w/Quote
#41 Report this post to a moderator
Put an end to popups!

Thanks!

Also, how do we work with Windows or Forms in VS 6???

I´ve being looking for this simple question in newsgroups, but I don´t seam to find an answer.

How can I create / edit forms in VS??? Where are ctp2 forms? Are they coded or designed in a editor??? (god, it will be hell if they are coded).

thanks again,

Felipe

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:30
Post  Old Post 07-03-2005 03:23 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#42 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

Forms? You mean the stuff that comes with the .NET environment. That has all the easy edit stuff for C# but not for managed C++. And cannot be used for unmanaged C++. There you have to use the less programmer friendly MFC. However CTP2 doesn't use anything of these MS UI components. There is a whole subfolder for the UI components. You may start with the Scenario Editor, there you find examples how the stuff is used, adding a button shouldn't be a big deal. And for the fine adjustment you use the *ldl files.

-Martin

sekel is offline sekel
Chieftain
São Paulo
May 2004
time: 05:30
  Old Post 07-03-2005 06:51
Edit/Delete Message Reply w/Quote
#43 Report this post to a moderator
Enter the AD-FREE zone

quote:
Originally posted by Martin Gühmann
Forms? You mean the stuff that comes with the .NET environment. That has all the easy edit stuff for C# but not for managed C++. And cannot be used for unmanaged C++. There you have to use the less programmer friendly MFC. However CTP2 doesn't use anything of these MS UI components. There is a whole subfolder for the UI components. You may start with the Scenario Editor, there you find examples how the stuff is used, adding a button shouldn't be a big deal. And for the fine adjustment you use the *ldl files.


I have never used .NET, but I belieave this is what I was talking about. That is what I was afraid of: a non RAD approach to Windows =( Incredible that MS has just added RAD Windows to c that comes with Delphi since Delphi 1 for Windows 3.11!!! This was also present in ms vb.

Just to be sure: Those ldl files are to be edited with notepad, right? Some kind soul may have built an editor...

What does MFC stand for?

Just found the heart of ctp2:

while (PeekMessage(&msg, gHwnd, 0, 0, PM_REMOVE) && !g_letUIProcess) {
if (msg.message == WM_QUIT)gDone = TRUE;
TranslateMessage(&msg);
DispatchMessage(&msg);
}

is civ3_main.cpp

Also, I noticed many files with civ3 in the name .... perhaps something left from the atemp to make ctp1 look like a civ 3.

Felipe

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:30
  Old Post 07-03-2005 20:50 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#44 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

quote:
Originally posted by sekel
Just to be sure: Those ldl files are to be edited with notepad, right? Some kind soul may have built an editor...


Well, it might be better to use a more sophisticated text editor than notepad, but noone has created a GUI for editing them, if that is what you were asking.

quote:
What does MFC stand for?


Microsoft Foundation Classes.

quote:
Also, I noticed many files with civ3 in the name .... perhaps something left from the atemp to make ctp1 look like a civ 3.


I think it's unsurprising that the programmers chose these names when writing the game, but I'm fairly sure that there was never any plan to actually name the game itself Civ 3.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:30
Post  Old Post 11-03-2005 04:11 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#45 Report this post to a moderator
Browse Apolyton AD-FREE

quote:
Originally posted by sekel
I have never used .NET, but I belieave this is what I was talking about. That is what I was afraid of: a non RAD approach to Windows =( Incredible that MS has just added RAD Windows to c that comes with Delphi since Delphi 1 for Windows 3.11!!! This was also present in ms vb.


Well it isn't so bad you have something like this for MFC, but the stuff for managed C++ is limited in comparision to C#, at least they claimed as I read this last time. But for MFC you have to connect this generated UI with your code in a not so simple way, so that it is an advance they have for C#. But actual we don't talk about Microsoft and their windows solutions, we talk rather about Activision's solution for CTP2. Actual I don't know much games that use the windows standart design. And all these games are older ones like Sim City 2000 and Sim Tower. Probably all the game manufacters create their own UI classes. And of course they don't create editors for them. And actually why so afraid of it. All you want to do is to add two tiny buttons to the Scenario Editor, and this just contains editing scenarioeditor.h, scenarioeditor.cpp, scenarioeditor.ldl and ldl_str.txt of course for each language we have a version of that file for. Well at least addding a string in English would be good.

quote:
Originally posted by sekel
Just to be sure: Those ldl files are to be edited with notepad, right? Some kind soul may have built an editor...


I use EditPlus2 for them, but in the case of doubt Notepad works as well, but isn't so confortable as EditPlus2. Of course the editor of MS Visual Studio should work as well.

-Martin

 
Pages (2): [ 1   2   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:30.
Apolyton Time is 00:30.
    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.0427 seconds (91.01% PHP - 8.99% 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