(7a) VP Events Overhaul (Expansion Pack system)

The following two only if I can figure out why they are broken...

-- Corrected lua error causing religious events not to fire - PENDING.
-- Hide unavailable Religion and NW events behind new disabled text - WHY ISN'T THIS WORKING?
Can you post the code and perhaps the community can help you debug? I'm no expert but I'd certainly take a look.
 
Can you post the code and perhaps the community can help you debug? I'm no expert but I'd certainly take a look.
Code for these two issues are here and here.

That thread is for technical know-how discussion, while I'm trying to keep this one dedicated to the actual mod itself with its features. There is a third one to discuss balancing methodology for the new events system with discussions about each various piece. Links for these other threads are also on the first post of this one if you are ever looking for them again.
 
Version 2.0 can be found here.

This version overwrites any existing events prior to this mod loading so there is no longer any need to change anything in the base VP files. Just install and enjoy. I've also incorporated the Community Events that I haven't touched yet into the mod, so the original Community Events mod is blocked.

Corporate Events EP-8 is updated and live. Religious events are not behaving. If I can get a solution, I'll fix it and post a quick update.

Spoiler Changelog :

Code:
v2.0
-- Added EP-8 Corporation Events
-- Set Event and CityEvent databases to clear when mod fires (to remove base VP events)
-- Added Hokath Civilization Events from Community Events mod (temporary until adjustment) and blocked Community Events mod


-- Added audio and art files from Community Events mod
-- Set Religious Relics and Notorious Pirate city events to only fire for one city at a time. Was seeing it way too often.
-- Corrected text errors on Guild Sponsorship event (under City Specialization)
-- Took expiration timer off of Harbor Trade city event.
-- Reduced chance for Voices city event. Was seeing it way too often.
-- Reduced chance for AA Mineglint city event. Was seeing it way too often.
-- Increased chance for farm floods. Rarely saw it, and seemed like it should be a more common natural disaster.

-- BROKEN FOR NOW - LOOKING FOR A FIX --
-- LUA error causing religious events not to fire - My belief is that the dummy policy is not being created
-- Hide unavailable Religion and NW events behind new disabled text
 
Last edited:
EP-8 ....Corporation Events

Spoiler List of Events: :


Screenshot 2024-09-07 134118.jpg



Corporate events are designed two give players two ways to experience these events: one choice where that choice has the same effect on every City or another choice that creates City-level events so each City can be unique. These two ways of experiencing corporate events are mutually exclusive. Players also have the option of delaying this event selection one time after which they must select an option or do nothing. By choosing the second option, players can create more powerful Cities, but they are have increased risks.

The design intention behind the player level event was to somewhat balance out the min / max-ing that corporations can cause by slightly reducing their specialty yields and converting it to a more generic gold yield. City Event 1 was planned to highlight the resources that a corporation may be associated with and add a generic gold yield (per City as each City Event fires). Once you get to City Events 2 and 3, you will have a chance to specialize each City with gold as the cost sink. The idea is that can these latter two events can remove some of the gold yield bloat but also allow a real benefit to the player.
 
