>
>
>

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 Glyph » Sun Aug 17, 2025 11:02 pm

Seibertron wrote:Well, then there is definitely a discrepancy then if the code doesn't match the database.
There is, but it's a moot point because the bits that are still in use apparently DO match. The discrepancy in the IDs doesn't affect anything, and the table is used, just not in the battle script.

Seibertron wrote:
Glyph wrote:And if you're looking at the database, could you also check that the highest mission_id in mission_characters isn't higher than the latest ID in the missions table?
It's not logging missions currently.
Yeah, I get that - what I mean is that in the past we've had an issue where old mission_character records interfered with new missions. I don't believe that's the root issue here, but if there are any records in mission_characters with a mission_id much higher than about 368850, it would be *a* cause - and if there aren't, it can be eliminated from consideration.
Psychout wrote:Im not scared of a gender confused minibot! :P
User avatar
Glyph
HMW Moderator
Posts: 917
News Credits: 34
Joined: Thu Mar 25, 2004 2:15 pm
Location: Manchester, UK

Re: HMW Bug Reporting Thread

Postby Seibertron » Mon Aug 18, 2025 2:41 am

Motto: "'Til All Are One!"
Weapon: Twin Shock-Concussion Missiles
Sorry guys ... I couldn't figure out what I did earlier that broke the missions. I've been hammering away at this for 14 hours. I'll tackle it again tomorrow night hopefully. Bear with me!

I enabled some new logging functionality tonight so that i can take a look at what's going on. please feel free to add characters into missions and arena battles so that i can take a look at the logs tomorrow to see if any patterns come to light.

If I can't figure this out, I might just rewrite the whole mission and arena log process which has been needed to be done since day 1 of HMW. That's on the agenda anyways but it might happen sooner than later if I can't figure this out.
Image
User avatar
Seibertron
Site Owner
Posts: 13842
News Credits: 3606
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 ThunderThruster » Mon Aug 18, 2025 4:28 am

Weapon: Twin Shoulder-Mounted Rocket Launchers
Missions might be a bit of an intermitant problem:

[phpBB Debug] PHP Warning: in file /var/www/vhosts/seibertron.com/httpdocs/heavymetalwar/includes/game_shared.php on line 2519: error_log(/var/www/vhosts/seibertron.com/logs/errors/heavymetalwar.log): failed to open stream: Permission denied
[phpBB Debug] PHP Warning: in file /var/www/vhosts/seibertron.com/httpdocs/heavymetalwar/missions.php on line 83: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3992)
HMW - debug error log Mon 18 Aug 2025.jpg
Tekka wrote:What she doesn't realize is that Springer actually loves Rodimus.
User avatar
ThunderThruster
Gestalt
Posts: 2942
Joined: Thu Jun 01, 2006 8:56 am
Location: Nottingham

Re: HMW Bug Reporting Thread

Postby Glyph » Mon Aug 18, 2025 4:42 am

^ Re above: Getting a bunch of the same [phpBB Debug] permission warnings on War Room, CR & High Scores, missions.php seems to be ok if there's an available mission but emits the debug warnings if it has to generate a new mission. Forms on War Room, Join Missions etc (probably all) emit "headers already sent" errors on submit (probably because of the debug warnings).
Psychout wrote:Im not scared of a gender confused minibot! :P
User avatar
Glyph
HMW Moderator
Posts: 917
News Credits: 34
Joined: Thu Mar 25, 2004 2:15 pm
Location: Manchester, UK

Re: HMW Bug Reporting Thread

Postby ashe5k » Mon Aug 18, 2025 7:54 am

Motto: "He who hesitates, is lost."
I got this every time I put a bot in a mission or activated a Transformer

[phpBB Debug] PHP Warning: in file /var/www/vhosts/seibertron.com/httpdocs/heavymetalwar/includes/game_shared.php on line 2519: error_log(/var/www/vhosts/seibertron.com/logs/errors/heavymetalwar.log): failed to open stream: Permission denied
[phpBB Debug] PHP Warning: in file /var/www/vhosts/seibertron.com/httpdocs/heavymetalwar/missions.php on line 83: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3992)

But if I went directly to the page right after that, mission or war room, it loaded fine.
ashe5k
Pretender
Posts: 708
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 Psychout » Mon Aug 18, 2025 11:56 am

Motto: "This post clearly was meant to offend, and if you are affected by it in any way please close your browser and discuss it with someone who knows not to take the internet seriously."
Weapon: Black Magic
managed to get a bot into a mission.

https://www.seibertron.com/heavymetalwa ... _id=368891

