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 > City Expansion mod
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 (2): [ 1   2   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:21
  Old Post 31-07-2002 04:16 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
City Expansion mod Get a bigger avatar today!

Let the wonder possibilities drop, eh?
This discussion wasn't meant to be there in the first place.

It strikes me that there hasn't been a picture posted of all the suburbs together to compare.

Here it is. Any comments, suggestions, still welcome.

The ones with red dots are not set to be included by default, but the graphics are in the tile file nonetheless.

Attachment: cityx.jpg
This has been downloaded 169 time(s).

HuangShang is offline HuangShang
King
USA, SoCal, L.A.
Jul 2002
time: 21:21
  Old Post 31-07-2002 06:15
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

i never heard of the City Expansion Mod... what is it...

like the designs... do you mean the city change a little when it grows?

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:21
  Old Post 31-07-2002 06:24
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

As you know i have been using a variation of the BlueO city expansion and for that i have modified a bit of one civ3 city graphic. It is more red compared to civ3 graphic (Since they were getting confused with the plains color in the way they were) and the edge houses are changed to give an idea of continuation (they fit like a puzzle) while the city is growning.
For the dead city of it BlueO's ancient dead one works perfecly.

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:21
  Old Post 31-07-2002 06:26
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Suffering from ads?

For some reason the picture did not appeared in my last post.
No problem, though. Here it is:

Attachment: citycópia.png
This has been downloaded 159 time(s).

Last edited by Pedrunn on 31-07-2002 at 06:39

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:21
  Old Post 31-07-2002 19:58 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

quote:
Originally posted by HuangShang
i never heard of the City Expansion Mod... what is it...

The City Expansion mod was originally part of BlueO's Alto-SciFi mod.
What it did was to make suburbs of cities appear in the surrounding terrain as the city grew. So for every 3 population points (starting at 6), an "expansion" was placed as a good, just outside the city.
The way BlueO did it was to create new terrains, each of which had these city expansion graphics as goods on that terrain.

The idea was great, but the way BlueO did it had some drawbacks, namely that the goods could be traded, and so you got little cities flying across the map.

Pedrunn and myself have been working to convert this mod into a more up-to-date one, using Martin the Dane's TileEdit program, we can add tile improvements, and use them as the suburb graphics.

There are merits to both approaches, but I think tile improvements are slightly better, and more adaptable to the circumstances.

The tile improvements can give a slight commerce bonus, have the movement cost of a road (or railroad, or maglev, depending on era), and be pillagable etc. etc.

Pedrunn: that is nice! Do you mind if I use it to replace your previous ancient age suburb?

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:21
  Old Post 31-07-2002 20:40
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton

It is yours, now!

Note: I am secure when i say that it is impossible to play with the good version because of a bug in the price of the good when traded

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:21
  Old Post 31-07-2002 20:48 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Got spare money?

What bug is that?

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:21
Post  Old Post 31-07-2002 20:58 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Full PM-box? Change here!

quote:
Originally posted by Pedrunn
Note: I am secure when i say that it is impossible to play with the good version because of a bug in the price of the good when traded.


I wouldn't be shure if you couldn't prevent the AI and the human from trading those "goods".

The SendGood event:

SendGood(int_t, city_t, city_t)
It does has in int_t as parameter, don't shure what it does represent, actual I am not shure I to access an int_t, if it is possible to use value[0] then it is ok but the question what does it represent in the end, if it is a good database index then it shouldn't be a problem to prevent everyone from trading certain goods.

But anyway as Ben already pointed out the tileimprovement version has huge advances.

-Martin

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:21
  Old Post 31-07-2002 22:24
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Help yourself to an AD-FREE life

I wrot this in the wonder possibilities thread. you must have missed.

quote:

As for the BlueO expansion, we can just forget it.

It has a major bug! Since the city goods arent in the beggining of the game their gold value isnt calculated.

This causes the good to have a astronomic value of thousands of gold (I guess the maximum) probably because of their rarity.
The only solution is to save and load the game.
Because the games re-calculates the goods during loading. Yet having to load the game several times during the play is a game ruiner


I hope my english is clear.

Martin, the city good would still appear in the trade screen. Using them was going to cause caravan losts. We would have to control the AI not to use the goods. I thnk it will just lead us to new bugs. So, the best is to work on the TI expansion.

Last edited by Pedrunn on 31-07-2002 at 22:35

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:21
  Old Post 02-08-2002 05:50
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Suffering from ads?

I will also leave the Wonder Possibilities thread drops, too.

This may make you made mad .
But i changed code of the city expansion to create wonders and it worked

quote:
Originally posted by Immortal Wombat
Also, I have allowed the pillaging of suburbs - it turns them into razed ones. I figured if you can raze cities, you should be able to raze suburbs. You cannot raze your own, or neutral ones.

Anyway it seems to be impossible to prevent the cities/wonders to be pillaged .
The other problem is when we create a imp over the city/wonder. I cant stop it either.

quote:
Originally posted by Immortal Wombat
That's really wierd. It seems to work ok... but the reducing city thing doesn't work, and sometimes the medieval age suburbs downgrade to ancient ones.


It is wierder than you think. It follows a pattern. It places in the first expansion the correct TI. And for the next two expansions it places the ancient age one. Then it restarts the cycle by place one correct and then two incorrect. And so on.

It does not depend on the age but the number of graphics in the set. It happens with a set of more than two city graphics. In my case it was during modern age (3 graphics set).

I have know idea what causes it and there is nothing to relate it to in the code

I will try a shot in the dark by re- arranging the code since i think the problem lies in the ExpandCity function.

I will keep you informed!

Last edited by Pedrunn on 02-08-2002 at 05:59

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:21
  Old Post 02-08-2002 20:14 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Support Apolyton buy from Amazon

quote:

But i changed code of the city expansion to create wonders and it worked

Only a little mad, because my wonder code works too. Its everyone else's PCs that don't

quote:

Anyway it seems to be impossible to prevent the cities/wonders to be pillaged

I've done it for the wonders. The cities don't work, because it has to create the razed ones over the top.

quote:

I will try a shot in the dark by re- arranging the code since i think the problem lies in the ExpandCity function.

I think you are right. The Replace**tiles function is returning sucess=0, and it so it goes to the next age back, but I don't know why.

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:21
  Old Post 02-08-2002 22:40
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

DP

Last edited by Pedrunn on 02-08-2002 at 23:01

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:21
  Old Post 02-08-2002 22:52
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

quote:
Originally posted by Immortal Wombat
I've done it for the wonders. The cities don't work, because it has to create the razed ones over the top.

What!?! I had tried the way you did it in your mod and it didnt worked! I alway get wonders being pillaged

quote:
Originally posted by Immortal Wombat
I think you are right. The Replace**tiles function is returning sucess=0, and it so it goes to the next age back, but I don't know why.

I have got a fix.
I re-arranged the code in a way that it only has one ReplaceTile Fuction now. But it wanst it that was causing the problem. Yet i liked the way it looked. And i think i will keep it like that.

Anyway, The problem is in the FAI_PlayerAge[] variable. I dont know why but to solve this bug i just changed it for the HasAdvance fuction.

Now i am aiming in fixing the reduce city. You also had this problem, didnt you? Any lucky?

PS: I have added the Medieval age city in the function.
PS2: I did some important changes in the tileimp.txt. once i finish with it i will attach here.
PS3: You will note that i made wonders possible to be created in any land tile (you will need to change your tileimp.txt.

Here is the new code:

Attachment: as_blueo.slc
This has been downloaded 6 time(s).

Last edited by Pedrunn on 02-08-2002 at 23:53

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:21
  Old Post 03-08-2002 01:32 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton, buy Civilization 2

I "re-translated" the code from BlueO's, and I think it works pretty well now. I have to test out some more things, there are still some bugs, and I haven't dealt with the pillaging yet, but it works.

One wierd thing though, it works sporadically, on every 3rd population point, then every one, then every six.

Attachment: iwx_expand_city.slc
This has been downloaded 7 time(s).

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:21
  Old Post 03-08-2002 02:33
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Support Apolyton, buy Alpha Centauri

DP.
What a F***. It is the third time in two days

Last edited by Pedrunn on 03-08-2002 at 02:45

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:21
  Old Post 03-08-2002 02:37
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Avatar Enlargement: We've got the solution

I am pretty sure you are having the same old crazy bug. Try this ExpandCity function:

code:
int_f ExpandCity(int_t owner, location_t cityLoc, int_t cityRadius, int_t tileType, int_t addDelete) { location_t tmpLoc; location_t tmp2Loc; int_t i; int_t j; int_t k; int_t sucess; int_t newType; int_t searchRadius; int_t addDeleteYN; int_t ownerNum; if (FAI_INIT == 1000) { searchRadius = 1; sucess = 0; newType = tileType; addDeleteYN = addDelete; ownerNum = owner; j = random(6); if (j == 0 || j == 5 || j == 2 || j == 7) { j = 6; } while (searchRadius <= cityRadius && sucess == 0) { tmpLoc = cityLoc; for (k = 0; k < searchRadius; k = k + 1) { GetNeighbor(tmpLoc, j, tmp2Loc); tmpLoc = tmp2Loc; } if (HasAdvance(owner, ID_ADVANCE_TOOLMAKING) && !HasAdvance(owner, ID_ADVANCE_CONCRETE) && !HasAdvance(owner, ID_ADVANCE_GLOBAL_ECONOMICS) && !HasAdvance(owner, ID_ADVANCE_EUGENICS) && !HasAdvance(owner, ID_ADVANCE_ARCOLOGIES)) { sucess = ReplacePCTile(ownerNum, tmpLoc, searchRadius, j, newType, addDeleteYN); } elseif (HasAdvance(owner, ID_ADVANCE_TOOLMAKING) && HasAdvance(owner, ID_ADVANCE_CONCRETE) && !HasAdvance(owner, ID_ADVANCE_GLOBAL_ECONOMICS) && !HasAdvance(owner, ID_ADVANCE_EUGENICS) && !HasAdvance(owner, ID_ADVANCE_ARCOLOGIES)) { sucess = ReplaceACTile(ownerNum, tmpLoc, searchRadius, j, newType, addDeleteYN); } elseif (HasAdvance(owner, ID_ADVANCE_TOOLMAKING) && HasAdvance(owner, ID_ADVANCE_CONCRETE) && HasAdvance(owner, ID_ADVANCE_GLOBAL_ECONOMICS) && !HasAdvance(owner, ID_ADVANCE_EUGENICS) && !HasAdvance(owner, ID_ADVANCE_ARCOLOGIES)) { sucess = ReplaceMCTile(ownerNum, tmpLoc, searchRadius, j, newType, addDeleteYN); } elseif (HasAdvance(owner, ID_ADVANCE_TOOLMAKING) && HasAdvance(owner, ID_ADVANCE_CONCRETE) && !HasAdvance(owner, ID_ADVANCE_GLOBAL_ECONOMICS) && !HasAdvance(owner, ID_ADVANCE_EUGENICS) && !HasAdvance(owner, ID_ADVANCE_ARCOLOGIES)) { sucess = ReplaceACTile(ownerNum, tmpLoc, searchRadius, j, newType, addDeleteYN); } elseif (HasAdvance(owner, ID_ADVANCE_TOOLMAKING) && HasAdvance(owner, ID_ADVANCE_CONCRETE) && HasAdvance(owner, ID_ADVANCE_GLOBAL_ECONOMICS) && HasAdvance(owner, ID_ADVANCE_EUGENICS) && !HasAdvance(owner, ID_ADVANCE_ARCOLOGIES)) { sucess = ReplaceGCTile(ownerNum, tmpLoc, searchRadius, j, newType, addDeleteYN); } elseif (HasAdvance(owner, ID_ADVANCE_TOOLMAKING) && HasAdvance(owner, ID_ADVANCE_CONCRETE) && HasAdvance(owner, ID_ADVANCE_GLOBAL_ECONOMICS) && HasAdvance(owner, ID_ADVANCE_EUGENICS) && HasAdvance(owner, ID_ADVANCE_ARCOLOGIES)) { sucess = ReplaceALTile(ownerNum, tmpLoc, searchRadius, j, newType, addDeleteYN); } i = j + 1; while (i != j && sucess == 0) { tmpLoc = cityLoc; for (k = 0; k < searchRadius; k = k + 1) { GetNeighbor(tmpLoc, i, tmp2Loc); tmpLoc = tmp2Loc; } if (HasAdvance(owner, ID_ADVANCE_TOOLMAKING) && !HasAdvance(owner, ID_ADVANCE_CONCRETE) && !HasAdvance(owner, ID_ADVANCE_GLOBAL_ECONOMICS) && !HasAdvance(owner, ID_ADVANCE_EUGENICS) && !HasAdvance(owner, ID_ADVANCE_ARCOLOGIES)) { sucess = ReplacePCTile(ownerNum, tmpLoc, searchRadius, j, newType, addDeleteYN); } elseif (HasAdvance(owner, ID_ADVANCE_TOOLMAKING) && HasAdvance(owner, ID_ADVANCE_CONCRETE) && !HasAdvance(owner, ID_ADVANCE_GLOBAL_ECONOMICS) && !HasAdvance(owner, ID_ADVANCE_EUGENICS) && !HasAdvance(owner, ID_ADVANCE_ARCOLOGIES)) { sucess = ReplaceACTile(ownerNum, tmpLoc, searchRadius, j, newType, addDeleteYN); } elseif (HasAdvance(owner, ID_ADVANCE_TOOLMAKING) && HasAdvance(owner, ID_ADVANCE_CONCRETE) && HasAdvance(owner, ID_ADVANCE_GLOBAL_ECONOMICS) && !HasAdvance(owner, ID_ADVANCE_EUGENICS) && !HasAdvance(owner, ID_ADVANCE_ARCOLOGIES)) { sucess = ReplaceMCTile(ownerNum, tmpLoc, searchRadius, j, newType, addDeleteYN); } elseif (HasAdvance(owner, ID_ADVANCE_TOOLMAKING) && HasAdvance(owner, ID_ADVANCE_CONCRETE) && !HasAdvance(owner, ID_ADVANCE_GLOBAL_ECONOMICS) && !HasAdvance(owner, ID_ADVANCE_EUGENICS) && !HasAdvance(owner, ID_ADVANCE_ARCOLOGIES)) { sucess = ReplaceACTile(ownerNum, tmpLoc, searchRadius, j, newType, addDeleteYN); } elseif (HasAdvance(owner, ID_ADVANCE_TOOLMAKING) && HasAdvance(owner, ID_ADVANCE_CONCRETE) && HasAdvance(owner, ID_ADVANCE_GLOBAL_ECONOMICS) && HasAdvance(owner, ID_ADVANCE_EUGENICS) && !HasAdvance(owner, ID_ADVANCE_ARCOLOGIES)) { sucess = ReplaceGCTile(ownerNum, tmpLoc, searchRadius, j, newType, addDeleteYN); } elseif (HasAdvance(owner, ID_ADVANCE_TOOLMAKING) && HasAdvance(owner, ID_ADVANCE_CONCRETE) && HasAdvance(owner, ID_ADVANCE_GLOBAL_ECONOMICS) && HasAdvance(owner, ID_ADVANCE_EUGENICS) && HasAdvance(owner, ID_ADVANCE_ARCOLOGIES)) { sucess = ReplaceALTile(ownerNum, tmpLoc, searchRadius, j, newType, addDeleteYN); } sucess = ReplaceALTile(ownerNum, tmpLoc, searchRadius, j, newType, addDeleteYN); } i = i + 1; if (i == 8) { i = 0; } } searchRadius = searchRadius + 1; } return sucess; } else { return 0; } }


Note: I got game crashs when when i added the medieval age function.

Last edited by Pedrunn on 03-08-2002 at 02:50

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:21
  Old Post 06-08-2002 08:45
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Help yourself to an AD-FREE life

IW, my code is working fine.
The only problem is the CreateUnit event that doesnt work (damn activision) and the pillaging.
The first isnt a big deal since for all mods only the settlers units kill pops when built.
Yet, have you tried the pillaging? Any lucky?

Please, say you have good news!

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:21
  Old Post 06-08-2002 15:30 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Lose 30 kilos (of popups)

ok.
Does the ReduceCity1/4 function work when called by other events, such as plague or conquest? If it does, and it is just the CreateUnit event that is buggy, then could you repost your complete code and tileimp.txt - without the wonders in, I want to keep that separate.

I'll have a look at the pillaging some more.

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:21
  Old Post 06-08-2002 21:22
Edit/Delete Message Reply w/Quote
#19 Report this post to a moderator
Got spare money?

Here it is.

I took the create wonders fuction off the code but i kept the fuction to prevent the creation of cities over them (The very first one: "TileHasWonder").
If you want it out too just tell me.

EDIT: One funny thing, the CaptureCity Event is known to work nicely. As we can see in the partisan code, the new capture option code and many others. But it does not seems to work with the ReduceCity function . What you think?

Attachment: as_blueo.slc
This has been downloaded 4 time(s).

Last edited by Pedrunn on 06-08-2002 at 22:12

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:21
  Old Post 09-08-2002 18:57
Edit/Delete Message Reply w/Quote
#20 Report this post to a moderator
Avatar Enlargement: We've got the solution

IW, Did you get a solution for pillaging?

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:21
  Old Post 12-08-2002 07:24
Edit/Delete Message Reply w/Quote
#21 Report this post to a moderator
Support Apolyton buy from Amazon

I feel so stupid. Indeead i cant get the PillageOrder and PillageUnit to work. But the CutImprovements do work. my trouble was that i used a local variable to call the location variable of the event. when i used the built in variable location[0] all worked nicely.

Last edited by Pedrunn on 12-08-2002 at 07:33

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:21
  Old Post 12-08-2002 17:56 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#22 Report this post to a moderator
Full PM-box? Change here!

Excellent. I just came by to find that picture you posted, again. I lost it last time. So I take it the pillaging does now work?

Oh, about that bug in the CaptureCity event, I think it is because the city owner is changing across the course of that handler. Set the handler to post, rather than pre, and the owner will be the conqueror, and when the expand city code fires, the tile improvement will be able to be built by the new owner, in the new owner's territory.

I think.

I figured out the bug in the wonder code, so I'll get this lot wrapped up, and release it again.

Pedrunn, unless you want me to continue administering to the tile files, and the overall conception of this, its your mod: most of the graphics are yours, its your code.
I'm happy to write the readme and collect it all together, but its your decision.

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:21
  Old Post 12-08-2002 21:09
Edit/Delete Message Reply w/Quote
#23 Report this post to a moderator
Remove this text

quote:
Originally posted by Immortal Wombat
Excellent. I just came by to find that picture you posted, again. I lost it last time. So I take it the pillaging does now work?.

Yep it work fine except for a small bug. The CutImprovents event only prevents the TI to be cutted. yet pillage still happen (the effect and the unit looses movements). This makes the AI try to pillage over and over and over every turn although Imps remains untouched. So i am making a function to make the units move out of this TI.

quote:
Originally posted by Immortal Wombat
Oh, about that bug in the CaptureCity event, I think it is because the city owner is changing across the course of that handler. Set the handler to post, rather than pre, and the owner will be the conqueror, and when the expand city code fires, the tile improvement will be able to be built by the new owner, in the new owner's territory.

I will try this. But i am feeling this will work out. since the city owner has to be also the owner of the terrain where the city imp is going to be added. And that is where the problem lies.
quote:
Originally posted by Immortal Wombat
I figured out the bug in the wonder code, so I'll get this lot wrapped up, and release it again.

I did not got what you meant by this. Are you going to give up of your code and use mine? Or will you fix it?
quote:
Originally posted by Immortal Wombat
Pedrunn, unless you want me to continue administering to the tile files, and the overall conception of this, its your mod: most of the graphics are yours, its your code.
I'm happy to write the readme and collect it all together, but its your decision.

To tell you the truth i have already made some changes in the til file so i do want to take care of the til nad control whoever wants to add new things to it.
I can do the read me but i prefer that you make it. you have a better english and i am starting to get busy here with real life, the religion code, City expansion and the GL of my mod that never finishs). So do you want to take the read me work?

