This page contains affiliate links. We may earn commissions when readers interact with or purchase items through these links. For more information, see our affiliate disclosures here.

Understanding Energon usage ... any reason for negative Energon balances?

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

Understanding Energon usage ... any reason for negative Energon balances?

Postby Seibertron » Mon Nov 12, 2018 6:57 pm

Motto: "'Til All Are One!"
Weapon: Twin Shock-Concussion Missiles
While working to correct the issue that wasn't giving new players Energon, I came across that the HMW database was setup to allow a negative balance of Energon for some reason. I can't think of any reason why a player should or could have negative Energon. Either you have enough or you don't. Out of approximately 6,000 player accounts, only 3 had negative balances. I modified the database tables by eliminating the database table that was used exclusively to store our user IDs in one field and how much Energon we had in another. I don't understand why it was stored in a separate database table, so I moved the Energon for each player into the actual Players database table. All was good, until I was updating the code to reflect this and I see programming in place that also allowed for negative Energon balances, which makes no sense to me. Hopefully I was right with my decision to make it so you can't spend more than you have, but if any of you can think of a reason why negative balances should be allowed, I can make the corrections if needed. Thanks in advance!
Image
User avatar
Seibertron
Site Owner
Posts: 13550
News Credits: 3554
Joined: Mon Sep 24, 2001 5: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: Understanding Energon usage ... any reason for negative Energon balances?

Postby Burn » Mon Nov 12, 2018 6:59 pm

Motto: "Freedom is the right of all sentient beings to randomly click things in the Admin Panel to see what it breaks."
I think it was regarded as a glitch.

How it was done ... maybe through the Battle Beasts gambling?
Burn
Forum Admin
Posts: 28680
News Credits: 226
Joined: Mon Jun 30, 2003 2:37 am

Re: Understanding Energon usage ... any reason for negative Energon balances?

Postby Seibertron » Mon Nov 12, 2018 7:05 pm

Motto: "'Til All Are One!"
Weapon: Twin Shock-Concussion Missiles
Burn wrote:I think it was regarded as a glitch.

How it was done ... maybe through the Battle Beasts gambling?


In that case, the change I made will prevent that I think. Maybe. Not sure exactly. Only 3 players were impacted by this correction/change. Please let me know if you guys encounter any errors relating to Energon, especially when you get close to €0.
Image
User avatar
Seibertron
Site Owner
Posts: 13550
News Credits: 3554
Joined: Mon Sep 24, 2001 5: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: Understanding Energon usage ... any reason for negative Energon balances?

Postby Phasewing » Mon Nov 12, 2018 7:12 pm

Motto: "Trust nothing, question everything."
Weapon: Sonic Umbrella
Well, whatever you did, I see everything and everyone has 0 energon... everywhere.

https://www.seibertron.com/heavymetalwar/index.php
Image
no money won from missions?

https://www.seibertron.com/heavymetalwa ... hp?id=3864
energon total and donations?

https://www.seibertron.com/heavymetalwar/weapons.php & https://www.seibertron.com/heavymetalwar/armor.php
everything is 0 to buy? xD
Image
jack of all trades, mistress of nada.
Discord: Phyx
User avatar
Phasewing
Gestalt Team Leader
Posts: 974
Joined: Mon Jun 16, 2003 6:50 pm
Location: Land of Lost Socks and Birdfood
Alt Mode: Griffon
Intelligence: ???
Endurance: 10+
Courage: Infinity
Firepower: ???
Skill: Infinity

Re: Understanding Energon usage ... any reason for negative Energon balances?

Postby Burn » Mon Nov 12, 2018 7:19 pm

Motto: "Freedom is the right of all sentient beings to randomly click things in the Admin Panel to see what it breaks."
Same, my energon has been wiped out.
Burn
Forum Admin
Posts: 28680
News Credits: 226
Joined: Mon Jun 30, 2003 2:37 am

Re: Understanding Energon usage ... any reason for negative Energon balances?

Postby Wingz » Mon Nov 12, 2018 7:19 pm

Motto: "Let the trails lead where they may. I will follow."
Weapon: Air-To-Air Heat Seeking Missiles
Same here. Lost all energon and donation tracking.

