[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4752: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4754: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4755: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4756: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
ToME: the Tales of Maj'Eyal :: View topic - [v1.1.0+] Pragmatic Heroism
ToME: the Tales of Maj'Eyal
http://forums.te4.org/

[v1.1.0+] Pragmatic Heroism
http://forums.te4.org/viewtopic.php?f=50&t=43361
Page 1 of 3

Author:  Zizzo [ Sun Jan 18, 2015 3:56 am ]
Post subject:  [v1.1.0+] Pragmatic Heroism


Author:  Zizzo [ Tue Jan 26, 2016 12:14 am ]
Post subject:  Re: [v1.1.0+] Pragmatic Heroism

Release v2, just pushed out, adds a nice feature that I had wanted from the start but only just recently got working: when you're below zero life, your life bar now displays your negative life and die-at threshold, as shown below:
negative-life-bar.png
negative-life-bar.png [ 85.82 KiB | Viewed 6546 times ]


The black "life" meter expanding from the right as your life decreases is just an extra flourish. :twisted:

Author:  astralInferno [ Wed Jan 27, 2016 9:57 am ]
Post subject:  Re: [v1.1.0+] Pragmatic Heroism

You deserve some kudos for that black life flourish, that's an amazing touch. xD

Author:  Zizzo [ Wed Feb 10, 2016 1:51 am ]
Post subject:  Re: [v1.1.0+] Pragmatic Heroism


Author:  Row [ Wed Feb 10, 2016 3:49 pm ]
Post subject:  Re: [v1.1.0+] Pragmatic Heroism


Author:  Zizzo [ Thu Feb 11, 2016 1:35 am ]
Post subject:  Re: [v1.1.0+] Pragmatic Heroism


Author:  Zeranamu [ Thu Feb 11, 2016 9:57 am ]
Post subject:  Re: [v1.1.0+] Pragmatic Heroism

I've only just started playing, and haven't even experienced being able to go negative HP yet, but I do use the ZOmnibus pack and would say add it. I like stuff, and if it can be turned on or off then I don't see a problem with it.

Author:  Zizzo [ Wed Feb 17, 2016 2:40 am ]
Post subject:  Re: [v1.1.0+] Pragmatic Heroism

Okay, you've convinced me. :wink: v2b, just pushed out, adds the "Show negative life in tooltips" option under the UI tab of the Game Options dialog — and that's enough to let us . We Apologize for the Convenience.™ :mrgreen:

Author:  Zizzo [ Sat Feb 20, 2016 5:10 am ]
Post subject:  Re: [v1.1.0+] Pragmatic Heroism

Aaand greater exposure via ZOmnibus apparently means more stupid bugs found faster… :oops: Pushing out v2b.1 to fix while you're below zero life. We Apologize for the Error.™

Author:  Row [ Tue Mar 01, 2016 7:22 am ]
Post subject:  Re: [v1.1.0+] Pragmatic Heroism


Author:  Zizzo [ Wed Mar 02, 2016 1:24 am ]
Post subject:  Re: [v1.1.0+] Pragmatic Heroism


Author:  Zizzo [ Wed Mar 02, 2016 4:18 am ]
Post subject:  Re: [v1.1.0+] Pragmatic Heroism

Well, supporting the Classic UI turned out not to be quite as hard as I'd feared:

classic-lifebar.png
classic-lifebar.png [ 9.49 KiB | Viewed 6204 times ]


That's going out as v2c. As for Plenum, I think I'm going to need to bring Hachem_Muche in on this…

Author:  Hachem_Muche [ Wed Mar 02, 2016 9:27 pm ]
Post subject:  Re: [v1.1.0+] Pragmatic Heroism

Zizzo, got your poast RE: Plenum Tooltip.

What you're doing with the actor tooltip should work fine on the PTT created tooltip.

Any reason you set your addon weight to 50?

PTT runs at a weight of 150 to make sure the effects of other addon's are taken into account, and because it's not game-breaking if another addon breaks it (It can be disabled from the game menu.).

I think both addon's should be compatible if you set the weight of PH to 151.

Author:  Zizzo [ Thu Mar 03, 2016 3:08 am ]
Post subject:  Re: [v1.1.0+] Pragmatic Heroism


Author:  Hachem_Muche [ Fri Mar 04, 2016 8:19 pm ]
Post subject:  Re: [v1.1.0+] Pragmatic Heroism

But why not change the weight of everything?
Sounds like a debugging adventure!

Actually I thought Zomnibus had a way to change the weight of each individual addon.
The default weight for addons (is supposed to be) 100.

PTT does override other addons, because it pretty much replaces the entire tooltip for actors. Another addon (at a higher weight) that tried to modify the normal ToME tooltip would probably break.
Have you tested PH with a higher weight than PTT to confirm it works?

The next (rather sloppy) option I can think of is defining something like a new mod.Actor._life_text(self) function that returns the string you want to display, and then using that in your search and replace code to update actor life in the tooltip. It would then be easy enough to have PTT check for that function and use it.

Also note that if the player really needs to see the negative life of an npc, he can temporarily disable PTT's actor tooltip and the normal tooltip (using PH) will be displayed.

Page 1 of 3 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/