What the heck is going on with this Unfinished SDK??

But the problem with multiple calls would apply to anything you did event-driven, not just this one, and I've not heard of the start-of-turn event being sent multiple times.

Iam not talking about start turn event , I explained that I am using other events such as ImproventDestroyed, ImprovmentCreated, and other events.

some events are get called multiple times.
 
Iam not talking about start turn event , I explained that I am using other events such as ImproventDestroyed, ImprovmentCreated, and other events.

some events are get called multiple times.
And that isn't a problem when using the functions that change happiness from buildings?

So, to be clear, it's been suggested that you get the same behaviour back, with an unknown degree of slowdown (other mods have found it acceptable), by replacing your calls to the old functions with calls to store information (with SaveUtils, say) in ScriptData, and then hook into the start turn function to make use of this data to set happiness every turn. This seems like a reasonable chance at workaround.
 
And that isn't a problem when using the functions that change happiness from buildings?

No ChangeHappinessFromBuilding changes Happiness by a fixed amount and Do not reset every turn, so you do not need to update Happiness on every turn, you just pass the function one time and it is done.

So, to be clear, it's been suggested that you get the same behaviour back, with an unknown degree of slowdown (other mods have found it acceptable), by replacing your calls to the old functions with calls to store information (with SaveUtils, say) in ScriptData, and then hook into the start turn function to make use of this data to set happiness every turn. This seems like a reasonable chance at workaround.

I will repeat myself I did exactly as you suggested before your suggestion and before posting this thread, and I got unstable results. I dont know exactly what goes wrong between Events updates and I am searching for another method.
 
No ChangeHappinessFromBuilding changes Happiness by a fixed amount and Do not reset every turn, so you do not need to update Happiness on every turn, you just pass the function one time and it is done.



I will repeat myself I did exactly as you suggested before your suggestion and before posting this thread, and I got unstable results. I dont know exactly what goes wrong between Events updates and I am searching for another method.

Have you bothered telling the developers about ChangeHappinessFromBuilding and the events updates not working properly?
 
Devs don't read the forum necessarily; if you want to be sure a dev responsible for modding sees it, PM Greg to ask him to prod Sseckman at it or something. There's an awful lot of posts that Greg has to go through, he won't necessarily be able to put together who should be notified.
 
Devs don't read the forum necessarily; if you want to be sure a dev responsible for modding sees it, PM Greg to ask him to prod Sseckman at it or something. There's an awful lot of posts that Greg has to go through, he won't necessarily be able to put together who should be notified.

How to PM him by the way, I checked in the 2K forums and didnt know where to do that. Do I have to click on "Report Post" button?
 
How to PM him by the way, I checked in the 2K forums and didnt know where to do that. Do I have to click on "Report Post" button?
Find a post by him. Mouse-over his name at the top of the post. PM will be an option in the box that pops up.
 
Back
Top Bottom