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

[SDK Component] Unique Great person

Discussion in 'Civ4 - Mod Components' started by Mexico, Oct 12, 2006.

  1. Mexico

    Mexico TR senior programmer

    Joined:
    Dec 2, 2005
    Messages:
    578
    Location:
    Slovakia, Kosice
    ehmm..can you please give me this magic tags?

    you mean new method for event log? i will look to code...
     
  2. Gaius Octavius

    Gaius Octavius Deity

    Joined:
    Jul 28, 2006
    Messages:
    4,016
    Okay, in CIV4UnitSchema.XML, look for:

    Code:
    <ElementType name="bPrereqReligion" content="textOnly" dt:type="boolean"/>
    <ElementType name="bMechanized" content="textOnly" dt:type="boolean"/>
    <ElementType name="bRenderBelowWater" content="textOnly" dt:type="boolean"/>
    [B]<ElementType name="bGraphicalOnly" content="textOnly" dt:type="boolean"/>[/B]
    <ElementType name="UnitClassUpgradeType" content="textOnly"/>
    <ElementType name="bUnitClassUpgrade" content="textOnly" dt:type="boolean"/>
    <ElementType name="UnitClassUpgrade" content="eltOnly">
    

    Later on in the file, look for:

    Code:
    <element type="bPrereqReligion"/>
    <element type="bMechanized"/>
    <element type="bRenderBelowWater" minOccurs="0"/>
    [B]<element type="bGraphicalOnly" minOccurs="0"/>[/B]
    <element type="UnitClassUpgrades"/>
    <element type="UnitClassTargets"/>
    <element type="UnitCombatTargets"/>
    

    The added lines are in bold.


    Now, in Civ4UnitInfos.XML, all you have to add is

    <bGraphicalOnly>1</bGraphicalOnly>

    after the bMechanized tag. This should eliminate any unwanted entries. :D
     
  3. NikNaks

    NikNaks Deity

    Joined:
    Jul 25, 2006
    Messages:
    2,972
    Location:
    England
    Of course! I forgot about that line. Could/have you set that up for the full mod (ie the one just converted to BtS)?
     
  4. Gaius Octavius

    Gaius Octavius Deity

    Joined:
    Jul 28, 2006
    Messages:
    4,016
    Not yet. I'm also waiting to see what happens with the Great General bug (which Mexico fixed in Warlords), and if there similarly is one for the Great Spy.
     
  5. Mexico

    Mexico TR senior programmer

    Joined:
    Dec 2, 2005
    Messages:
    578
    Location:
    Slovakia, Kosice
    as promised updated version (0.3w) is uploaded, support for random/in order name selection
    (link in first page)

    this is done via GlobalDefinesAlt.xml tag:
    Code:
    		<DefineName>GP_IN_ORDER</DefineName>
    		<iDefineIntVal>1</iDefineIntVal>
    
    in zip file you can find source code and compiled DLL with GlobalDefinesAlt.xml

    Mexico
     
  6. Chuggi

    Chuggi Espada

    Joined:
    Jan 2, 2007
    Messages:
    2,369
    Location:
    Australia
    Thanks! :)
     
  7. Chuggi

    Chuggi Espada

    Joined:
    Jan 2, 2007
    Messages:
    2,369
    Location:
    Australia
    Mexico, could you possibly update 0.3 to Beyond the Sword? :please:
     
  8. Mexico

    Mexico TR senior programmer

    Joined:
    Dec 2, 2005
    Messages:
    578
    Location:
    Slovakia, Kosice
    of course, already planned .... but now i am very busy at work, so it take some time (probably one week)
     
  9. Chuggi

    Chuggi Espada

    Joined:
    Jan 2, 2007
    Messages:
    2,369
    Location:
    Australia
    Thanks, take all the time you need :)
     
  10. frekk

    frekk Scourge of St. Lawrence

    Joined:
    Jun 21, 2003
    Messages:
    3,151
    Location:
    Kingston, Ontario
    OK, that's enough time.

    Just kidding, but I thought I would bump this one.

    Actually I may try my hand at updating this myself. Haven't done any SDK before but I think I can understand how to do it.
     
  11. frekk

    frekk Scourge of St. Lawrence

    Joined:
    Jun 21, 2003
    Messages:
    3,151
    Location:
    Kingston, Ontario
    OK, I think I have updated this to BTS 3.13. It has not been very extensively tested, although so far it seems to work. That is to say, it launches the game and everything works including appearance of GPs but I have not tested with unique GPs set up in xml, so if someone could test that it would be great. Please note that the DLL incorporates Bhruic's patch.

    http://forums.civfanatics.com/uploads/32894/gpmod.zip

    EDIT/UPDATE: Have tested this a little more extensively now, with Great Person UUs. Seems to work just fine!
     
  12. Ploeperpengel

    Ploeperpengel academic precarity

    Joined:
    Feb 2, 2006
    Messages:
    4,748
    Location:
    Berlin
    Frekk this got deleted by the hacker I'd wager. Can you post the sources?

    Edit: nevermind works fine with warlords code
     
  13. Henry Chang

    Henry Chang Chieftain

    Joined:
    Apr 12, 2020
    Messages:
    1
    Gender:
    Male
    Hi guys,

    I know this thread is old (understatement), but I was hoping to download the SDK file. Sadly, the download link seems to be broken.
    Does anyone know where I can download this SDK? Better yet, @Mexico, if you're still active, could you please re-upload this file?
    Would be greatly appreciated!!!!!!!!

    Thanks!
     

Share This Page