>
>
>

HMW Bug Reporting Thread

Discuss the Heavy Metal War game, report bugs, challenge opponents, and talk some smack! Play the Heavy Metal War game here.

Re: HMW Bug Reporting Thread

Postby Silver Wind » Sat Apr 12, 2025 5:56 pm

Motto: "Truth is written in the fabric of creation."
Weapon: Deflecto-Shield
I counted my team view page and yeah it's now up to around 48 entries per character. :HEADHURTS:
Silver Wind
Headmaster Jr
Posts: 553
Joined: Sun Dec 21, 2003 8:28 pm
Location: Oregon, USA
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

Postby Silver Wind » Sat Apr 12, 2025 10:28 pm

Motto: "Truth is written in the fabric of creation."
Weapon: Deflecto-Shield
I have had six characters complete their missions as of 8:26 PM PDT.

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: 553
Joined: Sun Dec 21, 2003 8:28 pm
Location: Oregon, USA
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

Postby Glyph » Sun Apr 13, 2025 4:15 am

Looks like that was a temporary glitch, thankfully - the linked mission is showing up with full log and XP totals for me, so apparently the mission was processed and written to the DB properly. Possibly just processed late?

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! :P
User avatar
Glyph
Posts: 874
News Credits: 33
Joined: Thu Mar 25, 2004 2:15 pm
Location: Manchester, UK

Re: HMW Bug Reporting Thread

Postby steve2275 » Mon Apr 14, 2025 1:48 pm

Motto: "it may not get better
but it wont get any worse"
-Soundwave- wrote:I would say something odd happened here, and it's not just these two its the entire team there are so many of them.

Image

https://www.seibertron.com/heavymetalwa ... hp?id=1138
3 days later still here
i come and go more than a hmw programmer
or a karma chameleon
BEAT L.A.
im content
WWWYKI!!!
BEAT THE PACERS DAMMIT THUNDER
steve2275
City Commander
Posts: 3260
Joined: Thu May 29, 2003 7:38 am
Watch steve2275 on YouTube
Strength: 2
Intelligence: 2
Speed: 2
Endurance: 2
Rank: 2
Courage: 2
Firepower: 1
Skill: 2

Re: HMW Bug Reporting Thread

Postby ashe5k » Thu Apr 17, 2025 9:38 am

Motto: "He who hesitates, is lost."
steve2275 wrote:
-Soundwave- wrote:I would say something odd happened here, and it's not just these two its the entire team there are so many of them.

Image

https://www.seibertron.com/heavymetalwa ... hp?id=1138
3 days later still here


I counted 153 instances of my main guy in there. I didn't count the rest of my team.
ashe5k
Pretender
Posts: 705
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

Postby Glyph » Thu Apr 17, 2025 10:19 am

153 / 24 = 6 days and change - yup, sounds right.
Psychout wrote:Im not scared of a gender confused minibot! :P
User avatar
Glyph
Posts: 874
News Credits: 33
Joined: Thu Mar 25, 2004 2:15 pm
Location: Manchester, UK

Re: HMW Bug Reporting Thread

Postby Psycho Warrior » Tue Apr 22, 2025 12:08 pm

Motto: "Afternoon everybody."
Weapon: Corrosive Slime Shooter
I was just about to report this and saw other people are having this problem too. its on every team page I visit.
Image
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.
User avatar
Psycho Warrior
Guardian Of Seibertron
Posts: 7000
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

Postby Glyph » Wed Apr 23, 2025 11:56 am

Yeah, we're up to about 300 rows per bot on the team view now, and the high score table is adding a little over a thousand rows every hour. Needless to say, this is only going to keep getting worse until it's fixed - team view is already long since unusable and slow to load, and the high score table is going to eventually cause storage and/or performance issues for the site as a whole. Though at least it's only adding active bots each time it refreshes, not duplicating the entire list of every bot ever created - that would be a crazy runaway increase.

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! :P
User avatar
Glyph
Posts: 874
News Credits: 33
Joined: Thu Mar 25, 2004 2:15 pm
Location: Manchester, UK

Re: HMW Bug Reporting Thread

Postby Glyph » Fri May 02, 2025 6:42 pm

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.
Psychout wrote:Im not scared of a gender confused minibot! :P
User avatar
Glyph
Posts: 874
News Credits: 33
Joined: Thu Mar 25, 2004 2:15 pm
Location: Manchester, UK

Re: HMW Bug Reporting Thread

Postby Drop Bear » Sat May 03, 2025 5:44 pm

Motto: "Well, I'll be a Cybertronic bolt-bat!"
Weapon: Deflecto-Shield
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.
User avatar
Drop Bear
Headmaster Jr
Posts: 514
Joined: Wed Mar 30, 2005 11:55 pm
Location: Somewhere
Strength: 1
Intelligence: 2
Speed: 3
Endurance: 4
Rank: 5
Courage: 6
Firepower: 7
Skill: 8

Re: HMW Bug Reporting Thread

Postby Silver Wind » Mon May 05, 2025 5:06 pm

Motto: "Truth is written in the fabric of creation."
Weapon: Deflecto-Shield
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.
Silver Wind
Headmaster Jr
Posts: 553
Joined: Sun Dec 21, 2003 8:28 pm
Location: Oregon, USA
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

Postby steve2275 » Mon May 05, 2025 5:08 pm

Motto: "it may not get better
but it wont get any worse"
indeed
i come and go more than a hmw programmer
or a karma chameleon
BEAT L.A.
im content
WWWYKI!!!
BEAT THE PACERS DAMMIT THUNDER
steve2275
City Commander
Posts: 3260
Joined: Thu May 29, 2003 7:38 am
Watch steve2275 on YouTube
Strength: 2
Intelligence: 2
Speed: 2
Endurance: 2
Rank: 2
Courage: 2
Firepower: 1
Skill: 2

Re: HMW Bug Reporting Thread

Postby -Soundwave- » Tue May 06, 2025 5:32 pm

Motto: "Cries and screams are music to my Audios."
Weapon: Shoulder Mounted Rocket Launcher
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....
Amalgamated Pretense Join the WAR! Be a HERO!
Image
User avatar
-Soundwave-
Gestalt
Posts: 2817
News Credits: 2
Joined: Mon Jan 31, 2005 9:33 pm
Location: Daraknus Decepticon Outpost.
Alt Mode: Cassette Deck
Strength: 4
Intelligence: 7
Speed: 9
Endurance: 2
Rank: 3
Courage: 6
Firepower: 9
Skill: 6

Re: HMW Bug Reporting Thread

Postby Seibertron » Wed May 28, 2025 12:28 pm

Motto: "'Til All Are One!"
Weapon: Twin Shock-Concussion Missiles
I cleaned up some code, mostly database queries that were showing up in the slow database query log. I've always hated the name "Registry". I changed it to the "War Room". Fixed the bug with the amount of active Transformers on your squad as well. Have fun.
Image
User avatar
Seibertron
Site Owner
Posts: 13796
News Credits: 3595
Joined: Mon Sep 24, 2001 6:17 pm
Location: Chicago, IL USA
Watch Seibertron on YouTube
Buy from Seibertron on eBay
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

Postby Seibertron » Wed May 28, 2025 12:30 pm

Motto: "'Til All Are One!"
Weapon: Twin Shock-Concussion Missiles
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?
Image
User avatar
Seibertron
Site Owner
Posts: 13796
News Credits: 3595
Joined: Mon Sep 24, 2001 6:17 pm
Location: Chicago, IL USA
Watch Seibertron on YouTube
Buy from Seibertron on eBay
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

Postby -Soundwave- » Wed May 28, 2025 12:45 pm

Motto: "Cries and screams are music to my Audios."
Weapon: Shoulder Mounted Rocket Launcher
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.
Amalgamated Pretense Join the WAR! Be a HERO!
Image
User avatar
-Soundwave-
Gestalt
Posts: 2817
News Credits: 2
Joined: Mon Jan 31, 2005 9:33 pm
Location: Daraknus Decepticon Outpost.
Alt Mode: Cassette Deck
Strength: 4
Intelligence: 7
Speed: 9
Endurance: 2
Rank: 3
Courage: 6
Firepower: 9
Skill: 6

Re: HMW Bug Reporting Thread

Postby Glyph » Wed May 28, 2025 12:58 pm

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.
Psychout wrote:Im not scared of a gender confused minibot! :P
User avatar
Glyph
Posts: 874
News Credits: 33
Joined: Thu Mar 25, 2004 2:15 pm
Location: Manchester, UK

Re: HMW Bug Reporting Thread

Postby Seibertron » Wed May 28, 2025 2:10 pm