PS: There seems to be a imcompatibility with the Martin's new capture options code. No matter what i change in both codes I cant get the surrouding suburbs to reduce if the city is bloodbath, enslaved or evacueted. I will attach the new code soon so that you can give it a shot too.

Martin Gühmann is offline Martin Gühmann
Emperor
Berlin, Germany
Mar 2001
time: 06:21
Post  Old Post 12-08-2002 21:40 Visit Martin Gühmann's homepage!
Edit/Delete Message Reply w/Quote
#24 Report this post to a moderator
Suffering from ads?

quote:
Originally posted by Pedrunn
Yep it work fine except for a small bug. The CutImprovents event only prevents the TI to be cutted. yet pillage still happen (the effect and the unit looses movements). This makes the AI try to pillage over and over and over every turn although Imps remains untouched. So i am making a function to make the units move out of this TI.


Maybe you have to check PillageUnit and PillageOrder event. As I wrote this little slic code I was happy that it avoided the crash, so far I never saw an AI of pillaging again and again. Maybe this was caused by the fog of war.

quote:
Originally posted by Pedrunn
PS: There seems to be a imcompatibility with the Martin's new capture options code. No matter what i change in both codes I cant get the surrouding suburbs to reduce if the city is bloodbath, enslaved or evacueted. I will attach the new code soon so that you can give it a shot too.


