 |
|  |
 |
|
sekel
|
|
São Paulo
May 2004 time: 05:30
|
|
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
|
|
|  |
 |
|
sekel
|
|
São Paulo
May 2004 time: 05:30
|
|
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
.................................
|
|
|  |
 |
|  |
 |
|
sekel
|
|
São Paulo
May 2004 time: 05:30
|
|
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.
|
|
|  |
 |
|
sekel
|
|
São Paulo
May 2004 time: 05:30
|
|
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
|
|
|  |
 |
|
sekel
|
|
São Paulo
May 2004 time: 05:30
|
|
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
|
|
|  |
 |
|
Martin Gühmann
|
 |
Berlin, Germany
Mar 2001 time: 06:30
|
|
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
|
|
|  |
 |
|  |
All times are GMT. The time now is 05:30. Apolyton Time is 00:30. |
top of page
|
|
|
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
|
|
|
|
|
|