https://www.seibertron.com/heavymetalwa ... p?id=75654
Image
Psychout wrote:You have a stubborn streak a mile wide Wingz. Never change!
Wingz
City Commander
Posts: 3441
Joined: Thu Jul 16, 2009 9:39 am
Location: Now you see me...
Strength: 4
Intelligence: 7
Speed: 10
Endurance: 5
Rank: ???
Courage: 10+
Firepower: 7
Skill: 8

Re: Understanding Energon usage ... any reason for negative Energon balances?

Postby Seibertron » Mon Nov 12, 2018 7:27 pm

Motto: "'Til All Are One!"
Weapon: Twin Shock-Concussion Missiles
Phasewing wrote:Well, whatever you did, I see everything and everyone has 0 energon... everywhere.

https://www.seibertron.com/heavymetalwar/index.php
Image
no money won from missions?

https://www.seibertron.com/heavymetalwa ... hp?id=3864
energon total and donations?

https://www.seibertron.com/heavymetalwar/weapons.php & https://www.seibertron.com/heavymetalwar/armor.php
everything is 0 to buy? xD


Everything should be fixed. Data casting error caused by me that was nulling out the values of numbers because it didn't think the numbers were integers. Should be all set. If you see any other errors, please let me know. Thanks.
Image
User avatar
Seibertron
Site Owner
Posts: 13550
News Credits: 3554
Joined: Mon Sep 24, 2001 5: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: Understanding Energon usage ... any reason for negative Energon balances?

Postby Burn » Mon Nov 12, 2018 7:35 pm

Motto: "Freedom is the right of all sentient beings to randomly click things in the Admin Panel to see what it breaks."
I'm rich again! €40,393,190 Image
Burn
Forum Admin
Posts: 28680
News Credits: 226
Joined: Mon Jun 30, 2003 2:37 am

Re: Understanding Energon usage ... any reason for negative Energon balances?

Postby Wingz » Mon Nov 12, 2018 8:18 pm

Motto: "Let the trails lead where they may. I will follow."
Weapon: Air-To-Air Heat Seeking Missiles
Same here =) Thank you!
Image
Psychout wrote:You have a stubborn streak a mile wide Wingz. Never change!
Wingz
City Commander
Posts: 3441
Joined: Thu Jul 16, 2009 9:39 am
Location: Now you see me...
Strength: 4
Intelligence: 7
Speed: 10
Endurance: 5
Rank: ???
Courage: 10+
Firepower: 7
Skill: 8

Re: Understanding Energon usage ... any reason for negative Energon balances?

Postby S.o.L. » Wed Nov 14, 2018 7:18 pm

Motto: "often victim of the calamities he causes"
Weapon: Fireball Cannon
Seibertron wrote:
Phasewing wrote:Well, whatever you did, I see everything and everyone has 0 energon... everywhere.

https://www.seibertron.com/heavymetalwar/index.php
Image
no money won from missions?

https://www.seibertron.com/heavymetalwa ... hp?id=3864
energon total and donations?

https://www.seibertron.com/heavymetalwar/weapons.php & https://www.seibertron.com/heavymetalwar/armor.php
everything is 0 to buy? xD


Everything should be fixed. Data casting error caused by me that was nulling out the values of numbers because it didn't think the numbers were integers. Should be all set. If you see any other errors, please let me know. Thanks.


Maybe not an error, but when you go to the main page and it lists mission results:
https://www.seibertron.com/heavymetalwar/index.php
if you lost and won zero energon it used to look like this, showing a zero:
oldzero.jpg
oldzero.jpg (7.7 KiB) Viewed 443932 times

Now it looks like this, no zero:
new zero.jpg
new zero.jpg (9.65 KiB) Viewed 443932 times

Also in the mission results page, it used to show that you got zero xp and energon, but now it shows nothing for zero energon.
https://www.seibertron.com/heavymetalwa ... _id=114101
mission.jpg
mission.jpg (11.44 KiB) Viewed 443932 times

