 |
|  |
 |
|  |
 |
|
WesW
|
 |
Florence, Al., USA
Jan 1970 time: 23:14
|
|
Here is a paste of the Readme. Note that you must have the regular version of the mod installed in addition to the Large files.
I looked at the Large civs version of the Medpack I to get an idea of which files needed to be changed. This version is actually simpler than that for the Medpack I. I hope that I did not forget anything.
Large Civs Readme for the Medieval Pack II
By Wes Whitaker
This file describes the general changes made to text files to better suit playing games with large civs (I consider "large" to generally mean 15 or so cities in the initial expansion phase of the game). There should be enough room for about twice this many cities for each civ if all decent land city sites are counted.
Const:
The time given to the AI to take their turns raised by 40%.
The terrain "box" that is used to place ruins raised from 6x6 to 8x7. This means there there will be only about two-thirds as many ruins on a given map as there were previously.
The amount of pollution a civ has to produce to result in anarchy raised from 2,500 to 3,500.
The level at which an eco-pact is broken raised from 200 to 300.
Pollution:
I raised the threshold for disasters on large and huge maps by about 50%.
Govern:
I raised the too many cities threshold and the war discontent max units by 50%, and reduced the penalty for violating the city limit by about 33%.
I lowered the science coefficients for all governments except Tyranny.
Terrain:
I reduced movement costs by about 33%.
I guess that I will leave the slaver disband code alone right now. If a civ has not gotten Flintlock by 1820, I guess they need some slavery to help them out. Funny about the weird disbanding years, though.
Dale, would you delete the code you posted? It is messing up the page width, at least for me. Thanks for the effort, though.
Jani, I have seen what you are reporting. I think it happens when the AIs have regained better feelings towards one another, but have not gotten around to signing a cease-fire. At least I hope this is what is happening.
|
|
|  |
 |
|
Jules
|
 |
