Project 1999

Go Back   Project 1999 > Class Discussions > Melee

Reply
 
Thread Tools Display Modes
  #1  
Old 04-08-2025, 02:43 PM
loramin loramin is offline
Planar Protector

loramin's Avatar

Join Date: Jul 2013
Posts: 10,622
Default

Quote:
Originally Posted by DeathsSilkyMist [You must be logged in to view images. Log in or Register.]
In playground.io the console.log() function shows the array index and the value ...

The wiki version just shows the value:

...

If they were displayed in tables that would probably be easy to read as well.
Those three result fields are now displayed as tables, with a header row of the indices (I assumed you wanted them 1-based and not 0-based).

Again, it's not the most beautiful, so if you want to provide some styling I'll be happy to update ... but at least people can see the indices now.
__________________

Loramin Frostseer <Anonymous>, Hetch<Anonymous>, Tecla <Kingdom>, ...
Check out the "Where To Go For XP/For Treasure?" Guides

Anyone can improve the wiki! If you are new to the Blue or Green servers, you can improve the wiki to earn a "welcome package" of platinum and/or gear! Send me a forum message for details.
Reply With Quote
  #2  
Old 04-08-2025, 02:49 PM
DeathsSilkyMist DeathsSilkyMist is offline
Planar Protector

DeathsSilkyMist's Avatar

Join Date: Jan 2014
Posts: 8,388
Default

Quote:
Originally Posted by loramin [You must be logged in to view images. Log in or Register.]
Those three result fields are now displayed as tables, with a header row of the indices (I assumed you wanted them 1-based and not 0-based).

Again, it's not the most beautiful, so if you want to provide some styling I'll be happy to update ... but at least people can see the indices now.
The tables are looking good! They are 0 based actually. 0 is misses. So one small fix there.

EDIT: Maybe name the 0 column "misses" so people know.
Last edited by DeathsSilkyMist; 04-08-2025 at 02:54 PM..
Reply With Quote
  #3  
Old 04-08-2025, 03:03 PM
loramin loramin is offline
Planar Protector

loramin's Avatar

Join Date: Jul 2013
Posts: 10,622
Default

Quote:
Originally Posted by DeathsSilkyMist [You must be logged in to view images. Log in or Register.]
The tables are looking good! They are 0 based actually. 0 is misses. So one small fix there.

EDIT: Maybe name the 0 column "misses" so people know.
Fixed.
__________________

Loramin Frostseer <Anonymous>, Hetch<Anonymous>, Tecla <Kingdom>, ...
Check out the "Where To Go For XP/For Treasure?" Guides

Anyone can improve the wiki! If you are new to the Blue or Green servers, you can improve the wiki to earn a "welcome package" of platinum and/or gear! Send me a forum message for details.
Reply With Quote
  #4  
Old 04-08-2025, 03:30 PM
DeathsSilkyMist DeathsSilkyMist is offline
Planar Protector

DeathsSilkyMist's Avatar

Join Date: Jan 2014
Posts: 8,388
Default

Quote:
Originally Posted by loramin [You must be logged in to view images. Log in or Register.]
Fixed.
That's perfect. Thanks again Loramin!
Reply With Quote
  #5  
Old 04-09-2025, 01:00 AM
DeathsSilkyMist DeathsSilkyMist is offline
Planar Protector

DeathsSilkyMist's Avatar

Join Date: Jan 2014
Posts: 8,388
Default

Quote:
Originally Posted by loramin [You must be logged in to view images. Log in or Register.]
Fixed.
It looks like the wiki calculator doesn't allow users to adjust the textbox values. Bcbrown and myself are unable to edit things like AC and Defense. The calculator looks like it is only using the default values, it doesn't accept the new values. Some of the textboxes are working, like Off Hand Weapon Damage.
Last edited by DeathsSilkyMist; 04-09-2025 at 01:04 AM..
Reply With Quote
  #6  
Old 04-09-2025, 11:29 AM
loramin loramin is offline
Planar Protector

loramin's Avatar

Join Date: Jul 2013
Posts: 10,622
Default

Quote:
Originally Posted by DeathsSilkyMist [You must be logged in to view images. Log in or Register.]
It looks like the wiki calculator doesn't allow users to adjust the textbox values. Bcbrown and myself are unable to edit things like AC and Defense. The calculator looks like it is only using the default values, it doesn't accept the new values. Some of the textboxes are working, like Off Hand Weapon Damage.
I checked the code, and the problem I found was actually with the mob (not player) stats: they weren't using the form values.

However, I have no idea what values are correct (I don't play many melee characters), so I can't really do much more QA myself: that's all on you DSM.

(Developer Talk) If you want to debug the code further yourself, you can use the browser dev tools to do so. Open the dev tools (F12), go to the sources tab, and pick the file "index.php?title=MediaWiki: DamageCalculator.js&action=raw&ctype=text/javascript" (it should be the second "index.php?" one on the list). You can then see the source code, add break points, trigger the form, and check any variables' values.

For instance,if you add a break point to line 141:

const results = RunDPSTest(playerStats, mobStats, 500);

... and then hover over playerStats/mobStats, you can now see that they use the form's values.


(Non-Developer Talk) If anyone else wants to check it out, you'll have to clear your cache (or else you might have to wait a few days to see the changes). A simple way (for anyone, not just a developer) to do this in Chrome is to open the developer tools (F12), click and hold down the reload button, and then pick "Empty Cache and Hard Reload" (and then do F12 to close the dev tools after).
__________________

Loramin Frostseer <Anonymous>, Hetch<Anonymous>, Tecla <Kingdom>, ...
Check out the "Where To Go For XP/For Treasure?" Guides

Anyone can improve the wiki! If you are new to the Blue or Green servers, you can improve the wiki to earn a "welcome package" of platinum and/or gear! Send me a forum message for details.
Reply With Quote
  #7  
Old 04-09-2025, 12:36 PM
DeathsSilkyMist DeathsSilkyMist is offline
Planar Protector

DeathsSilkyMist's Avatar

Join Date: Jan 2014
Posts: 8,388
Default

Quote:
Originally Posted by loramin [You must be logged in to view images. Log in or Register.]
I checked the code, and the problem I found was actually with the mob (not player) stats: they weren't using the form values.
Thanks again for the fix! Did some super quick testing and it looks like all the fields are working now.
Reply With Quote
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 12:40 AM.


Everquest is a registered trademark of Daybreak Game Company LLC.
Project 1999 is not associated or affiliated in any way with Daybreak Game Company LLC.
Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.