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): [ <<   3   4   5   6   7   8   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:31
  Old Post 14-11-2003 19:19 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#151 Report this post to a moderator
Support Apolyton or Terrorists Win

I think berXpert knows very well what autoexec.bat is, but he was trying to convey the complete irrelevance (if not non-existance) of that file in WinXP.

See Mr Ogre's post earlier in this thread on how to do that step in WinXP.

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

well i hate reading five pages of forum posts

berXpert is offline berXpert
King
Home :)
Jan 2001
time: 23:31
  Old Post 15-11-2003 07:15 Visit berXpert's homepage!
Edit/Delete Message Reply w/Quote
#153 Report this post to a moderator
Support Apolyton, buy Civilization 2



As I noted a smile on your face I though you were joking.

I don't edit that file, just add those lines to my System Variables

Keygen is offline Keygen
Emperor
Athens, Hellas
Jan 2000
time: 07:31
  Old Post 15-11-2003 14:26 Visit Keygen's homepage!
Edit/Delete Message Reply w/Quote
#154 Report this post to a moderator
Support Apolyton, buy Civilization 2

I think he was joking Big Mc
At list that is the impression I got

BTW, autoexec.bat is not needed to be altered in Windows Operating systems with the NT kernel. You can set environmental variables instead.

EDIT: I skiped this page and obviously didn't read the posts that followed

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:31
  Old Post 16-11-2003 20:20
Edit/Delete Message Reply w/Quote
#155 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

I can't build ctpdb.exe. One problem seems to be that lex.yy.c (which doesn't exist at this point) is both an input and an output. How did you guys overcome this?

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 16-11-2003 22:19 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#156 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

quote:
Originally posted by Peter Triggs
I can't build ctpdb.exe. One problem seems to be that lex.yy.c (which doesn't exist at this point) is both an input and an output. How did you guys overcome this?


Which one do you mean, Peter. There are two of them one in ..\ctp2_code\gs\dbgen\ and one in ..\ctp2_code\gs\slic\. And note these files have the same name but not the same content I tried to replace the slic one by the dbgen one and it doesn't work. What I know is that the slic one is built when you compile another version of the *.exe first the file is built. Unfortunatly I don't have any idea why the file isn't saved in the debug configuration.

-Martin

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:31
  Old Post 16-11-2003 23:41
Edit/Delete Message Reply w/Quote
#157 Report this post to a moderator
Support Apolyton, buy Call to Power 2

quote:

flex is a tool for generating scanners: programs which recognized lexical patterns in text. flex reads the given input files, or its standard input if no file names are given, for a description of a scanner to generate. The description is in the form of pairs of regular expressions and C code, called rules. flex generates as output a C source file, `lex.yy.c', which defines a routine `yylex()'. This file is compiled and linked with the `-lfl' library to produce an executable. When the executable is run, it analyzes its input for occurrences of the regular expressions. Whenever it finds one, it executes the corresponding C code.


Here's the whole top page: http://dinosaur.compilertools.net/

So one will be for the database files and the other for the slic files (but I haven't got there yet, cause I can't get past the bloody database).

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

Maybe it helps if you use other project files you can find my project files in the attachment, if you haven't installed the source code in the C:\activision\CTP2\ folder you have to open them and replace all occurences of C:\activision\CTP2\ by the according path of your CTP2 source code installation. By the way I figuered out why the second version of the lex.yy.c wasn't build under debug conditions. It looks like I cut the flex command out when I adjusted the path. civctp.dsp should go into the ..\ctp2_code\ctp\ folder and dbgen.dsp should go into the ..\ctp2_code\gs\dbgen\ folder.

-Martin

Attachment: civctp.zip
This has been downloaded 10 time(s).

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 17-11-2003 02:42 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#159 Report this post to a moderator
Increase Your PM Length

Well looks like I have uploaded the wrong file, it just contains the CTP2 project file and not the dbgen project file. Here is the file I intended to upload actually.