Hate to be a drag but these are all related to the new v2 release:
[90214.531] near ";": syntax error
[90214.546] no such table: Building_YieldFromCombatExperience
[90214.562] near ";": syntax error
[90214.578] near ";": syntax error
[90214.578] near ";": syntax error
[90214.593] near ";": syntax error
[90214.609] near ";": syntax error
[90214.625] near ";": syntax error
[90214.625] near ";": syntax error
[90216.328] Validating Foreign Key Constraints...
[90216.734] Invalid Reference on Buildings.Description - "TXT_KEY_BUILDING_COUNCIL_ELDERS_BONUS2_DUMMY" does not exist in Language_en_US
[90219.546] Invalid Reference on UnitPromotions.IconAtlas - "promoMUC_atlas_00" does not exist in IconTextureAtlases
[90221.484] Invalid Reference on Events.Help - "TXT_KEY_PLAYER_EVENT_COUNCIL_ELDERS_HELP" does not exist in Language_en_US
[90221.562] Invalid Reference on Events.Description - "TXT_KEY_PLAYER_EVENT_COUNCIL_ELDERS_DESCRIPTION" does not exist in Language_en_US
[90221.562] Invalid Reference on EventChoices.RequiredAnywhereBuildingClass - "BUILDINGCLASS_TRAINSTATION" does not exist in BuildingClasses
[90221.750] Invalid Reference on Event_ParentEvents.EventChoiceType - "PLAYER_EVENT_COUNCIL_ELDERS_CHOICE_1" does not exist in EventChoices
[90221.750] Invalid Reference on Event_ParentEvents.EventChoiceType - "PLAYER_EVENT_COUNCIL_ELDERS_CHOICE_2" does not exist in EventChoices
[90221.750] Invalid Reference on Event_ParentEvents.EventChoiceType - "PLAYER_EVENT_COUNCIL_ELDERS_CHOICE_3" does not exist in EventChoices
[90221.750] Invalid Reference on Event_ParentEvents.EventChoiceType - "PLAYER_EVENT_COUNCIL_ELDERS_CHOICE_4" does not exist in EventChoices
[90221.750] Invalid Reference on Event_ParentEvents.EventChoiceType - "PLAYER_EVENT_COUNCIL_ELDERS_CHOICE_5" does not exist in EventChoices
[90221.750] Invalid Reference on Event_ParentEvents.EventChoiceType - "PLAYER_EVENT_COUNCIL_ELDERS_CHOICE_6" does not exist in EventChoices
[90221.750] Invalid Reference on EventChoice_BuildingClassYieldChange.BuildingClassType - "BUILDINGCLASS_TRAINSTATION" does not exist in BuildingClasses
[90221.750] Invalid Reference on EventChoice_BuildingClassYieldChange.BuildingClassType - "BUILDINGCLASS_TRAINSTATION" does not exist in BuildingClasses
[90222.203] Invalid Reference on CityEventChoice_YieldOnSpyIdentified.CityEventChoiceType - "ESPIONAGE_EVENT_CHOICE_COUNTERSPY_NETWORK" does not exist in CityEventChoices
[90222.203] Invalid Reference on CityEventChoice_YieldOnSpyIdentified.CityEventChoiceType - "ESPIONAGE_EVENT_CHOICE_COUNTERSPY_NETWORK" does not exist in CityEventChoices
[90222.203] Invalid Reference on CityEventChoice_YieldOnSpyIdentified.CityEventChoiceType - "ESPIONAGE_EVENT_CHOICE_COUNTERSPY_DEFENSE" does not exist in CityEventChoices
[90222.203] Invalid Reference on CityEventChoice_YieldOnSpyIdentified.CityEventChoiceType - "ESPIONAGE_EVENT_CHOICE_COUNTERSPY_DEFENSE" does not exist in CityEventChoices
[90222.203] Invalid Reference on CityEventChoice_YieldOnSpyKilled.CityEventChoiceType - "ESPIONAGE_EVENT_CHOICE_COUNTERSPY_NETWORK" does not exist in CityEventChoices
[90222.203] Invalid Reference on CityEventChoice_YieldOnSpyKilled.CityEventChoiceType - "ESPIONAGE_EVENT_CHOICE_COUNTERSPY_NETWORK" does not exist in CityEventChoices
[90222.203] Invalid Reference on CityEventChoice_YieldOnSpyKilled.CityEventChoiceType - "ESPIONAGE_EVENT_CHOICE_COUNTERSPY_DEFENSE" does not exist in CityEventChoices
[90222.203] Invalid Reference on CityEventChoice_YieldOnSpyKilled.CityEventChoiceType - "ESPIONAGE_EVENT_CHOICE_COUNTERSPY_DEFENSE" does not exist in CityEventChoices
 
OK, I was able to isolate a lot of the causes and it seems there's two general syntaxes in the regligion event files, e.g. TheocraticRule.sql (examples given based on that file):

INSERT INTO BuildingClasses (Type,DefaultBuilding) VALUES
('BUILDINGCLASS_THEOCRATIC_RULE_NEEDS_DUMMY','BUILDING_THEOCRATIC_RULE_NEEDS_DUMMY';

This needs a closing ")"

and

"TXT_KEY_THEOCRATIC_RULE_NEEDS_CHOICE_1_DESCRIPTION" figures twice. Guess the second one should be "TXT_KEY_THEOCRATIC_RULE_NEEDS_CHOICE_1_HELP"

I haven't looked at the ones regading promoMUC_atlas_00, BUILDINGCLASS_TRAINSTATION, ESPIONAGE_EVENT_CHOICE_COUNTERSPY_NETWORK and ESPIONAGE_EVENT_CHOICE_COUNTERSPY_DEFENSE yet.

\Skodkim
 
Hate to be a drag but these are all related to the new v2 release:

[90216.328] Validating Foreign Key Constraints...
[90216.734] Invalid Reference on Buildings.Description - "TXT_KEY_BUILDING_COUNCIL_ELDERS_BONUS2_DUMMY" does not exist in Language_en_US
[90219.546] Invalid Reference on UnitPromotions.IconAtlas - "promoMUC_atlas_00" does not exist in IconTextureAtlases
[90221.484] Invalid Reference on Events.Help - "TXT_KEY_PLAYER_EVENT_COUNCIL_ELDERS_HELP" does not exist in Language_en_US
[90221.562] Invalid Reference on Events.Description - "TXT_KEY_PLAYER_EVENT_COUNCIL_ELDERS_DESCRIPTION" does not exist in Language_en_US
[90221.562] Invalid Reference on EventChoices.RequiredAnywhereBuildingClass - "BUILDINGCLASS_TRAINSTATION" does not exist in BuildingClasses
[90221.750] Invalid Reference on Event_ParentEvents.EventChoiceType - "PLAYER_EVENT_COUNCIL_ELDERS_CHOICE_1" does not exist in EventChoices
[90221.750] Invalid Reference on Event_ParentEvents.EventChoiceType - "PLAYER_EVENT_COUNCIL_ELDERS_CHOICE_2" does not exist in EventChoices
[90221.750] Invalid Reference on Event_ParentEvents.EventChoiceType - "PLAYER_EVENT_COUNCIL_ELDERS_CHOICE_3" does not exist in EventChoices
[90221.750] Invalid Reference on Event_ParentEvents.EventChoiceType - "PLAYER_EVENT_COUNCIL_ELDERS_CHOICE_4" does not exist in EventChoices
[90221.750] Invalid Reference on Event_ParentEvents.EventChoiceType - "PLAYER_EVENT_COUNCIL_ELDERS_CHOICE_5" does not exist in EventChoices
[90221.750] Invalid Reference on Event_ParentEvents.EventChoiceType - "PLAYER_EVENT_COUNCIL_ELDERS_CHOICE_6" does not exist in EventChoices
Got these errors cleared up. For some reason, my logs were showing up as clean.
[90221.750] Invalid Reference on EventChoice_BuildingClassYieldChange.BuildingClassType - "BUILDINGCLASS_TRAINSTATION" does not exist in BuildingClasses
[90221.750] Invalid Reference on EventChoice_BuildingClassYieldChange.BuildingClassType - "BUILDINGCLASS_TRAINSTATION" does not exist in BuildingClasses
[90222.203] Invalid Reference on CityEventChoice_YieldOnSpyIdentified.CityEventChoiceType - "ESPIONAGE_EVENT_CHOICE_COUNTERSPY_NETWORK" does not exist in CityEventChoices
[90222.203] Invalid Reference on CityEventChoice_YieldOnSpyIdentified.CityEventChoiceType - "ESPIONAGE_EVENT_CHOICE_COUNTERSPY_NETWORK" does not exist in CityEventChoices
[90222.203] Invalid Reference on CityEventChoice_YieldOnSpyIdentified.CityEventChoiceType - "ESPIONAGE_EVENT_CHOICE_COUNTERSPY_DEFENSE" does not exist in CityEventChoices
[90222.203] Invalid Reference on CityEventChoice_YieldOnSpyIdentified.CityEventChoiceType - "ESPIONAGE_EVENT_CHOICE_COUNTERSPY_DEFENSE" does not exist in CityEventChoices
[90222.203] Invalid Reference on CityEventChoice_YieldOnSpyKilled.CityEventChoiceType - "ESPIONAGE_EVENT_CHOICE_COUNTERSPY_NETWORK" does not exist in CityEventChoices
[90222.203] Invalid Reference on CityEventChoice_YieldOnSpyKilled.CityEventChoiceType - "ESPIONAGE_EVENT_CHOICE_COUNTERSPY_NETWORK" does not exist in CityEventChoices
[90222.203] Invalid Reference on CityEventChoice_YieldOnSpyKilled.CityEventChoiceType - "ESPIONAGE_EVENT_CHOICE_COUNTERSPY_DEFENSE" does not exist in CityEventChoices
[90222.203] Invalid Reference on CityEventChoice_YieldOnSpyKilled.CityEventChoiceType - "ESPIONAGE_EVENT_CHOICE_COUNTERSPY_DEFENSE" does not exist in CityEventChoices
I believe these are related to another mod. They aren't from this one.



Cleaned up VP Events Overall (Expansion Pack System) 2.0 has been updated to 2.1.
 
BUILDINGCLASS_TRAINSTATION is used in Germany.xml and Siam.xml. It used to be part of VP but isn't anymore.

The log messages concerning ESPIONAGE_EVENT_CHOICE_COUNTERSPY_NETWORK and ESPIONAGE_EVENT_CHOICE_COUNTERSPY_DEFENSE is kind of weird. I don't see any references to the two in the events mod (only in VP), but the log messages only occue when I use the event mod together with VP..

New error.log with only full VP package and Events 2.1 active:

[111192.765] Invalid Reference on Buildings.Description - "TXT_KEY_BUILDING_COUNCIL_ELDERS_BONUS2_DUMMY" does not exist in Language_en_US
[111195.250] Invalid Reference on UnitPromotions.IconAtlas - "promoMUC_atlas_00" does not exist in IconTextureAtlases
[111197.015] Invalid Reference on Events.Help - "TXT_KEY_PLAYER_EVENT_COUNCIL_ELDERS_HELP" does not exist in Language_en_US
[111197.062] Invalid Reference on Events.Description - "TXT_KEY_PLAYER_EVENT_COUNCIL_ELDERS_DESCRIPTION" does not exist in Language_en_US
[111197.062] Invalid Reference on EventChoices.RequiredAnywhereBuildingClass - "BUILDINGCLASS_TRAINSTATION" does not exist in BuildingClasses
[111197.234] Invalid Reference on Event_ParentEvents.EventChoiceType - "PLAYER_EVENT_COUNCIL_ELDERS_CHOICE_1" does not exist in EventChoices
[111197.234] Invalid Reference on Event_ParentEvents.EventChoiceType - "PLAYER_EVENT_COUNCIL_ELDERS_CHOICE_2" does not exist in EventChoices
[111197.234] Invalid Reference on Event_ParentEvents.EventChoiceType - "PLAYER_EVENT_COUNCIL_ELDERS_CHOICE_3" does not exist in EventChoices
[111197.234] Invalid Reference on Event_ParentEvents.EventChoiceType - "PLAYER_EVENT_COUNCIL_ELDERS_CHOICE_4" does not exist in EventChoices
[111197.234] Invalid Reference on Event_ParentEvents.EventChoiceType - "PLAYER_EVENT_COUNCIL_ELDERS_CHOICE_5" does not exist in EventChoices
[111197.234] Invalid Reference on Event_ParentEvents.EventChoiceType - "PLAYER_EVENT_COUNCIL_ELDERS_CHOICE_6" does not exist in EventChoices
[111197.234] Invalid Reference on EventChoice_BuildingClassYieldChange.BuildingClassType - "BUILDINGCLASS_TRAINSTATION" does not exist in BuildingClasses
[111197.234] Invalid Reference on EventChoice_BuildingClassYieldChange.BuildingClassType - "BUILDINGCLASS_TRAINSTATION" does not exist in BuildingClasses
[111197.671] Invalid Reference on CityEventChoice_YieldOnSpyIdentified.CityEventChoiceType - "ESPIONAGE_EVENT_CHOICE_COUNTERSPY_NETWORK" does not exist in CityEventChoices
[111197.671] Invalid Reference on CityEventChoice_YieldOnSpyIdentified.CityEventChoiceType - "ESPIONAGE_EVENT_CHOICE_COUNTERSPY_NETWORK" does not exist in CityEventChoices
[111197.671] Invalid Reference on CityEventChoice_YieldOnSpyIdentified.CityEventChoiceType - "ESPIONAGE_EVENT_CHOICE_COUNTERSPY_DEFENSE" does not exist in CityEventChoices
[111197.671] Invalid Reference on CityEventChoice_YieldOnSpyIdentified.CityEventChoiceType - "ESPIONAGE_EVENT_CHOICE_COUNTERSPY_DEFENSE" does not exist in CityEventChoices
[111197.671] Invalid Reference on CityEventChoice_YieldOnSpyKilled.CityEventChoiceType - "ESPIONAGE_EVENT_CHOICE_COUNTERSPY_NETWORK" does not exist in CityEventChoices
[111197.671] Invalid Reference on CityEventChoice_YieldOnSpyKilled.CityEventChoiceType - "ESPIONAGE_EVENT_CHOICE_COUNTERSPY_NETWORK" does not exist in CityEventChoices
[111197.671] Invalid Reference on CityEventChoice_YieldOnSpyKilled.CityEventChoiceType - "ESPIONAGE_EVENT_CHOICE_COUNTERSPY_DEFENSE" does not exist in CityEventChoices
[111197.671] Invalid Reference on CityEventChoice_YieldOnSpyKilled.CityEventChoiceType - "ESPIONAGE_EVENT_CHOICE_COUNTERSPY_DEFENSE" does not exist in CityEventChoices
 
Ahh, the table Building_YieldFromCombatExperiences now Building_YieldFromCombatExperienceTimes100 and it should be yield '100' not '1'

And you delete everything from CityEventChoices and don't readd ESPIONAGE_EVENT_CHOICE_COUNTERSPY_NETWORK and ESPIONAGE_EVENT_CHOICE_COUNTERSPY_DEFENSE, hence the log messages.
 
Last edited:
What version of VP are you using? I'm using 3.10.14. (I got tired of the constant updates and mod checks, really wish a "final" version would come out where any new changes were mod-mod based.)

Let me think about it and try to come up with the best solution for addressing both my version of VP and the newer version.
 
Last edited:
What version of VP are you using? I'm using 3.10.14. (I got tired of the constant updates and mod checks, really wish a "final" version would come out where any new changes were mod-mod based.)

Let me think about it and try to come up with the best solution for addressing both my version of VP and the newer version.
are you going to make a version when they combine 4 uc into the mod
 
As I said, I stopped trying to keep with a "final" VP long ago and play 3.10.
They're nearing the final 4.x version before the 4UC integration/5.0 major update. On the 4.16 update page from earlier this month Recursive said that there will only be one more 4.x update (except for hotfixes) and that no functionality will be changed. Perhaps this could be a good time to try out what 4.x has to offer if you want a "new" final version!
 
Back
Top Bottom