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 > Miscellaneous > Archive > CtP2-Creation/AI/Mods/Scenarios-Archive > MedMod deletion of old units
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Eagle is offline Eagle
Chieftain
Singapore
Apr 2002
time: 13:18
  Old Post 05-04-2002 08:14
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
MedMod deletion of old units Inflate your Upload Space

Ey everybody,

Is there a way to turn off the automatic deletion of some units for the human players ?
I agree it is a good way of forcing the AI to make new fresh units, but I hate to see all my production going up in the mist, just because I happen to be at a certain period in time.

OK, I agree that having musketeers and field gunners in 1970 is not really up to date or modern , but hey, I am not 'that' far behind in the game. The AI is not having anything better than me (so prob he will be without ANY units now aswell, just like me).

And another thing. If this trigger is deleting obsolete units, why does it let me build them again afterwards ????? It just deleted all my musketeers and field gunners, but I can still build them now.

For one thing, I prefer to keep my old units. OK, spearmen in the 20th century would be tooo much, but musketeers ??? They are still usefull to fight with ! I prefer having them killed in a fight instead of seeing all my production points going up in the mist.

Hm ...

Eagle is offline Eagle
Chieftain
Singapore
Apr 2002
time: 13:18
  Old Post 05-04-2002 09:01
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Got spare money?

Hm, am a little further in the game now.

What did I just see ? Am walking around in the AI's fields and there are pikemen running around, grouped with cavalry ...

How is that possible ? Thought they had been deleted ????
Or did the AI started building his old units again ?

Is it supposed to be like this ?

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:18
  Old Post 05-04-2002 15:32 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Avatar Enlargement: We've got the solution

Your timeline might be screwed up or something, I dunno, that's kind of odd. In any case, the deletions occur in a fixed year, so if everyone is behind in tech in one of those years, all the units of a certain type will be deleted, even if they are still buildable. The idea of this feature is that the deleted units so old-fashioned that you can't build them anymore anyway, but if you're playing in a type of game when tech is going slow (small map, lots of war, easy difficulty level?), it might not work out quite so well. I think Cradle's approach of upgrading units is better anyway, or at least that this feature should be made tech-dependent, not time-dependent. But you'll have to ask Wes about that, I just do whatever he tells me to do...

Anyway, to disable the feature for humans is easy. Go into the file MM2_SLC_Wouter.slc and replace section 7 ("7. Slavery Code --> Disband Code") with the section below:

edit: I'll put the code in a seperate post because it screws up the layout of the post but it's too much work for me to fix it properly.

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

code:
/////////////////////////////// //// 7. Slavery Code //// //// --> Disband code //// ///////////////////////////// // old Description: Kill all units with slaving capabilities when era of slaves is over // new Description: Kill all units that are too old HandleEvent(BeginTurn) 'MM2_EndOfSlavery' post { unit_t tmpUnit; int_t i; int_t j; if (g.year == 300 || 400 || 475 || 550) { // if year is disband year for (i = 0; i < 32; i = i + 1) { // cycle through civs if (!IsHumanPlayer(i)) { // only for AIs, not for humans player[0] = i; for (j = 0; j < player[0].units; j = j + 1) { // cycle though units GetUnitByIndex(i, j, tmpUnit); if (g.year == 300) { // disband ancient units if ( tmpUnit.type == UnitDB(UNIT_WARRIOR) || tmpUnit.type == UnitDB(UNIT_SPEARMAN) || tmpUnit.type == UnitDB(UNIT_SWORDSMAN) || tmpUnit.type == UnitDB(UNIT_ARCHER) || tmpUnit.type == UnitDB(UNIT_CHARIOT) || tmpUnit.type == UnitDB(UNIT_LIGHT_CAVALRY) ) { KillUnit(tmpUnit); // kill it } } elseif (g.year == 400) { // disband classical units (& ancient elites) if ( tmpUnit.type == UnitDB(UNIT_PHALANX) || tmpUnit.type == UnitDB(UNIT_HEAVY_SWORDSMAN) || tmpUnit.type == UnitDB(UNIT_BOWMAN) || tmpUnit.type == UnitDB(UNIT_CATAPULT) || tmpUnit.type == UnitDB(UNIT_MOUNTED_ARCHER) || tmpUnit.type == UnitDB(UNIT_HEAVY_CAVALRY) || tmpUnit.type == UnitDB(UNIT_ZULU_WARRIOR) || tmpUnit.type == UnitDB(UNIT_JAVELINEER) || tmpUnit.type == UnitDB(UNIT_ELEPHANT) || tmpUnit.type == UnitDB(UNIT_BANDIT_HORSEMAN) || tmpUnit.type == UnitDB(UNIT_CORACLE) || tmpUnit.type == UnitDB(UNIT_TRIREME) ) { KillUnit(tmpUnit); // kill it } } elseif (g.year == 475) { // disband medieval units (& classical elites) if ( tmpUnit.type == UnitDB(UNIT_FYRDMAN) || tmpUnit.type == UnitDB(UNIT_PIKEMEN) || tmpUnit.type == UnitDB(UNIT_SIEGE_ENGINE) || tmpUnit.type == UnitDB(UNIT_HORSE_ARCHER) || tmpUnit.type == UnitDB(UNIT_KNIGHT) || tmpUnit.type == UnitDB(UNIT_HOPLITE) || tmpUnit.type == UnitDB(UNIT_LEGION) || tmpUnit.type == UnitDB(UNIT_FIRE_TRIREME) || tmpUnit.type == UnitDB(UNIT_CATAMARAN) ) { KillUnit(tmpUnit); // kill it } } elseif (g.year == 550) { // disband renaissance units (& medieval elites) if ( tmpUnit.type == UnitDB(UNIT_MUSKETEER) || tmpUnit.type == UnitDB(UNIT_INFANTRYMAN) || tmpUnit.type == UnitDB(UNIT_CULVERIN) || tmpUnit.type == UnitDB(UNIT_CANNON) || tmpUnit.type == UnitDB(UNIT_CAVALRY) || tmpUnit.type == UnitDB(UNIT_BERSERKER) || tmpUnit.type == UnitDB(UNIT_SAMURAI) || tmpUnit.type == UnitDB(UNIT_LONGBOWMAN) || tmpUnit.type == UnitDB(UNIT_NOMADIC_HORSEMAN) || tmpUnit.type == UnitDB(UNIT_LONGSHIP) || tmpUnit.type == UnitDB(UNIT_COG) ) { KillUnit(tmpUnit); // kill it } } } // in all other years do nothing do nothing } } } }

Eagle is offline Eagle
Chieftain
Singapore
Apr 2002
time: 13:18
  Old Post 05-04-2002 15:54
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Tired of ads?

Grin, sounds really easy yeah.

Tnx for the code, will copy/paste it in there and try it out again in my next game.

Strange thing is: I am playing on a huge map, there is no war going on and setting is on medium.

Hm, guess we were a little too slow to have musketeers in the 20th century instead of riflemen. Hadn't even invented flight yet.

Maybe, I'll have to try out cradle one time. )

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:18.
Apolyton Time is 00:18.
    top of page
Rate This Thread:
archivepost
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.0373 seconds (88.03% PHP - 11.97% MySQL) with 31 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