-Martin

Attachment: ctp.zip
This has been downloaded 13 time(s).

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:31
  Old Post 17-11-2003 03:48
Edit/Delete Message Reply w/Quote
#160 Report this post to a moderator
Remove this text

I did a comparison of my dbgen.dsp with yours and the only difference is that the paths to flex differ (because my Activision folder is in C:Program Files).

Could you zip up lex.yy.c, y.tab.c, and y.tab.h and I'll stick them in the dbgen folder and see what happens.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 17-11-2003 04:02 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#161 Report this post to a moderator
Support Apolyton

The attachment should contain the files from the dbgen folder you requested, Peter.

-Martin

Attachment: dbgen.zip
This has been downloaded 9 time(s).

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

quote:
17. In the “File View” tab of the project window in the left-hand corner, expand the files under “dbgen files”. Right-click “ctpdb.y” and select “Settings…” and click the “Custom Build” tab. In the “Commands” dialogue box, replace “$(CDKDIR)” with “C:\Activision\CTP2\bin”. In the dialogue box to the left, do the same for “ctpdb.l”. Click “OK” to close the dialogue box.


i think i get the same error around step 17 it comes up with one error

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 17-11-2003 04:25 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#163 Report this post to a moderator
Increase Your PM Length

quote:
Originally posted by The Big Mc
i think i get the same error around step 17 it comes up with one error


So could you post the error message The Big Mc?

-Martin

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:31
  Old Post 17-11-2003 04:33
Edit/Delete Message Reply w/Quote
#164 Report this post to a moderator
Enter the AD-FREE zone

Success!!!

At least now I have a ctpdb.exe.

Thanks Martin.

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 17-11-2003 13:29 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#165 Report this post to a moderator
Support Apolyton, buy Civilization 2

For future reference: If your flex was in Program Files then you need to replace that with Progra~1 in the path. It can't handle spaces.

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:31
  Old Post 17-11-2003 18:30
Edit/Delete Message Reply w/Quote
#166 Report this post to a moderator
Support Apolyton, buy Call to Power 2

Duh, that was it. RalphTricky and Vovan mentioned back on page 1 of this thread that flex and bison don't like paths with embedded spaces. How could I have not noticed that "Program Files" has an embedded space.

child of Thor is offline child of Thor
Emperor
UK
Jan 2002
time: 05:31
  Old Post 17-11-2003 18:51
Edit/Delete Message Reply w/Quote
#167 Report this post to a moderator
Increase Your PM Length

quote:
Originally posted by Peter Triggs
Duh, that was it. RalphTricky and Vovan mentioned back on page 1 of this thread that flex and bison don't like paths with embedded spaces. How could I have not noticed that "Program Files" has an embedded space.





And i guess here lies the big problem people will face converting any code over to different versions - its a lot of code to get through, and one little thing can be a huge headache! Well done on spotting it

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:31
  Old Post 17-11-2003 19:23 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#168 Report this post to a moderator
Browse Apolyton AD-FREE

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

Success

HAS anybody else seen the button with no words in it on the main Manu if you click on it. it goes to a sprite editor thing which does not seem to be of any use until you look into the civ3 to ctp unit conversion thread it will allow us to find the hotspots easier

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

quote:
Originally posted by The Big Mc
HAS anybody else seen the button with no words in it on the main Manu if you click on it. it goes to a sprite editor thing which does not seem to be of any use until you look into the civ3 to ctp unit conversion thread it will allow us to find the hotspots easier


If I remember correctly the button says "Test".

Good to know you got it to compile.

-Martin

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

it allows you to do more you can open a spr file based on its sprit number then find the perfect hotspot location

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 31-03-2004 15:38 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#171 Report this post to a moderator
Remove this text

