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

New civics

Discussion in 'Civ4 - Creation & Customization' started by AdelineJ, Jan 13, 2013.

  1. AdelineJ

    AdelineJ Warlord

    Joined:
    Apr 28, 2012
    Messages:
    288
    Location:
    France
    Hello!
    1. To create a new civics, must I just modify CIV4CivicInfos?
    2. To create a new civics category, must I just modify CIV4CivicInfos? How do I do for presentation? Python?
    3. Do you know if there is a small mod with only civics?
    Thanks
    AdelineJ
     
  2. God-Emperor

    God-Emperor Deity

    Joined:
    Jul 18, 2009
    Messages:
    3,551
    Location:
    Texas
    This mod component adds 30 civics in multiple categories. It also revamps the civics screen to be able to show a lot more categories.
     
  3. AdelineJ

    AdelineJ Warlord

    Joined:
    Apr 28, 2012
    Messages:
    288
    Location:
    France
    Am I obliged to do python to create a civic? to change the laying?
     
  4. The_J

    The_J Say No 2 Net Validations Retired Moderator Supporter

    Joined:
    Oct 22, 2008
    Messages:
    33,082
    Location:
    DE/NL/FR
    No, you don't have to change anything in Python to add/create/change civics, but the screen will look ugly.
    You can either
    - change the screen, which is only changing a few numbers
    - use another civics screen, like the one in the mod component God-Emperor linked.
     
  5. AdelineJ

    AdelineJ Warlord

    Joined:
    Apr 28, 2012
    Messages:
    288
    Location:
    France
    Thanks. How do I do to change the size of comments (left column)? The lines mix...
     
  6. The_J

    The_J Say No 2 Net Validations Retired Moderator Supporter

    Joined:
    Oct 22, 2008
    Messages:
    33,082
    Location:
    DE/NL/FR
    Not totally sure, but...
    In CvCivicsScreen.py, change (relatively on the top):
    PHP:
    self.TEXT_MARGIN 15
    to something smaller, to e.g. 13, that should be enough.
     
  7. AdelineJ

    AdelineJ Warlord

    Joined:
    Apr 28, 2012
    Messages:
    288
    Location:
    France
    I try it but no effect... Must I modify an other fileas pytoncallback?
     
  8. The_J

    The_J Say No 2 Net Validations Retired Moderator Supporter

    Joined:
    Oct 22, 2008
    Messages:
    33,082
    Location:
    DE/NL/FR
    Nonono, only that file.
    :think: maybe the rest is also necessary...I'm not sure, but my CvCivicsScreen has as vaules (relatively on the top):
    PHP:
            self.HEADINGS_BOTTOM 300
            self
    .HELP_TOP 370
            self
    .HELP_BOTTOM 630
            self
    .TEXT_MARGIN 13
    instead of
    PHP:
            self.HEADINGS_BOTTOM 280
            self
    .HELP_TOP 350
            self
    .HELP_BOTTOM 610
            self
    .TEXT_MARGIN 15
    I'm not totally sure what these do anymore (I have sure a suspicion), but I'd try to change it and hope that it works.
     
  9. AdelineJ

    AdelineJ Warlord

    Joined:
    Apr 28, 2012
    Messages:
    288
    Location:
    France
    I try to copy the file of RoM-A New Dawn but I want to play, there are not bars in the top and bottom...
     
  10. The_guy

    The_guy Elephantary School.

    Joined:
    Nov 23, 2010
    Messages:
    64
    Location:
    Holland.
  11. AdelineJ

    AdelineJ Warlord

    Joined:
    Apr 28, 2012
    Messages:
    288
    Location:
    France
    Thanks. I have it but I think the size of comments (left column) is too high... I try to modify CvCivicsScreen.py but no result...
     
  12. The_J

    The_J Say No 2 Net Validations Retired Moderator Supporter

    Joined:
    Oct 22, 2008
    Messages:
    33,082
    Location:
    DE/NL/FR
    Could you attach the .py file please?
     
  13. AdelineJ

    AdelineJ Warlord

    Joined:
    Apr 28, 2012
    Messages:
    288
    Location:
    France
    I try too with the file of C2C but same result...This is the file of C2C put in Beyond the Sword\Mods\Tutoriel\Assets\Python\Screens
     

    Attached Files:

  14. The_J

    The_J Say No 2 Net Validations Retired Moderator Supporter

    Joined:
    Oct 22, 2008
    Messages:
    33,082
    Location:
    DE/NL/FR
    Uh, a BUG file :dunno:.
    Changing self.TEXT_MARGIN = 11 to something lower should still work though :dunno:.

    I'd advise you to ask in the BUG subforum for further assistance.
     
  15. AdelineJ

    AdelineJ Warlord

    Joined:
    Apr 28, 2012
    Messages:
    288
    Location:
    France
    What is adress of this subforum?
    I don't understand : why it works with C2C and not only?
     
  16. The_J

    The_J Say No 2 Net Validations Retired Moderator Supporter

    Joined:
    Oct 22, 2008
    Messages:
    33,082
    Location:
    DE/NL/FR
    The BUG subforum is here.

    Why it works there...probably they made some other customizations, which are placed elsewhere :dunno:.
     
  17. AdelineJ

    AdelineJ Warlord

    Joined:
    Apr 28, 2012
    Messages:
    288
    Location:
    France
  18. The_J

    The_J Say No 2 Net Validations Retired Moderator Supporter

    Joined:
    Oct 22, 2008
    Messages:
    33,082
    Location:
    DE/NL/FR
    I moved it to the right section now ;).
     
  19. AdelineJ

    AdelineJ Warlord

    Joined:
    Apr 28, 2012
    Messages:
    288
    Location:
    France
    I'm almost finished the civics. I miss some details:

    1. <bNoUnhealthyPopulation> means no :mad: caused by population?
    2. <iExpInBorder> What does it means?
    3. <bBuildingOnlyHealthy> means no :mad: caused by buildings?
    4. <iStateReligionUnitProductionModifier> is likes <iStateReligionBuildingProductionModifier> but one for units and one for buildings?
    5. <Hurry/> I don't understand what Does it signified and what can we write : :food:, :hammers:, :commerce:, :gold:, :culture:, :espionage:, or :science:.
     
  20. God-Emperor

    God-Emperor Deity

    Joined:
    Jul 18, 2009
    Messages:
    3,551
    Location:
    Texas
     

Share This Page