Sukritact's Events and Decisions

Hey guys! I am going to be making a Let's Play of Civilization V in a few days using your awesome mod! :D I'll post links in the description of the videos to your mod and all other mods I use too. I'm quite excited to try this out as it'll be my first Let's Play. :) Just wanted to make sure it's alright to use your mod for an LP purpose sukritact. :O I figure no one has done a Let's Play of the Events and Decisions mod before so I'm going to do my best! :)

That'a perfectly fine. I'll enjoy seeing it.
 
Hey Sukritact I think this mod is awesome and I really love the fact that you brought one of the best things from EU4 to Civ.

I just have one problem that maybe you might have an answer or suggestion for. The mod works smoothly and perfectly with all my other mods. All the decisions work nicely and all but one event works. The one event that I have come across that does not work is the event that gives you a bountiful harvest or however you worded it that gives food. On two separate occasions now every time I click the ok button for that event the game CTD's. Every other event works except for that one. I was wondering if you might hazard a guess of what that event is doing differently than the other ones so that I could reasonably pick which of my mods may be incompatible with this sudden generation of food.

Sorry for the long winded post. Any help would be appreciated. Cheers!
 
I would like to amend that last post. The solar eclipse event also CTD Civ for me. It seems the events that give me s straight up number of food, faith, science just crashes the game and I for the life of me cannot figure out what could be incompatible here.

Thanks for any help you can provide. I am going to continue to narrow down my list of mods until I find the culprit and I'll let you know if I find it.
 
I've a question Sukritact, I've been playing on Marathon speed lately and I've rarely been getting Events. You mentioned way back that game speed changes the rate Events happen but sometimes I will go an era or more without an Event occurring.

So I'd like to know if it's possible to increase the amount of times that Events show up. I'm really hoping that it's simple because I have no experience with coding, haha.
 
I've a question Sukritact, I've been playing on Marathon speed lately and I've rarely been getting Events. You mentioned way back that game speed changes the rate Events happen but sometimes I will go an era or more without an Event occurring.

So I'd like to know if it's possible to increase the amount of times that Events show up. I'm really hoping that it's simple because I have no experience with coding, haha.

The average amount of turns between events may be modified via the settings lua file. You should find it when you open up the mod's folder.
 
Heloo. Been playong this and it`s very nice, but since installed I`m getting a lot of graphical anomolies and glitches from the events graphics and other parts of the game. Can anyone explain what I may have done wrong in install? I`m sure I installed everything right.
 
Quick and probably simple utility question: Can an event's weight be a function that returns a value? Basically I'd like to make an event whose weight varies depending on whether the player meets a certain requirement, like this:
Code:
ThisEvent.Weight = (
	function(pPlayer)
		if x then
			return 200
		else
			return 100
		end
	end
	)
Or does the event handler need a straight given value to use?
 
Quick and probably simple utility question: Can an event's weight be a function that returns a value? Basically I'd like to make an event whose weight varies depending on whether the player meets a certain requirement, like this:
Code:
ThisEvent.Weight = (
	function(pPlayer)
		if x then
			return 200
		else
			return 100
		end
	end
	)
Or does the event handler need a straight given value to use?

This possible, but it must be done via the CanFunc.

Code:
		local tOutcomes = {}
		
		for iKey, tOutcome in pairs(tEvent.Outcomes) do
			if ((tOutcome.CanFunc) == nil or (tOutcome.CanFunc(pPlayer, tEvent.Data1, tEvent.Data2))) then
			
				if tOutcome.Weight == nil then
					table.insert(tOutcomes, iKey)
				elseif tOutcome.Weight > 0 then
					for iVal = 1, tOutcome.Weight do
						table.insert(tOutcomes, iKey)
					end
				end
				
			end
		end

		local iRandomKey = tOutcomes[GetRandom(1, #tOutcomes)]
		tEvent.Outcomes[iRandomKey].DoFunc(pPlayer, tEvent.Data1, tEvent.Data2)
 
Er, this is the coding taken straight from the event handler, not an example of what I should be doing, right? :crazyeye:
Since I was under the assumption that it would then look like this:
Code:
ThisEvent.Weight = 100
ThisEvent.CanFunc = (
	function(pPlayer)
		if x then
			ThisEvent.Weight = 200
		end
		...
	end
	)
 
Er, this is the coding taken straight from the event handler, not an example of what I should be doing, right? :crazyeye:
Since I was under the assumption that it would then look like this:
Code:
ThisEvent.Weight = 100
ThisEvent.CanFunc = (
	function(pPlayer)
		if x then
			ThisEvent.Weight = 200
		end
		...
	end
	)

Yup that's what you should be doing; the above was just the relevant code to show you how it works
 
I'm playing as the Maya and when I go to the enact decisions tab, there are no decisions at all.

Would you have any idea why?

You installed the mod correctly?

If so, check your Lua.log file for some info.
 
Hello? Did anyone see my last post? I`m looking for a little help as to why i`m getting graphic anomolies when I use this mod.
 
Hello? Did anyone see my last post? I`m looking for a little help as to why i`m getting graphic anomolies when I use this mod.
Just telling us that you have graphic anomalies tells us modders nothing. You might as well be telling us about the number of leaves on the trees in your nearest park, since that conveys just as much useful data: none.
(That goes for all error reports.)
Remember that a picture is worth a thousand words. And like doctors, we need detail to diagnose. What graphic anomalies - can you describe them, and describe them in detail? When do they occur and when did they start?
You might also try enabling logs and then checking... I'd say... the lua.log, for error messages.
 
Just telling us that you have graphic anomalies tells us modders nothing. You might as well be telling us about the number of leaves on the trees in your nearest park, since that conveys just as much useful data: none.
(That goes for all error reports.)
Remember that a picture is worth a thousand words. And like doctors, we need detail to diagnose. What graphic anomalies - can you describe them, and describe them in detail? When do they occur and when did they start?
You might also try enabling logs and then checking... I'd say... the lua.log, for error messages.

Thank you. :D
 
Thank you. :D
I was trying to think of what else would convey very little information, and I just happened to glance outside and note how few leaves there are on the trees here due to it being winter.
But, uh, you're welcome, I guess. For saving you from typing all that out? ;)
 
Just a preview of things to come. Civ specific events:

Spoiler :
FBAFGJA.jpg
ZpjYnpD.jpg


FYI, since this will rely on Whoward's DLL (or the Community Patch), I will be releasing this as an additional add-on as opposed to integrating it directly into E&D.

Has this been released yet? From the looks of things I'm guessing it hasn't.

Fantastic work on all of this, sukritact.
 
Back
Top Bottom