Announcement: Be excellent to each other.


Caravel Forum : DROD RPG Boards : RPG Bugs : Hold/level stats don't count monsters' GR and REP
New Topic New Poll Post Reply
Poster Message
DezzTech
Level: Smiter
Rank Points: 327
Registered: 03-31-2009
IP: Logged
icon Hold/level stats don't count monsters' GR and REP (+2)  
In the level editor, when you press F3 or F4 to show hold/level stats, GR and REP both show up as 0, no matter how many monsters are in the hold.

From what I can see, this happens because the stat counting code (in CEditSelectScreen::OnKeyDown() and the CDbRoom/Level/Hold::getStats() functions) never calls CMonster::SetCurrentGame which apparently is the function that sets the monster stats, so all the stats just default to 0.

____________________________
Click here to view the secret text

11-02-2016 at 02:47 PM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5166
Registered: 02-04-2003
IP: Logged
icon Re: Hold/level stats don't count monsters' GR and REP (0)  
DezzTech wrote:
In the level editor, when you press F3 or F4 to show hold/level stats, GR and REP both show up as 0, no matter how many monsters are in the hold.

From what I can see, this happens because the stat counting code (in CEditSelectScreen::OnKeyDown() and the CDbRoom/Level/Hold::getStats() functions) never calls CMonster::SetCurrentGame which apparently is the function that sets the monster stats, so all the stats just default to 0.
Thanks for reporting this and for the help troubleshooting! You are correct. I've fixed this in rev 325 for the next build.

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
11-05-2016 at 09:17 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
kieranmillar
Level: Smitemaster
Rank Points: 3019
Registered: 07-11-2014
IP: Logged
icon Re: Hold/level stats don't count monsters' GR and REP (0)  
Can confirm this works well for the stock monsters.

It doesn't work for custom monsters that set GR and REP values in the initial turn either by normal or default script. I think that's fine, I don't know how hard that would be to fix and probably not worth it, and there will always be some wrinkles, like having to account for Set Monster var overwriting the value of stock monsters too. Seems complicated.
06-10-2023 at 10:03 AM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD RPG Boards : RPG Bugs : Hold/level stats don't count monsters' GR and REP
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.