Making quotes persist after the Popup is closed

Loupgarou

Professionally Clueless
Joined
Sep 7, 2022
Messages
10
I am trying to make the WMS quotes for Era, Tech and Wonders persist after the splash is closed, but I am not finding where/how the Sounds are called or handled outside of some DLLCALL that seems to vanish into the void from the CvDLLTechInfo.h/.cpp files. Also not finding the tech researched splash but I'm not sure if that's just me being really dumb. Anyone have any experience with playing sounds in this game?
 
Ok, some help from the outside lead me to the obvious. the Tech splash for getting a tech was in the TechAward.lua, which is leaving me feeling a bit dumb for not finding that. That doesn't call any kind of sound or audio trigger. This due to it packaging the tech info into pTechInfo using GameInfo.Technologies[popupInfo.Data3], Data3 is the tech # so Pottery is 1, Masonry 10 and such. printing the info for pottery gets me this:
Spoiler Tech Data :

  • TechAwardPopup: UnitFortificationModifier 0
  • TechAwardPopup: FirstFreeTechs 0
  • TechAwardPopup: WorkerSpeedModifier 0
  • TechAwardPopup: ResearchAgreementTradingAllowed false
  • TechAwardPopup: MapTrading false
  • TechAwardPopup: GoldTrading false
  • TechAwardPopup: AllowsBarbarianBoats false
  • TechAwardPopup: EmbarkedAllWaterPassage false
  • TechAwardPopup: ExtraWaterSeeFrom false
  • TechAwardPopup: Help TXT_KEY_TECH_POTTERY_HELP
  • TechAwardPopup: AdvancedStartCost -1
  • TechAwardPopup: MapCentering false
  • TechAwardPopup: ExtraVotesPerDiplomat 0
  • TechAwardPopup: Type TECH_POTTERY
  • TechAwardPopup: AllowsDefensiveEmbarking false
  • TechAwardPopup: InfluenceSpreadModifier 0
  • TechAwardPopup: AITradeModifier 0
  • TechAwardPopup: AdditionalDelegates 0
  • TechAwardPopup: AllowsEmbarkingCivilian false
  • TechAwardPopup: AllowEmbassyTradingAllowed false
  • TechAwardPopup: Civilopedia TXT_KEY_TECH_POTTERY_DESC
  • TechAwardPopup: AudioIntroHeader AS2D_HEADING_TECH_POTTERY
  • TechAwardPopup: TradeAgreementTradingAllowed false
  • TechAwardPopup: InternationalTradeRoutesChange 0
  • TechAwardPopup: Disable false
  • TechAwardPopup: EmbarkedSightChange 0
  • TechAwardPopup: IconAtlas TECH_ATLAS_1
  • TechAwardPopup: Description TXT_KEY_TECH_POTTERY_TITLE
  • TechAwardPopup: Cost 35
  • TechAwardPopup: GoodyTech true
  • TechAwardPopup: ScenarioTechButton -1
  • TechAwardPopup: PortraitIndex 4
  • TechAwardPopup: Quote TXT_KEY_TECH_POTTERY_QUOTE
  • TechAwardPopup: Trade true
  • TechAwardPopup: GridX 1
  • TechAwardPopup: TriggersArchaeologicalSites false
  • TechAwardPopup: UnitBaseHealModifier 0
  • TechAwardPopup: ID 1
  • TechAwardPopup: Era ERA_ANCIENT
  • TechAwardPopup: AIWeight 0
  • TechAwardPopup: EndsGame false
  • TechAwardPopup: AllowsWorldCongress false
  • TechAwardPopup: WaterWork false
  • TechAwardPopup: BridgeBuilding false
  • TechAwardPopup: TechTrading false
  • TechAwardPopup: AudioIntro AS2D_TECH_POTTERY
  • TechAwardPopup: DefensivePactTradingAllowed false
  • TechAwardPopup: OpenBordersTradingAllowed false
  • TechAwardPopup: PolicyDiscountPercent 0
  • TechAwardPopup: FeatureProductionModifier 0
  • TechAwardPopup: DisableTechSteal true
  • TechAwardPopup: PermanentAllianceTradingAllowed false
  • TechAwardPopup: EmbarkedMoveChange 0
  • TechAwardPopup: MapVisible false
  • TechAwardPopup: Repeat false
  • TechAwardPopup: GridY 1
  • TechAwardPopup: AllowsEmbarking false
  • TechAwardPopup: OnContinueButtonClicked

Now to figure out how to make the audio linger, and actually release it!
And how this actually would play the audio..

also no idea why the data appeared in that order. thats not the order in the xml 🤷‍♂️
 
Last edited:
Back
Top Bottom