+-+-

+-User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+-Stats ezBlock

Members
Total Members: 177
Latest: Tdotku1911
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 754
Total Topics: 366
Most Online Today: 7
Most Online Ever: 55
(May 13, 2020, 03:23:39 AM)
Users Online
Members: 0
Guests: 7
Total: 7

As we look at Making Card Headers correct colors

Started by Sean Abel, July 27, 2015, 04:08:06 PM

Previous topic - Next topic

Sean Abel

Once we find out what makes a header color for the power cards it would be awesome if we can find a way to make items Yellow/Gold color to make them as different from class/race powers.
Wherever you go that's where you are!

Adamos

That is an excellent idea!

May the Virtues guide thee!

Sean Abel

still not finding it BUT i ran across this the other day see below POWER call to the howling storm.
Wherever you go that's where you are!

dracusmage

sheet_powercards.dat has this at line 272:

      ~if our 'color output' is disabled, do nothing special.
      if (hero.tagis[source.PowCardBW] <> 0) then
        ~do nothing

      ~otherwise, if this is an encounter or at-will power, change the style
      ~appropriately.
      elseif (tagis[PowerUse.Encounter] <> 0) then
        perform portal[letter].setstyle[outTitleEn]
        perform portal[name].setstyle[outTitleEn]
        perform portal[keywords].setstyle[outKeyEn]
      elseif (tagis[PowerUse.AtWill] <> 0) then
        perform portal[letter].setstyle[outTitleAt]
        perform portal[name].setstyle[outTitleAt]
        perform portal[keywords].setstyle[outKeyAt]
        endif


The color for in the DDI for Items is #DA9722 the sub headings for them is #EFD09F and finally the background for them is #F8E9D5. If you want to know how I know that without a subscription to the DDI, you should send me a private message.

To make an option for items to have the item color for their powers, you would add this to the styles_output.aug around line 258 (near the at will and encounter versions) to give an option for a "outTitleIt" and "outKeyIt":
  <!-- title & keyword text for item granted powers - gold background -->
  <style
    id="outTitleIt">
    <style_output
      textcolor="f0f0f0"
      backcolor="DA9722"
      font="ofnttitle"
      alignment="center">
      </style_output>
    </style>
  <style
    id="outKeyIt">
    <style_output
      textcolor="f0f0f0"
      backcolor="DA9722"
      font="ofntkeywrd"
      alignment="center">
      </style_output>
    </style>


After that is put in the styles_output.aug file, you can change the color script:

      ~if our 'color output' is disabled, do nothing special.
      if (hero.tagis[source.PowCardBW] <> 0) then
        ~if it's a daily check to see if it's magic.
      elseif (tagis[PowerUse.Daily] <> 0) then
        if (hero.tagis[PowerClass.MagicItem] <> 0) then
            perform portal[name].setstyle[outTitleIt]
          endif
      ~if its daily but not magic, leave it like it is (I guess daily is default?)
      ~otherwise, if this is an encounter or at-will power, change the style
      ~appropriately.
      elseif (tagis[PowerUse.Encounter] <> 0) then
        ~if the power is from a magic item, change the title to be gold
        if (hero.tagis[PowerClass.MagicItem] <> 0) then
            perform portal[letter].setstyle[outTitleEn]
            perform portal[name].setstyle[outTitleIt]
            perform portal[keywords].setstyle[outKeyAt]
          ~if it's not from a magic item, it's normal, so give the whole thing the power color
          else
            perform portal[letter].setstyle[outTitleEn]
            perform portal[name].setstyle[outTitleEn]
            perform portal[keywords].setstyle[outKeyEn]
          endif
      elseif (tagis[PowerUse.AtWill] <> 0) then
        if (hero.tagis[PowerClass.MagicItem] <> 0) then
            perform portal[letter].setstyle[outTitleAt]
            perform portal[name].setstyle[outTitleIt]
            perform portal[keywords].setstyle[outKeyAt]
          else
            perform portal[letter].setstyle[outTitleAt]
            perform portal[name].setstyle[outTitleAt]
            perform portal[keywords].setstyle[outKeyAt]
          endif
        endif


