Advertisement
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization

Notices

Reply
 
Thread Tools
Old Feb 03, 2007, 06:52 PM   #1
Tenketsu
Chieftain
 
Tenketsu's Avatar
 
Join Date: Jan 2006
Posts: 24
SDK/XML Mod to convert tiles and improvements to percentages

The idea is to set up the code so that instead of each square giving you a flat +X of each yield type when worked, instead no tile would any yields and would instead give the city a +X% bonus to Food/Production/Commerce just for having it in the radius. All your base amounts would then be gotten through specialists, including a new Farmer specialist.

This is the 2nd thing I've done, the first being the basic addition of the Farmer specialist. The way I'm attacking the problem is adding new XML tags to the TerrainInfos to handle YieldModifiers as well as YieldChanges, and then taking the parts of the SDK for things like Forges and combining them with the code for figuring out if a Jungle/Forest/Flood Plains are in radius (not touching the originals, of course, just c&ping and modifiying for new functions). Right now I'm just working on having a percent bonus to a city if it's in it's radius, as I figure that after that it should be relatively easy to adapt for basic terrain and terrain features.

I've been working on this almost non-stop for the last 11 hours, and my brain is rebelling at the thought of doing any more right now (and has been for the last 4-5 hours, I'm very stubborn, not that I have anything to show for all that wasted time). I keep forgetting which function that I'm trying to write etc, etc.

So, I thought I'd post what I have so far (I feel I'm very close to completion) in case anyone else was interested or could point out what I have to do to click everything together at this point (I'm pretty sure it's simple, but right now my brainpower is only slightly greater than that of chocolate pudding), in case by the time I come back to it I've totally lost track of/interest in what I was doing, it won't be a total loss.

All the changes I've made for this have been commented with the keyword "NoTileYield".
Attached Files
File Type: zip NoTileYieldSDK.ZIP (128.8 KB, 23 views)
File Type: zip NoTileYieldsXML.zip (5.6 KB, 21 views)
Tenketsu is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > SDK/XML Mod to convert tiles and improvements to percentages

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SDK/XML] Problem with new text tag in XML salaminizer Civ4 - SDK/Python 11 Jan 09, 2009 11:34 AM
Are tiles w/improvements always worked? MBJODET Civ4 - Strategy & Tips 9 Aug 10, 2006 01:44 PM
Culture Percentages on tiles _alphaBeta_ Civ - Ideas & Suggestions 0 Mar 10, 2006 08:10 AM
Best improvements for Tiles Cropper Civ4 - General Discussions 1 Nov 07, 2005 06:17 AM
What are these percentages on tiles? Dom Pedro II Civ4 - General Discussions 3 Nov 02, 2005 05:10 PM


Advertisement

All times are GMT -6. The time now is 11:18 AM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This site is copyright © Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR