Results 1 to 30 of 30

Thread: 3-square radius cities mod

  1. #1
    rogerbacon
    Chieftain
    Join Date
    21 Nov 2005
    Posts
    98
    Country
    This is rogerbacon's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 26, 2013
    Local Time
    05:24

    3-square radius cities mod

    Three Square Radius Cities Mod
    by
    Roger Bacon

    Version 1.0 (5/04/2006)
    Designed to work with Civ4 version 1.61

    File is located here



    What it does:
    --------------

    This mod makes it so that cities can work squares as shown below:
    Code:
           X, X, X,     
        X, X, X, X, X,  
     X, X, X, X, X, X, X,
     X, X, X, C, X, X, X,
     X, X, X, X, X, X, X,
        X, X, X, X, X,  
           X, X, X,     
    
    C= city
    I've also added in my "Borders over Ocean" mod. It allwos cultural borders to extend over ocean. Previously they stopped at the first ocean square.

    How to Use
    ------------

    Copy the CvGameCoreDLL.dll into your \Civ4\Assets folder, overwriting the existing dll. You should backup your original dll first in case you want to undo this mod.
    The .cpp and .h files are included in case someone wants to compile their own dll or combine this mod with another mod.

    Enjoy,
    Roger Bacon

  2. #2
    Ijuin
    Prince
    Join Date
    07 May 2002
    Location
    Tokyo, Japan
    Posts
    463
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 26, 2013
    Local Time
    14:24
    It's not letting me download the file--I get a "your download key is not valid" error.
    Those who live by the sword...get shot by those who live by the gun.

  3. #3
    roadcage
    Prince roadcage's Avatar
    Join Date
    04 Nov 2001
    Location
    Minneapolis Kansas
    Posts
    712
    Country
    This is roadcage's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 25, 2013
    Local Time
    23:24
    What's the enabling tech? Surely you don't let players get this feature for two measley border expansions.
    I used to be a builder. That was before I played Civ III

  4. #4
    Ari
    Warlord
    Join Date
    19 Nov 2001
    Location
    Boston
    Posts
    102
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 26, 2013
    Local Time
    05:24
    What's the nature of the modification? Do you have to play with the source code to get something like that, or is that buried in one of the xml files? On another note, what are the other mods that are seen in the screenshot?

  5. #5
    Smellycowsquid
    Prince Smellycowsquid's Avatar
    Join Date
    19 Feb 2006
    Location
    Of Jordania
    Posts
    729
    Country
    This is Smellycowsquid's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 26, 2013
    Local Time
    01:24
    Are those two different Christian Missionaries?
    "Dumb people are always blissfully unaware of how dumb they really are."
    Check out my Blog!

  6. #6
    rogerbacon
    Chieftain
    Join Date
    21 Nov 2005
    Posts
    98
    Country
    This is rogerbacon's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 26, 2013
    Local Time
    05:24
    Originally posted by Ijuin
    It's not letting me download the file--I get a "your download key is not valid" error.
    It looks like Filefront is having another one of its many databse maintanence periods. It says "To All FileFront Users: Hosted file services for some files posted by usernames M-S may be temporarily unavailable. " Try back later.

    Originally posted by roadcage
    What's the enabling tech? Surely you don't let players get this feature for two measley border expansions.
    It's a modification to the game. There is no 'enabling tech'.

    Originally posted by Ari
    What's the nature of the modification? Do you have to play with the source code to get something like that, or is that buried in one of the xml files? On another note, what are the other mods that are seen in the screenshot?
    The nature of the modification is that it lets cities work squares up to a distance of three squares instead of just two. It is a SDK mod so I had to build a new DLL. The source files are included if you want to build it yourself.
    You can ignore any other mods seen in the screenshot. Those would be mods that I have incorproated into my game but they are not in the download. Only the 3-square distance cities and the borders over ocean are in the download.

    Originally posted by Smellycowsquid
    Are those two different Christian Missionaries?
    Yeah, but they are not part of the mod. They are in another mod that has Christianity broken up into Catholic, Protistant, Reformed, and Orthodox.

    Roger Bacon

  7. #7
    Prussia
    Prince
    Join Date
    15 Jun 2006
    Posts
    975
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 26, 2013
    Local Time
    00:24
    Wait, in the assets folder?

    You mean /CustomAssets/, or /assets/ that is under /CustomAssets/?

    And I don't see the .dll file...

  8. #8
    MMC
    King MMC's Avatar
    Join Date
    30 Mar 2006
    Location
    of the wet little isle known as Britain
    Posts
    1,205
    Country
    This is MMC's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 26, 2013
    Local Time
    05:24
    Have you tried looking the the /Mods folder?
    Ceeforee v0.1 - The Unofficial Civ 4 Editor -= Something no Civ Modder should ever be without =- Last Updated: 27/03/2009
    "Just because I'm paranoid doesn't mean there's no conspiracy"

  9. #9
    MrFun
    Deity MrFun's Avatar
    Join Date
    19 Nov 2000
    Location
    Iowa
    Posts
    12,807
    Country
    This is MrFun's Country Flag
    Thanks
    84
    Thanked 17 Times in 16 Posts
    Local Date
    May 26, 2013
    Local Time
    00:24
    How is that city that produces no hammers in any tiles producing 27 hammers?
    I am angry because someone in line in front of me at Subway ordered a sandwich that I do not like, even though it has no effect on me. This how arguments against equal marriage rights sound.

  10. #10
    Indon
    Settler
    Join Date
    27 Dec 2005
    Posts
    18
    Country
    This is Indon's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 26, 2013
    Local Time
    05:24
    The city's GP heavy. Note all the great engineers and such.

    This looks like an interesting mod, too. It would allow for truly impressive specialized cities, late in the game. It would also allow for one to be a bit less picky when it comes to critical city placement. I like the concept.

    Edit: But alas, the link doesn't seem to work for me. Hmm...

  11. #11
    icheben
    Settler
    Join Date
    07 Jan 2005
    Posts
    17
    Country
    This is icheben's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 26, 2013
    Local Time
    05:24
    would it be possible to expand the radius a city can work tiles but limit the number of tiles it can work to be still 20? Imagine, you could place city's one on another like on the american east-coast. They would have overlapping working areas but could work 20 tiles each in the land behind and grow big and strong (as they did in reality).

  12. #12
    Thror78
    Chieftain
    Join Date
    15 Aug 2006
    Posts
    36
    Country
    This is Thror78's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 26, 2013
    Local Time
    05:24
    @MrFun: The Answer is liing in the people that had been settled there ;-)

  13. #13
    Ijuin
    Prince
    Join Date
    07 May 2002
    Location
    Tokyo, Japan
    Posts
    463
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 26, 2013
    Local Time
    14:24
    Hey, is there a version of this mod which is compatible with Warlords?
    Those who live by the sword...get shot by those who live by the gun.

  14. #14
    Thror78
    Chieftain
    Join Date
    15 Aug 2006
    Posts
    36
    Country
    This is Thror78's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 26, 2013
    Local Time
    05:24
    Great Job rogerbacon!

    Might you tell us what changings you did in what file.
    I will try to do the same with the warlords sdk.
    Last edited by Thror78; September 10, 2006 at 07:34.

  15. #15
    Thror78
    Chieftain
    Join Date
    15 Aug 2006
    Posts
    36
    Country
    This is Thror78's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 26, 2013
    Local Time
    05:24
    Hmm ... i found the needed code and tried to modify it to make a 4 radius city. Everything works, but the problem is that the tiles at the border of the level 4 are under the buildingslist (left), under the specialistlist(right), under the Productionlist (bottom) and under the cityinformations (top).

    Even the 3RadiusCity has it's top tiles under the cityinformations (food/health/production/happiness).

    Any idea how to get all workable tiles in the middlearea?

    There are two ways i think of:

    - zoom out in cityscreen (but where code that)
    - set a smaller Plot size
    solved (in GlobalDefines.xml):


    CAMERA_CITY_ZOOM_IN_DISTANCE
    5000
    Attached Images Attached Images
    Last edited by Thror78; September 11, 2006 at 06:00.

  16. #16
    Kuciwalker
    Deity Kuciwalker's Avatar
    Join Date
    17 Feb 2001
    Posts
    19,361
    Thanks
    5
    Thanked 16 Times in 12 Posts
    Local Date
    May 26, 2013
    Local Time
    01:24
    "Sympony" is spelled symphony.

    Otherwise, this is pretty cool

  17. #17
    Ijuin
    Prince
    Join Date
    07 May 2002
    Location
    Tokyo, Japan
    Posts
    463
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 26, 2013
    Local Time
    14:24
    So what do I need to do to implement this in Warlords?
    Those who live by the sword...get shot by those who live by the gun.

  18. #18
    Thror78
    Chieftain
    Join Date
    15 Aug 2006
    Posts
    36
    Country
    This is Thror78's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 26, 2013
    Local Time
    05:24
    CvDefines.h:
    ==========
    ...
    #define NUM_CITY_PLOTS (37) // (57)4square // (21) // *TOM*
    #define CITY_HOME_PLOT (0)
    #define CITY_PLOTS_RADIUS (3) // (4) // (2) // *TOM*
    ...

    CvGlobals.cpp:
    ============
    ...
    int aiCityPlotX[NUM_CITY_PLOTS] =
    {
    0,
    0, 1, 1, 1, 0,-1,-1,-1,
    0, 1, 2, 2, 2, 1, 0,-1,-2,-2,-2,-1,
    0, 1, 2, 3, 3, 3, 2, 1, 0,-1,-2,-3,-3,-3,-2,-1
    // 0, 1, 2, 3, 4, 4, 4, 3, 2, 1, 0,-1,-2,-3,-4,-4,-4,-3,-2,-1
    }; // first 3 lines original, further lines by *TOM*

    int aiCityPlotY[NUM_CITY_PLOTS] =
    {
    0,
    1, 1, 0,-1,-1,-1, 0, 1,
    2, 2, 1, 0,-1,-2,-2,-2,-1, 0, 1, 2,
    3, 3, 2, 1, 0,-1,-2,-3,-3,-3,-2,-1, 0, 1, 2, 3
    // 4, 4, 3, 2, 1, 0,-1,-2,-3,-4,-4,-4,-3,-2,-1, 0, 1, 2, 3, 4
    }; // first 3 lines original, further lines by *TOM*

    int aiCityPlotPriority[NUM_CITY_PLOTS] =
    {
    0,
    1, 2, 1, 2, 1, 2, 1, 2,
    3, 4, 4, 3, 4, 4, 3, 4, 4, 3, 4, 4,
    5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6, 5, 6
    // 7, 8, 7, 7, 8, 7, 8, 7, 7, 8, 7, 8, 7, 7, 8, 7, 8, 7, 7, 8
    }; // first 3 lines original, further lines by *TOM*

    int aaiXYCityPlot[CITY_PLOTS_DIAMETER][CITY_PLOTS_DIAMETER] =
    /* { {-1, -1, -1, 51, 52, 53, -1, -1, -1,},
    {-1, -1, 50, 32, 33, 34, 54, -1, -1,},
    {-1, 49, 31, 17, 18, 19, 35, 55, -1,},
    {48, 30, 16, 6, 7, 8, 20, 36, 56,},
    {47, 29, 15, 5, 0, 1, 9, 21, 37,},
    {46, 28, 14, 4, 3, 2, 10, 22, 38,},
    {-1, 45, 27, 13, 12, 11, 23, 39, -1,},
    {-1, -1, 44, 26, 25, 24, 40, -1, -1,},
    {-1, -1, -1, 43, 42, 41, -1, -1, -1 }
    }; // *TOM*
    */
    {
    {-1, -1, 32, 33, 34, -1, -1,},
    {-1, 31, 17, 18, 19, 35, -1,},
    {30, 16, 6, 7, 8, 20, 36,},
    {29, 15, 5, 0, 1, 9, 21,},
    {28, 14, 4, 3, 2, 10, 22,},
    {-1, 27, 13, 12, 11, 23, -1,},
    {-1, -1, 26, 25, 24, -1, -1}
    }; // *TOM*

    /* {
    {-1, 17, 18, 19, -1,},
    {16, 6, 7, 8, 20,},
    {15, 5, 0, 1, 9,},
    {14, 4, 3, 2, 10,},
    {-1, 13, 12, 11,-1,}
    }; // original
    */
    ...

    and change CAMERA_CITY_ZOOM_IN_DISTANCE to 5000 the GlobalDefines.xml so you can see all plots in cityscreen. You might try 4squareCities and raise CAMERA_CITY_ZOOM_IN_DISTANCE but thats getting confusing because you see almost only clouds ;-) ... GL

  19. #19
    Ijuin
    Prince
    Join Date
    07 May 2002
    Location
    Tokyo, Japan
    Posts
    463
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 26, 2013
    Local Time
    14:24
    Thanks for the code, but do I need any sort of utility to edit/compile the files?

    (edit)

    Crap, it's C++. Any options for us non-C-capable types?
    Last edited by Ijuin; October 2, 2006 at 12:08.
    Those who live by the sword...get shot by those who live by the gun.

  20. #20
    Thror78
    Chieftain
    Join Date
    15 Aug 2006
    Posts
    36
    Country
    This is Thror78's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 26, 2013
    Local Time
    05:24
    The Source Code is in C++ so you'll need to set up the sdk:
    http://apolyton.net/forums/showthrea...hreadid=151138
    Make a backup before you change sth. GL & HF

  21. #21
    dnewhous
    Settler
    Join Date
    05 Nov 2006
    Posts
    4
    Country
    This is dnewhous's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 26, 2013
    Local Time
    05:24

    Newb here

    Expanding to 3 squares is all well and good - but if you are playing single player won't this mess up the computer players since the A.I. is built around expecting a 2 tile radius? There are 3 potential points of conflict - terrain improvements, population unit assignment, and the distance the A.I. puts between its cities.

  22. #22
    Thror78
    Chieftain
    Join Date
    15 Aug 2006
    Posts
    36
    Country
    This is Thror78's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 26, 2013
    Local Time
    05:24
    That's only the min distance! I don't actually know if the code recognizes how many squares a city has, but if you also increase the distance to 3 or 4 (XML) as well, there isn't any problem. ;-)

  23. #23
    dnewhous
    Settler
    Join Date
    05 Nov 2006
    Posts
    4
    Country
    This is dnewhous's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 26, 2013
    Local Time
    05:24
    *deleted inane question*

    I had the idea to put the restriction that tiles outside the 21 core tiles can only be worked if they have a road leading to the city. Exception: coast and ocean tiles. Do you think such a mod would be feasible? It would be the same check that is used for being able to use the special resource at all.
    Last edited by dnewhous; November 10, 2006 at 21:32.

  24. #24
    Mylon
    Warlord
    Join Date
    31 Oct 2005
    Posts
    145
    Country
    This is Mylon's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 26, 2013
    Local Time
    05:24
    This looks like an interesting mod. I wonder what would happen if a the city radius was variable and depended on certain conditions. That is, a radius of 1 for brand new cities (sorta like how it is now), a radius of 2 after some milestone, a radius of 3 after some other event, plus a radius of 4 and 5 for really old or prosperous cities, with maybe even the possibilities of 6 and 7 cities for players that want to make an uber-city.

    Now the question is really what conditions would be appropriate? I think hitting population such that 75% of the tiles can be worked is sufficient, but it can also be trigged by culture (making culture slightly more useful), having a certain number of buildings, having a certain building, or other means.
    Mylon Mod - Adressing game pace and making big cities bigger.
    Inquisition Mod - Exterminating heretic religions since 1200 AD

  25. #25
    Krill
    Deity Krill's Avatar
    Join Date
    30 Dec 2003
    Location
    of Spam
    Posts
    13,881
    Country
    This is Krill's Country Flag
    Thanks
    19
    Thanked 15 Times in 14 Posts
    Blog Entries
    1
    Local Date
    May 26, 2013
    Local Time
    06:24
    Only thing is you would have to completely alter the hapy and health caps to get the game to really have those uber cities.
    You just wasted six ... no, seven ... seconds of your life reading this sentence.

  26. #26
    Provost Harrison
    Deity Provost Harrison's Avatar
    Join Date
    03 Feb 2000
    Location
    Milling around in a mill, Manchester
    Posts
    17,840
    Country
    This is Provost Harrison's Country Flag
    Thanks
    1
    Thanked 1 Time in 1 Post
    Local Date
    May 26, 2013
    Local Time
    06:24
    Yes, it would certainly be interesting to play with, but would probably involve changing the rules, ie, tech rate, map size and all the caps and benefits buildings grant.
    Speaking of Erith:

    "It's not twinned with anywhere, but it does have a suicide pact with Dagenham" - Linda Smith

  27. #27
    Provost Harrison
    Deity Provost Harrison's Avatar
    Join Date
    03 Feb 2000
    Location
    Milling around in a mill, Manchester
    Posts
    17,840
    Country
    This is Provost Harrison's Country Flag
    Thanks
    1
    Thanked 1 Time in 1 Post
    Local Date
    May 26, 2013
    Local Time
    06:24
    Hey, has there been a version made of this for Warlord 2.08...it would be interesting to have a play around with and adapt the rules as necessary to try and get it to work...
    Speaking of Erith:

    "It's not twinned with anywhere, but it does have a suicide pact with Dagenham" - Linda Smith

  28. #28
    The Rusty Gamer
    Prince The Rusty Gamer's Avatar
    Join Date
    10 Apr 1999
    Location
    Christchurch, New Zealand
    Posts
    952
    Country
    This is The Rusty Gamer's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 26, 2013
    Local Time
    17:24
    It would be good to have workable tile range perhaps tied in with cultural expansion, like it does in the early part of the game (from 9 to 21). But perhaps you need to expand TWO more cultural levels to reach the next range and so on and/or have to build certain improvements and/or build a wonder - the improvement/wonder having a tech pre-requisite for later in the game, in fact, being able to work with radius 3 maybe should be held to quite a bit late in the game.

    Ok, having written that down, I would probably like to change how the radius thing works by slowing it down initially.

    Perhaps to go from 9 to 21 workable squares you have to build (say) a granary. Also, your border still have to cover the squares as well.

    Then, there could be another building further down the track to expand to radius 3.

    On top of this, perhaps WAAAY down the track, you could discover a tech which lets two cities work on the same squares where there is an overlap!

    Radius could also be affected by civics even.
    Last edited by The Rusty Gamer; February 14, 2007 at 01:14.
    Avoid COLONY RUSH on Galactic Civlizations II (both DL & DA) with my Slow Start Mod.
    Finding Civ 4: Colonization too easy? Try my Ten Colonies challenge.

  29. #29
    Donegeal
    Emperor Donegeal's Avatar
    Join Date
    25 Jul 2002
    Location
    Apolyton's Resident Law Enforcement Officer.
    Posts
    5,731
    Country
    This is Donegeal's Country Flag
    Thanks
    14
    Thanked 6 Times in 4 Posts
    Local Date
    May 26, 2013
    Local Time
    00:24
    Thread Necomancer!

    I once found the XML location to make 3 tile cities, but have long since lost it. Anyone know where it is for BTS?
    Founder of The Glory of War, CHAMPIONS OF APOLYTON!!!
    1992: Perot :( 1996: Perot :( 2000: Bush :) 2004: Bush :| 2008: Obama :| 2012: Obama ?

  30. #30
    OzzyKP
    ACS Staff Member OzzyKP's Avatar
    Join Date
    11 Oct 1999
    Location
    Rockville, MD
    Posts
    13,614
    Country
    This is OzzyKP's Country Flag
    Thanks
    20
    Thanked 7 Times in 5 Posts
    Blog Entries
    1
    Local Date
    May 26, 2013
    Local Time
    01:24
    Captain of Team Apolyton - ISDG 2012

    When I was younger I thought curfews were silly, but now as the daughter of a young woman, I appreciate them. - Rah

Similar Threads

  1. Two cities using one square?
    By Father Beast in forum Civilization I and Civilization II
    Replies: 29
    Last Post: February 14, 2004, 20:20
  2. City Radius of one 1 square?
    By johnc214 in forum CtP2-Creation/AI/Mods/Scenarios-Archive
    Replies: 10
    Last Post: May 2, 2003, 10:53
  3. Cultural Radius of Conquered Cities
    By PerpetualNewbie in forum Civ3-General-Archive
    Replies: 3
    Last Post: March 26, 2002, 13:57
  4. 1 Square Island Cities
    By Seeker in forum Civ3-Strategy-Archive
    Replies: 3
    Last Post: November 7, 2001, 15:22
  5. Two square radius
    By Vale Lurk in forum AC-General/Help/Strategy-Archive
    Replies: 4
    Last Post: July 27, 2001, 18:54

Visitors found this page by searching for:

increase plot radius civ 4

how to merge colonization 2 mods

civ 5 city distance mod

civ4 max city radius

civilization 5 increase city distance

civ4 city radius mod

colonization city zoom xml

civ iv ocean mod

civ 4 plot radius

civ5 build city distance

city radius civ5

civ iii tiles between cities

civilization 5 city tile limit mod

colonization mods civ 4 radius 2

how to mod civilisation 4 city radius

civ 5 expand city tile range

civ 5 city placement

civ 5 ocean cities mod

civ 4 mod city size

civ5 range of cities

civ5 mod cities

civilization 5 is it possible to mod the cities work radius

allintext: civilization 5 show border city 3 tile

civ 4 colonization radius

civilization 4 city mod

Bookmarks

Posting Permissions