That should theoretically make the power type letter in the corner and the keywords show up as the color of the power, but the title as Gold. If we want the keywords to be gold, change the lines with outKeyAt or outKeyEn to outKeyIt (but only the ones that test for the magic item). I am assuming that daily powers are the default color scheme (grey) which is why if everything is set to no color it skips the color phase, and also why there isn't a daily section. So I added a daily section and only modified the Title to make it gold.

I don't remember if CDATA scripts like this one choke when they have more than one if/endif nested. I don't think so, but the only way to know for certain will be to test it. Because these are all background files the changes can't be made with a .user file, or I would include one for some other sucker to test.

If I get a chance I'll test it tonight, but this computer doesn't have HL on it. I mean, why would I have Hero Lab on my work computer? That would be ridiculous. Almost as ridiculous as having a full copy of the code files on the work computer.

dracusmage

The real question here is not how to change the colors of cards, but WTF is going on with that racial power that makes it do that.

The power doesn't have any special anything ("PowerClass" is "Race" but that's it). The powercards file where it formats the cards doesn't have a special rule for racial powers - there is no check for Race in there (but if this works for MagicItem, it will be trivial to make it work for Race as well if we want to format Racial powers differently). There isn't a style output for race that seems to apply, and after that I'm out of places to look for it. Do other Racial encounter powers do this? Dailies? It might do it with At-Wills, but we wouldn't be able to tell because it would just be green.

dracusmage

Wait, all of the encounter powers are failing to have the right colored top bar? How long has this been happening? Or is it just me (I know it's at least a little bit not me, because SAbel posted a picture of what's happening)?

I've actually spent the last hour rolling back my data files trying to discover where it all went wrong - I have a few character pdfs that were created in December 2014 that are correct (red bars for encounter powers). I've gotten to the point that using the 2014 profiles with 2014 data files still give me the messed up bar. The files that old wouldn't load without fixing the definitions file, because there was an issue that the newer versions of HL don't allow anymore, but after that everything loads. But when I generate the exact same character sheets from the exact same data and profile files it gives me the screwed up bar for encounter powers.

At this point, it's one of two things causing the problem. Windows 10 or a newer version of Hero Lab - I can possibly get a VM spinning to to test the Windows version idea, but I don't have backups of my download folders, so I can't roll that back to get a past version, and the website only has the newest flavor. I'm inclined to believe they broke something in the program - the fact that the 2014 files wouldn't even run without modification proves they at least did /something/ to the program, even if that change isn't the one that broke the encounter power cards.

The script also doesn't work. It doesn't seem to do anything at all. I didn't find a magic item with a daily power that was an actual power rather than just fluffy description of the power that should be, so I don't know if that would work, but the encounter one is definitely not working - which is no shock because the normal version of the encounter power is also not working.


dracusmage

The code actually works fine - with a change. I botched part of the code, so it wasn't detecting the magic item part of the power, because it was searching the character for the tag, not the power. Oops.

      ~if our 'color output' is disabled, do nothing special.
      if (hero.tagis[source.PowCardBW] <> 0) then
        ~if it's a daily check to see if it's magic.
      elseif (tagis[PowerUse.Daily] <> 0) then
        if (tagis[PowerClass.MagicItem] <> 0) then
            perform portal[name].setstyle[outTitleIt]
          endif
      ~if its daily but not magic, leave it like it is (I guess daily is default?)
      ~otherwise, if this is an encounter or at-will power, change the style
      ~appropriately.
      elseif (tagis[PowerUse.Encounter] <> 0) then
        ~if the power is from a magic item, change the title to be gold
        if (tagis[PowerClass.MagicItem] <> 0) then
            perform portal[letter].setstyle[outTitleEn]
            perform portal[name].setstyle[outTitleIt]
            perform portal[keywords].setstyle[outKeyAt]
          ~if it's not from a magic item, it's normal, so give the whole thing the power color
          else
            perform portal[letter].setstyle[outTitleEn]
            perform portal[name].setstyle[outTitleEn]
            perform portal[keywords].setstyle[outKeyEn]
          endif
      elseif (tagis[PowerUse.AtWill] <> 0) then
        if (tagis[PowerClass.MagicItem] <> 0) then
            perform portal[letter].setstyle[outTitleAt]
            perform portal[name].setstyle[outTitleIt]
            perform portal[keywords].setstyle[outKeyAt]
          else
            perform portal[letter].setstyle[outTitleAt]
            perform portal[name].setstyle[outTitleAt]
            perform portal[keywords].setstyle[outKeyAt]
          endif
        endif