As a side note, maybe the manual CR glitch mentioned in the bug thread is also related to the negative balance energon modifications.
User avatar
S.o.L.
Vehicon
Posts: 371
Joined: Wed Oct 13, 2004 11:02 am
Alt Mode: Tractor
Strength: 7
Intelligence: 8
Speed: 5
Endurance: 10
Rank: 5
Courage: 7
Firepower: Infinity
Skill: 2

Re: Understanding Energon usage ... any reason for negative Energon balances?

Postby Seibertron » Wed Nov 14, 2018 10:24 pm

Motto: "'Til All Are One!"
Weapon: Twin Shock-Concussion Missiles
Is that problem affecting all logs or just ones that were processed prior to me fixing the error?
Image
User avatar
Seibertron
Site Owner
Posts: 13550
News Credits: 3554
Joined: Mon Sep 24, 2001 5: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: Understanding Energon usage ... any reason for negative Energon balances?

Postby S.o.L. » Wed Nov 14, 2018 10:35 pm

Motto: "often victim of the calamities he causes"
Weapon: Fireball Cannon
Seibertron wrote:Is that problem affecting all logs or just ones that were processed prior to me fixing the error?

It is actually all logs, past and current.
https://www.seibertron.com/heavymetalwa ... sion_id=15
https://www.seibertron.com/heavymetalwa ... _id=114303
User avatar
S.o.L.
Vehicon
Posts: 371
Joined: Wed Oct 13, 2004 11:02 am
Alt Mode: Tractor
Strength: 7
Intelligence: 8
Speed: 5
Endurance: 10
Rank: 5
Courage: 7
Firepower: Infinity
Skill: 2

Re: Understanding Energon usage ... any reason for negative Energon balances?

Postby Seibertron » Wed Nov 14, 2018 11:03 pm

Motto: "'Til All Are One!"
Weapon: Twin Shock-Concussion Missiles
Fixed.

I added a "Mission Ended" text so that we know when missions end now. I was able to see that the mission ended today so that I no longer needed to ask my above question.
Image
User avatar
Seibertron
Site Owner
Posts: 13550
News Credits: 3554
Joined: Mon Sep 24, 2001 5: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: Understanding Energon usage ... any reason for negative Energon balances?

Postby Bun-Bun » Thu Nov 15, 2018 6:44 am

Seibertron wrote:Fixed.

I added a "Mission Ended" text so that we know when missions end now. I was able to see that the mission ended today so that I no longer needed to ask my above question.

Thank Primus
That's something that's been onmy wish list for years!
It's a little thing but can be very useful when collecting data
The opinions expressed in this post are well-reasoned and insightful.
Needless to say, they are not those of SEIBERTRON.COM, its staff members, or any other site lackeys.
Anyone who says otherwise is itching for a fight.

Image
User avatar
Bun-Bun
Gestalt
Posts: 2549
Joined: Thu Mar 25, 2004 6:23 am

Re: Understanding Energon usage ... any reason for negative Energon balances?

Postby S.o.L. » Thu Nov 15, 2018 12:41 pm

Motto: "often victim of the calamities he causes"
Weapon: Fireball Cannon
Seibertron wrote:Fixed.

I added a "Mission Ended" text so that we know when missions end now. I was able to see that the mission ended today so that I no longer needed to ask my above question.


Awesome!
User avatar
S.o.L.
Vehicon
Posts: 371
Joined: Wed Oct 13, 2004 11:02 am
Alt Mode: Tractor
Strength: 7
Intelligence: 8
Speed: 5
Endurance: 10
Rank: 5
Courage: 7
Firepower: Infinity
Skill: 2


Return to Heavy Metal War Forum

Transformers and More @ The Seibertron Store