Motto: "'Til All Are One!"
Weapon: Twin Shock-Concussion Missiles
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.
Image
User avatar
Seibertron
Site Owner
Posts: 13796
News Credits: 3595
Joined: Mon Sep 24, 2001 6:17 pm
Location: Chicago, IL USA
Watch Seibertron on YouTube
Buy from Seibertron on eBay
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

Postby Seibertron » Wed May 28, 2025 4:21 pm

Motto: "'Til All Are One!"
Weapon: Twin Shock-Concussion Missiles
Image
User avatar
Seibertron
Site Owner
Posts: 13796
News Credits: 3595
Joined: Mon Sep 24, 2001 6:17 pm
Location: Chicago, IL USA
Watch Seibertron on YouTube
Buy from Seibertron on eBay
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

Postby Glyph » Wed May 28, 2025 4:40 pm

Nice, looks like that's fixed the team view page :DANCE: and 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?
Psychout wrote:Im not scared of a gender confused minibot! :P
User avatar
Glyph
Posts: 874
News Credits: 33
Joined: Thu Mar 25, 2004 2:15 pm
Location: Manchester, UK

Re: HMW Bug Reporting Thread

Postby Seibertron » Wed May 28, 2025 4:44 pm

Motto: "'Til All Are One!"
Weapon: Twin Shock-Concussion Missiles
Glyph wrote:Nice, looks like that's fixed the team view page :DANCE: and 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.
Image
User avatar
Seibertron
Site Owner
Posts: 13796
News Credits: 3595
Joined: Mon Sep 24, 2001 6:17 pm
Location: Chicago, IL USA
Watch Seibertron on YouTube
Buy from Seibertron on eBay
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

Postby Seibertron » Wed May 28, 2025 4:52 pm

Motto: "'Til All Are One!"
Weapon: Twin Shock-Concussion Missiles
How should they be ranked? By experience in descending order? I put the order by statement back in the hourly task, but would like to remove that for a database boost and just use the database indexing instead from the ranks db table.
Image
User avatar
Seibertron
Site Owner
Posts: 13796
News Credits: 3595
Joined: Mon Sep 24, 2001 6:17 pm
Location: Chicago, IL USA
Watch Seibertron on YouTube
Buy from Seibertron on eBay
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

Postby Glyph » Wed May 28, 2025 4:54 pm

Ah, I see. Yeah, that was what drove the 'rank' number as I recall, which then gets used to order the display table and pulled into to the character page and the team view table. They were ranked in descending order of XP (as score), with the character_name as a tiebreaker (though these days I'd use the character ID instead since it's numeric).

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! :P
User avatar
Glyph
Posts: 874
News Credits: 33
Joined: Thu Mar 25, 2004 2:15 pm
Location: Manchester, UK

Re: HMW Bug Reporting Thread

Postby Seibertron » Wed May 28, 2025 5:07 pm

Motto: "'Til All Are One!"
Weapon: Twin Shock-Concussion Missiles
It has indexes. one of the problems that was causing an error was the character_name field in ranks was 20 characters long, but the character_name field in the characters table was 30 characters. the query would fail when it got to character names with length greater than 20. there were some other issues as well with the queries. I also added a unique key for character ID as well and updated the query to be REPLACE instead of INSERT. All seems good.

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!
Image
User avatar
Seibertron
Site Owner
Posts: 13796
News Credits: 3595
Joined: Mon Sep 24, 2001 6:17 pm
Location: Chicago, IL USA
Watch Seibertron on YouTube
Buy from Seibertron on eBay
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

Postby Glyph » Wed May 28, 2025 5:15 pm

Seibertron wrote: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.

I noticed, and appreciated it greatly :D

Seibertron wrote: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).

TBH, I think the current layout works fine. If we're doing sky-is-the-limit though, how about removing the active/inactive distinction completely and having the relevant pages (missions/arena) do the checks to say you can't have more than X bots doing stuff at the same time? 'cos bots being active/inactive doesn't save any processing time and is just unnecessary clicks IMO - and since that's literally the only thing the RegistryWar Room page does, it could be got rid of and default to the team view instead which already shows all bots together in one section and just labels their active status.
Psychout wrote:Im not scared of a gender confused minibot! :P
User avatar
Glyph
Posts: 874
News Credits: 33
Joined: Thu Mar 25, 2004 2:15 pm
Location: Manchester, UK

PreviousNext

Return to Heavy Metal War Forum

Patreon
Charge Our Energon Reserves. Join the Seibertron Elite.
Support SEIBERTRON™