HMW Bug Reporting Thread
Re: HMW Bug Reporting Thread
Posted by Glyph Sat Apr 12, 2025 10:00 am
Frak knows what the 1024 thing is about, but it's a suspiciously round number.
--EDIT--
Yeah, it looks like the table's not being cleared. The total bots shown on the character page (Rank #X / Y) is currently showing "X / 38,415", and I know for a fact there aren't 38K active bots in the DB. I think it was showing 32K this morning, so sprockitz is probably right that it's going up every hour when the high score refresh script runs.
Psychout wrote:Im not scared of a gender confused minibot!
-

Glyph - HMW Moderator
- Posts: 981
- News Credits: 34
- Joined: Thu Mar 25, 2004 2:15 pm
- Location: Manchester, UK
Re: HMW Bug Reporting Thread
Posted by Silver Wind Sat Apr 12, 2025 5:56 pm
- Silver Wind
- Headmaster Jr
- Posts: 595
- Joined: Sun Dec 21, 2003 8:28 pm
- Location: U.S.A.
- Alt Mode: I have no idea
- Strength: 2
- Intelligence: 5
- Speed: 2
- Endurance: 2
- Rank: ???
- Courage: 3
- Firepower: 2
- Skill: 6
Re: HMW Bug Reporting Thread
Posted by Silver Wind Sat Apr 12, 2025 10:28 pm
There is no mission log, and all participants are flagged as receiving no experience points nor energon (due to the former).
Edit: Forgot to include an example for those unfamiliar. https://www.seibertron.com/heavymetalwar/view_mission.php?mission_id=332716
- Silver Wind
- Headmaster Jr
- Posts: 595
- Joined: Sun Dec 21, 2003 8:28 pm
- Location: U.S.A.
- Alt Mode: I have no idea
- Strength: 2
- Intelligence: 5
- Speed: 2
- Endurance: 2
- Rank: ???
- Courage: 3
- Firepower: 2
- Skill: 6
Re: HMW Bug Reporting Thread
Posted by Glyph Sun Apr 13, 2025 4:15 am
On the team view / high scores, I see we're up to 52 rows per character now. Assuming that it's ticking up every hour as we think, I guess it'll give us an easy way to track exactly how long the bug has existed...
Psychout wrote:Im not scared of a gender confused minibot!
-

Glyph - HMW Moderator
- Posts: 981
- News Credits: 34
- Joined: Thu Mar 25, 2004 2:15 pm
- Location: Manchester, UK
Re: HMW Bug Reporting Thread
Posted by steve2275 Mon Apr 14, 2025 1:48 pm
but it wont get any worse"
or a karma chameleon
BEAT L.A.
im content
WWWYKI!!!
BEAT THE PACERS DAMMIT THUNDER
- steve2275
- City Commander
- Posts: 3293
- Joined: Thu May 29, 2003 7:38 am
- Strength: 2
- Intelligence: 2
- Speed: 2
- Endurance: 2
- Rank: 2
- Courage: 2
- Firepower: 1
- Skill: 2
Re: HMW Bug Reporting Thread
Posted by ashe5k Thu Apr 17, 2025 9:38 am
I counted 153 instances of my main guy in there. I didn't count the rest of my team.
- ashe5k
- Pretender
- Posts: 735
- Joined: Mon Sep 30, 2002 5:11 am
- Location: OH
- Strength: N/A
- Intelligence: N/A
- Speed: N/A
- Endurance: N/A
- Rank: N/A
- Courage: N/A
- Firepower: N/A
- Skill: N/A
Re: HMW Bug Reporting Thread
Posted by Glyph Thu Apr 17, 2025 10:19 am
Psychout wrote:Im not scared of a gender confused minibot!
-

Glyph - HMW Moderator
- Posts: 981
- News Credits: 34
- Joined: Thu Mar 25, 2004 2:15 pm
- Location: Manchester, UK
Re: HMW Bug Reporting Thread
Posted by Psycho Warrior Tue Apr 22, 2025 12:08 pm

The Happy Locust wrote:Effort is not power, knowledge is not power, even money is not power. True power is not caring that you f*ck up all the time.
-

