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 > CODE/PROJECT: New files=New .dsw file?
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    < Last Thread     Next Thread > Post New Thread     Post A Reply
MrBaggins is offline MrBaggins
King

May 1999
time: 05:33
  Old Post 10-02-2004 18:33
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
CODE/PROJECT: New files=New .dsw file? Get a bigger avatar today!

A couple of the changes I'm making require a couple of new files, for a new class. I'm not sure if this has been done before, its not apparent from a brief scan of the altered source files.

If we add new files to the project (or workspace), then we should also distribute the workspace file, right? Anyone see any issue with this?

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:33
Post  Old Post 10-02-2004 21:35 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Remove this text

There is one instace of a new file, the japanese.h, I don't know how 4thmoon handled it, but he added a japanese project file.

If I understood it correctly it requires a modified *.dsp file, and unfortunatly my version of VC++ 6 is not a full version and has a problem to read the path in the path variable I defined in the autoexec.bat. So I would need to change the file manually again.

-Martin

MrBaggins is offline MrBaggins
King

May 1999
time: 05:33
  Old Post 10-02-2004 21:39
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

Looks like you need both files... dsp & dsw.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:33
Post  Old Post 10-02-2004 22:47 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton

quote:
Originally posted by MrBaggins
Looks like you need both files... dsp & dsw.


That's not very comfortable for me, but sooner or later we have to add files, for instance it would also a good idea to replace the old database format of the civilisation database by the new one or RiskDB, DiffDB, ColorsDB, MapDB and maybe also ConstDB.

So I have to swallow the bitter pill.

-Martin

ctplinuxfan is offline ctplinuxfan
Warlord

Jan 2004
time: 06:33
  Old Post 11-02-2004 01:48
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Increase the size of your Attachments

Hi,

i also intented to add some files (e.g. a plugin replacement more portable).

Unfortunately, VC++ screws up dependencies, e.g. files were removed within the clean rules of gs/newdb, that's why i didn't post these additions yet, and these changes cover all projects except dbgen...

quote:
So I would need to change the file manually again.

My VC++ has the same problem. I replaced $(CDKDIR)\ by $(WkspDir)\..\..\bin\ in the workspace files. Unfortunately, i had to do this within VC++ for each target file and each target, because VC++ does not load workspace files you changed with unix tools like sed

quote:
replace the old database

If you mean gs/newdb i don't think that's a good idea. The main advantage of this implementation is a common codebase, i.e. decreased bug possibility. O.k., it's annoying if you have the authors edition of vc++ and need to confirm a popup coming up for each .cdb file... ;-)

For redesign, you can consider a lot of things, to either reduce bugs/bug possibility or increase performance:


  • reducing use of objects
  • stopping to pass temporary objects around
  • event manager (using non pod-types for va_list args)
  • avoid changing method parameters (passed by call by value)
  • instance lifetime model (fixing memory leaks, etc.)
  • reducing inter-class dependencies
  • removal of changes to const char *& references
  • using references where possible
  • avoid unique names (like GUID GUID...)
  • centralize initialization (sound/cd/legal cd check etc.)
  • removal of dead code


However, if you consider a bigger redesign, a #ifdef ACTIVISION_ORIGINAL guard scheme tends to become impractical, maybe confusing

Ciao
Holger

MrBaggins is offline MrBaggins
King

May 1999
time: 05:33
  Old Post 11-02-2004 02:36
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

The main advantage for switching the rest of the old constant data records to the new style is that the parsers would be dynamically generated.

Right now... you can't change constdb without rewriting the parser, for instance, which is a little bit of a PITA.

I believe the big bit of missing functionality, and why they (maybe) didn't switch the other records over was that the old classes had serialization functions.

If we implement them for the new style then we should be able to switch them over without too many issues.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:33
Post  Old Post 11-02-2004 03:22 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Remove this text

quote:
Originally posted by ctplinuxfan
If you mean gs/newdb i don't think that's a good idea. The main advantage of this implementation is a common codebase, i.e. decreased bug possibility. O.k., it's annoying if you have the authors edition of vc++ and need to confirm a popup coming up for each .cdb file... ;-)


No, gs/newdb as its name suggests is the new database, not the old one, the old databases are the ones I mentioned above. And as MrBaggems mentioned the reason why I want to switsh also for the remaining databases is that with the new style database addions are done easily.

Well for the ThroneDB the main reaon is that they didn't switch is rather that the throne room in CTP2 is missing, maybe we should it rename to PalaceDB and the according text file Palace.txt, as I prefer a palace, or we could make it optional palace or throne room.

-Martin

ctplinuxfan is offline ctplinuxfan
Warlord

Jan 2004
time: 06:33
  Old Post 13-02-2004 00:37
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Call to Power 2

Hi,

sorry, seems i misunderstood something.
Moving the other dbs to the new db is of course a good idea.

Ciao
Holger

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:33.
Apolyton Time is 00:33.
    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.0433 seconds (89.04% PHP - 10.96% 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