| General | Hosted Sites | Civ5 | CivRev | Civ4Col | Civ4 | Civ3 | Civ2 | Civ1 | Misc | Marketplace |
![]() |
|
|
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. |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Chieftain
Join Date: Jul 2012
Posts: 5
|
Hey guys, I'm a huge Civ fan and have been really enjoying Civ5 lately. Anyway, I really like natural wonders and was wondering if there is a simple way to mod a map (say the archipelago map or continents map) to spawn more natural wonders. It seems like a "normal" sized map always produces 5, but I think it would be cool to have 10 or something.
I'm new to the forum, so if there is a thread where this has already been done feel free to redirect me there. If it's important I'm using a Mac, play Civ5 through Steam and have all the DLC including the God/Kings expansion. Thanks! |
|
|
|
|
|
#2 |
|
Tangaroa
![]() |
I would presume it would be possible to add more natural wonders on a proper map (Like the Earth map, it's not actually a script) through WorldBuilder, but I'm not sure about the map scripts
__________________
"I saw our people spreading throughout the land and across the oceans, expanding our kingdom, discovering new people and great riches in faraway lands" - More Civilizations. Most Recent: Tibet "We built wonderous monuments honouring the gods, which reached up to touch the very fabric of the heavens." - More Wonders. Most Recent: Todai-ji |
|
|
|
|
|
#3 | |
|
Chieftain
Join Date: Jul 2012
Posts: 5
|
Quote:
Also it seems as though I can't download Worldbuilder at the moment. Perhaps because Steam is too busy. |
|
|
|
|
|
|
#4 |
|
Tangaroa
![]() |
You can randomly generate maps in worldbuilder, but you would have to manually add the extra wonders in and you would know where everything is
__________________
"I saw our people spreading throughout the land and across the oceans, expanding our kingdom, discovering new people and great riches in faraway lands" - More Civilizations. Most Recent: Tibet "We built wonderous monuments honouring the gods, which reached up to touch the very fabric of the heavens." - More Wonders. Most Recent: Todai-ji |
|
|
|
|
|
#5 | |
|
Chieftain
Join Date: Jul 2012
Posts: 5
|
Quote:
If anyone can give me some advice on a script I can use let me know. |
|
|
|
|
|
|
#6 |
|
Chieftain
Join Date: Jul 2012
Posts: 5
|
In case anyone is wondering, I'm making progress. I'm sure most modders know this stuff already, but here is where I am:
1) User > Library > Application Support > Steam > SteamApps > common > Civ 5 2) Right Click the Civ5 Gods/Kind Application and choose "show package contents" 3) Contents > Home > assets > DLC > Expansion > Gameplay Under XML you can open Terrain then CIV5Features to view a list of tiles, including the 15 Natural Wonders. Lua seems to have the scripts I want to change though. From looking at the map files they are calling the script AssignStatingPlots.lua, so open that up. Right now I'm browsing that and trying to find where it assigns the number of natural wonders for a map. Hopefully I can change a single number and be done ![]() Edit: Found this part in AssignStatingPlots.lua -- Determine how many NWs to attempt to place. Target is regulated per map size. -- The final number cannot exceed the number the map has locations to support. local worldsizes = { [GameInfo.Worlds.WORLDSIZE_DUEL.ID] = 2, [GameInfo.Worlds.WORLDSIZE_TINY.ID] = 3, [GameInfo.Worlds.WORLDSIZE_SMALL.ID] = 4, [GameInfo.Worlds.WORLDSIZE_STANDARD.ID] = 5, [GameInfo.Worlds.WORLDSIZE_LARGE.ID] = 6, [GameInfo.Worlds.WORLDSIZE_HUGE.ID] = 7 } local target_number = worldsizes[Map.GetWorldSize()]; local iNumNWtoPlace = math.min(target_number, iNumNWCandidates); local selected_NWs, fallback_NWs = {}, {}; for loop, NW in ipairs(NW_eligibility_order) do if loop <= iNumNWtoPlace then table.insert(selected_NWs, NW); else table.insert(fallback_NWs, NW); end end So it seems like all I need to do is change this part. The first thing I will try is to replace the worldsizes with bigger numbers. Last edited by NaturalWonder; Jul 14, 2012 at 03:20 PM. |
|
|
|
|
|
#7 |
|
Tangaroa
![]() |
Awesome that you found that. I'm not sure how the lua tables are updated, as I've got very little knowledge in that. But I would presume updating that section there through a mod (Not in base game, very dangerous) would change the ammount of natural wonders to be placed.
__________________
"I saw our people spreading throughout the land and across the oceans, expanding our kingdom, discovering new people and great riches in faraway lands" - More Civilizations. Most Recent: Tibet "We built wonderous monuments honouring the gods, which reached up to touch the very fabric of the heavens." - More Wonders. Most Recent: Todai-ji |
|
|
|
|
|
#8 |
|
Chieftain
Join Date: Jul 2012
Posts: 5
|
Hahaha, I just went ahead and edited it for the base game (I had created a backup file, so I assumed worst comes to worst it would be OK) and it worked!
I started a game on a Standard size Pangaea map and my starting warrior found the Grand Mesa in like 5 turns and the game said there were 11 more Natural Wonders still to find! |
|
|
|
|
|
#9 |
|
Prince
Join Date: May 2011
Posts: 477
|
Yes, the LUA function is what you want to change. There's also an XML value in Civ5Worlds.xml, but that doesn't seem to be used or have any effect.
Either edit AssignStartingPlots.lua itself and make the changes to: function AssignStartingPlots:PlaceNaturalWonders() (This will affect all your maps when using this mod.) or Copy function AssignStartingPlots:PlaceNaturalWonders() into a LUA map script (such as a custom one you've created or one you use most often) and make the changes there. (This will affect only that map script and others will be unaffected) I'm not very experienced with LUA, so I don't know if there's a slicker way to do it. Some functions you don't even need to copy over to the map script and you can just change a list of variables and send them over as "args" when you call the function. But, as far as I know, this one doesn't look like you can do that. |
|
|
|
|
|
#10 | |
|
Deity
Join Date: May 2011
Location: Near Portsmouth, UK
Posts: 2,519
|
Quote:
__________________
All my mods (.civ5mod files) can be downloaded from http://www.picknmixmods.com/. If you want to incorporate (parts of) my mods into your own mod(s), please read this first Snap-shots (which are slowly going out-of-date) can still be download in zipped groups from the CfC Downloads Database - search for PickNMix - a list of what is in each zipped group can be found here |
|
|
|
|
![]() |
| Bookmarks |
|
| Thread Tools | |
|
|