No log generated.
Psychout
HMW Moderator
Posts: 9736
News Credits: 42
Joined: Tue Aug 17, 2004 8:04 am
Location: Vatican City
Alt Mode: Cassette. The 80s ROCKED
Strength: 1
Intelligence: 1
Speed: 1
Endurance: 1
Rank: 10
Courage: 1
Firepower: 1
Skill: 10

Re: HMW Bug Reporting Thread

Postby ThunderThruster » Mon Aug 18, 2025 12:54 pm

Weapon: Twin Shoulder-Mounted Rocket Launchers
Had the same issue as Psychout. Any characters that I could get into a mission, generated "No record available". Just thrown a couple of bots into the Arena to see if it's working.
Tekka wrote:What she doesn't realize is that Springer actually loves Rodimus.
User avatar
ThunderThruster
Gestalt
Posts: 2942
Joined: Thu Jun 01, 2006 8:56 am
Location: Nottingham

Re: HMW Bug Reporting Thread

Postby Silver Wind » Mon Aug 18, 2025 2:02 pm

Motto: "Truth is written in the fabric of creation."
Weapon: Deflecto-Shield
ThunderThruster wrote:Had the same issue as Psychout. Any characters that I could get into a mission, generated "No record available". Just thrown a couple of bots into the Arena to see if it's working.

Arena fights completed.

Serene v. Raider

Alacrity v. Windcon

Ascendant v. Nyxara

Erudition v. S.S. Georgie

Everything functioned correctly as far as I can tell. I also had the CR set to manual and yeah the button is there again, but like Glyph stated it has no border and a passcode is required.
Silver Wind
Headmaster Jr
Posts: 564
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 Aug 18, 2025 4:44 pm

Motto: "it may not get better
but it wont get any worse"
Seibertron wrote:Sorry guys ... I couldn't figure out what I did earlier that broke the missions. I've been hammering away at this for 14 hours. I'll tackle it again tomorrow night hopefully. Bear with me!

I enabled some new logging functionality tonight so that i can take a look at what's going on. please feel free to add characters into missions and arena battles so that i can take a look at the logs tomorrow to see if any patterns come to light.

If I can't figure this out, I might just rewrite the whole mission and arena log process which has been needed to be done since day 1 of HMW. That's on the agenda anyways but it might happen sooner than later if I can't figure this out.

very much appreciated
https://www.seibertron.com/heavymetalwa ... ena_id=668 i wonder who i am fighting thanks occult
i must confess i have missed fighting in the arena
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: 3268
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 Seibertron » Mon Aug 18, 2025 9:29 pm

Motto: "'Til All Are One!"
Weapon: Twin Shock-Concussion Missiles
I'm doing some debugging right now. I'm on 3.5 hours of sleep from last night's marathon of trying to fix these HMW problems so I don't know how far I'll get tonight but I wanted to give you guys an update.

Basically, I'm working on creating a script that will "requeue" and "reprocess" failed missions (and we'll take a look at arenas later if it's not resolved with this process). The script will grab a few missions which has characters not currently doing something else at the moment, requeue the mission using current timestamps, and then forcing their processing so that I can properly debug this damn code. I'm surprised this hadn't been done before but here we go.

Once I get all of this working again, I'll modify this script to process all battles that failed that are in the database still. So please keep putting your characters in missions and arenas. Regardless if it failed or not, I'll figure out how to reprocess them all later.

If it doesn't work in the end, then oh well. I'll figure out something to do to thank all of you if it doesn't work (and maybe a little something extra if it does as I've got another big thing in the works with the rest of SEIBERTRON that will help encourage HMW gameplay).

Just wanted to keep you guys posted so that you aren't discouraged.
Image
User avatar
Seibertron
Site Owner
Posts: 13842
News Credits: 3606
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 » Tue Aug 19, 2025 8:07 am