I have just updated my source (after a long break) and have been trying to compile it. There's something very strange about the compilation of the .cdb files (using dbgen) - each one stops the compilation process with an error, but the compilation actually appears to have completed successfully. Does anyone know how the VS6 IDE determines whether a custom build step suffered an error, since it seems to be drawing the wrong conclusion in this case.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 31-03-2004 22:36 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#172 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

quote:
Originally posted by J Bytheway
I have just updated my source (after a long break) and have been trying to compile it. There's something very strange about the compilation of the .cdb files (using dbgen) - each one stops the compilation process with an error, but the compilation actually appears to have completed successfully. Does anyone know how the VS6 IDE determines whether a custom build step suffered an error, since it seems to be drawing the wrong conclusion in this case.


Probably because there are already output files but unfortunatly these files do have the wrong content, I provided my files generated by dbgen but Mr. Baggins didn't and therefore you don't have the government functionality in.

I suspect you didn't compile a debug.exe, you have to do this to generate the output of dbgen first.

-Martin

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 01-04-2004 22:16 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#173 Report this post to a moderator
Support Apolyton, buy Civilization 2

No, this happened during compilation of Win32 Debug. The problem wasn't that it wasn't working, just that it thought it wasn't working when in fact it was... It's almost certainly due to MrBaggins changes, but it's still strange...

Fromafar is offline Fromafar
Prince

May 2003
time: 06:31
  Old Post 02-04-2004 03:06
Edit/Delete Message Reply w/Quote
#174 Report this post to a moderator
Support Apolyton buy from Amazon

Did you happen to do a Release or Final build in between 2 Debug builds? For me, this sequence will almost always cause a failure report for each dbgen generated file.

Because no input (.cdb) files have been changed, it should not be necessary to compile anything. The object files of the the different build types are in different directories. But maybe the update of the .stamp file is causing the problem?
Stubbornly pressing F7, or doing a full build, will eventually create a correct executable.

Anyway, I don't think it is something we have changed. I had this problem with the original Activision package as well.

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 02-04-2004 14:46 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#175 Report this post to a moderator
Inflate your Upload Space

I can't remember for sure but I think what I did was:
Switch to Win32 - Final
Clean
Build (get errors because I don't have the stuff you get from a debug build)
Switch to Win32 - Debug
Clean
Build (get all the above-mentioned errors, but get through them by stubbornly pressing F7)
Switch to Win32 - Final
Build (Success with no problems)

Perhaps the problem is because dbgen returns a non-zero value when it finishes with no errors (a missing return 0 statement somewhere...). I'll have a look and see if I can find that out.

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 03-04-2004 18:52 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#176 Report this post to a moderator
Lose 30 kilos (of popups)

I've just cleaned and recompiled again, and it works fine if you don't do a (failed) Final compile before the Debug compile, so I guess that's the problem.

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:31
  Old Post 18-04-2004 05:02 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#177 Report this post to a moderator
Remove this text

Edit: nm, I'm an idiot

Last edited by Locutus on 18-04-2004 at 05:09

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 18-04-2004 05:09 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#178 Report this post to a moderator
Help yourself to an AD-FREE life

Edit: nm, he's an idiot

Solver is offline Solver
Apolyton Duke Of Something
Latvia, Riga
Sep 2000
time: 07:31
  Old Post 18-04-2004 17:03 Visit Solver<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#179 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

Yeah, indeed, from my observations: Doing a Debug, and then a Final build is fine. If you first do a failed Final build, then you later need to do a Debug build, clean the Final build, and rebuild Final again, and you wil have to press F7 quite a number of times, till it shuts up about the error.

E is offline E
King
July 24,2005 Ctp2 Tiles in sig!
May 1999
time: 21:31
  Old Post 16-06-2005 00:49 Visit E's homepage!
Edit/Delete Message Reply w/Quote
#180 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

Bump, I made need this thread...

 
Pages (8): [ <<   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.0533 seconds (90.74% PHP - 9.26% 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