1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Unique Wonders?

Discussion in 'Civ5 - Creation & Customization' started by AW Arcaeca, Nov 26, 2013.

  1. AW Arcaeca

    AW Arcaeca Deus Vult

    Joined:
    Mar 10, 2013
    Messages:
    2,958
    Gender:
    Male
    Location:
    Operation Padlock ground zero
    So I was thinking - what if each civ not only had a UA, UU, and sometimes UB, each civ had a UW - Unique Wonder - that only they could build?

    So I've actually been considering making a mod for that, but I need a list of wonders first, and I've come up with this:
    --------------------------------------------------------------------------------------------------
    AMERICA - Empire State Building
    ARABIA - Masjid al-Haram (Maybe Dome of the Rock?)
    AUSTRIA - Hofburg Palace
    AZTECS - Templo Mayor
    BABYLON - Ishtar Gate
    BYZANTIUM - Church of the Holy Apostles
    CARTHAGE - Severan Basilica
    CELTS - Carew Castle (Maybe Castle Rock?)
    CHINA - Temple of Heaven
    DENMARK - Sverd i Fjell
    EGYPT - Temple of Karnak
    ENGLAND - Westminster Abbey
    ETHIOPIA - Church of Saint George in Lalibela
    FRANCE - Versailles
    GERMANY - Völkerschlachtdenkmal (Maybe Nuremberg castle?)
    GREECE - Erechtheion (Maybe the Parthenon, since it isn't in G&K?)
    HUNS - ??? (Maybe Tongwancheng?)
    INCA - Gate of the Sun (Maybe Tambomachay?)
    INDIA - Kashi Vishwanath Temple (Maybe Stupa at Sanchi?)
    IROQUOIS - ??? (Maybe Hochelaga?)
    JAPAN - Golden Pavilion (maybe Itsukushima Shrine?)
    KOREA - Woljeongsa or Sosu Seowon
    MAYA - Temple of the Great Jaguar
    MONGOLIA - Erdene Zuu
    NETHERLANDS - Concertgebouw
    OTTOMANS - Blue Mosque
    POLYNESIA - Nan Madol (maybe Pu'ukohola?)
    ROME - The Pantheon (Maybe THE Colosseum AKA Flavian Amphitheater?)
    RUSSIA - Saint Basil's Cathedral
    SIAM - Wat Phra Kaew
    SONGHAI - Sankore Madrasah
    SPAIN - Alcázar of Toledo (maybe Torre de Oro or Sagrada Familia?)
    SWEDEN - Vadstena Castle
    --------------------------------------------------------------------------------------------------
    And I don't actually have BNW, but I figure maybe if I were to include those civs, I could add these wonders too...

    ASSYRIA - Shamash Gate
    BRAZIL - Christo Redentor (Maybe could be removed as a world wonder?)
    INDONESIA - Prambanan
    MOROCCO - Koutoubia Mosque
    POLAND - Zamek Królewski
    PORTUGAL - Belem Tower
    SHOSHONE - Medicine Wheel
    VENICE - Saint Mark's Basilica
    ZULU - ???

    The problem also lies in figuring out what to use as the wonder for the Huns, Iroquois, Shoshone and Zulu. Any suggestions?

    So what do you think about adding UWs, and should I change any of the wonders for any of the civs?
     
  2. zukenft

    zukenft Xx420NoWondeRHon0rStaRtxX

    Joined:
    Aug 20, 2013
    Messages:
    163
    to make it less tedious, I'll suggest that first you make the unique wonder building class a standard blank, then use overrides for each civ.
     
  3. AW Arcaeca

    AW Arcaeca Deus Vult

    Joined:
    Mar 10, 2013
    Messages:
    2,958
    Gender:
    Male
    Location:
    Operation Padlock ground zero
    I've already made all the building classes and civ building overrides, but there's no reason I can't go back and change them. Still can't think of anything for Iroquois or Huns though.
     
  4. MKDELTA3

    MKDELTA3 Warlord

    Joined:
    Oct 21, 2013
    Messages:
    126
    Location:
    Helsinki, Finland
  5. AW Arcaeca

    AW Arcaeca Deus Vult

    Joined:
    Mar 10, 2013
    Messages:
    2,958
    Gender:
    Male
    Location:
    Operation Padlock ground zero
    Hmm... Nan Madol sounds interesting. That'll definitely be the new Polynesian UW. :goodjob:
    The idea for Japan isn't bad either...

    And yeah, I agree, the huns didn't really build anything permanent at all, let alone a wonder, which is why it will be so hard to think of a UW for them. Did they build any mausoleums or something for their leaders? At this point, that's probably my best bet.

    Iroquois, Shosone and Zulu built plenty of buildings, but as far as I can tell, nothing all that big and grandiose.
     
  6. arrghmatey32

    arrghmatey32 Chieftain

    Joined:
    Feb 8, 2009
    Messages:
    40
  7. AW Arcaeca

    AW Arcaeca Deus Vult

    Joined:
    Mar 10, 2013
    Messages:
    2,958
    Gender:
    Male
    Location:
    Operation Padlock ground zero
    Well, I certainly can't think of anything better. If I end up actually making the BNW civs' UWs, Medicine Wheel will be Shoshone's UW. :)
     
  8. Pouakai

    Pouakai It belongs in a museum. Moderator

    Joined:
    Jun 16, 2010
    Messages:
    7,151
    Location:
    Aotearoa
    Just as an aside, I'd suggest Pu'ukohola Heiau over Nan Madol for Polynesia, since Nan Madol isn't actually Polynesian but rather Micronesian.

    As for the implimentation itself, if you wanted to avoid having a generic wonder as a base it might be possible to use the code from Mentos' outdated mod Native Wonders. That way you don't need to have a generic wonder and you won't end up with issues surrounding making them wonders (since I think that's done through the MaxGlobalInstances, which is buildingclass. Having the wonders share a buildingclass to make them unique will mean the game won't recognise them as wonders
     
  9. AW Arcaeca

    AW Arcaeca Deus Vult

    Joined:
    Mar 10, 2013
    Messages:
    2,958
    Gender:
    Male
    Location:
    Operation Padlock ground zero
    :confused: I gave each wonder its own buildingclass, as you can see here:
    (Buildingclasses for G&K civs only, as this is just an example taken straight from one of the mod files)
    Code:
    <GameData>
    	<BuildingClasses>
    		<Row>
    			<Type>BUILDINGCLASS_HOFBURG_PALACE</Type>
    			<DefaultBuilding></DefaultBuilding>
    			<Description>TXT_KEY_BUILDING_HOFBURG_PALACE</Description>
    			<MaxGlobalInstances>1</MaxGlobalInstances>
    		</Row>-<Row>
    			<Type>BUILDINGCLASS_CHURCH_HOLY_APOSTLES</Type>
    			<DefaultBuilding></DefaultBuilding>
    			<Description>TXT_KEY_BUILDING_CHURCH_HOLY_APOSTLES</Description>
    			<MaxGlobalInstances>1</MaxGlobalInstances>
    		</Row>-<Row>
    			<Type>BUILDINGCLASS_SEVERAN_BASILICA</Type>
    			<DefaultBuilding></DefaultBuilding>
    			<Description>TXT_KEY_BUILDING_SEVERAN_BASILICA</Description>
    			<MaxGlobalInstances>1</MaxGlobalInstances>
    		</Row>-<Row>
    			<Type>BUILDINGCLASS_CAREW_CASTLE</Type>
    			<DefaultBuilding></DefaultBuilding>
    			<Description>TXT_KEY_BUILDING_CAREW_CASTLE</Description>
    			<MaxGlobalInstances>1</MaxGlobalInstances>
    		</Row>-<Row>
    			<Type>BUILDINGCLASS_ST_GEORGE_CHURCH</Type>
    			<DefaultBuilding></DefaultBuilding>
    			<Description>TXT_KEY_BUILDING_ST_GEORGE_CHURCH</Description>
    			<MaxGlobalInstances>1</MaxGlobalInstances>
    		</Row>-<Row>
    			<Type>BUILDINGCLASS_HUNNIC_WONDER</Type>
    			<DefaultBuilding></DefaultBuilding>
    			<Description>TXT_KEY_BUILDING_HUNNIC_WONDER</Description>
    			<MaxGlobalInstances>1</MaxGlobalInstances>
    		</Row>-<Row>
    			<Type>BUILDINGCLASS_TEMPLE_GREAT_JAGUAR</Type>
    			<DefaultBuilding></DefaultBuilding>
    			<Description>TXT_KEY_BUILDING_TEMPLE_GREAT_JAGUAR</Description>
    			<MaxGlobalInstances>1</MaxGlobalInstances>
    		</Row>-<Row>
    			<Type>BUILDINGCLASS_CONCERTGEBOUW</Type>
    			<DefaultBuilding></DefaultBuilding>
    			<Description>TXT_KEY_BUILDING_CONCERTGEBOUW</Description>
    			<MaxGlobalInstances>1</MaxGlobalInstances>
    		</Row>-<Row>
    			<Type>BUILDINGCLASS_VADSTENA_CASTLE</Type>
    			<DefaultBuilding></DefaultBuilding>
    			<Description>TXT_KEY_BUILDING_VADSTENA_CASTLE</Description>
    			<MaxGlobalInstances>1</MaxGlobalInstances>
    		</Row>
    	</BuildingClasses>
    </GameData>
    Never even occurred to me to give all the wonders a single buidingclass.

    And as for Nan Madol, honestly pretty much the only reasons I chose to use Nan Madol as the UW is it's a lot easier for me to spell, and I think it looks cooler - Pu'okuhola or whatever it's called doesn't really keep my attention very long. :lol: I dunno, it's the difference between some kind of big cobblestone platform or a mysterious, ruined city.

    But now that you point that out... Maybe I should make Pu'ukohola the UW...
     
  10. AW Arcaeca

    AW Arcaeca Deus Vult

    Joined:
    Mar 10, 2013
    Messages:
    2,958
    Gender:
    Male
    Location:
    Operation Padlock ground zero
  11. Pouakai

    Pouakai It belongs in a museum. Moderator

    Joined:
    Jun 16, 2010
    Messages:
    7,151
    Location:
    Aotearoa
    Okay, so how do you intend to make each wonder restricted to a single civ?
     
  12. AW Arcaeca

    AW Arcaeca Deus Vult

    Joined:
    Mar 10, 2013
    Messages:
    2,958
    Gender:
    Male
    Location:
    Operation Padlock ground zero
    By putting no data in <DefaultBuilding>, the wonder cannot normally be built. Then I can merely use <Civilization_BuildingClassOverrides> doing something like this:
    Code:
    <Civilization_BuildingClassoverrides>
    	<Row>
    		<CivilizationType>CIVILIZATION_HUNS</CivilizationType>
    		<BuildingClassType>BUILDINGCLASS_TONGWANCHENG</BuildingClassType>
    		<BuildingType>BUILDING_TONGWANCHENG</BuildingType>
    	</Row>
    </Civilization_BuildingClassOverrides>
    I got the idea from this thread, which method can apparently also be used for buildings and thus for wonders.
     
  13. Pouakai

    Pouakai It belongs in a museum. Moderator

    Joined:
    Jun 16, 2010
    Messages:
    7,151
    Location:
    Aotearoa
    I have a feeling the tables won't work if <DefaultBuilding> is left empty
     
  14. AW Arcaeca

    AW Arcaeca Deus Vult

    Joined:
    Mar 10, 2013
    Messages:
    2,958
    Gender:
    Male
    Location:
    Operation Padlock ground zero
    It works for units, apparently, so hopefully it works with buildings too. Apparently just using <DefaultBuilding/> works too.

    And if that doesn't work, maybe it can be done with lua... maybe something like this (probably horribly coded, but it gets the message across)?
    Code:
    function HunsOnlyWonder(iPlayer)
    	local pPlayer = Players[iPlayer]
    	local pWonder = GameInfoTypes.BUILDING_TONGWANCHENG
    	if (pPlayer:GetCivilizationType() =! GameInfoTypes.CIVILIZATION_HUNS) then
    		pPlayer:CanConstruct(pWonder, false, false, false)
    	end
    GameEvents.PlayerDoTurn(HunsOnlyWonder)
     
  15. JFD

    JFD Kathigitarkh

    Joined:
    Oct 19, 2010
    Messages:
    9,117
    Location:
    The Kingdom of New Zealand
    Something like this might be of more use if you end up needing Lua:

    Code:
    function CanConstructBuilding(iPlayer, buildingTypeID)
    	local CivilizationRequired = GameInfo.Buildings[buildingTypeID].CivilizationRequired
    	if CivilizationRequired then
    	local player = Players[iPlayer]
    	local playerCiv = player:GetCivilizationType()
    	local prereqCiv = GameInfo.Civilizations[CivilizationRequired].ID
    		if playerCiv == prereqCiv then
    			return true
    		end
    		return
    	end
    	return true
    end
    GameEvents.PlayerCanConstruct.Add(CanConstructBuilding)
    Then add the tag "CivilizationRequired" in SQL like so:

    Code:
    ALTER TABLE Buildings ADD CivilizationRequired text REFERENCES Civilizations(Type) default NULL
    And you can just add <CivilizationRequired>CIVILIZATION_X</CivilizationRequired> to any of your unique Wonders. It saves having to hard-code it and probably a lot of time for you as well and makes it easier for your mod to be compatible with custom civs.
     
  16. AW Arcaeca

    AW Arcaeca Deus Vult

    Joined:
    Mar 10, 2013
    Messages:
    2,958
    Gender:
    Male
    Location:
    Operation Padlock ground zero
    You mean there's an easier way? :wow:
    If this truly works, then I just have one question for you: Does this only work in BNW, or does it work in G&K too (just trying to make sure I can actually use this method)?
     
  17. JFD

    JFD Kathigitarkh

    Joined:
    Oct 19, 2010
    Messages:
    9,117
    Location:
    The Kingdom of New Zealand
  18. JFD

    JFD Kathigitarkh

    Joined:
    Oct 19, 2010
    Messages:
    9,117
    Location:
    The Kingdom of New Zealand
  19. ante185

    ante185 Chieftain

    Joined:
    Oct 27, 2013
    Messages:
    56
    Hun could have Arch of Augustus, Rome (devastated and filled with the Huns' gold obtained from looting) that's at least Ensemble Studios thought they could have as wonder :D
     
  20. AW Arcaeca

    AW Arcaeca Deus Vult

    Joined:
    Mar 10, 2013
    Messages:
    2,958
    Gender:
    Male
    Location:
    Operation Padlock ground zero
    YES!! Thank you, you've made my job so much easier. Now, does <CivilizationRequired> go in <Buildings> or <BuildingClasses>?
    :lol: Yeah... Good old AoE. I've never understood why that seemed like a good idea to add as a Hunnic wonder. Well, if you consider that the Huns built near nothing, I guess something they destroyed was the best they could find :).
     

Share This Page