This will work. Except it doesn't because the [name] is always changed to At-Will Green. I know the code works otherwise because if you set the [letter] to [outTitleIt] it makes that gold. Similarly you can change the letter of the encounter powers to Gold by changing the appropriate section.

Additionally if you change the At-Will (non-magic item) section to have gold or red as the style, it changes all of the bars that are green (At-Will and Encounter) into whatever style picked. I assume the same is the case for the keyword bar, but I didn't bother trying.

Cryptoknight

It was a change to Herolab.  I remember it kicking in and then having no clue what happened.

dracusmage

It is such a strange issue that I can't get a handle on working around it. The weirdest part is how it changes what colors it uses depending on if the power cards are landscape or portrait. I've submitted a support request with Lone Wolf, but I'm not sure how far we will get. Does anyone know if we tried to get the developer involved when it first went wrong?

+-Recent Topics

4e wont open due to duplicate files error by Tdotku1911
September 28, 2023, 09:00:17 PM

Community Data files update 2023-02-16 by Tdotku1911
September 28, 2023, 08:52:54 PM

Errors from last update by jrmcnz
July 17, 2023, 03:30:56 PM

Community Data files update 2023-04-28 by Fox Lee
April 27, 2023, 09:40:45 PM

3rd Party - Zeitgeist character options by Fox Lee
March 25, 2023, 03:21:38 AM

Community Data files update 2023-03-25 by Fox Lee
March 25, 2023, 02:46:40 AM

Our Unofficial Update for Hero Lab 4e by jklagenberg
February 11, 2022, 09:00:52 AM

Kensei Focus - Paragon Path Feature by Charlie
October 21, 2020, 10:13:36 PM

Warlord Scraper Error Fixes by Fox Lee
April 03, 2020, 08:05:51 PM

Herolab 4e Themes Modification by Cryptoknight
July 27, 2019, 02:47:44 AM

Themes Collection by Cryptoknight
July 27, 2019, 02:47:44 AM

Feats Bug Fixes Package by Cryptoknight
July 27, 2019, 02:47:44 AM

Darksun Themes Package by Cryptoknight
July 27, 2019, 02:47:44 AM

Defensive Feats by Cryptoknight
July 27, 2019, 02:47:44 AM

Theme Framework for HeroLab 5 / 4e 4.0 - .HL version by Daphne
July 27, 2019, 02:47:44 AM

2014 09 20 Release by Cryptoknight
July 27, 2019, 02:47:44 AM

2014-09-29 Download by Cryptoknight
July 27, 2019, 02:47:43 AM

2014 11 13 Download by Cryptoknight
July 27, 2019, 02:47:43 AM

Hybrid Battlemind not working as it should by Sean Abel
July 27, 2019, 02:45:49 AM

Please read this and weigh in - Issue/Source/Document Version Control System by nixxrite
March 29, 2019, 07:14:36 AM

Items, Feats and Magic Armour calculations not working by Charlie
March 28, 2019, 01:13:14 PM

Ring Slots by Krigler
March 04, 2019, 06:38:29 AM

Invoker Damage stats by Charlie
September 08, 2018, 07:55:52 PM

Max hit points by Charlie
September 05, 2018, 10:05:12 PM

I have run into a problem with Power class types by Sean Abel
August 18, 2018, 11:43:05 PM

Powered by EzPortal