MFGG Forums
  • Home
  • Members
  • Help
  • Search
MFGG Main Site MFGG Forums MFGG Developer Discussion v
« Previous 1 … 9 10 11 12 13 … 16 Next »
What other game making programs can MFGG's Online High Scores System work on?
MFGG Forums MFGG Developer Discussion v
« Previous 1 … 9 10 11 12 13 … 16 Next »
What other game making programs can MFGG's Online High Scores System work on?
MFGG Forums MFGG Developer Discussion v
« Previous 1 … 9 10 11 12 13 … 16 Next »
What other game making programs can MFGG's Online High Scores System work on?
Mark All Posts Read Today's Posts

What other game making programs can MFGG's Online High Scores System work on?
OssieTheOstrich Away
"Gone fishing", as they say
Members
Submitter Iso Collab Contributor (2) Sprite Comp Runner-Up Sprite Comp Top 5 Drawing Comp Runner-Up Secret Santa (2) MFGG 17th Anniversary MFGG 18th Anniversary MFGG 19th Anniversary Joke Game Contest Runner Up MFGG Awards 2020 Winner
#1
09-26-2018, 08:51 AM
Wanting to know because i really want it to work for Super Mario Generations. (If it works with Constuct 2.)

Plus it may be helpful to other members wanting to use the system in other programs.