Visit our store on eBay
These are affiliate links. We may earn commissions when you purchase items or services through these links.
Visit shop.seibertron.com to buy "GARGOYLES #11 Cvr H 1:7 Dynamite Comics 2024 AUG230323 11H (CA) Kambadais"
GARGOYLES #11 Cvr ...
Visit shop.seibertron.com to buy "SONIC THE HEDGEHOG #66 Cvr A IDW Comics 2023 AUG231377 66A (CA) Dutreix"
SONIC THE HEDGEHOG ...
Visit shop.seibertron.com to buy "Star Trek Motion Picture ECHOES #2 Cvr B IDW Comics APR231591 2B (CA) Kangas"
Star Trek Motion P ...
Visit shop.seibertron.com to buy "Star Wars DOCTOR APHRA #22 var Pride Marvel Comics 2022 APR221036 (CA) Ganucheau"
Star Wars DOCTOR A ...
Visit shop.seibertron.com to buy "STAR TREK #11 Cvr G 1:100 IDW Comics 2023 JUN231462 11G (CA) Clarke (W) Kelly"
STAR TREK #11 Cvr ...
Visit shop.seibertron.com to buy "Star Wars BOUNTY HUNTERS #5 ESB variant Marvel Comics 2020 APR201050 (CA)Sprouse"
Star Wars BOUNTY H ...
Visit shop.seibertron.com to buy "Star Wars HIDDEN EMPIRE #3 var 1:25 Marvel Comics NOV221031 (CA) Lopez 230227A"
Star Wars HIDDEN E ...
Visit shop.seibertron.com to buy "GARGOYLES #1 Cvr A Dynamite Comics 2022 Disney OCT220542 1A (CA) Nakayama"
GARGOYLES #1 Cvr A ...
Visit shop.seibertron.com to buy "STAR WARS HIGH REPUBLIC #15 var Marvel Comics 2022 DEC211062 (CA) Ferry"
STAR WARS HIGH REP ...
Visit shop.seibertron.com to buy "Star Wars CRIMSON REIGN #3 connecting Marvel Comics 2022 JAN220991 (CA) Anindito"
Star Wars CRIMSON ...
Visit shop.seibertron.com to buy "Star Wars HYPERSPACE STORIES #9 Cvr A Dark Horse Comics MAY231301 9A (CA) Ossio"
Star Wars HYPERSPA ...
Visit shop.seibertron.com to buy "Star Wars DARTH VADER #29 Marvel Comics 2022 SEP221097 (CA) Rahzzah (W) Pak"
Star Wars DARTH VA ...
Visit shop.seibertron.com to buy "GARGOYLES #3 Cvr K 1:25 Dynamite Comics DEC220629 3K (CA) Kambadais"
GARGOYLES #3 Cvr K ...
Visit shop.seibertron.com to buy "GARGOYLES DARK AGES #1 Cvr M 1:15 Dynamite Comics 2023 MAY230485 1M (CA) Quah"
GARGOYLES DARK AGE ...
* Price and quantities subject to change. Shipping costs, taxes and other fees not included in cost shown. Refer to listing for current price and availability.
Find the items above and thousands more at the Seibertron Store on eBay
Transformers Podcast: Twincast / Podcast #348 - Uno
Twincast / Podcast #348:
"Uno"
MP3 · iTunes · RSS · View · Discuss · Ask
Posted: Saturday, April 20th, 2024

Featured Products on Amazon.com

These are affiliate links. We may earn commissions when you purchase items or services through these links.
Buy "Transformers Authentics Optimus Prime" on AMAZON
Buy "Transformers MPM-03 Movie 10th Anniversary Figure Bumblebee" on AMAZON
Buy "Transformers Toys Optimus Prime Cyberverse Ultimate Class Action Figure - Repeatable Matrix Mega Shot Action Attack Move - Toys for Kids 6 & Up, 11.5"" on AMAZON
Buy "Transformers: Generations Power of The Primes Voyager Terrorcon Hun-Gurrr" on AMAZON
Buy "Transformers: Generations Power of the Primes Voyager Class Starscream" on AMAZON
Buy "Transformers Generations Combiner Wars Computron Collection Pack" on AMAZON
Buy "Cyberverse Warrior Class Windblade" on AMAZON
Buy "Masterpiece MPM-7 Bumblebee" on AMAZON
Buy "Transformers Generations Combiner Wars Voyager Class Silverbolt Figure" on AMAZON
Buy "Transformers Generations Titans Return Titan Master Crashbash" on AMAZON
Buy "Transformers Generations Combiner Wars Deluxe Class Air Raid Figure" on AMAZON
Buy "Transformers: Generations Power of The Primes Vector Prime Prime Master" on AMAZON