Psycho Warrior - Guardian Of Seibertron
- Posts: 7030
- Joined: Wed Aug 06, 2003 9:54 pm
- Location: Antarctica, enjoying summer.
- Alt Mode: Plague Tank
- Strength: 5
- Intelligence: 7
- Speed: 6
- Endurance: 8
- Rank: 2
- Courage: 5
- Firepower: 6
- Skill: 9
Re: HMW Bug Reporting Thread
Posted by Glyph Wed Apr 23, 2025 11:56 am
I don't know exactly how the backend code changed in the recent updates from the version I'm familiar with, but I'd be willing to bet it's a one-line fix.
@Ryan - happy to work with you on this & the other persistent bugs if needed.
Psychout wrote:Im not scared of a gender confused minibot!
-

Glyph - HMW Moderator
- Posts: 981
- News Credits: 34
- Joined: Thu Mar 25, 2004 2:15 pm
- Location: Manchester, UK
Re: HMW Bug Reporting Thread
Posted by Glyph Fri May 02, 2025 6:42 pm
Psychout wrote:Im not scared of a gender confused minibot!
-

Glyph - HMW Moderator
- Posts: 981
- News Credits: 34
- Joined: Thu Mar 25, 2004 2:15 pm
- Location: Manchester, UK
Re: HMW Bug Reporting Thread
Posted by Drop Bear Sat May 03, 2025 5:44 pm
Glyph wrote:Went to check again just for the hell of it, team roster table is so large I had to use the console window to query the page elements rather than count. 1,044 rows per bot. High score table is over half a million rows now.
Maybe I’m being dramatic, but I don’t find HMW to be playable now. I like to check the team page regularly to see how my crew are going, but ever since this issue has occurred, it’s become far too much of a hassle to do so. And it won’t be long before that hassle evolves into something more serious.
-

Drop Bear - Headmaster Jr
- Posts: 539
- Joined: Wed Mar 30, 2005 11:55 pm
- Location: Australia
- Strength: 8
- Intelligence: 7
- Speed: 9
- Endurance: 7
- Rank: 6
- Courage: 10
- Firepower: 6
- Skill: 10
Re: HMW Bug Reporting Thread
Posted by Silver Wind Mon May 05, 2025 5:06 pm
- Silver Wind
- Headmaster Jr
- Posts: 595
- Joined: Sun Dec 21, 2003 8:28 pm
- Location: U.S.A.
- Alt Mode: I have no idea
- Strength: 2
- Intelligence: 5
- Speed: 2
- Endurance: 2
- Rank: ???
- Courage: 3
- Firepower: 2
- Skill: 6
Re: HMW Bug Reporting Thread
Posted by steve2275 Mon May 05, 2025 5:08 pm
but it wont get any worse"
or a karma chameleon
BEAT L.A.
im content
WWWYKI!!!
BEAT THE PACERS DAMMIT THUNDER
- steve2275
- City Commander
- Posts: 3293
- Joined: Thu May 29, 2003 7:38 am
- Strength: 2
- Intelligence: 2
- Speed: 2
- Endurance: 2
- Rank: 2
- Courage: 2
- Firepower: 1
- Skill: 2
Re: HMW Bug Reporting Thread
Posted by -Soundwave- Tue May 06, 2025 5:32 pm
Silver Wind wrote:I recommend avoiding the team view page at this point. The page for mine responded so slowly I was concerned the browser tab would freeze.
It urks me. I play from the bottom up, and I can't see where my 10s are in my 11s....
-

-Soundwave- - Gestalt
- Posts: 2822
- News Credits: 2
- Joined: Mon Jan 31, 2005 9:33 pm
- Location: Daraknus Decepticon Outpost.
- Alt Mode: Cassette Deck
- Strength: 8
- Intelligence: 9
- Speed: 2
- Endurance: 6
- Rank: 8
- Courage: 5
- Firepower: 6
- Skill: 10
Re: HMW Bug Reporting Thread
Posted by Seibertron Wed May 28, 2025 12:28 pm
-