Chairman & CEO, Dallas Oil Company
Jul 2001 time: 00:14
|
|
quote: Originally posted by jackazzstudent
I've encountered another small bug. When wonders such as the temple of karnak and aristotle's become obsolete, the shrine and academy do not appear for building in the queue. It doesn't seem to be able to "take away" the benefits of the wonder.
Adam |
Hi, guys! I'm new to the forums, and very impressed by Wes's Med Mod II. I've been working on a solution to the problem posed in the quote above from Adam. The issue he raises is easily corrected by changing Wouter's SLIC code for wonders so that the free improvements granted by wonders can be built again once those wonders expire. The problem, I think, runs much deeper than that however. For example, with Aristotle's Lyceum, the discovery of Public Education should be accompanied by a drop in the civ's science as the Lyceum expires. Unfortunately this is not happening. The game doesn't seem to be able to "turn off" the free building benefit when the wonder's obsoleting advance is discovered (although it is when the city is captured or destroyed). But I think I've figured out a way to use SLIC to remedy this. Below is documentation I've prepared to accompany the bug fix. Feel free to read on if you're interested....
THE PROBLEM
A number of wonders in Med Mod II grant a free building in each of the player's
cities. For example, building Stonehenge gives a Granary in every city. The
problem arises when the wonder is supposed to expire. What happens is that
although the wonder has expired, the benefit has not. So in the case of
Stonehenge it's as if the Granary is still there--food production does not
suddenly drop off after discovering Railroad. This defeats the purpose of
having these wonders expire in the first place. Here are the wonders affected
by this bug:
Aristotle's Lyceum (free Academy) - expires with Public Education
Chichen Itza (free Courthouse) - expires with Neural Reprogramming
Drug Rehab Act (free Prison) - expires with AI Surveillance
Stonehenge (free Granary) - expires with Railroad
Temple of Karnak (free Shrine) - expires with Steam Engine
Ramayana (free Theater) - expires with Electrification
Great Wall (free City Walls) - expires with Military Engineering
This is only a problem when wonders expire. Wonders granting a free improvement
that never expire (obviously) do not have this problem.
MY SOLUTION (not yet completely tested)
In the case of the seven wonders listed above, I have created a set of "anti"
buildings, each corresponding to the building granted by the particular
wonder. An "anti" building does exactly the opposite of the building it
corresponds to. So, an anti-Academy (Aristotle's Lyceum Society in the game)
reduces the city's science by 30%, whereas the Academy adds 30% science. When
a civ possesses a certain wonder and then discovers its obsoleting advance, the
corresponding "anti" building is automatically created in every city to exactly
offset that wonder's benefit. Specifically in SLIC, at the beginning of a city's
turn, a check is made to see if the city owner: 1) possesses the wonder,
2) possesses the advance that obsoletes it, and 3) the city does not already have
the "anti" building in it. If all three conditions are satisfied, the "anti"
building is automatically built. This is done at the beginning of every city's
turn, so you can't cheat by selling off the "anti" building. If you do, it'll
just come right back next turn. In principle you could retain the wonder's
benefit indefinitely by selling off the "anti" building every single turn, but
if you're managing an empire of 50+ cities, I think you have better things to
do with your time! 
In the case of cities being destroyed or changing hands, an additional check is
made to determine whether or not an "anti" building exists even if the city
owner doesn't have the wonder it corresponds to. If it's there, it's automatically
destroyed.
Another issue is that the same building can't exist in a city twice. The wonders
Stonehenge, Temple of Karnak, and Ramayana permit their associated building to be
built after they expire (Granary, Shrine, and Theater respectively) since those
three improvements never go obsolete. But, in the case of Stonehenge for example,
the free Granary is still there even after discovering Railroad. You can rebuild
the Granary, but it won't give any extra food because there's a Granary already
present so to speak. Plus, the Food Silo building requires a Granary to be present
first before one can be built. But notice that after discovering Railroad you can
go right ahead and build Food Silos even though in principle you must have Granaries
first.
In dealing with this, I first modified Wouter's SLIC code for wonders so that
Shrines and Theaters can be built once Temple of Karnak and Ramayana, respectively,
expire. Secondly, I changed the above SLIC procedure as follows, using Ramayana
as an example: 1) the city owner possesses Ramayana, 2) the city owner possesses
Electrification, 2a) the city *does not* already have a Theater present (*not* the
freebie accompanying Ramayana--an actual Theater existing in the city inventory),
3) the city *does not* already have an anti-Theater present (called Ramayana
Reenactment Club). If condition 2a) is not satisfied (meaning there's a Theater
in the inventory) a check will be made to determine if an anti-Theater is present.
If one is, it will automatically be destroyed. That way, if Ramayana has expired
and the city later builds a Theater, there will be an increase in the city's
happiness from buildings.
Dealing with the second part of this issue (e.g., being able to build Food Silos
before Granaries when Stonehenge expires) required further modification to Wouter's
SLIC code for wonders. For example, a city must have a Shrine before it can build
a Basilica or Theater. Now, when a civ has Temple of Karnak and discovers Steam
Engine, a check is made to see if the city has a Shrine. If not, the city cannot
build a Basilica or Theater. A similar check is made for every building which
requires either a Granary, Shrine, or Theater (fortunately not too many!).
I also modified Wouter's SLIC code for wonders so that the "anti" buildings can
never actually be built by anyone. Finally I've given the "anti" buildings
sentimental titles (Stonehenge Cult for anti-Granary, for example), reflecting the
fact that even after a wonder is no longer useful there will always be those who
gather together around a memorial or some kind of social club out of a sense of
nostalgia to celebrate their nation's great achievements.
Aristotle's Lyceum Society (anti-Academy)
Chichen Itza Foundation (anti-Courthouse)
Drug Rehab Act Memorial (anti-Prison)
Stonehenge Cult (anti-Granary)
Temple of Karnak Cult (anti-Shrine)
Ramayana Reenactment Club (anti-Theater)
Great Wall Memorial (anti-City Walls)
Feel free to suggest alternative names for these buildings. These are only
preliminary, as I'm still testing.
Miscellaneous Changes: Courthouses now expire with Neural Reprogramming (same as
Chichen Itza) rather than with Criminal Code. You now need a University to build a
Publishing House instead of an Academy. I figured any city that never built an
Academy before Public Education (or was founded after Public Education) would be
screwed as far as science buildings go, not being able to build Publishing Houses
nor Public Schools (which require Publishing Houses).
Note: There appears to be an internal limit to the number of buildings allowed
by the game. If you have more than 64 improvements in the "buildings.txt" file,
those past the 64th entry are just ignored when used in gameplay. They do appear
in the build lists and scenario editor, and you can build them normally (you'll
even get a "building complete" message), but they won't appear in the city
inventory and you'll derive no benefits/costs from them. I discovered this when
testing out a solution slightly different than the one presented here involving
more than 64 improvements. I couldn't figure out why one of my buildings wasn't
being created when all the others worked fine, until I noticed that the building
in question was right at the end of "buildings.txt". I wrote a test SLIC file to
create improvements through the last entry of "buildings.txt" starting from one I
knew worked. Those past 64 weren't created; those up to and including the 64th
one were created. Fortunately Med Mod II has 57 buildings and my fix adds
another 7, for a total of 64 (just at the limit!).
I know some of this has been rendered moot by Wes's latest text update, where Karnak and Ramayana now no longer expire. Personally I preferred those wonders the way they were, and now with my modification they can expire and lose their benefit, and you'll have to rebuild your Shrines and Theaters.
So whaddaya think? Anybody interested? 
|
|
|  |
 |
