Logo Platform
logo amplifiers simplified

Descriptive Effect Text for custom traits how?

Reply
Copied to clipboard!
9 years ago
Apr 27, 2016, 2:38:39 AM
im nearing the last stage of my mods design, the last step is to tweak the effects to display a descriptive text, like affinities do. Or hell, like all traits technically do (im talking about the part that shows up in the "Effect" section ingame. having searched through the base game files i cannot seem to find a solution. can anyone assist? soon as this is done im launching it up on the workshop. the hilarious part is i even tried searching for the trait descriptions in the Localization files and got nada.
0Send private message
9 years ago
Apr 28, 2016, 12:22:17 PM
I think I understand the idea.

Let's take the Wild Walkers as an example.

Their affinity, the sharing, has a specific effect that use localization file and is not created by code.

In order to do so we are making the following:



In GuiElements[FactionTraits].xml

<ExtendedGuiElement Name="FactionTraitMadFairiesTheSharing">

%FactionTraitMadFairiesTheSharingTitle

%FactionTraitMadFairiesTheSharingDescription



%FactionTraitMadFairiesTheSharingTooltipEffect



ExtendedGuiElement>



Most important thing is the override of the TooltipElement.

This is what allow you to write anything you want to better explain the effect.



I hope it helps.
0Send private message
9 years ago
Apr 29, 2016, 12:07:55 AM
okay, so i set all of this up, its still not working. i added the "extended" to "guielement", still nada. what am i doing wrong? heres relevant section





%TTMinor

%TTMinorDescription



%TTTooltipEnhanced







the things are still WORKING ingame, but theres still no effect text attached. is this because they don't HAVE an effect to override? (these are tiered traits that grant varying levels of negative points to allow for handicapping and boosting faction setups without having to load multiple different conflicting mods. they have no in-game effect beyond their negative costs.)



also, i can post relevant sections of the other files if you want to see whats going on. simulationdescriptors is basically an empty shell that acts as a placeholder for this.
0Send private message
9 years ago
Apr 29, 2016, 8:40:38 AM
Crap. That's weird :/

In this case a look at all the files that make a reference to TTMinorEnhanced might be interesting.

Or a link (might prefer to PM me) to your WIP mod should allow me to better help you smiley: smile
0Send private message
9 years ago
May 6, 2016, 9:49:52 AM
Ok so, I learned something interesting during the process of fixing your mod :)

In fact, when there is a tooltip override, our system search for a simulationdescriptor to override with the same name that the guielement it refers to.

In your example, the should have a instead of "TTNullEffect"...



I will send you a version of your mod I think is fixed the way you wanted.

I will also try to upload a revision of the Modding tutorial with this important piece of info.



Cheers,
0Send private message
9 years ago
May 16, 2016, 1:04:01 AM
Sorry for getting distracted by many different things (and also not being able to get the forum to send me emails. which is annoying.), but i missed picking up the version you uploaded, by apparently 2 days.



this isnt a big issue except i cant seem to figure out what you mean when you are talking about the fix. "TTNullEffect" isnt referenced in the GUI area, only faction traits.



basically: where is **** supposed to go to make this work?
0Send private message
8 years ago
Oct 23, 2016, 4:40:22 AM

Same issue here.  I have the Tooltip Override tag in, in an extended GUI element, and it still says "No Effect" in the trait selection screen despite being in the localization files.

0Send private message
?

Click here to login

Reply
Comment