Funkin icon indicating copy to clipboard operation
Funkin copied to clipboard

check if response result is actually there

Open Jan200101 opened this issue 4 years ago • 14 comments

follow up on #362 fixes #410 the thing that was causing problems with an invalid API key was response.result being null since the response Newgrounds gives just tells us that we have an invalid app id.

Since we now actually create NG.core we will always get a console message when anything with NG.core is done that requires the api.

Jan200101 avatar Feb 13 '21 12:02 Jan200101

bump

Jan200101 avatar Mar 17 '21 16:03 Jan200101

Works on my machine 👍

SixBeeps avatar May 04 '21 03:05 SixBeeps

wait is this like a failsafe

aflacc avatar May 07 '21 18:05 aflacc

wait is this like a failsafe

Yeah? It just ensures that nothing should happen if the response returns a null result. The original failsafe check was just checking if api's Length was 0, which clearly didn't work.

steviegt6 avatar May 09 '21 23:05 steviegt6

The original implementation was rather simplistic with and never actually created a Newgrounds object when the api key was empty this works in theory but every time you change song in Freeplay it makes Newgrounds calls, which fall on deaf ears because were never init'd it

this patch changes it around to see if we actually get a response Invalid API keys (such as an empty one) will cause the library to output a warning and null any response that was expected to have something accessing a member of null isn't possible so we crash

Jan200101 avatar May 10 '21 18:05 Jan200101

Sooo can we merge? Right now freeplay is not playable (I get a "NULL object reference" error)

User198263321 avatar Jun 03 '21 23:06 User198263321

#1232

User198263321 avatar Jun 04 '21 03:06 User198263321

Despite the branch being super old there are still no merge conflicts and it's impossible to play freeplay without it. Merging this is a no-brainer.

Pinging @ninjamuffin99 because this PR seems like it's been overlooked.

jamestmartin avatar Jun 07 '21 04:06 jamestmartin

Yeah @ninjamuffin99 needs to merge

VMGuy23 avatar Jun 07 '21 20:06 VMGuy23

Very well could have already been fixed on a private branch. You guys are forgetting that the public GitHub repository isn't up-to-date.

steviegt6 avatar Jun 10 '21 07:06 steviegt6

Very well could have already been fixed on a private branch. You guys are forgetting that the public GitHub repository isn't up-to-date.

Isn't this the only way we can actually see changes being made before release though?

User198263321 avatar Jun 10 '21 15:06 User198263321

yall okay with me putting this on projectfnf?

aflacc avatar Jun 10 '21 16:06 aflacc

Feel free to do whatever with this on that note

Yes it is likely that development is continuing in a private repo considering the Kickstarted

Jan200101 avatar Jun 10 '21 17:06 Jan200101

this should be merged

AbnormalPoof avatar Dec 09 '21 20:12 AbnormalPoof