|
Locutus
|
|
ACS CTP1/2 Manager & Civ4 Co-Manager
|
 |
Hengelo, The Netherlands
Nov 1999 time: 06:14
|
|
Wes,
I haven't played in a while but it seems you (and the others, esp. Dale) haven't been sitting still in the time I was gone, some of these changes look very interesting. It seems I'll have no choice but to play CtP2 all weekend to catch up 
Wes/Dale,
This code-layout sh*t was already a problem with UBB, I had hoped vB would solve it but apparently not. The problem is that it looks different for everyone, for some people it looks okay, for others it's all screwed up. The only solution is to keep SLIC code that you post here as 'narrow' as possible or, better yet, attach it as a file rather than posting it directly. I specifically asked Markos to allow *.slc files to be attached so we'd better make use of it every now and then 
Jules,
I only read through your post superficially (I have a lot of catching up to do, so I don't have much time at the moment) but it sounds like you put in a lot of effort in that and it looks very impressive However, wouldn't it be easier to just use the DestroyWonder event to kill the relevant wonder at the right moment? That should pretty much have the same effect as capturing or destroying a city. Just an idea, I didn't test it yet or anything.
|
|
|  |
 |
|
WesW
|
 |
Florence, Al., USA
Jan 1970 time: 23:14
|
|
Adam, I did think about the distance penalties, but I realized that they should be taken care of by the reduced movement costs. The distance penalty is based upon the number of turns it takes to get from the capital to the city, so reducing the movement costs by one-third should accomodate the increased number of cities. Once you have roads, the penalty should not be a factor anyway.
I really like the Egyptian style too, but no one else built anything like they did, so I kept their style unique. I have went back and given the style to the Hebrews, Ethiopians and Bantu.
It is hard to give an appropriate style to civs like the Mongols and Zulus who are known for their conquests rather than their buildings.
The CItymod 2 is listed in the Installation readme, and described along with Harlan's mod in the City and Civs readme. I have gone in and noted which of you did what. Is there something I have forgotten I include?
"BTW Wes, just dawned to me: weren't you considering to add BleuO's city expansion mod to the MedMod a while back? I think that would be a great addition, why did it never come to that?"
I *knew* I was forgetting something! Yes, I definitely want to get the expansion mod into the game. It was going to be one of the highlights of the Crusade release, I had just forgotten to list it on my notecard of the additions. I wondered why things seemed a little flat.
Ok, here is what I have on my Crusade wishlist:
1)BlueO's city expansion mod. This one may be difficult, since I do not want to use his method of using the exanding city squares as a type of trade good. If they could be dead or special terrain with the city graphics on top, that would work well.
Dale, this would be a good one for you to jump on while Wouter is working on the pirate code.
Jules, if you want to join us, you are more than welcome. You certainly seem to have some knowledge and expertise in this from your earlier post. You can contact us by email so we can get you on our list, and read up on BlueO's code. His mod should still be up at http://ctp2.homestead.com .
2)Huysman's pirate code. Wouter has said that he would try and finish this. This could be a pretty complicated trigger if you give the pirates land units like I want.
Dale, your experience with the withdrawal trigger and dealing with borders over water could come in handy. Hopefully you guys will start trading emails and come up with some solutions to whatever it was that Huysman's couldn't work out. The last I heard, he said he was almost finished with the trigger. It's too bad that he left. (Where would this mod be without the Dutch? Go figure.)
3)Terrain influenced Elite units. Wouter is already familiar with this one. I want the 9 tiles that a civ's city is on and touching to play a factor in the odds of getting Elite units. Thus, cities with a lot of water around them, like if they were on a small continent or large island, would have a better than 1 in 6 chance of getting the Catamaran or Viking units (Longship and Berserker). Civs with a lot of flat terrain would be more apt to get mounted units, while hilly terrain would increase the chances of the Zulu or Legion units. If we can get the code working, I can have a lot of fun deciding the factors.
These are the big three things that I have in mind at the moment. Since the AI behavior problems kept setting the first public release back, some of the things I had initially envisioned for the Crusade release were ready to go in the first release, like the basic Elite units code. Things like Dale's latest trigger to change diplomacy personalities could have been in Crusade too, but since it was finished and apparently stable, there was no good reason not to include it right now in an update.
I hope to get in touch with Harlan sometime soon, and have him send me his buildings pack so that all the buidings in the mod will have full-sized pics. Harlan, if you read this, send them on in to me. I also wish Charles would return my emails and get me the rest of the GL write-ups he has, even if he never did get them all finished.
Some of the smaller things that I would like to see in the mod include:
1) mercenary units, which would be supported by gold rather than production.
2) food bonuses to a civ when they discover some of the medical advances, to simulate the runaway populations we saw in Europe in the 19th century and many 3rd world nations in the 20th century. I don't think this one is possible, though.
3) boats with fuel supplies, like the PT boat and Monitor. Dale's air trigger might be modified to make the AIs return to base. In this manner, you could give the PT's a big movement range to simulate their speed, but make them return to base the next turn so simulate their role as a defensive and coastal patrol unit.
Dale contacted me today and said that he has found a way to bring back the leader pics to the game, so that is one of the smaller things I wanted already done, I hope.
These are all things I have had in mind since back in the winter, and I hope they explain some of the seemingly superfluous advances and units in the game. They also add to the Medpack's tradition of combining all the best in the civ genre with things never seen before to bring you something more realistic and more fun than we have ever played.
|
|
|  |
 |