It looks that your code has to trigger on the KillCity and on the KillPop events. And note that I did some changes for mapfi recently. You find the newest version in the accoring thread in the CTP2 general forum.

-Martin

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:21
  Old Post 13-08-2002 02:07
Edit/Delete Message Reply w/Quote
#25 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

You got it right IW . the CaptureCity works now

Martin, I got the new code but it still does not work .
quote:

It looks that your code has to trigger on the KillCity and on the KillPop events

Those event are included in the code. They should have been triggered.

quote:

Maybe you have to check PillageUnit and PillageOrder event. As I wrote this little slic code I was happy that it avoided the crash, so far I never saw an AI of pillaging again and again. Maybe this was caused by the fog of war.

What slic code you wrote?
I've tried not succefully those two functions. And cant be fog of war. I just placed a barb unit close to deads cities TI in the firsts turns. He went to the TI location and started to try pillaging the TI every turn.

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:21
  Old Post 17-08-2002 01:11
Edit/Delete Message Reply w/Quote
#26 Report this post to a moderator
Avatar Enlargement: We've got the solution

quote:
Originally posted by Martin Gühmann
so far I never saw an AI of pillaging again and again. Maybe this was caused by the fog of war.

You were right. The AI doenst keeping pillage endless.
Its unit keeps trying pillaging for several turns (about five) and them give up. So this is not a problem.

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:21
  Old Post 17-08-2002 01:36 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#27 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

It could be removed entirely by adding an extra strategy that kicked in when it started pillaging suburbs. It only needs one component - the pillage goal with a priority, maxeval and maxexec of 0.

But I still think you should be able to pillage them.

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:21
  Old Post 17-08-2002 01:54
Edit/Delete Message Reply w/Quote
#28 Report this post to a moderator
Support Apolyton, buy Civilization 2

Actually when you pillage them they turn to ruins. But the AI keeps pillaging them when they are ruins. And i dont want ruins to be pillaged.

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:21
  Old Post 17-08-2002 02:56 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#29 Report this post to a moderator
Support Apolyton buy from Amazon

Ah. Yes, good point. Kill them, and blame bandits.

Pedrunn is offline Pedrunn
King
of Natal, Brazil
Jul 2001
time: 02:21
  Old Post 17-08-2002 06:55
Edit/Delete Message Reply w/Quote
#30 Report this post to a moderator
Avatar Enlargement: We've got the solution

 
Pages (2): [ 1   2   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:21.
Apolyton Time is 00:21.
    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.0778 seconds (92.94% PHP - 7.06% 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