(PS: Here's the Link to the article.)
Other socials:
Sonic Retro
NCFC
YouTube

List of projects I eventually plan to finish after the indefinite hiatus is over, assuming I don't abruptly cancel them:
[+]Spoiler
Mario's Rather Unusual Trilogy (Mario's slightly unusual Boss Rush (Completed), Mario vs. Some Unusual Foes (In development), Mario's VERY Unusual Final Frontier (In development))
Sonic's Foray into Random/Unusual Zones (spin-off of Unusual Trilogy, in development)
Angry Birds Slingshot Frenzy (In development)
Super Mario Flashback: Really Good Edition (In development)
Super Hilda DX (In only conceptual phase)

Yes, I am aware that I have about 6 or so fangame projects currently in development at the same time. And yes, I am also aware that all of this is very ambitious.
+ List of projects I'm helping out with in some small capacity during my hiatus:
[+]Spoiler
Super Mario Bros Dimensions 2 (as a spriter, only for Mario's sprites)
MFGG Community Fangame Project 3 (as a spriter)
WordGirl ReWired (as a artist)

  ↳
LGBTQ+ Pride Mario
Wahoo! It's-a me, I'm LGBT!
Members
Secret Santa MFGG 17th Anniversary MFGG 18th Anniversary
#2
09-26-2018, 02:12 PM (This post was last modified: 09-26-2018, 02:17 PM by Mario.)
Never worked with it myself but it seems like its a simple HTTP request, the DLL is just a library for doing HTTP requests from Game Maker; I'm sure that's supported elsewhere.

Here's the code from the wiki page and I'll break down what's going on:

Code:
key = argument0;
myScore = argument1;
myAux = argument2;

var httprequest, st;
httprequest = httprequest_create();
httprequest_set_post_parameter(httprequest, "secret_key", key);
httprequest_set_post_parameter(httprequest, "name", global.name);
httprequest_set_post_parameter(httprequest, "score", string(myScore));
httprequest_set_post_parameter(httprequest, "aux", string(myAux));
httprequest_connect(httprequest, "http://highscores.mfgg.net/setscore?", true);
while true {
   httprequest_update(httprequest);
   st = httprequest_get_state(httprequest);
   if st=4 or st=5 {
       break;
   }
   sleep(10);
}
if st=5 {
   scr_dialog("Score submission failed.",font1,c_black,c_black,c_white,300);
} else {
   scr_dialog("Score submission successful!",font1,c_black,c_black,c_white,300);
   contents = httprequest_get_message_body(httprequest);
}
httprequest_destroy(httprequest);

An HTTP POST request is sent to the URL `http://highscores.mfgg.net/setscore?` with the following parameters:
  • `secret_key` - I assume this is a secret key MFGG gives you so it knows what game's score is being updated and that it's legitimately sent from the game.
  • `name` - Seems like this is the name you want associated with the score.
  • `score` - The score itself
  • `aux` - auxiliary information about the score, I assume some kind of string that says whatever you'd want it to say.


If the MFGG server sends back a response, the code will read back the message sent back from the server, otherwise it'll say the submission failed.

This should be possible to implement with anything out there really. My only recommendation to do things differently would be to send the request over HTTPS instead, via this URL `https://highscores.mfgg.net/setscore?`- this can help keep the key secure to avoid tampering with the high score table.

I don't know anything about any game making tool out there so you'll have to figure out how to get it to do these things yourself, so good luck!


Edit: Looks like there's documentation on the site itself too, more or less says the same thing as me so I'd refer to that: http://highscores.mfgg.net/documentation

Though someone really needs to set up https on that subdomain.
Proud member of the Shadow █████████████
Interested in web development? Check out Super Mario Web Development. Wahoo!
 

""We choose to go to the [Suggestions board] not because it's easy, but because it's hard; because that goal will serve to organize and measure the best of our energies and skills, because that challenge is one that we are willing to accept, one we are unwilling to postpone, and one which we intend to win."
- John F. Kennedy"
- gothgirlgangblastermaster
[-] The following 1 user Likes Mario's post:1 user Likes Mario's post
  ↳ HylianDev
HylianDev
Hammer Bro
Members
Site Developer/Webmasters Submitter NCFC Contributor Secret Santa Popeyes Badge MFGG 17th Anniversary MFGG Awards 2017 Winner
#3
09-26-2018, 02:48 PM (This post was last modified: 09-26-2018, 02:48 PM by HylianDev.)
I programmed it. Everything Mario said is correct. Except, I didn't know there was a subdomain for it haha. There wasn't one when I made it I don't think?

https://mfgg.net/highscores/

HTTPS works if you use MFGG.net/highscores instead.
Vimimin Wrote:Hylian's day job, little did we know, was saying controversial things on the internet.
Mors Wrote:you fool!!!! you fixed it wrong!!!!

[Image: GGyaUXO.png]

[Image: ggc0JQ0.png] [Image: d7OJc4b.png]
Bibby Team

  ↳
United States VinnyVideo
Can't have an avatar without a Shy-Guy
Site Developer
Main Site Moderator Site Developer/Webmasters Wiki SysOp Big Help Submitter Super Reviewer (2) Wiki Contributor Sprite Comp Runner-Up Minigame Comp Winner Minigame Comp Runner-Up Minigame Comp Top 5 (3) Music Comp Winner Music Comp Runner-Up Music Comp Top 5 (2) Drawing Comp Top 5 Game of the Month Winner NCFC Contributor (4) Secret Santa (5) MFGG 17th Anniversary MFGG 18th Anniversary MFGG 19th Anniversary Ye Olde MFGGe Retro Game Jam Participant MFGG Awards 2010 Winner MFGG Awards 2011 Winner MFGG Awards 2012 Winner MFGG Awards 2013 Winner MFGG Awards 2014 Winner MFGG Awards 2015 Winner MFGG Awards 2017 Winner (3) MFGG Awards 2019 Winner MFGG Awards 2024 Winner
#4
09-26-2018, 08:50 PM
@AnOstrichmakingMarioGeneration Any game-making programs that support sending POST requests. My method is the "hard way" that works even on GM 8. If you're using GM Studio, it takes just a couple of lines of code. I'd imagine that Construct 2 could do this, too - sending a POST request is a very basic network functionality.

@Mario We actually had to change the system by adding a subdomain that doesn't use HTTPS. When MFGG upgraded to HTTPS, games that use this system suddenly stopped being able to upload high scores. Supporting HTTPS would require a lot of coding changes, and we weren't sure how to do this. We also felt that sending online high scores for Mario fangames was a relatively low risk - the worst thing that could happen is someone could figure out how to cheat by modifying their scores (but even then, admins could remove obviously fake scores).
Course clear! You got a card.

[Image: CourseClear.gif]


  ↳
LGBTQ+ Pride Mario
Wahoo! It's-a me, I'm LGBT!
Members
#5
09-26-2018, 09:00 PM (This post was last modified: 09-26-2018, 09:01 PM by Mario.)
It should be possible to accept requests on both HTTP and HTTPS; a redirect like the forums might cause issues but just accepting requests on either has no reason to break anything in of itself. (It looks like it's already set up for this too, it just needs a valid certificate.)

And yeah, it won't solve every issue since the secret key would have to be in the game code anyway and people could figure out how to dig that out if they really wanted to but making it something you can't sniff from network requests would add a bit more complexity to securing sending the scores.
Proud member of the Shadow █████████████
Interested in web development? Check out Super Mario Web Development. Wahoo!
 

""We choose to go to the [Suggestions board] not because it's easy, but because it's hard; because that goal will serve to organize and measure the best of our energies and skills, because that challenge is one that we are willing to accept, one we are unwilling to postpone, and one which we intend to win."
- John F. Kennedy"
- gothgirlgangblastermaster

  ↳
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • View a Printable Version
Forum Jump:

Mario Fan Games Galaxy - Powered by MyBB | MFGG Staff | Contact Us

Linear Mode
Threaded Mode