You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When engaging in combat with 3000 Light Fighters against Player # 1 on the leaderboard, the system encounters an Error 500 after the battle concludes. This issue appears specifically when moon chance is calculated as part of the battle's outcome.
To Reproduce
Steps to reproduce the behavior:
Ensure that you have 3000 Light Fighters in your fleet
Initiate an attack on Player # 1's planet
Wait for the battle to conclude
Try to navigate to another page / Clear cookies and try to login
Error 500
Expected behavior
The combat should resolve successfully, and the battle report, including the moon chance calculation, should display correctly without errors.
Observed Result:
The game throws an Error 500, preventing access to the battle report or any post-combat interactions.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Thanks for the bug report! I just checked it on the main.ogamex.dev environment and the issue seems to be related to #406. More specific: the defending player in your attack mission has around 28 million destroyer units on their planet, and with this large amount of units the battle engine crashes because PHP gets an out-of-memory exception as it hits its 1GB limit.
Issue #406 explains the cause and so the battle engine should be refactored so it can support a larger amount of units. The current battle engine seems to cap at around 1 million units, more than that and it crashes.
In the meantime I have cancelled the fleet mission for your account so at least the HTTP 500 error is gone and you can access your account again.
Describe the bug
When engaging in combat with 3000 Light Fighters against Player # 1 on the leaderboard, the system encounters an Error 500 after the battle concludes. This issue appears specifically when moon chance is calculated as part of the battle's outcome.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The combat should resolve successfully, and the battle report, including the moon chance calculation, should display correctly without errors.
Observed Result:
The game throws an Error 500, preventing access to the battle report or any post-combat interactions.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: