Idiots' guide request

Flying Pig

Utrinque Paratus
Retired Moderator
Joined
Jan 24, 2009
Messages
15,647
Location
Perfidious Albion
Okay... What I want is for someone to explain, in simple terms, how to do this or at least give a list of what needs to be done.

I want to make a wonder of the world, the Silk Road, doing this:

  • Buiding a 'silk road' improvement between your capital and the nearest foreign city with access to silk
  • Adding +3 Commerce
  • Incresing the chances of generating a Great Merchant by 20% in your capital, and 10% elsewhere along the route

The road itself has these attributes:

  • +2 commerce
  • Connects improved resources with cities
  • Cannot be pillaged (non-essential)
  • Has a unique graphic to make it stand out
  • Allows 4 tiles/ mp movement

When it obseletes, I want the road to stay there.
 
I'll try to help. You need to go to the XML folder with the wonders. Add the XML to the file, then you go to "Art" under "Assets" to put in a button for it. Not sure how to do the wonder videos, though. Or the graphics for the road.
 
well a few simple insights:

The way you explain, you will want it to only be in a civs capitol. Therefore you should make the Wonder, Silk Road require a Palace be present in the city. Adding the +3 commerce is easy enough, and so is the +20% merchant in said city.

Actually making it find the nearest foreign city with silk and building a 1 tile wide "silk road" to and from could be complicated. Also adding in +10% GM chance on any cities along the way.

you would almost have to create an entirely new "route" (i.e. "silk road") and have the wonder grant those improvements, so that it could give the +2 commerce properly along the route. Also to do the check to see if a city has "silk roads" would be required to give the extra +10% GM chance in cities along the way. All the actual attributes that you mention for the road itself are quite easy to do (with the exception of the art, but that could also be made easy if your familiar with doing art).
_____________________________________________

what I would recommend is to create a new wonder, similar to all the ones already present. Do all the easy things for it first....

- make it require Palace building
- make it give +3 commerce
- make it give +20% Great Merchant (or perhaps just a standard integer value like +3)
___________________________________________

- create a new type of route: Silk Road
- make Silk Roads give +2 commerce
- make Silk Roads un-pillageable (not completely sure if this is done easily, I haven't looked)
- customize the already existing road art to look differently and stand out, then link to your new route type: Silk Road
- customize the iMovementRate for the route type: Silk Road

thats the easy stuff


for the other things it will require modification to the python or perhaps even the SDK.

A good place to look is the WoC or the VISA mod (for warlords). They already incorporate a similar wonder called "Roman Roads" that when built, automatically places (I think) special roads in the cities workable tiles (aka the fat cross).

you would just need to edit this to find nearest city with silk and complete a route between the two, similar to the auto worker function that connects cities and resources.

it also wouldn't be a bad idea to make sure whomever is building the wonder does not currently have access to silk (or at least not present within their own cities radius')

some parts of it may not be easy, but the bulk of it isn't too hard.
 
I'll try to help. You need to go to the XML folder with the wonders. Add the XML to the file, then you go to "Art" under "Assets" to put in a button for it. Not sure how to do the wonder videos, though. Or the graphics for the road.

I can do the video - there is a file in XML\Art somewhere (ArtDefinesMovie, I think)

Roman Roads idea sounds good - what's WoC and VISA?

I probably need to know how the Great Wall of China works
 
I can do the video - there is a file in XML\Art somewhere (ArtDefinesMovie, I think)

Roman Roads idea sounds good - what's WoC and VISA?

I probably need to know how the Great Wall of China works

Via Appia aka Roman Roads, was a wonder modcomp made by Gir and can be found in his modcomp collection here:

http://www.atomicgamer.com/file.php?id=67261

You can also write specific instructions to place un-pillagable improvements on the map, much like I did with my Golden Gate Bridge modcomp.

There is some AI to find a nearest city and connect it with a route, but it's probably buried in the SDK with the worker's automate trade route command (maybe also the missionaries auto-spread faith command).

Ultimately, I think all of it (or at least very very closely to what you want) can be done with just python. "# Incresing the chances of generating a Great Merchant by 20% in your capital, and 10% elsewhere along the route" is probably the only thing that would need SDK modding only because you can't change percentages only for one GPP type, however if you only want a raw boost then its easier.
 
Back
Top Bottom