Unique City-States

Discussion in 'Mods Repository' started by Enginseer, Dec 25, 2016.

?

Would you play this mod?

Poll closed Dec 30, 2016.
  1. Oh yeah.

    90.0%
  2. I'd rather not.

    10.0%
  1. balparmak

    balparmak Prince

    Joined:
    Sep 20, 2015
    Messages:
    331
  2. adan_eslavo

    adan_eslavo Archmage of all Pixels Supporter

    Joined:
    Apr 23, 2017
    Messages:
    2,701
    Gender:
    Male
    Location:
    Łódź, Poland
    Yeah, they closed first topic like always without further investigation, but we were stubborn and found the issue. High five @Padre19!
     
    BornDownUnder and balparmak like this.
  3. Padre19

    Padre19 Warlord

    Joined:
    Oct 4, 2016
    Messages:
    215
    Gender:
    Male
    :thumbsup::smoke:
     
  4. adan_eslavo

    adan_eslavo Archmage of all Pixels Supporter

    Joined:
    Apr 23, 2017
    Messages:
    2,701
    Gender:
    Male
    Location:
    Łódź, Poland
    Guys, can you verify if you can set Sphere of Influence over Jerusalem and/or Sidon and/or Lhasa? I just wanted to test 2.0.2 hotfix and nothig happens regarding SoF. Religion is correctly applied and the GameEvent is fixed, but I opened World Congress, even researched Steam Power to enable Sphere of Influence and after making an ally of Jerusalem nothing shows nor in notifications, nor in World Congress window, nor in CS window.
     
  5. Padre19

    Padre19 Warlord

    Joined:
    Oct 4, 2016
    Messages:
    215
    Gender:
    Male
    Lua bug. I'll fix it.
     
  6. adan_eslavo

    adan_eslavo Archmage of all Pixels Supporter

    Joined:
    Apr 23, 2017
    Messages:
    2,701
    Gender:
    Male
    Location:
    Łódź, Poland
    Lhasa SoF is working. I have just verified.
     
  7. Padre19

    Padre19 Warlord

    Joined:
    Oct 4, 2016
    Messages:
    215
    Gender:
    Male
    UCS 6.3 version
    ---------------------------------------------------------
    -fix Sphere of Influence
    -fix marsh bug (Brussels)
    - add bonus for Mongolian Ordo like Citadel (La Venta, Melbourne, Vancouver)
    -----------------------------------------------------------
     

    Attached Files:

    balparmak, arievillo and adan_eslavo like this.
  8. adan_eslavo

    adan_eslavo Archmage of all Pixels Supporter

    Joined:
    Apr 23, 2017
    Messages:
    2,701
    Gender:
    Male
    Location:
    Łódź, Poland
    I plan to add Sphere of Influence notification in CS's UI. Do you have any idea what function can be used to check that?
    Do you have any suggestions what else could be added?
    Do you play with CSL?
     
  9. Padre19

    Padre19 Warlord

    Joined:
    Oct 4, 2016
    Messages:
    215
    Gender:
    Male
    if Players[MinorCivID]:GetAlly() == iPlayer and Game.IsResolutionPassed(GameInfoTypes.RESOLUTION_SPHERE_OF_INFLUENCE, MinorCivID) then

    Maybe other city states

    Nope
     
    adan_eslavo likes this.
  10. notque

    notque Artificially Intelligent

    Joined:
    Nov 13, 2005
    Messages:
    1,672
    Is the mod stable with VP 2 now? I've never used it, and was curious if I could install and try it, or are bugs still being worked out?
     
  11. adan_eslavo

    adan_eslavo Archmage of all Pixels Supporter

    Joined:
    Apr 23, 2017
    Messages:
    2,701
    Gender:
    Male
    Location:
    Łódź, Poland
    Thanks! It will help me a lot! New functionality is always a good thing :)
    Nah, I mean, CSL is purely UI mod and I want it to stay like that. UCS 2.0 is too much for me I suppose :) If you have some UI suggestions let me know.
    Oh, I wonder why :) This mod is strictly made for UCS. If you test it out I would gladly hear abut your opinion. I just plan to make some compatibility with latest civs added, so maybe I would add some functions as well.
     
  12. Padre19

    Padre19 Warlord

    Joined:
    Oct 4, 2016
    Messages:
    215
    Gender:
    Male
    Is everything alright.
     
  13. adan_eslavo

    adan_eslavo Archmage of all Pixels Supporter

    Joined:
    Apr 23, 2017
    Messages:
    2,701
    Gender:
    Male
    Location:
    Łódź, Poland
    It should be stable. I tested out with few CS and bonuses worked well. Of course if you find some bug, let us know and @Padre19 or me will try to fix it asap.
     
  14. Padre19

    Padre19 Warlord

    Joined:
    Oct 4, 2016
    Messages:
    215
    Gender:
    Male
    Because personal mod (slaves and city states related to them) that would not be compatible.
     
  15. adan_eslavo

    adan_eslavo Archmage of all Pixels Supporter

    Joined:
    Apr 23, 2017
    Messages:
    2,701
    Gender:
    Male
    Location:
    Łódź, Poland
    Can you post the link to the mod or it was not released officialy? Maybe I could help?
     
  16. adan_eslavo

    adan_eslavo Archmage of all Pixels Supporter

    Joined:
    Apr 23, 2017
    Messages:
    2,701
    Gender:
    Male
    Location:
    Łódź, Poland
    Can you explain me how exactly abilities of Santo Domingo or Managua work? I'm doing some text revisions in UCS and cannot understand what they are supposed to do.
     
  17. Padre19

    Padre19 Warlord

    Joined:
    Oct 4, 2016
    Messages:
    215
    Gender:
    Male
    UPDATE Policies
    SET MonopolyModFlat = 3
    WHERE Type = 'POLICY_SANTO_DOMINGO';

    UPDATE Policies
    SET MonopolyModPercent = 7
    WHERE Type = 'POLICY_MANAGUA';

    same as Colonialism

    UPDATE Policies
    SET MonopolyModFlat = '3', MonopolyModPercent = '10', RevealAllCapitals = '0'
    WHERE Type = 'POLICY_NAVAL_TRADITION';

    SET Text = '[COLOR_POSITIVE_TEXT]Colonialism[ENDCOLOR][NEWLINE]+10% to sum of Yield and [ICON_GOLDEN_AGE] Golden Age duration modifiers from Global Monopolies; +3 to sum of Yields and [ICON_HAPPINESS_1] Happiness from Global Monopolies. Barracks, Armories, Military Academies, Forts, and Citadels provide +2 [ICON_RESEARCH] Science and +1 [ICON_CULTURE] Culture.'
    WHERE Tag = 'TXT_KEY_POLICY_NAVAL_TRADITION_HELP';

    I don't know exactly what that means


    from CoreTableEntries.sql
    -- Alters monopoly values below (except for strategic elements, like attack/defense/heal/etc.)
    ALTER TABLE Policies ADD COLUMN 'MonopolyModFlat' INTEGER DEFAULT 0;
    ALTER TABLE Policies ADD COLUMN 'MonopolyModPercent' INTEGER DEFAULT 0;
     
  18. adan_eslavo

    adan_eslavo Archmage of all Pixels Supporter

    Joined:
    Apr 23, 2017
    Messages:
    2,701
    Gender:
    Male
    Location:
    Łódź, Poland
    @pineappledan or anyone playing both mods: How Japanese guilds from MUCfVP work with Bratislava's ability from UCS? Maybe a compatibility update?
     
    Last edited: Apr 2, 2022
  19. adan_eslavo

    adan_eslavo Archmage of all Pixels Supporter

    Joined:
    Apr 23, 2017
    Messages:
    2,701
    Gender:
    Male
    Location:
    Łódź, Poland
    UCS v6.4:
    Code:
    Changelog:
    - fixed and tweaked GetCityStateStatusToolTip() function in CityStateStatusHelper.lua (better spacing, fixed war info, icons, order, colours);
    - changed few default texts to look better;
    - revised all ability texts (missing icons, clarity, logic errors, grammar issues, wording and more);
    - changed ability title color to magenta for better visibility.
    
     

    Attached Files:

    balparmak, Histomen and TadhgEomonn like this.
  20. adan_eslavo

    adan_eslavo Archmage of all Pixels Supporter

    Joined:
    Apr 23, 2017
    Messages:
    2,701
    Gender:
    Male
    Location:
    Łódź, Poland
    With cooperation of @jarcast2 and few others we can present to you UCS v7:
    Code:
    Changelog:
    New:
        - added City-States with unique abilities:  ==> Taipei (maritime)
                                                    ==> Óc Eo (mercantile);
        - added compatibility with any mod that adds Bonus or Luxury resources (f.i. Even More Resources; that mod must be loaded before UCS to work);
        - added manual Yangcheng compatibility with EMR (Animal Resources);
        - added an icon for Marsh improvement by @gwennog;
    Lua:
        - added pseudoAllies (you can get Unique CS bonus even if you are not an Ally; being over 300% of the Ally threshold is enough for it; this means multiple players can get the bonus at the same time) (lua);
        - added Embassies mechanic (you get bonuses from CS after establishing an Embassy in CS territory; bonus is permanent);
        - you can disable any of the 3 possible ways of getting bonuses with values in lua file: bIsAllyAnOption, bIsEmbassyAnOption or bIsPseudoAllyAnOption (changing true to false);
        - functions on AllyChange now are checked on Turn (lua);
        - Jerusalem now checked on turn (instead of on AllyChange); this allows transferring religion or setting Sphere of Influence even after being allied with CS; Sphere and Religion are now independent from each other (lua);
        - added Sphere of Influence notification for Lhasa and many other Notifications; reworked many of them or rewrote the texts (lua);
        - added notification when bonus from CS is applied (separate for each condition) (lua);
        - modified coordinates of numerous notifications (now they focus on City-State instead of Major Player City) (lua);
        - fixed Marsh creation (lua)
    Balance:
        - updated UnitCombats for all UCS promotions (mainly Submarines, Carriers, but sometimes others);
        - reworked slightly all Clermont promotions;
        - slightly buffed: Kyiv, Milan, Vilnius, Kyzyl, Jerusalem (added specific bonus for all players, because other bonuses are only for an Ally);
        - increased thresholds for being Friend with CS (from 35 to 50) and to be an Ally (from 70 to 100);
    Other fixes:
        - historical correction changes:    "Gwynedd" City-State renamed to "Aberffraw";
                                            "Auckland" City-State renamed to "Parihaka";
                                            "Tamaki Makaurau" ability renamed to "City of Sails";
                                            "Honduras" City-State renamed to "Tegucigalpa";
                                            "Muisca" City-State renamed to "Suamox";
                                            "Laconia" City-State renamed to "Sparta";
        - updated anything regarding promotions in files (multiple errors; pedia types, pedia fixes, new text label etc.);
        - merged all text files into one big cleaned up file easier to manage;
        - cleaned up and reworked lua file; deleted unnecessary code;
        - further text changes and fixes (f.i. many additional help notes added; corrected some crucial logic errors);
    Few things to mention:
    • almost all texts in the game where revised; please report any inconsistence that could sho up after mod rework and adding new mechanics;
    • please test out those city-states' abilities which require lua, because whole lua file was revised and optimized and new mechanics were added;
    • please report any other glitches and errors.
    Have fun!
     

    Attached Files:

    Last edited: Apr 11, 2022
    Dimmy, Zhaoyi, Joey Diamond and 7 others like this.

Share This Page