Seibertron - Site Owner
- Posts: 14044
- News Credits: 3646
- Joined: Mon Sep 24, 2001 6:17 pm
- Location: Mount Prospect, IL USA
- Alt Mode: Supersonic Cybertronian Jet
- Strength: 10
- Intelligence: 9
- Speed: 7
- Endurance: 9
- Rank: 10+
- Courage: 8
- Firepower: 5
- Skill: 10+
Re: HMW Bug Reporting Thread
Posted by Seibertron Wed May 28, 2025 12:30 pm
Drop Bear wrote:Glyph wrote:Went to check again just for the hell of it, team roster table is so large I had to use the console window to query the page elements rather than count. 1,044 rows per bot. High score table is over half a million rows now.
Maybe I’m being dramatic, but I don’t find HMW to be playable now. I like to check the team page regularly to see how my crew are going, but ever since this issue has occurred, it’s become far too much of a hassle to do so. And it won’t be long before that hassle evolves into something more serious.
Which page is the team roster table on that you are talking about?
-

Seibertron - Site Owner
- Posts: 14044
- News Credits: 3646
- Joined: Mon Sep 24, 2001 6:17 pm
- Location: Mount Prospect, IL USA
- Alt Mode: Supersonic Cybertronian Jet
- Strength: 10
- Intelligence: 9
- Speed: 7
- Endurance: 9
- Rank: 10+
- Courage: 8
- Firepower: 5
- Skill: 10+
Re: HMW Bug Reporting Thread
Posted by -Soundwave- Wed May 28, 2025 12:45 pm
Seibertron wrote:Which page is the team roster table on that you are talking about?
https://www.seibertron.com/heavymetalwa ... p?id=19368
There have been so many that it doesn't load anymore at least not for me. It's just a blank white page.
-

-Soundwave- - Gestalt
- Posts: 2822
- News Credits: 2
- Joined: Mon Jan 31, 2005 9:33 pm
- Location: Daraknus Decepticon Outpost.
- Alt Mode: Cassette Deck
- Strength: 8
- Intelligence: 9
- Speed: 2
- Endurance: 6
- Rank: 8
- Courage: 5
- Firepower: 6
- Skill: 10
Re: HMW Bug Reporting Thread
Posted by Glyph Wed May 28, 2025 12:58 pm
Please note, it's nothing to do with character or mission data anywhere else, please don't do anything to those in the hopes of fixing it! I'm doing some history work on missions at the moment and really don't want to lose that data.
Psychout wrote:Im not scared of a gender confused minibot!
-

Glyph - HMW Moderator
- Posts: 981
- News Credits: 34
- Joined: Thu Mar 25, 2004 2:15 pm
- Location: Manchester, UK
Re: HMW Bug Reporting Thread
Posted by Seibertron Wed May 28, 2025 2:10 pm
Glyph wrote:It's /team_view.php - but as we figured out upthread, the bug isn't on the team view page itself but in the once-per-hour cron job that refreshes the high score table (was game_character_rank, I don't know if that's changed). It should truncate the table before inserting the new set of results, but it became clear that the cron job had stopped doing that and was just appending the new rows instead.
Please note, it's nothing to do with character or mission data anywhere else, please don't do anything to those in the hopes of fixing it! I'm doing some history work on missions at the moment and really don't want to lose that data.
Thank you for that direction. I am debugging the code currently as I think I isolated the problem.
-

Seibertron - Site Owner
- Posts: 14044
- News Credits: 3646
- Joined: Mon Sep 24, 2001 6:17 pm
- Location: Mount Prospect, IL USA
- Alt Mode: Supersonic Cybertronian Jet
- Strength: 10
- Intelligence: 9
- Speed: 7
- Endurance: 9
- Rank: 10+
- Courage: 8
- Firepower: 5
- Skill: 10+
Re: HMW Bug Reporting Thread
Posted by Seibertron Wed May 28, 2025 4:21 pm
-

Seibertron - Site Owner
- Posts: 14044
- News Credits: 3646
- Joined: Mon Sep 24, 2001 6:17 pm
- Location: Mount Prospect, IL USA
- Alt Mode: Supersonic Cybertronian Jet
- Strength: 10
- Intelligence: 9
- Speed: 7
- Endurance: 9
- Rank: 10+
- Courage: 8
- Firepower: 5
- Skill: 10+
Re: HMW Bug Reporting Thread
Posted by Glyph Wed May 28, 2025 4:40 pm
Although... looks like the high scores aren't actually ordered by character XP at the moment. I can't figure out what the ordering is from the table, although it does look like more recently active bots are towards the end? But it's definitely not by score. Sorry Ryan, can we grab a little more of your time please?
Psychout wrote:Im not scared of a gender confused minibot!
-

