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 > PROJECT: Altered source files
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 (17): [ <<   4   5   6   7   8   9   10     >> ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
Flinx is offline Flinx
Prince
Toronto, ON CANADA
Nov 2001
time: 00:31
  Old Post 23-04-2004 02:41 Visit Flinx's homepage!
Edit/Delete Message Reply w/Quote
#181 Report this post to a moderator
Support Apolyton, buy Civilization 2

I took it to mean that it improves 100% worked rings before the partial worked outer ring - but you are right Maq it is not clear what the change does.

Fromafar is offline Fromafar
Prince

May 2003
time: 06:31
  Old Post 23-04-2004 02:48
Edit/Delete Message Reply w/Quote
#182 Report this post to a moderator
Lose 30 kilos (of popups)

When generating a list of candidate tile improvements, each candidate is assigned a value (utility) based on the terrain, improvement, and city properties.

I have now multiplied this utility value with the worker utilisation percentage applied to the tile when determining the city production.

So when you have a size 7 city: the 8 inner ring tiles have unmodified utility values (100% utilisation - for some reason the game requires only 6 workers to make the first ring being 100% ), while the second ring has a reduced utility value (IIRC it is (7 - 6) / (18 - 6) = 1/12 = 8.3%), which will go up when the city grows.

After generating the list, it will be ordered on descending utillity value, and PW spending will start from the beginning of the list. So, there is no fixed % where you don't work a tile. But it will prevent spending PW on improvements that are not really contributing.

So, Flinx was correct.

I think this is a forgotten issue from the CTP1 to CTP2 conversion. In CTP1, a placed worker meant 100% utilisation, regardless of the distance of the tile to the city or the number of available workers.

Maquiladora is offline Maquiladora
Emperor

Jun 2001
time: 05:31
  Old Post 23-04-2004 03:02 Visit Maquiladora's homepage!
Edit/Delete Message Reply w/Quote
#183 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

quote:
for some reason the game requires only 6 workers to make the first ring being 100%


Isnt that because of the city size 1-6 for inner ring, 7-18 (12) for second ring etc. but i thought that could be changed in citysize*.txt so why is it hardcoded?

Flinx is offline Flinx
Prince
Toronto, ON CANADA
Nov 2001
time: 00:31
  Old Post 23-04-2004 04:39 Visit Flinx's homepage!
Edit/Delete Message Reply w/Quote
#184 Report this post to a moderator
Increase Your PM Length

Fromafar you did use the variables loaded from citysize*.txt didn't you?
I made a mod which changes these files and I would like it if your improvement worked correctly with the mod.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 27-04-2004 22:44 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#185 Report this post to a moderator
Suffering from ads?

2004.04.27
..\ctp2_code\gs\gameobj\gaiacontroller.cpp

Bug Fix by Martin Gühmann: Neutral pillage tile improvement bug, the game doesn't crash anymore when a tile improvement is pillaged that noone owns.

-Martin

Attachment: 2004.04.27.gaiacontroller.incr.zip
This has been downloaded 6 time(s).

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 01-05-2004 01:00 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#186 Report this post to a moderator
Lose 30 kilos (of popups)

2004.04.30
..\ctp2_code\gs\slic\SlicFrame.cpp
..\ctp2_code\gs\slic\slicif.cpp

Games that uses slic database access can now be reloaded without the need to /reloadslic to prevent a crash, unfortunatly this applies only to games that are saved with this version of the slic database access, games saved with Activision's patch v.1.1 and with slic code that uses database access may not be continued without a /reloadslic.

-Martin

Attachment: 2004.04.30.slicdbaccess.incr.zip
This has been downloaded 8 time(s).

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 01-05-2004 02:27 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#187 Report this post to a moderator
Inflate your Upload Space

2004.04.30
..\ctp2_code\ctp\civapp.cpp

Bug fix by Martin Gühmann: A memory leak that occured in the Great Libary when a saved game was loaded, only regular saves with the ranking and world map *.rim, not the quicksave.

-Martin

Attachment: 2004.04.30.glleak.fix.zip
This has been downloaded 7 time(s).

Fromafar is offline Fromafar
Prince

May 2003
time: 06:31
  Old Post 09-05-2004 00:23
Edit/Delete Message Reply w/Quote
#188 Report this post to a moderator
Support Apolyton or Terrorists Win

User profile option + repaired memory leaks.

ui\interface\GreatLibrary.cpp
Repaired more memory leaks that were caused by reloading the great library data.

gs\database\ProfileDB.cpp
gs\database\ProfileDB.h
ctp\civapp.cpp
Added a "ColorSet" option to userprofile.txt, to make variation between the colors##.txt files easier.

Note: I undid some previous changes by Martin in civapp.cpp. Those were no longer needed now that the great library memory leaks have been repaired at the root.

OT/late reply: the tile improvement placement change has no impact on how many workers are in a ring. The citysize#.txt values are being used - nothing is hardcoded.

[Edit: link removed. Included in the 2004.06.05 source collection.]

Last edited by Fromafar on 13-06-2004 at 19:34

Fromafar is offline Fromafar
Prince

May 2003
time: 06:31
  Old Post 09-05-2004 23:56
Edit/Delete Message Reply w/Quote
#189 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

Bug fix: tile improvements without Freight cost modification no longer have 0 Freight cost for the trade route computation. This should prevent funny paths from being computed.

gs\newdb\terrimprove.cdb
gs\world\cell.cpp
[Edit: link removed. Included in the 2004.06.05 source collection.]

Last edited by Fromafar on 13-06-2004 at 19:35

Fromafar is offline Fromafar
Prince

May 2003
time: 06:31
  Old Post 15-05-2004 22:34
Edit/Delete Message Reply w/Quote
#190 Report this post to a moderator
Increase the size of your Attachments

Bug fixes

gs\newdb\CTPDatabase.cpp
gs\newdb\CTPDatabase.h
Repaired memory leaks and cleaned up the government modification code somewhat.

ui\interface\sci_advancescreen.cpp
(Activision patch 1.1 reimplementation) Start the "change research" screen with the current research selected.

[Edit: link removed. Included in the 2004.06.05 source collection.]

Last edited by Fromafar on 13-06-2004 at 19:37

Fromafar is offline Fromafar
Prince

May 2003
time: 06:31
  Old Post 16-05-2004 21:48
Edit/Delete Message Reply w/Quote
#191 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

Bug fix:

gs\gamedata\ArmyData.cpp
(Activision patch 1.1 reimplementation) Corrected a check that prevented sueing of franchises.

[Edit: link removed. Included in the 2004.06.05 source collection.]

Last edited by Fromafar on 13-06-2004 at 19:37

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 17-05-2004 01:45 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#192 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

Well Fromafar, with the use of the STL for the government stuff I get now these warnings, is there a way to disable them?

quote:

c:\programme\microsoft visual studio\vc98\include\vector(39) : warning C4786: 'std::reverse_iterator >::iterator const *,std::list >::iterator,std::list >::iterator const &,std::list >::iterator const *,int>' : Bezeichner wurde auf '255' Zeichen in den Debug-Informationen reduziert
c:\programme\microsoft visual studio\vc98\include\vector(39) : Bei der Kompilierung der Member-Funktion '__thiscall std::vector >::iterator,dbgallocator >::iterator> >::std::vector >::iterator,dbgallocator >::iterator> >(const dbgallocator >::iterator> &)' der Klassenvorlage
c:\programme\microsoft visual studio\vc98\include\vector(39) : warning C4786: 'std::reverse_iterator >::iterator *,std::list >::iterator,std::list >::iterator &,std::list >::iterator *,int>' : Bezeichner wurde auf '255' Zeichen in den Debug-Informationen reduziert
c:\programme\microsoft visual studio\vc98\include\vector(39) : Bei der Kompilierung der Member-Funktion '__thiscall std::vector >::iterator,dbgallocator >::iterator> >::std::vector >::iterator,dbgallocator >::iterator> >(const dbgallocator >::iterator> &)' der Klassenvorlage
c:\programme\microsoft visual studio\vc98\include\vector(39) : warning C4786: 'std::vector >::iterator,dbgallocator >::iterator> >::vector >::iterator,dbgallocator >::iterator> >' : Bezeichner wurde auf '255' Zeichen in den Debug-Informationen verkürzt
c:\programme\microsoft visual studio\vc98\include\vector(60) : warning C4786: 'std::vector >::iterator,dbgallocator >::iterator> >::~vector >::iterator,dbgallocator >::iterator> >' : Bezeichner wurde auf '255' Zeichen in den Debug-Informationen verkürzt
c:\programme\microsoft visual studio\vc98\include\vector(52) : warning C4786: 'std::vector >::iterator,dbgallocator >::iterator> >::vector >::iterator,dbgallocator >::iterator> >' : Bezeichner wurde auf '255' Zeichen in den Debug-Informationen verkürzt



-Martin

Fromafar is offline Fromafar
Prince

May 2003
time: 06:31
  Old Post 18-05-2004 00:17
Edit/Delete Message Reply w/Quote
#193 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

To suppress this warning, you may add a

code:
#pragma warning(disable: 4786)

preprocessor directive in the file, as in e.g. ai\diplomacy\Diplomat.h.

Maybe there is a project setting, but I don't know it.

child of Thor is offline child of Thor
Emperor
UK
Jan 2002
time: 05:31
  Old Post 18-05-2004 01:28
Edit/Delete Message Reply w/Quote
#194 Report this post to a moderator
Support Apolyton, pre-order Civilization IV



Not that i understand much of what is happening here - but whatever it is it's appriciated

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 18-05-2004 01:34 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#195 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

Is there a good reason why those warnings can't be eliminated by altering the code?

Fromafar is offline Fromafar
Prince

May 2003
time: 06:31
  Old Post 18-05-2004 02:11
Edit/Delete Message Reply w/Quote
#196 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

The reason is that the 'offending' piece of code is part of the compiler, and not of the Activision code.

Because of that, this warning does not really apply to us. It merely states (roughly translated from German) that the compiler has generated some symbols that contain more than 255 characters, and that for debugging purposes it has truncated these symbols to 255 characters.

As this is a piece of code that we are not going to modify at all, debugging it is not very interesting. And even with 'only' 255 characters, you probably would be able to find the correct symbol.

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 18-05-2004 02:14 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#197 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
Originally posted by Fromafar
The reason is that the 'offending' piece of code is part of the compiler, and not of the Activision code.


Ah yes. I didn't notice that. Silly me.

Flinx is offline Flinx
Prince
Toronto, ON CANADA
Nov 2001
time: 00:31
  Old Post 18-05-2004 02:31 Visit Flinx's homepage!
Edit/Delete Message Reply w/Quote
#198 Report this post to a moderator
Keep up the good work guys! Support Apolyton, buy Civilization 2

Did anyone look at the TEST/DEBUG: Slic built-in data accessors files? If these work maybe we could get a new playtest

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

I was seriously considering releasing a new "official" playtest version incorporating them - I think that's the only way we'll get them tested...

The Big Mc is offline The Big Mc
King
Of the universe / England
Oct 2001
time: 05:31
  Old Post 18-05-2004 03:50 Visit The Big Mc's homepage!
Edit/Delete Message Reply w/Quote
#200 Report this post to a moderator
Avatar Enlargement: We've got the solution

Go for it I am always reedy to play test.

drulius is offline drulius
Warlord
Lubbock, Tx USA
Jan 1970
time: 23:31
  Old Post 18-05-2004 05:36
Edit/Delete Message Reply w/Quote
#201 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

quote:
code:--------------------------------------------------------------------------------#pragma warning(disable: 4786)--------------------------------------------------------------------------------


warning 4786 is very common when using STL containers, especially maps and sets. As FROMAFAR stated it is a truncation warning that can be safely ignored. Every time a container copies itself internally during code generation, it generates a unique name by concatenation and quickly surpasses the 255 char limit. At least this is the explanation I was given when we began studying STL containers this semester.

In Project->Settings [c/c++ tab, general category] you can set the warning level to NONE but it normally only reduces the number of warnings issued from hundreds to dozens.

Or you can use the #pragma in affected files, but note that
quote:
From MSDN VC++6 documentation:
For warning numbers greater than 4699, those associated with code generation, the warning pragma has effect only when placed outside function definitions. The pragma is ignored if it specifies a number greater than 4699 and is used inside a function. The following example illustrates the correct placement of warning pragmas to disable, and then restore, the generation of a code-generation warning message:
int a;
#pragma warning( disable : 4705 )
void func()
{
a;
}
#pragma warning( default : 4705 )

Last edited by drulius on 18-05-2004 at 05:44

Flinx is offline Flinx
Prince
Toronto, ON CANADA
Nov 2001
time: 00:31
  Old Post 18-05-2004 20:36 Visit Flinx's homepage!
Edit/Delete Message Reply w/Quote
#202 Report this post to a moderator
Support Apolyton buy from Amazon

The Great Library entry for Hospital is incorrect as I posted over in CTP2 Mods. The section of Great_Library.txt should read:

code:
[IMPROVE_HOSPITAL_STATISTICS] Gives: Reduces <L: DATABASE_CONCEPTS,CONCEPT_OVERCROWDING>Overcrowding<e> Effect by {BuildingDB(Building[0]).RaiseOvercrowdingLevel} [END]
It should be the same as the entry for Incubation Center which follows it.

Fromafar is offline Fromafar
Prince

May 2003
time: 06:31
  Old Post 19-05-2004 02:59
Edit/Delete Message Reply w/Quote
#203 Report this post to a moderator
Put an end to popups!

Activision patch reimplementation:

gs\gameobj\GameSettings.cpp
Use the difficulty and barbarian risk level as selected by the user when starting a new (scenario) game.

[Edit: link removed. Included in the 2004.06.05 source collection.]

Last edited by Fromafar on 13-06-2004 at 19:40

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

quote:
Originally posted by Flinx
The Great Library entry for Hospital is incorrect


I'm not sure what our approach towards errors in the text is at the moment. Probably its best to post about them in the translation centre, because they might be present in other languages too...

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 19-05-2004 15:49 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#205 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

I get the error:

code:
F:\Games\CTP2Src2\ctp2_code\gs\world\Cell.cpp(962) : error C2660: 'GetFreight' : function does not take 1 parameters

with the above changes (2004.05.09.trade.zip). I'm going to have a look and see if I can figure out the problem...

Fromafar is offline Fromafar
Prince

May 2003
time: 06:31
  Old Post 19-05-2004 16:54
Edit/Delete Message Reply w/Quote
#206 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

This error may occur when the TerrainImprovementRecord.h and .cpp files have not been updated from the terrimprove.cdb input.

Did you do a debug build first? IIRC some of the custom build steps are not executed properly in the other builds.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:31
Post  Old Post 19-05-2004 17:53 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#207 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
Originally posted by Flinx
The Great Library entry for Hospital is incorrect as I posted over in CTP2 Mods. The section of Great_Library.txt should read:
code:
[IMPROVE_HOSPITAL_STATISTICS] Gives: Reduces <L: DATABASE_CONCEPTS,CONCEPT_OVERCROWDING>Overcrowding<e> Effect by {BuildingDB(Building[0]).RaiseOvercrowdingLevel} [END]
It should be the same as the entry for Incubation Center which follows it.


Well and what does it say originally.

quote:
Originally posted by Fromafar
This error may occur when the TerrainImprovementRecord.h and .cpp files have not been updated from the terrimprove.cdb input.

Did you do a debug build first? IIRC some of the custom build steps are not executed properly in the other builds.


Another problem with this database generator is that it does not regenerate all the files if it is necessary for instance I modified the RecordDescription.cpp that should have as consequence that all the generated files have to be regenerated, but at university a lot of files were not regenerated and it home same modification two files a header file and the according implemention file were not regenerated.

-Martin

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:31
  Old Post 19-05-2004 17:55 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#208 Report this post to a moderator
Suffering from ads?

quote:
Originally posted by Fromafar
This error may occur when the TerrainImprovementRecord.h and .cpp files have not been updated from the terrimprove.cdb input.

Did you do a debug build first? IIRC some of the custom build steps are not executed properly in the other builds.


That would explain it. Thanks. I'll try a debug build now.

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

Yep, that worked. Thanks again.

Flinx is offline Flinx
Prince
Toronto, ON CANADA
Nov 2001
time: 00:31
  Old Post 19-05-2004 20:03 Visit Flinx's homepage!
Edit/Delete Message Reply w/Quote
#210 Report this post to a moderator
Increase the size of your Attachments

quote:
Originally posted by Martin Gühmann
Well and what does it say originally.
In the English version:

code:
[IMPROVE_HOSPITAL_STATISTICS] Gives: Increases City Max Size Reduces <L: DATABASE_CONCEPTS,CONCEPT_OVERCROWDING>Overcrowding<e> Effect by {BuildingDB(Building[0]).RaiseMaxPopulation} [END]

Which displays in game as
code:
Gives: Increases City Max Size Reduces Overcrowding Effect by 0
Going through the 2004.04.30 .RAR, the great library is not included for French, Italian or Japanese; the German version is ok as it includes both overcrowding and maxpop; the Spanish version is the same as the English except the value is missing so it says:
code:
Da: Aumento del tamaño máximo de una ciudad reducción del efecto de la masificación


OK, this I am able to fix, and post the corrected files for each language if you would like. Could I get a French GL from someone? Are there any Italians or Japanese around?

 
Pages (17): [ <<   4   5   6   7   8   9   10     >> ]
< 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.0638 seconds (89.37% PHP - 10.63% 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