Okay.. i'm right back with the CHMZ mod while preparing to insert the NFP assets from all six finalized packages.
Another tricky component i've been stuck with (for months!) is the GP custom Small-Moments which needs to specify their types once recruited straight into each of their unique DDS.. refer to this sample for details...
At first.. i thought the default runtime hooks would respond to direct ID tagging (either via Types or Names) of the Parameters as pulled via their regular generic LUA -- but nothing was tied with whatever defined "data" i had presumed was going to parse them through on every Moments activation(s).
Consult the zip (CHMZ_Wondering) to check how i managed to integrate the Wonders.. with their own big Moments rather than the default small(s) of "Liberty Statue snap symbol". I always thought such process would also work for GP stuff.. but it seems the "GAME_ERA" parser dual step either blocks any other tagging system i try to implement, or outright cuts off any replacement attempts based on transiting DATA.
Any ideas how to proceed.. correctly?
Another tricky component i've been stuck with (for months!) is the GP custom Small-Moments which needs to specify their types once recruited straight into each of their unique DDS.. refer to this sample for details...
At first.. i thought the default runtime hooks would respond to direct ID tagging (either via Types or Names) of the Parameters as pulled via their regular generic LUA -- but nothing was tied with whatever defined "data" i had presumed was going to parse them through on every Moments activation(s).
Code:
--CHMZ(GPCT)_Bonus Init Phase
--GPCT section...
INSERT INTO MomentIllustrationTypes ( 'MOMENTILLUSTRATIONTYPE' )
VALUES ( 'MOMENT_ILLUSTRATION_GPCT' );
INSERT INTO MomentIllustrations ( MomentIllustrationType, MomentDataType, GameDataType, Texture )
--Great Persons by Class Types(9)
VALUES
( 'MOMENT_ILLUSTRATION_GPCT', 'MOMENT_DATA_GREAT_PERSON_INDIVIDUAL', 'GREAT_PERSON_CLASS_ADMIRAL', 'CHMZ_MomentSmall_GPCT_Admiral.dds' ),
( 'MOMENT_ILLUSTRATION_GPCT', 'MOMENT_DATA_GREAT_PERSON_INDIVIDUAL', 'GREAT_PERSON_CLASS_ARTIST', 'CHMZ_MomentSmall_GPCT_Artist.dds' ),
( 'MOMENT_ILLUSTRATION_GPCT', 'MOMENT_DATA_GREAT_PERSON_INDIVIDUAL', 'GREAT_PERSON_CLASS_ENGINEER', 'CHMZ_MomentSmall_GPCT_Engineer.dds' ),
( 'MOMENT_ILLUSTRATION_GPCT', 'MOMENT_DATA_GREAT_PERSON_INDIVIDUAL', 'GREAT_PERSON_CLASS_GENERAL', 'CHMZ_MomentSmall_GPCT_General.dds' ),
( 'MOMENT_ILLUSTRATION_GPCT', 'MOMENT_DATA_GREAT_PERSON_INDIVIDUAL', 'GREAT_PERSON_CLASS_MERCHANT', 'CHMZ_MomentSmall_GPCT_Merchant.dds' ),
( 'MOMENT_ILLUSTRATION_GPCT', 'MOMENT_DATA_GREAT_PERSON_INDIVIDUAL', 'GREAT_PERSON_CLASS_MUSICIAN', 'CHMZ_MomentSmall_GPCT_Musician.dds' ),
( 'MOMENT_ILLUSTRATION_GPCT', 'MOMENT_DATA_GREAT_PERSON_INDIVIDUAL', 'GREAT_PERSON_CLASS_PROPHET', 'CHMZ_MomentSmall_GPCT_Prophet.dds' ),
( 'MOMENT_ILLUSTRATION_GPCT', 'MOMENT_DATA_GREAT_PERSON_INDIVIDUAL', 'GREAT_PERSON_CLASS_SCIENTIST', 'CHMZ_MomentSmall_GPCT_Scientist.dds' ),
( 'MOMENT_ILLUSTRATION_GPCT', 'MOMENT_DATA_GREAT_PERSON_INDIVIDUAL', 'GREAT_PERSON_CLASS_WRITER', 'CHMZ_MomentSmall_GPCT_Writer.dds' );
--"Replacer Hooks of the default Small/Moments cycle" for each Great Persons (GPCT) as declared above!
--GPCT/GAME-ERA
UPDATE [Moments]
SET [InterestLevel] = '1', [BackgroundTexture] = NULL, [MomentIllustrationType] = 'MOMENT_ILLUSTRATION_GPCT'
WHERE ([MomentType] = 'MOMENT_GREAT_PERSON_CREATED_GAME_ERA');
--GPCT/PAST-ERA
UPDATE [Moments]
SET [InterestLevel] = '1', [BackgroundTexture] = NULL, [MomentIllustrationType] = 'MOMENT_ILLUSTRATION_GPCT'
WHERE ([MomentType] = 'MOMENT_GREAT_PERSON_CREATED_PAST_ERA');
Consult the zip (CHMZ_Wondering) to check how i managed to integrate the Wonders.. with their own big Moments rather than the default small(s) of "Liberty Statue snap symbol". I always thought such process would also work for GP stuff.. but it seems the "GAME_ERA" parser dual step either blocks any other tagging system i try to implement, or outright cuts off any replacement attempts based on transiting DATA.
Any ideas how to proceed.. correctly?
Attachments
Last edited: