Raised This Month: $51 Target: $400
 12% 

total health of bosses with multiple lives


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BBG_Theory
Veteran Member
Join Date: Oct 2010
Location: NC USA
Old 06-16-2014 , 19:37   total health of bosses with multiple lives
Reply With Quote #1

I got this message today .. quoting the discovered bug


"Hey. I dunno when this happened, but on FF2 #2, the bosses with multiple lives, instead of having their health divided by the number of lives they have, have their total health as the health for each life.

For instance, if Bill has 3 lives, and a total of 10000 health, normally, it'd be something like 3333 x3 health. With this glitch, Bill would have 10000 x3 health instead.

Anyways, just bringing it to your attention. Have a good day."

<EOM>

I'm running RC1 from gethub and I am a little confused as to when it started doing this, {be it a beta rev change or steam update)

Obvious easy fix is to edit the configs that have multiple lives, but this is not a preferred fix I don't think......

anyone else seeing this? Is the config's health formula being ignored maybe??

from log I see this
L 06/16/2014 - 10:24:58: [freak_fortress_2.smx] [FF2] Malformed boss health formula, using default!



this is a typical config for a boss with 3 lives
"health_formula" "(((760+n)*n)^1.04)/3"

Last edited by BBG_Theory; 06-16-2014 at 19:57.
BBG_Theory is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 06-16-2014 , 21:16   Re: total health of bosses with multiple lives
Reply With Quote #2

I messed around with the health formula stuff a day ago, probably accidentally did something there.
__________________
~Wliu
Wliu is offline
BBG_Theory
Veteran Member
Join Date: Oct 2010
Location: NC USA
Old 06-17-2014 , 00:22   Re: total health of bosses with multiple lives
Reply With Quote #3

ya know another thing I think I have noticed ever since Ravensbro got the multiple boss list going and you could have more than one boss list, is that I don't think random is indeed random and defaults to last on list. I am pretty sure this is true if you do a map change, it always falls to the last array. The voting for a boss list does seem to work, I just don't have a good feeling about it randomly selecting one of the boss arrays when there are multiple lists

this has nothing to do with above issue
BBG_Theory is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 06-17-2014 , 15:21   Re: total health of bosses with multiple lives
Reply With Quote #4

I've never exactly trusted FF2's random boss choosing. It seems to favor the last boss chosen a whole lot more than the other bosses.
__________________
~Wliu
Wliu is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-17-2014 , 17:48   Re: total health of bosses with multiple lives
Reply With Quote #5

Quote:
Originally Posted by Wliu View Post
I've never exactly trusted FF2's random boss choosing. It seems to favor the last boss chosen a whole lot more than the other bosses.
You could, you know, fix it.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 06-17-2014 , 19:35   Re: total health of bosses with multiple lives
Reply With Quote #6

Quote:
Originally Posted by Powerlord View Post
You could, you know, fix it.
. I think I looked at it a while back, but got all confused when I couldn't even find GetRandomInt in the code (probably just missed it ).
__________________
~Wliu
Wliu is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 06-17-2014 , 21:16   Re: total health of bosses with multiple lives
Reply With Quote #7

Regarding the first issue: It's definitely something wrong with CalcBossHealthMax. Looking into it.
__________________
~Wliu
Wliu is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 06-17-2014 , 21:29   Re: total health of bosses with multiple lives
Reply With Quote #8

Try this. Another boss health formula change is that numbers under 0.01 are now allowed when dividing (eg 5/0.001 is now allowed). Don't know why it wasn't before (0 is still blocked, obviously).
Attached Files
File Type: smx freak_fortress_2.smx (107.9 KB, 67 views)
File Type: sp Get Plugin or Get Source (freak_fortress_2.sp - 84 views - 217.4 KB)
__________________
~Wliu
Wliu is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 06-18-2014 , 00:56   Re: total health of bosses with multiple lives
Reply With Quote #9

Ideally you would store the bosses by index in an adt array, then getrandomint 0 sizeof -1
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.

Last edited by friagram; 06-18-2014 at 00:57.
friagram is offline
BBG_Theory
Veteran Member
Join Date: Oct 2010
Location: NC USA
Old 06-18-2014 , 12:01   Re: total health of bosses with multiple lives
Reply With Quote #10

Quote:
Originally Posted by Wliu View Post
Try this. Another boss health formula change is that numbers under 0.01 are now allowed when dividing (eg 5/0.001 is now allowed). Don't know why it wasn't before (0 is still blocked, obviously).
I think the issue recently occurred in the beta chain. beta6 I think is OK as that is what a reverted back to (well, an edited / customized version of beta6). I'll try what you posted, when I can... but I bet we will all get busy soon when Valve breaks everything eminently with this Summer update

Last edited by BBG_Theory; 06-18-2014 at 12:04.
BBG_Theory is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode