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

Sukritact's Events and Decisions

Discussion in 'Civ5 - Modpacks' started by sukritact, Jun 22, 2014.

  1. tomas1931

    tomas1931 Chieftain

    Joined:
    Jan 2, 2002
    Messages:
    34
    Location:
    Illinois
    Using community patch with auto installer enhanced user interface and Jfd core mod with rise to power
    When I use event and decision game plays normal but technology tree only name and rest of the explanation is not there It is black


    Sent from my iPad using Tapatalk
     
  2. Chrisy15

    Chrisy15 Flower, Beautiful

    Joined:
    Jul 9, 2015
    Messages:
    2,070
    Are you using the latest RTP version and the latest CP beta (17/2)?

    Also, please try to narrow down the mod causing the issue, rather than posting the same thing on many threads.
     
  3. tomas1931

    tomas1931 Chieftain

    Joined:
    Jan 2, 2002
    Messages:
    34
    Location:
    Illinois
    Why is the delete button inoperable One is unable to delete units when there is negative gold
     
  4. Amnesiac9

    Amnesiac9 Chieftain

    Joined:
    Feb 13, 2016
    Messages:
    15
    Hi, I got a message that "A new world order has dawned" and the only two options were, "Darn", and "as above, so below." or something. After this happened all of my cities produced 0 science, production, and everything else. What happened?

    Edit: it seems to have something to do with the enactment of a world ideology, as when mousing over the 0+ science, gold ect. it says my civilization is in anarchy because of changing my ideology, except I didn't! The new world one is freedom, and I have been freedom the whole time and it has not changed! This is so weird.

    Edit2: I made a video of the incident: https://youtu.be/Etmm-nb69ro
     
  5. sukritact

    sukritact Artist and Modder

    Joined:
    Sep 21, 2010
    Messages:
    2,826
    Location:
    Bangkok
    Bavaria and the Illuminati.
     
  6. jose2534

    jose2534 Chieftain

    Joined:
    Feb 28, 2016
    Messages:
    12
    I will love this mode if it were integrated in Communiti Patch Proyect.
    Playing it now, I love it so far :D will come back with news about what I think once I finish a game.
     
  7. Taurus

    Taurus Chieftain

    Joined:
    Aug 2, 2002
    Messages:
    32
    Location:
    Maribor, Slovenia
    I would like to report another bug regarding TXT_KEY_DECISIONS_RELIGIONEVENTS, this time for event for religion shinto, as is on attached picture.

    BTW, I love your mod!
     

    Attached Files:

  8. TRO

    TRO Chieftain

    Joined:
    Sep 9, 2015
    Messages:
    20
    Hi sukritact (and other forum regulars),

    First, love E&D and your custom civs! They keep the game very interesting! I'm about to talk about bugs, but the good far and away outweigh the bad!

    Like some others, I occasionally experience CTD with E&D. But I just save a lot and and reload, since they seem to be quite random and often not too repeatable, so I'm more than willing to put up with this.

    However, I've occasionally encountered something a bit more troublesome than CTD—loading a game to find the decisions panel art up on the screen and unable to progress.

    pic of bug

    The thing is, it only happens in some games, and then only irregularly, so in the past, I've just began another game or gone back to a save where the problem didn't arise and continued on, then rinse and repeat as needed.

    But, perhaps because my current game is particularly enjoyable, and/or because my real life isn't too busy right now, I decided to look into it a bit more.

    I know TSL produces issues on loading, and this error is related to TSL, but why only sometimes?

    So, here's the current situation. On my Turn 160 and I get the error. On my Turn 146 and 142, I do not. (I did not check my turn 150 or 155 autosave, but could). Here are selections of the respective lua.logs. Lots of mods, but no .dll mods, though, as I'm on a mac. Could that be contributing to the issue? I can provide a whole list if you want). Anyway, here's what seemed relevant, from loading turn 160 and 142, respectively:

    Spoiler :
    [47244.376] EnactDescisionsPopup: >>>ML_LIB_PlotIterators loaded
    [47244.378] EnactDescisionsPopup: Loading TableSaverLoader.lua...
    [47244.378] EnactDescisionsPopup: Loading TSL Serializer Client...
    [47244.378] EnactDescisionsPopup: TSL Serializer Client Version: 3
    [47244.379] EnactDescisionsPopup: Loading TSL Serializer Core...
    [47244.379] EnactDescisionsPopup: TSL Serializer Core Version: 3
    [47244.379] EnactDescisionsPopup: Core TSL Serializer components for version 3 loaded successfully.
    [47244.379] EnactDescisionsPopup: TSL Master is active, retrieving ID...
    [47244.379] EnactDescisionsPopup: Index is currently 1
    [47244.379] EnactDescisionsPopup: TSL Master assigning index of 3 to ID request.
    [47244.379] EnactDescisionsPopup: Received ID of 3 from TSL Master.
    [47244.379] EnactDescisionsPopup: Registering table 'EventsDecisions_Decisions' for use with TSLSerializer...
    [47244.379] EnactDescisionsPopup: TSL Serializer version 3 loaded successfully.
    [47244.452] Runtime Error: \Users\Skynet\Documents\Aspyr\Sid Meier's Civilization 5\MODS\Events and Decisions-1\Lua\TableSaverLoader\TableSaverLoader016.lua:363: Error loading tables: checksumOld=6355, checksumNew=5963
    [47244.452] Runtime Error: Error loading \Users\Skynet\Documents\Aspyr\Sid Meier's Civilization 5\MODS\Events and Decisions-1\Lua\UI\EnactDescisionsPopup.lua.
    [47244.454] LuaEvents.PlayerEnteredNewEra: loaded
    [47244.457] RandomEventsPopup: loaded
    [47244.458] RandomEventsPopup: >>>ML_LIB_PlotIterators loaded
    [47244.460] RandomEventsPopup: Loading TableSaverLoader.lua...
    [47244.460] RandomEventsPopup: Loading TSL Serializer Client...
    [47244.460] RandomEventsPopup: TSL Serializer Client Version: 3
    [47244.461] RandomEventsPopup: Loading TSL Serializer Core...
    [47244.461] RandomEventsPopup: TSL Serializer Core Version: 3
    [47244.461] RandomEventsPopup: Core TSL Serializer components for version 3 loaded successfully.
    [47244.461] RandomEventsPopup: TSL Master is active, retrieving ID...
    [47244.461] RandomEventsPopup: Index is currently 1
    [47244.461] RandomEventsPopup: TSL Master assigning index of 4 to ID request.
    [47244.461] RandomEventsPopup: Received ID of 4 from TSL Master.
    [47244.461] RandomEventsPopup: Registering table 'EventsDecisions_RandomEvents' for use with TSLSerializer...
    [47244.461] RandomEventsPopup: TSL Serializer version 3 loaded successfully.
    [47244.534] RandomEventsPopup: TableLoad ran without error; time: 0.00093499999999835, checksum: 1927
    [47244.539] RandomEventsPopup: Core Events: loaded
    [47244.539] RandomEventsPopup: Civ Events: loaded
    [47244.540] RandomEventsPopup: Religious Events: loaded
    [47244.546] RandomEventsPopup: >>>ML_LIB_PlotIterators loaded
    [47244.546] RandomEventsPopup: JFD's CulDiv Events: loaded
    [47244.547] RandomEventsPopup: Leugi's Philistine Events: loaded
    [47244.547] RandomEventsPopup: JFD's Japan (Tojo) Events: loaded
    [47244.548] Syntax Error: \Users\Skynet\Documents\Aspyr\Sid Meier's Civilization 5\MODS\Light In The East - The Safavid Empire (v 1)\Code\Mod compatibility\SafavidEventsSupport.lua:283: ')' expected (to close '(' at line 268) near 'save'
    [47244.550] RandomEventsPopup: JFD's Sweden (Karl XII) Events: loaded
    [47244.550] RandomEventsPopup: Harappa Events
    [47244.551] RandomEventsPopup: Kievan Events
    [47244.553] RandomEventsPopup: Hittite Events
    [47244.553] RandomEventsPopup: Sioux Events
    [47244.626] RandomEventsPopup: TableLoad ran without error; time: 0.00048800000000426, checksum: 1927
    [47244.699] RandomEventsPopup: TableSave time: 0.00042299999999784, inserts: 0, deletes: 0, updates: 0, unchanged: 52, checksum: 1927


    Spoiler :
    [47726.676] EnactDescisionsPopup: >>>ML_LIB_PlotIterators loaded
    [47726.677] EnactDescisionsPopup: Loading TableSaverLoader.lua...
    [47726.678] EnactDescisionsPopup: Loading TSL Serializer Client...
    [47726.678] EnactDescisionsPopup: TSL Serializer Client Version: 3
    [47726.678] EnactDescisionsPopup: Loading TSL Serializer Core...
    [47726.678] EnactDescisionsPopup: TSL Serializer Core Version: 3
    [47726.678] EnactDescisionsPopup: Core TSL Serializer components for version 3 loaded successfully.
    [47726.678] EnactDescisionsPopup: TSL Master is active, retrieving ID...
    [47726.678] EnactDescisionsPopup: Index is currently 1
    [47726.678] EnactDescisionsPopup: TSL Master assigning index of 3 to ID request.
    [47726.678] EnactDescisionsPopup: Received ID of 3 from TSL Master.
    [47726.678] EnactDescisionsPopup: Registering table 'EventsDecisions_Decisions' for use with TSLSerializer...
    [47726.678] EnactDescisionsPopup: TSL Serializer version 3 loaded successfully.
    [47726.752] EnactDescisionsPopup: TableLoad ran without error; time: 0.00064600000007431, checksum: 4336
    [47726.754] EnactDescisionsPopup: loaded
    [47726.757] EnactDescisionsPopup: Core Decisions: loaded
    [47726.764] EnactDescisionsPopup: Civ Specific Decisions: loaded
    [47726.829] EnactDescisionsPopup: Religious Decisions: loaded
    [47726.833] EnactDescisionsPopup: Philistine Decisions
    [47726.833] EnactDescisionsPopup: Burmese Decisions: loaded
    [47726.835] EnactDescisionsPopup: JFD's Japan (Tojo) Decisions: loaded
    [47726.837] EnactDescisionsPopup: Sri Lanka Decisions: loaded
    [47726.839] EnactDescisionsPopup: Nazca Decisions: loaded
    [47726.840] EnactDescisionsPopup: Chinook Decisions: loaded
    [47726.844] EnactDescisionsPopup: JFD's Sweden (Karl XII) Decisions: loaded
    [47726.845] EnactDescisionsPopup: JFD's Ottoman Decisions: loaded
    [47726.846] EnactDescisionsPopup: JFD's Byzantium (Theodora) Decisions: loaded
    [47726.847] EnactDescisionsPopup: loading Malay decisions!
    [47726.847] EnactDescisionsPopup: Decisions_CL_MALAYSIA_Laksamana loaded
    [47726.848] EnactDescisionsPopup: Decisions_CL_MALAYSIA_Kongsi loaded
    [47726.849] EnactDescisionsPopup: Loading the Beothuk People's Decisions
    [47726.850] EnactDescisionsPopup: loading Wabanaki Decisions!
    [47726.850] EnactDescisionsPopup: Decisions_CLWABANAKICONVERSION loaded
    [47726.851] EnactDescisionsPopup: Decisions_CLWABANAKISPORTS loaded
    [47726.852] EnactDescisionsPopup: Norte Chico Decisions
    [47726.863] EnactDescisionsPopup: Champa Decisions
    [47726.864] EnactDescisionsPopup: Harappa Decisions
    [47726.865] EnactDescisionsPopup: Kievan Rus Decisions
    [47726.871] EnactDescisionsPopup: Hittite Decisions
    [47726.872] EnactDescisionsPopup: Sioux Decisions
    [47726.873] EnactDescisionsPopup: Timurid Decisions
    [47726.874] EnactDescisionsPopup:
    [47726.874] EnactDescisionsPopup: --=======================================================================================================================
    [47726.874] EnactDescisionsPopup: Refresh list
    [47726.875] EnactDescisionsPopup: Processing Decisions
    [47726.875] EnactDescisionsPopup:
    [47726.875] EnactDescisionsPopup: Dispatch Hanno's Voyage false false nil
    [47726.875] EnactDescisionsPopup: Commission an Illustrated Holy Book true true nil
    [47726.875] EnactDescisionsPopup: Promote the Arts false false true
    [47726.875] EnactDescisionsPopup: Sacrifice the Mightiest false false nil
    [47726.875] EnactDescisionsPopup: Initiate Tax Reforms true true nil
    [47726.875] EnactDescisionsPopup: Promote Chagatai Literature false false nil
    [47726.875] EnactDescisionsPopup: Erect Victory Stele false false nil
    [47726.875] EnactDescisionsPopup: Codify Laws false false true
    [47726.875] EnactDescisionsPopup: Trade Along the Silk Road false false nil
    [47726.875] EnactDescisionsPopup: Hellenize the Local Customs false false true
    [47726.875] EnactDescisionsPopup: Revive Iranian Traditions false false nil
    [47726.875] EnactDescisionsPopup: Establish the Saxon Heptarchy false false nil
    [47726.875] EnactDescisionsPopup: Expand the Cothons false false nil
    [47726.875] EnactDescisionsPopup: Send Dignitaries and Merchants to Faraway Lands true true nil
    [47726.875] EnactDescisionsPopup: Hire Court Gosan false false nil
    [47726.875] EnactDescisionsPopup: Establish the Cult to Sol Invictus false false nil
    [47726.875] EnactDescisionsPopup: Collate the Royal Burmese Chronicles false false nil
    [47726.875] EnactDescisionsPopup: Prosecute the Corrupt false false nil
    [47726.875] EnactDescisionsPopup: Raise the River Banks of Babylon false false nil
    [47726.875] EnactDescisionsPopup: Nationalise the Utilities true false nil
    [47726.875] EnactDescisionsPopup: nil nil nil
    [47726.875] EnactDescisionsPopup: Call the Wizengamot false false nil
    [47726.875] EnactDescisionsPopup: Request the Services of a Great Person false false true
    [47726.875] EnactDescisionsPopup: Formalize Scales, Weights and Measures false false true
    [47726.875] EnactDescisionsPopup: Designate the Official Nats false false nil
    [47726.876] EnactDescisionsPopup: Hold a Holy Festival true true false
    [47726.876] EnactDescisionsPopup: Set Up a Universities Funding Council true false nil
    [47726.876] EnactDescisionsPopup: Encase the Horses false false nil
    [47726.876] EnactDescisionsPopup:
    [47726.876] EnactDescisionsPopup: Processing Generated Decisions
    [47726.876] EnactDescisionsPopup:
    [47726.876] EnactDescisionsPopup:
    [47726.876] EnactDescisionsPopup: Sort by Type
    [47726.876] EnactDescisionsPopup: End sort
    [47726.876] EnactDescisionsPopup: Populating screen
    [47726.882] EnactDescisionsPopup: End populate
    [47726.882] EnactDescisionsPopup: Calculating size and anchoring
    [47726.883] EnactDescisionsPopup: Refresh list end
    [47726.883] EnactDescisionsPopup: --=======================================================================================================================
    [47726.883] EnactDescisionsPopup:
    [47726.884] EnactDescisionsPopup: TableLoad ran without error; time: 0.00058799999999337, checksum: 4336
    [47726.885] EnactDescisionsPopup: TableSave time: 0.00026400000001559, inserts: 0, deletes: 0, updates: 0, unchanged: 53, checksum: 4336
    [47726.886] LuaEvents.PlayerEnteredNewEra: loaded
    [47726.889] RandomEventsPopup: loaded
    [47726.891] RandomEventsPopup: >>>ML_LIB_PlotIterators loaded
    [47726.892] RandomEventsPopup: Loading TableSaverLoader.lua...
    [47726.893] RandomEventsPopup: Loading TSL Serializer Client...
    [47726.893] RandomEventsPopup: TSL Serializer Client Version: 3
    [47726.893] RandomEventsPopup: Loading TSL Serializer Core...
    [47726.893] RandomEventsPopup: TSL Serializer Core Version: 3
    [47726.893] RandomEventsPopup: Core TSL Serializer components for version 3 loaded successfully.
    [47726.893] RandomEventsPopup: TSL Master is active, retrieving ID...
    [47726.893] RandomEventsPopup: Index is currently 1
    [47726.893] RandomEventsPopup: TSL Master assigning index of 4 to ID request.
    [47726.893] RandomEventsPopup: Received ID of 4 from TSL Master.
    [47726.893] RandomEventsPopup: Registering table 'EventsDecisions_RandomEvents' for use with TSLSerializer...
    [47726.893] RandomEventsPopup: TSL Serializer version 3 loaded successfully.
    [47726.967] RandomEventsPopup: TableLoad ran without error; time: 0.00068100000009963, checksum: 1920
    [47726.971] RandomEventsPopup: Core Events: loaded
    [47726.972] RandomEventsPopup: Civ Events: loaded
    [47726.973] RandomEventsPopup: Religious Events: loaded
    [47726.979] RandomEventsPopup: >>>ML_LIB_PlotIterators loaded
    [47726.979] RandomEventsPopup: JFD's CulDiv Events: loaded
    [47726.980] RandomEventsPopup: Leugi's Philistine Events: loaded
    [47726.980] RandomEventsPopup: JFD's Japan (Tojo) Events: loaded
    [47726.981] Syntax Error: \Users\Skynet\Documents\Aspyr\Sid Meier's Civilization 5\MODS\Light In The East - The Safavid Empire (v 1)\Code\Mod compatibility\SafavidEventsSupport.lua:283: ')' expected (to close '(' at line 268) near 'save'
    [47726.983] RandomEventsPopup: JFD's Sweden (Karl XII) Events: loaded
    [47726.984] RandomEventsPopup: Harappa Events
    [47726.984] RandomEventsPopup: Kievan Events
    [47726.986] RandomEventsPopup: Hittite Events
    [47726.987] RandomEventsPopup: Sioux Events
    [47727.061] RandomEventsPopup: TableLoad ran without error; time: 0.00053600000001097, checksum: 1920
    [47727.134] RandomEventsPopup: TableSave time: 0.00025700000003326, inserts: 0, deletes: 0, updates: 0, unchanged: 52, checksum: 1920


    I realize there may be no solution here, but I am wondering why the bug seems so irregular. Any ideas? I think I saw link to a non-TSL version (I don't believe I had this issue then, but I had more CTD with Events, and never any problems with Decisions) posted again somewhere in the thread?
     
  9. Dragon_Claw52

    Dragon_Claw52 Chieftain

    Joined:
    Apr 24, 2015
    Messages:
    12
    I have a mac so events always seem to crash my game, is there anyway I can disable events and still have decisions?
     
  10. Klisz

    Klisz King

    Joined:
    Aug 18, 2014
    Messages:
    805
    Simply change "g_RandomEvents_Enabled = 1" to "g_RandomEvents_Enabled = 0" in EventsAndDecisions_Settings.lua.
     
  11. Dragon_Claw52

    Dragon_Claw52 Chieftain

    Joined:
    Apr 24, 2015
    Messages:
    12
    Thank you very much for your help! :D
     
  12. metanight78

    metanight78 Chieftain

    Joined:
    Mar 26, 2016
    Messages:
    2
    Hello I'm new here and have a question about this mod.

    In my current game I've gotten the solar eclipse event 3 times now, and each time I try to click and receive a reward from one of the choices I receive nothing. I've picked different options each time just to test and nothing. What should I try to fix this.
     
  13. darkninja3339

    darkninja3339 Chieftain

    Joined:
    Apr 8, 2016
    Messages:
    16
    Location:
    USA
    I really like the idea of this mod, and the small bit i have been able to encounter is really cool. Although, every single game i have started with this mod crashes when clicking a tab in the pop-up events or decisions. The enact decisions is always fine though. And before anyone asks, I made sure to only use other mods that SAY they support E&D. My most recent game i used Russia from the game top see if it was just modded civs affecting it but it still crashed.
     
  14. sukritact

    sukritact Artist and Modder

    Joined:
    Sep 21, 2010
    Messages:
    2,826
    Location:
    Bangkok

    This event was created almost entirely with the Event Creator

    Releasing a small utility to aid in creating Events: LINK
    This tool is designed for use with Google Chrome. It appears to work on Internet Explorer, but will not function in Firefox.

    The Event Creator is a tool designed to make to process of creating Events a bit less tedious, the Creator allows you to visually script the more repetitive and common parts of an event. Simpler events can be created entirely in the Creator. More unique or complex features will still require you to do a bit of manual tweaking, and lua knowledge is still highly recommended, but this will undoubtedly speed up and simplify the process.

    The leftmost column is your palette, this is where you adjust settings and grab modules to add. The center column is your canvas, drag and drop modules here, finally the rightmost column is your code output.

    The tool will be expanded as time permits. A Decision equivalent of this tool is being planned.
     
  15. Chrisy15

    Chrisy15 Flower, Beautiful

    Joined:
    Jul 9, 2015
    Messages:
    2,070
    > G releases a new Events system, that is easier to use

    > Sukri releases tool to make Events simpler to make

    Can't wait to give this a try - I never quite managed to get Events to work, so this is appreciated!
     
  16. Urdnot_Scott

    Urdnot_Scott Sultan

    Joined:
    Feb 20, 2013
    Messages:
    1,437
    Location:
    The Trucial States.
    wow thats absolutely fantastic, awesome work as always dude! Thanks a million
     
  17. OTiger

    OTiger Warlord

    Joined:
    Aug 26, 2012
    Messages:
    178
    Gender:
    Male
    I made a thread about this, but nobody answered, so I'll ask here:

    I've been putting E&D support to one of my mods, and I kinda got it to working, expect that the second decision isn't showing up. Here's the code:

    Code:
    --------------------------------------------------------------------------------------------------------------------------
    -- Expand the Krusty Krab Talent Show
    --------------------------------------------------------------------------------------------------------------------------
    local Decisions_KrustyKrabTalentShow = {}
    	Decisions_KrustyKrabTalentShow.Name = "TXT_KEY_DECISIONS_KRUSTYKRABTALENTSHOW"
    	Decisions_KrustyKrabTalentShow.Desc = "TXT_KEY_DECISIONS_KRUSTYKRABTALENTSHOW_DESC"
    	HookDecisionCivilizationIcon(Decisions_KrustyKrabTalentShow, "CIVILIZATION_KRUSTY_KRAB")
    	Decisions_KrustyKrabTalentShow.CanFunc = (
    	function(pPlayer)
    		if pPlayer:GetCivilizationType() ~= GameInfoTypes.CIVILIZATION_KRUSTY_KRAB then return false, false end
    		if load(pPlayer, "Decisions_KrustyKrabTalentShow") == true then
    			Decisions_KrustyKrabTalentShow.Desc = Locale.ConvertTextKey("TXT_KEY_DECISIONS_KRUSTYKRABTALENTSHOW_ENACTED_DESC")
    			return false, false, true
    		end
    		
    		local iCost = math.ceil(500 * iMod)
    		Decisions_KrustyKrabTalentShow.Desc = Locale.ConvertTextKey("TXT_KEY_DECISIONS_KRUSTYKRABTALENTSHOW_DESC", iCost)	
    		if (pPlayer:GetNumResourceAvailable(iMagistrate, false) < 2) then return true, false end
    		if (Teams[pPlayer:GetTeam()]:IsHasTech(GameInfoTypes.TECH_ACOUSTICS)) and (pPlayer:GetGold() >= iCost) then
    			return true, true
    		else
    			return true, false
    		end
    	end
    	)
    
    	Decisions_KrustyKrabTalentShow.DoFunc = (
    	function(pPlayer)
    		local iCost = math.ceil(500 * iMod)
    		pPlayer:ChangeGold(-iCost)
    		pPlayer:ChangeNumResourceTotal(iMagistrate, -2)
    		pPlayer:SetNumFreePolicies(1)
    		pPlayer:SetNumFreePolicies(0)
    		pPlayer:SetHasPolicy(GameInfoTypes.POLICY_DECISIONS_KRUSTYKRABTALENTSHOW, true)
    		save(pPlayer, "Decisions_KrustyKrabTalentShow", true)
    	end
    	)
    
    	Decisions_AddCivilisationSpecific(GameInfoTypes.CIVILIZATION_KRUSTY_KRAB, "Decisions_KrustyKrabTalentShow", Decisions_KrustyKrabTalentShow)
    
    	--------------------------------------------------------------------------------------------------------------------------
    -- Turn the Krusty Krab into a Hotel
    --------------------------------------------------------------------------------------------------------------------------
    local eraModernlID	 = GameInfoTypes["ERA_MODERN"]
    local policyKrustyTowers = GameInfoTypes["POLICY_DECISIONS_KRUSTYKRABKRUSTYTOWERS"]
    local Decisions_KrustyKrabKrustyTowers = {}
    	Decisions_KrustyKrabKrustyTowers.Name = "TXT_KEY_DECISIONS_KRUSTYKRABKRUSTYTOWERS"
    	Decisions_KrustyKrabKrustyTowers.Desc = "TXT_KEY_DECISIONS_KRUSTYKRABKRUSTYTOWERS_DESC"
    	HookDecisionCivilizationIcon(Decisions_KrustyKrabKrustyTowers, "CIVILIZATION_KRUSTY_KRAB")
    	Decisions_KrustyKrabKrustyTowers.CanFunc = (
    	function(pPlayer)
    		if pPlayer:GetCivilizationType() ~= civilizationID then return false, false end
    		if load(player, "Decisions_KrustyKrabKrustyTowers") == true then
    			Decisions_KrustyKrabKrustyTowers.Desc = Locale.ConvertTextKey("TXT_KEY_DECISIONS_KRUSTYKRABKRUSTYTOWERS_ENACTED_DESC")
    			return false, false, true
    		end
    
    		local playerID = player:GetID()
    		local goldCost = mathCeil(650*iMod)
    		Decisions_KrustyKrabKrustyTowers.Desc = Locale.ConvertTextKey("TXT_KEY_DECISIONS_KRUSTYKRABKRUSTYTOWERS_DESC", goldCost)
    		if pPlayer:GetCurrentEra() < eraModernlID then return true, false end
    		if pPlayer:GetNumResourceAvailable(iMagistrate, false) < 2 then return true, false end
    		if pPlayer:GetGold() < goldCost then return true, false end
    		return true, true
    	end
    	)
    	
    	Decisions_KrustyKrabKrustyTowers.DoFunc = (
    	function(pplayer)
    		local goldCost = math.ceil(650*iMod)
    		pPlayer:ChangeNumResourceTotal(iMagistrate, -2)
    		pPlayer:ChangeGold(-goldCost)
    		pPlayer:SetNumFreePolicies(1)
    		pPlayer:SetNumFreePolicies(0)
    		pPlayer:SetHasPolicy(policyKrustyTowers, true)
    		save(pPlayer, "Decisions_KrustyKrabKrustyTowers", true)
    	end
    	)
    
    		Decisions_AddCivilisationSpecific(GameInfoTypes.CIVILIZATION_KRUSTY_KRAB, "Decisions_KrustyKrabKrustyTowers", Decisions_KrustyKrabKrustyTowers)
    
    Here's the SQL file too:

    Code:
    --==========================================================================================================================
    -- Policies
    --==========================================================================================================================
    INSERT INTO Policies 
    			(Type, 											Description) 
    VALUES		('POLICY_DECISIONS_KRUSTYKRABTALENTSHOW',	 	'TXT_KEY_DECISIONS_KRUSTYKRABTALENTSHOW'),
    			('POLICY_DECISIONS_KRUSTYKRABKRUSTYTOWERS',		'TXT_KEY_DECISIONS_KRUSTYKRABKRUSTYTOWERS');
    
    --==========================================================================================================================
    -- Policy_BuildingClassYieldModifiers
    --==========================================================================================================================
    INSERT INTO Policy_BuildingClassYieldModifiers 
    			(PolicyType, 									BuildingClassType,					YieldType, 				YieldMod)
    VALUES 		('POLICY_DECISIONS_KRUSTYKRABTALENTSHOW', 		'BUILDING_OPERA_HOUSE',				'YIELD_GOLD',			20);
    --==========================================================================================================================
    -- Policy_BuildingClassTourismModifiers
    --==========================================================================================================================
    INSERT INTO Policy_BuildingClassTourismModifiers
    		(PolicyType, 										BuildingClassType,			TourismModifier)
    VALUES	('POLICY_DECISIONS_KRUSTYKRABKRUSTYTOWERS', 		'BUILDING_KRUSTY_KRAB',		10);
    Also, i'm not sure that the POLICY_DECISIONS_KRUSTYKRABTALENTSHOW is working- There's doesn't seem to be increase of Gold when it's active.

    And finally, is it possible to have a decision where there's a temporary boost in Production for a few turns (Maybe around 20 to 30)?
     
  18. Rob (R8XFT)

    Rob (R8XFT) Ancient Briton Super Moderator

    Joined:
    Aug 11, 2002
    Messages:
    10,803
    Location:
    Leeds (UK)
    Thanks for the events creator! Brilliant as ever :).
     
  19. LARulz

    LARulz Chieftain

    Joined:
    Oct 10, 2012
    Messages:
    23
    I'm on the Mac, but can't seem to find the panel. It says I have a decision to make but can't find it anywhere.

    Edit: Nevermind! Completely missed it
     
  20. Thessil

    Thessil Chieftain

    Joined:
    Mar 4, 2015
    Messages:
    15
    I've been trying everything to get the Events part of this mod to work but it just refuses to do so. They just dont ever pop up like they used to. I've redownloaded and installed this atleast a dozen times.
     

Share This Page