Unable to submit entry for One Button Hack contest

minihackContest.validate
Validating /MATLAB Drive/game.m ...
OK: game() returns a scalar struct.
OK: init, update, render are function handles.
OK: 9751 chars (limit 10000, comments excluded).
OK: no banned functions.
Validation passed.
minihackContest.submit
Title (1-80 chars): ThreeBodyProblemEjector
Publish "ThreeBodyProblemEjector" to contest? [y/N] y
Submitting your entry...
This can take some time - please keep MATLAB open until it finishes.
Submission failed: HTTP 500
Something went wrong. Please try again in a moment.
unsure what to do as runs on matlab online, on matlab22b
Michelle
Michelle about 7 hours ago
the submit i think would work now but its not accepting - was up to 3:15PM AEST Timer is not accurate.
minihackContest.submit
Warning: Live contest rules unavailable (unexpected status 404 from https://www.mathworks.com/matlabcentral/communitycontests/api/v1/contests/current/rules_meta).
Skipping the character limit and banned-function checks — the server still checks them when you submit.
> In fetchContestRules>noRules (line 70)
In fetchContestRules (line 42)
In minihackContest.submit (line 31)
Title (1-80 chars): ThreeBodyEjectionGame
Publish "ThreeBodyEjectionGame" to contest? [y/N] y
Submitting your entry...
This can take some time - please keep MATLAB open until it finishes.
Submission failed: HTTP 409
no game contest is currently accepting entries
Michelle
Michelle about 8 hours ago
its the 30th where i am, and the page has.... I'll try to fix the game today but unsure if i can
Umar
Umar about 2 hours ago
Thank you for the screenshots. Well these errors are different from the earlier HTTP 500, so retrying won't help at this point, and it does not show whether your initState issue is fixed. Have you tried some of the things i mentioned in the thread posted 7 hours ago, also I wanted to clarify my earlier point 2 as posted in this thread before I forget to mention it, a seperate initState.m would not work on your computer but not on the server.
On timing, the rules page gives the cut off as 11:59:59PM EST on Nov 29, which is 2:59:59 PM at UTC+10 or 3:59:59PM at UTC+11. If you are on UTC+11, you tried before the stated cut off, and by looking at your screenshots it is quite obvious.
The rules say they are not resoonsible for late enteries, and found nothing on extension announcement, so this is up to @Vinay Ramesh. Let me send him a message right now.
Hope they make exception in your case and do accept your entry.
Umar
Umar about 9 hours ago
@Vinay Ramesh, a MathWorks Engineer replied on your thread. If you still having issues, there are still few things to check, not a diagnosis:
  1. initState is defined inside game.m, spelled and capitialized exactly as in g.init=@initState.
  2. You are not relying on a seperate initState.m in your folder or path. Only game.m is submitted, so that would work for you.
In the Command Window (not inside game.m, since which is banned in enteries), with the folder containing game.m as your current folder, run:
which initState in game
which initState -all
The first should report a local function of game. If it prints nothing, initState is not defined in game.m. The second lists any other file with that name that could be hiding the problem on your computer.
Then run
clear game
validate again, and try minihackContest.play. The starter says play runs your game locally, so a problem with initState may show up there too.
The contest ends tonight at 11:59PM, if it sill fails, reply on your thread with what the two which commands print and Vinay can help from there.
I hope you get your entry in and earn the One button Game badge. Good luck 👍 again!
Vinay Ramesh
Vinay Ramesh about 16 hours ago (Edited about 15 hours ago)
Hi @Michelle Were you able to run the game locally or online? It seems like the preview rendering is failing upon submission because of the following error.
Undefined function 'initState' for input arguments of type 'matlab.graphics.axis.Axes'
I understand this should have been caught on client side validation but hope this helps to troubleshoot and successfully submit yoir entry.
Umar
Umar about 2 hours ago
Could you let us know what can be done for @Michelle's entry after looking at her latest screenshots she shared with us, and what sephe needs to do?
Thankyou, we will appreciate your help on this one again.
Umar
Umar about 9 hours ago
Good job 👍 for diagnosing @Michelle's submission. I had read her HTTP 500 as an upload failure, so your finding that it comes from the preview step was very helpful.
I know you probably aware that game( ) returns g.init = @initState, and initState is a local function at the bottom of game.m. It is my understanding that MATLAB allows a handle to a function that does not exist and only errors when the handle is called, so a missing or misspelled initState would pass the four checks hat validate prints and then fail when the preview calls init. You mentioned this should have been caught client side, so I wanted to pass that along in case a dry run of g.init on a scratch axes in validate is useful.
Hope @Michelle should be able to submit her game entry before deadline tonight. Wishing her good luck 👍!
Umar
Umar about 18 hours ago
Sorry to hear about what happened. After reading your post carefully, it is obvious that the error appears to be on the upload step. Also, I checked that Mathworks status page currently shows All Systems Operational with no incidents today. So, this is what I would suggest you do today since the contest ends today.
  1. Keep retrying minihackContest.submit every few minutes in case it is temporary.
  2. Submit a request at Mathworks Support and include the exact error text, the date, time and time zone, that you are on Matlab Online R2022b, and that validation passed. Ask for an extension or a manual way to submit.
  3. Keep a saved copy of your validated game.m (in MATLAB Drive and on your computer) so that can send it directly if they ask.
I hope Mathworks sorts this out quickly and that you get full credit for your entry, including the One-button Game badge.
Good luck, and please post here if you hear back so others with the same problem can see the outcome.

Tags

No tags entered yet.