Glyph - HMW Moderator
- Posts: 981
- News Credits: 34
- Joined: Thu Mar 25, 2004 2:15 pm
- Location: Manchester, UK
Re: HMW Bug Reporting Thread
Posted by Seibertron Wed May 28, 2025 4:44 pm
Glyph wrote:Nice, looks like that's fixed the team view pageand I take it the high score is now fully refreshing in the hourly script
Although... looks like the high scores aren't actually ordered by character XP at the moment. I can't figure out what the ordering is from the table, although it does look like more recently active bots are towards the end? But it's definitely not by score. Sorry Ryan, can we grab a little more of your time please?
I modified the insert statement so that it no longer sorted the data since the data can be sorted from the database table. Let me take another look.
-

Seibertron - Site Owner
- Posts: 14044
- News Credits: 3646
- Joined: Mon Sep 24, 2001 6:17 pm
- Location: Mount Prospect, IL USA
- Alt Mode: Supersonic Cybertronian Jet
- Strength: 10
- Intelligence: 9
- Speed: 7
- Endurance: 9
- Rank: 10+
- Courage: 8
- Firepower: 5
- Skill: 10+
Re: HMW Bug Reporting Thread
Posted by Seibertron Wed May 28, 2025 4:52 pm
-

Seibertron - Site Owner
- Posts: 14044
- News Credits: 3646
- Joined: Mon Sep 24, 2001 6:17 pm
- Location: Mount Prospect, IL USA
- Alt Mode: Supersonic Cybertronian Jet
- Strength: 10
- Intelligence: 9
- Speed: 7
- Endurance: 9
- Rank: 10+
- Courage: 8
- Firepower: 5
- Skill: 10+
Re: HMW Bug Reporting Thread
Posted by Glyph Wed May 28, 2025 4:54 pm
Was that query one that showed up in the slow queries log? I have a couple of old versions of it since it was a problem back in the day too, one with a calc-rows function to get the rank and one just using an auto-increment ID as the rank but inserting in score order. If it's using the window function, they're notorious for speed issues, but either way adding an index on (hmw_character.score, hmw_character.character_name) might help if it doesn't already have one.
If I was writing the function from scratch today (caveat for not knowing exactly how everything is currently set up in the site DB, obviously) I'd do the second version: truncate hmw_character_rank then insert sorted with an auto-increment, using an index on hmw_character to sort them efficiently. (Also if rank is the PK on hmw_character_ranks, it needs an index on character_id as well since the character pages search by that field)
Psychout wrote:Im not scared of a gender confused minibot!
-

Glyph - HMW Moderator
- Posts: 981
- News Credits: 34
- Joined: Thu Mar 25, 2004 2:15 pm
- Location: Manchester, UK
Re: HMW Bug Reporting Thread
Posted by Seibertron Wed May 28, 2025 5:07 pm
I had to do HMW work today because all of this server and code work that I've been doing over the past 2.5 months is like peeling an onion ... each new layer uncovers new issues to resolve. The fact that I've worked through so many things on the server and in the code means that it is now clearer to see what needs to be resolved in HMW.
I also updated registry to War Room and added some new click functionality so that you guys don't have to just click on the checkbox. you should be able to click on the character's box to turn them active or inactive. At some point, i'll just get rid of the active an inactive sections and just have it active or inactive in the same table and the page will just have code that runs in the background and won't need to be submitted any more. it'll just toggle their status (or if you guys prefer to have two different sections of bots like it's been for 21 years, that's fine too, and I'll just figure out a way to have them slide between the sections).
Lots of things planned for later this year. The Silver Age of SEIBERTRON is coming soon!
-

Seibertron - Site Owner
- Posts: 14044
- News Credits: 3646
- Joined: Mon Sep 24, 2001 6:17 pm
- Location: Mount Prospect, IL USA
- Alt Mode: Supersonic Cybertronian Jet
- Strength: 10
- Intelligence: 9
- Speed: 7
- Endurance: 9
- Rank: 10+
- Courage: 8
- Firepower: 5
- Skill: 10+
Who is online
Registered users: Apple [Bot], Bing [Bot], ChatGPT [Bot], Google [Bot], Google Adsense [Bot], Google Feedfetcher, MSN [Bot], OpenAI [Bot], UnitedJazz, Yandex [Bot]


