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 > Cradle 1.34a
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread   
Pages (4): [ 1   2   3   4   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:23
  Old Post 22-12-2002 18:08
Edit/Delete Message Reply w/Quote
#91 Report this post to a moderator
Get a bigger avatar today!

I always play in debug mode so I've never worried about getting out of it. If you're playing the same game, did you do the 'ReloadSlic' ritual. Open up the chat screen (', apostrophe key) and then type: /reloadslic Then press 'return', and then 'return' again when the chat screen goes clear, to close it. I think that will get you out of debug mode, otherwise you'll probably have to start a new game.

I had an earlier version of the file with slightly fewer lines. I think I found the problem so here's how I corrected it, if Dale wants to use this:

code:
HandleEvent(BeginTurn) 'WDT_MainRoutine' pre { int_t tmpVal; city_t tmpCity; tmpVal = 0; for(WDT_civ = 0; WDT_civ < WDT_NumOfPlayers; WDT_civ = WDT_civ + 1) { if (IsPlayerAlive(WDT_civ)){ if( !(IsHumanPlayer(player[0])) && WDT_civ != player[0] && HasAgreement(player[0], WDT_civ, 3)) { WDT_numoftroops = player[0].units; for(WDT_count = 0; WDT_count < WDT_numoftroops; WDT_count = WDT_count + 1) { GetUnitByIndex(player[0], WDT_count, WDT_tmpunit); if(CellOwner(WDT_tmpunit.location) == WDT_civ && GetAgreementDuration(player[0], WDT_civ, 3) >= 5) { WDT_tmploc = WDT_tmpunit.location; AddCenter(WDT_tmploc); WDT_waterunit = 0; if(TerrainType(WDT_tmploc) >= 10 && TerrainType(WDT_tmploc) <= 17) { WDT_waterunit = 1; } WDT_veteran = 0; if(IsVeteran(WDT_tmpunit)) { WDT_veteran = 1; } if(!(IsCivilian(WDT_tmpunit)) && WDT_waterunit != 1) { tmpVal = WDT_GetDistanceNearestCity(WDT_tmploc, player[0]); GetCityByIndex(player[0], tmpVal, tmpCity); WDT_tmploc = tmpCity.location; AddEffect(WDT_tmpunit.location, "SPECEFFECT_DIPLOMATIC", "SOUND_ID_EXPEL"); WDT_tmptype = WDT_tmpunit.type; Event: DisbandUnit(WDT_tmpunit); CreateUnit(player[0], WDT_tmptype, WDT_tmploc, 2, WDT_tmpunit2); if(WDT_veteran == 1) { ToggleVeteran(WDT_tmpunit2, 1); } } } } } } } }


The thing is that whenever you cycle through the Player array, it's a good idea to check whether the player you want to look at is in the game.

Last edited by Peter Triggs on 22-12-2002 at 18:23

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:23
Post  Old Post 23-12-2002 03:47 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#92 Report this post to a moderator
Help yourself to an AD-FREE life

Is this your own version of the Withdraw script Peter, it is slightly differnt from the version you find in Dale's latest Dipomod version of Apolyton Pack.

For those of you haven't voted for CTP1/2 yet in the top games series poll you sould do it now.

You can also vote for single games in this poll.

-Martin

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:23
  Old Post 23-12-2002 05:53
Edit/Delete Message Reply w/Quote
#93 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

It's Dale's April 22/02 version from the one of the Cradle updates. I just changed a couple of things to try to get rid of that 'out of bounds' error that Azeem reported.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:23
Post  Old Post 24-12-2002 03:12 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#94 Report this post to a moderator
Browse Apolyton AD-FREE

Yeah I wondered why it looked so different in comparsion to my version of DiploMod, so obviously it is a difference between DiploMod 3.5 and 3.6:

code:
HandleEvent(BeginTurn) 'WDT_MainRoutine' pre { int_t tmpVal; city_t tmpCity; location_t tmploc2; location_t tmploc3; tmpVal = 0; player[0] = g.player; for(WDT_civ = 0; WDT_civ < WDT_NumOfPlayers; WDT_civ = WDT_civ + 1) { player[1] = WDT_civ; if(!(IsHumanPlayer(player[0])) && player[1] != player[0] && HasAgreement(player[0], player[1], 3)) { WDT_numoftroops = player[0].units; for(WDT_count = 0; WDT_count < WDT_numoftroops; WDT_count = WDT_count + 1) { GetUnitByIndex(player[0], WDT_count, WDT_tmpunit); tmploc2 = WDT_tmpunit.location; if(CellOwner(tmploc2) == WDT_civ && GetAgreementDuration(player[0], WDT_civ, 3) >= 5) { AddCenter(tmploc2); WDT_waterunit = 0; if(TerrainType(tmploc2) >= 10 && TerrainType(tmploc2) <= 17) { WDT_waterunit = 1; } WDT_veteran = 0; if(IsVeteran(WDT_tmpunit)) { WDT_veteran = 1; } if(!(IsCivilian(WDT_tmpunit)) && WDT_waterunit != 1) { tmpVal = WDT_GetDistanceNearestCity(tmploc2, player[0]); GetCityByIndex(player[0], tmpVal, tmpCity); tmploc3 = tmpCity.location; AddEffect(WDT_tmpunit.location, "SPECEFFECT_DIPLOMATIC", "SOUND_ID_EXPEL"); WDT_tmptype = WDT_tmpunit.type; Event:DisbandUnit(WDT_tmpunit); CreateUnit(player[0], WDT_tmptype, tmploc3, 2, WDT_tmpunit2); if(WDT_veteran == 1) { ToggleVeteran(WDT_tmpunit2, 1); } } } } } } }


Unfortunatly there is another bug in the embasy rebuild code of DiploMod 3.6, actual I don't want to fix it, but use your new DiploMod, but in order to do it I need some status report so that I can decide how finished it is.

-Martin

 
Pages (4): [ 1   2   3   4   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:23.
Apolyton Time is 00:23.
    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.0285 seconds (84.06% PHP - 15.94% 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