|
Jules
|
 |
Chairman & CEO, Dallas Oil Company
Jul 2001 time: 00:14
|
|
Wes,
I originally discovered the problem using the method you described: in scenario editor giving yourself the wonder, then a few turns later giving yourself the advance that obsoletes it. But to be sure it wasn't just something screwy with cheat mode, I built the wonder normally for a few turns, then gave myself enough gold to rush build it. Then I gave myself the prerequisite advances for the obsoleting advance and researched that normally. Alas, same result! 
Locutus,
Is there a KillWonder event? I have all of Activision's SLIC documentation, and haven't found an event or function that destroys wonders. I did find a CreateWonder event, but haven't been able to make it work (CTP2 crashes to desktop everytime it's executed). The documentation is probably incomplete (personally I think it sucks, but oh well... ). I agree that killing the wonder would be the easiest, least messy solution. Although ever since playing the original Civ, I always liked having wonders around even after they expired as a monument to past greatness. Especially during the end-game period when you were almost always involved in a world war with jealous AIs, nukes were flying, and you would think, "Hey, remember when we had that Colossus thing, eliminated our budget deficit, conquered the Roman Empire, and really turned the corner in the science race? Those were the days, huh?!" But I digress.... 
I guess I'd be willing to help out as much as I can with your other projects for the Med Mod. I know a little of SLIC and I can program (had an undergraduate course in TurboPascal, and I program with statistical packages for my graduate work). My wonder fix involves a handful of simple SLIC events/functions (where I could figure out what Activision's documentation was saying! ) and lots of if-else/elseif statements. I'm meticulous to a fault, which is probably how I noticed this wonder bug. So I'd be glad to help. Thanks for making me feel welcome. 
|
|
|  |
 |
|
mtvgnoll
|
|
I cannot seem to get cruise missiles to do anything but crash and burn. they have no attack str no bombard ability. What gives?
|
|
|  |
All times are GMT. The time now is 05:14. Apolyton Time is 00:14. |
top of page
|
|
|
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
|
|
|
|
|
|