Seibertron wrote:Basically, I'm working on creating a script that will "requeue" and "reprocess" failed missions [...] The script will grab a few missions which has characters not currently doing something else at the moment, requeue the mission using current timestamps, and then forcing their processing so that I can properly debug this damn code. [...] Once I get all of this working again, I'll modify this script to process all battles that failed that are in the database still.
Nearly all missions have 20 minutes between closing signups and updating characters with the cached results, with nearly all battles/logs getting processed within the first minute. That should give a decent amount of time to try the battle again if it's got the process flag but hasn't been properly completed in, say, five minutes after its start time (or, for that matter, to run a mission multiple times for debug purposes and just keep the last run's result). Outside of that time, no guarantee that bots would be available or that they'd have the same level & stats as when they entered, and you could get some very strange effects if characters suddenly & randomly became busy while players are e.g. doing upgrades - I'd honestly rather shrug off the failed mission than have my bots unexpectedly dropping into a battle/CR at some future point.

Would it be easier to amend the end-of-mission update to not release the characters from the mission if it's not correctly processed, and clear the process flag? That should automatically re-queue the mission as I understand it, since the battle script was just looking for missions in the queue that were 1) past their start time and 2) not marked as processing (also applies to the suggestion above - just substitute "has participants but no winner" and "marked as processing at least 5 min ago" in the queue check). Feel free to ignore if that's no longer the case.

Seibertron wrote:If I can't figure this out, I might just rewrite the whole mission and arena log process which has been needed to be done since day 1 of HMW. That's on the agenda anyways but it might happen sooner than later if I can't figure this out.
Given how much time a full rewrite would take and that one of the earlier Silver Age announcements was that the whole site's code is now under version control, can the recent changes not just be rolled back while you're investigating what went wrong?
Psychout wrote:Im not scared of a gender confused minibot! :P
User avatar
Glyph
HMW Moderator
Posts: 917
News Credits: 34
Joined: Thu Mar 25, 2004 2:15 pm
Location: Manchester, UK

Re: HMW Bug Reporting Thread

Postby Seibertron » Wed Aug 27, 2025 11:24 pm

Motto: "'Til All Are One!"
Weapon: Twin Shock-Concussion Missiles
My script is in process to put an end to Unknowns, unfinished missions, and other "bugs" that have been long standing. This script will help me isolate where the problems are located. This is how I debug. It is probably a different process than some are used to.

Code: Select all
[INFO] [b]Starting fix-stuck-missions tool[/b] ...
[INFO] Yes, this script should resolve unfinished missions and missions with Unknowns declared as winner.
[INFO] In addition to that, this will help solve what's going wrong with hmw_battle processing.

[INFO] Mission limit currently set to: 1. This can be adjusted as needed as more examples are needed.

[INFO] Local environment detected — clearing mission state...
[OK] Reset hmw_character_doing for local testing.
[OK] 1 missions found.

[INFO] Processing stuck mission ID: 72034
[OK] 1 characters found for mission (72034)
[INFO] Character roster for mission 72034:
   [->] character_id=106387 user_id=132447 faction=2 level=0 health=100
   [->] Resetting character_id=106387
   [OK] Health set to 100 for character_id=106387
   [OK] Doing row inserted/updated for character_id=106387, mission_id=72034
[DEBUG] Characters have been reset into doing for mission 72034. Verify DB state before continuing.
   [OK] Queued mission_id=72034 for immediate processing

[INFO] Finished.
Image
User avatar
Seibertron
Site Owner
Posts: 13842
News Credits: 3606
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 » Thu Aug 28, 2025 12:13 am

Motto: "'Til All Are One!"
Weapon: Twin Shock-Concussion Missiles
I'm leaving my script at this point right now. It processed a battle but with Unknowns winning and no mission log which is exactly where i wanted to get to tonight. More digging tomorrow and more in-line error checking to find the culprit(s)!

Code: Select all
[INFO] Starting fix-stuck-missions tool ...
[INFO] Yes, this script should resolve unfinished missions and missions with Unknowns declared as winner.
[INFO] In addition to that, this will help solve what's going wrong with hmw_battle processing.

[INFO] Mission limit currently set to: 1. This can be adjusted as needed as more examples are needed.

[INFO] Local environment detected — clearing mission state...
[OK] Reset hmw_character_doing for local testing.
[OK] 1 missions found.

[INFO] Processing stuck mission ID: 72034
[OK] 1 characters found for mission (72034)
   [INFO] Character roster for mission 72034:
   [->] character_id=106387 user_id=132447 faction=2 level=0 health=100

   [->] Resetting character_id=106387
   [OK] Health set to 100 for character_id=106387
   [OK] Doing row inserted/updated for character_id=106387, mission_id=72034

   [DEBUG] Characters have been reset into doing for mission 72034. Verify DB state before continuing.

   [SQL] ...
   [OK] Queued mission_id=72034 for immediate processing

   [SQL] ...
   [OK] Tagged missions in hmw_process_queue with process_tag=68afe4fed0818

   [SQL] SELECT * FROM hmw_process_queue WHERE process_tag="68afe4fed0818"
   [INFO]Found 1 missions in the process queue with tag 68afe4fed0818.

   [INFO] Running queued mission 72034
   [DONE] Mission 72034 processed.

[INFO] Finished.
Image
User avatar
Seibertron
Site Owner
Posts: 13842
News Credits: 3606
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+

Previous

Return to Heavy Metal War Forum

Registered users: Apple [Bot], Bing [Bot], ChatGPT [Bot], Gauntlet101010, Google [Bot], Google Adsense [Bot], MSN [Bot], Nemesis Destron, OpenAI [Bot], william-james88, Yahoo [Bot], Yandex [Bot], Ziusundra

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