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

Platy's Peculiar Pleasant Posh Python

Discussion in 'Civ4 - Mod Components' started by platyping, Jun 2, 2013.

  1. platyping

    platyping Sleeping Dragon

    Joined:
    Oct 22, 2010
    Messages:
    4,626
    Location:
    Emerald Dreams
    Guess wrong.
    I enjoy watching dramas after 1 day of work.
    When I not watching drama then I bother to mod.
     
  2. Cruel

    Cruel King

    Joined:
    Jun 22, 2005
    Messages:
    823
    Location:
    São Paulo, Brazil
    Nice Avatar, who is she?
     
  3. OrionVeteran

    OrionVeteran Deity

    Joined:
    Dec 25, 2003
    Messages:
    2,443
    Location:
    Newport News VA

    OK. You have my attention. This mod has potential, as adding and subtracting numbers will use less resources on a PC than adding and subtracting graphical pictures. I imagine this has simplified the python code as well.

    I have a question about free specialists: Stock BTS displayed free specialists under the rest of the specialists. How are free specialist displayed in this mod? Do you just add them to the total number for each kind of specialist?

    Also: Can you show two numbers for each specialist? ...One for the current number of specialists and another for the maximum number of specialists.
     
  4. platyping

    platyping Sleeping Dragon

    Joined:
    Oct 22, 2010
    Messages:
    4,626
    Location:
    Emerald Dreams
    @Orion
    Bleh, should have updated that post with new info.
    Specialist Count 2.0
    The screenshots in 2.0 are taken directly from Ultrapack, so some of the things you see there will not be in SC standalone.
    Moral of the story, just download and try 3 minutes.

    There is no need to display max number of specialists, it is there by BTS when you hover over it.

    The only issue is I find the red and yellow buttons for adjusting specialist rows abit comical but havent bothered to make a new button for them :D

    @Cruel
    Ariel Lin
     
  5. platyping

    platyping Sleeping Dragon

    Joined:
    Oct 22, 2010
    Messages:
    4,626
    Location:
    Emerald Dreams
    Heroes Movies

    Features:
    Display Movies when World Units are Built



    Another simple C&P job.
    Although there aren't any World Units in BTS, there are some mods with them.
    Since World Wonders get Movies, I guess World Units deserve them too.

    Notes
    The unit files inside are just for testing purposes, since there aren't any World Units in BTS.
     
  6. Nimek

    Nimek Emperor

    Joined:
    Jul 7, 2010
    Messages:
    1,179
    Gender:
    Male
    @platy

    Are you able to do religion system like in civ 5?

    After converting to religion every religion related building gives religion points every turn and that points ar cumultative. After reach some level you can choose religion doctrine that acts as free building in each city with state religion.
     
  7. platyping

    platyping Sleeping Dragon

    Joined:
    Oct 22, 2010
    Messages:
    4,626
    Location:
    Emerald Dreams
    Possible via player script.
    But I will definitely not offer choices.
    Simply because A.I. won't choose.
    If A.I. cannot choose, I won't let you choose either.
    It is either fixed or random benefits.
     
  8. vincentz

    vincentz Programmer

    Joined:
    Feb 4, 2009
    Messages:
    3,555
    Gender:
    Male
    Location:
    Denmark
    whooooooo :goodjob:

    gonna have to make a LOT of World units now :D
     
  9. Cruel

    Cruel King

    Joined:
    Jun 22, 2005
    Messages:
    823
    Location:
    São Paulo, Brazil
    Platy,

    Is possible recreate the mastery victory type (in python) for a mods who don't based in ROM like History Rewritten?
     
  10. platyping

    platyping Sleeping Dragon

    Joined:
    Oct 22, 2010
    Messages:
    4,626
    Location:
    Emerald Dreams
    All I remember is master victory replace all others and only won at the end of time.
    They have a set of scoring system which obviously I dunno unless you provide a link :D
     
  11. OrionVeteran

    OrionVeteran Deity

    Joined:
    Dec 25, 2003
    Messages:
    2,443
    Location:
    Newport News VA
    I hate to be a pest, but the DL zip file did not include a replacement CvMainInterface.py file for BUG 4.4. Can you update the download?
     
  12. platyping

    platyping Sleeping Dragon

    Joined:
    Oct 22, 2010
    Messages:
    4,626
    Location:
    Emerald Dreams
    Inquisition

    Features
    1) New Unit that can remove Religions
    2) Religious Victory









    Notes
    Not to challenge the classic, but since the codes for Lawyer are already done, it doesn't take me more than 10 minutes to convert to religions, so... might as well.

    Features:
    1) Can choose which religion to purge
    2) Chance of purging increases with number of religions present
    (It is harder to persuade the citizens to abandon a religion when it is the only one there right)
    3) Cannot purge holy city
    4) Normal Religious buildings are destroyed, Wonders are kept
    5) Religious Victory is just a XML entry, nothing special

    A.I.
    1) Will train only if Religious Victory Valid, no sense in purging otherwise unless you just want to deny others the gold from the wonders...
    2) Will not build in wars
    3) Will not purge State Religion, obviously
     
  13. platyping

    platyping Sleeping Dragon

    Joined:
    Oct 22, 2010
    Messages:
    4,626
    Location:
    Emerald Dreams
    @Orion

    Coding for Ultrapack alone = Once
    Coding for Ultrapack + Standalone = Twice
    Coding for Ultrapack + Standalone + BUG = Thrice

    Ever since I launched my own U.I., I removed the BUG file, can't be bothered to do triple the work for a mod component.
     
  14. Nimek

    Nimek Emperor

    Joined:
    Jul 7, 2010
    Messages:
    1,179
    Gender:
    Male
    I would like to see negative effect of inquisition like -1 population in city per religion removal.
    Inqusitions always was very bloody.
     
  15. Cruel

    Cruel King

    Joined:
    Jun 22, 2005
    Messages:
    823
    Location:
    São Paulo, Brazil
  16. platyping

    platyping Sleeping Dragon

    Joined:
    Oct 22, 2010
    Messages:
    4,626
    Location:
    Emerald Dreams
    Mastery Victory

    Features:
    1) Wins the game at end of time based on Mastery Score
    2) Or all other teams dead



    Old System:
    Changes in Scoring System:
    1) Power is based on current Power rather than Historical Power.
    All others like Population, Land are based on Current Score. No reason for this to be special.

    2) Wonders are based on ownership rather than who built it.
    Same reason as above.
    Flat points per wonder rather than based on a %

    3) Starship
    Launching the starship itself has no points anymore.
    It is now based on each part built, + a bonus for completing all.
    Because if launching itself scores 100 points, which idiot will build all parts before launching.
    Also, it doesn't make sense that launching a spaceship scores as much points as building all wonders in the whole game, thus nerfed.

    4) Additional Scoring Items
    World Projects: Why should Wonders be in the list and projects not
    Future Techs: Just 1 point given for each of them

    Changes in the System
    1) Because it is python, you can still enable/disable the other victory types while mastery is enabled.
    Disabling them will make certain buildings/projects unbuildable, like Spaceships, Voting wonders.
    When diplomatic enabled, you can still vote for diplomatic victory, but there will be no effect.

    2) Mastery Victory can be won via 2 routes.
    A) The original end of time method.
    B) Killing off all rivals. I seriously don't see the point to click end turn for 200 more turns when you obviously won the game anyway.

    3) Mastery Victory Screen can be viewed right from the start.
    I don't see why it should be disabled in the original mod

    4) A customisation section provided for you to adjust the point system yourself.

    5) Next 3 Best Cities only list those non legendary.
     
  17. Cruel

    Cruel King

    Joined:
    Jun 22, 2005
    Messages:
    823
    Location:
    São Paulo, Brazil
    :worship: Wow, thanks! ^^^^

    Platy, How change the numbers of GP (just GP) to right?


    I tried many things near here:
    Code:
    					iX = xResolution - 246  + 28 * (i % 8)
    					iY = yResolution - 206 + 50 * (i / 8)
    					screen.setImageButton("FreeSpecialist" + str(i), gc.getSpecialistInfo(iSpecialist).getTexture(), iX, iY, 24, 24, WidgetTypes.WIDGET_FREE_CITIZEN, iSpecialist, 1 )
    					#screen.setImageButton(gc.getSpecialistInfo(iSpecialist).getTexture(), "FreeSpecialist" + str(i), iX, iY, 24, 24, WidgetTypes.WIDGET_FREE_CITIZEN, iSpecialist, 1 )
    					screen.setText("FreeSpecialistCount" + str(i), "Background", szBuffer, CvUtil.FONT_CENTER_JUSTIFY, iX , iY, 0, FontTypes.GAME_FONT, WidgetTypes.WIDGET_GENERAL, -1, -1)
    					#screen.setText("Background", "FreeSpecialistCount" + str(i), szBuffer, CvUtil.FONT_RIGHT_JUSTIFY, iX , iY, 0, FontTypes.GAME_FONT, WidgetTypes.WIDGET_GENERAL, -1, -1)
    
    Edit 2: found "iX+20" thanks!
     

    Attached Files:

    • GP.jpg
      GP.jpg
      File size:
      16.9 KB
      Views:
      341
  18. Aloha

    Aloha Richard the Catheart

    Joined:
    Feb 17, 2013
    Messages:
    74
    Location:
    Kingdom of Catland
    Mastery Platy:hatsoff:
     
  19. platyping

    platyping Sleeping Dragon

    Joined:
    Oct 22, 2010
    Messages:
    4,626
    Location:
    Emerald Dreams
    Add a number to ix of the text line
     
  20. Cruel

    Cruel King

    Joined:
    Jun 22, 2005
    Messages:
    823
    Location:
    São Paulo, Brazil
    :)

    Another suggestion: I know that hover text in python is difficult, but I think that the defense in city screen deserves one like this:

    Defense Hover:
    Spoiler :
     

Share This Page