MFGG Forums
  • Home
  • Members
  • Help
  • Search
MFGG Main Site MFGG Forums MFGG Developer Discussion v
« Previous 1 … 7 8 9 10 11 … 16 Next »
Making communal save files in GM Studio 1.4/2
MFGG Forums MFGG Developer Discussion v
« Previous 1 … 7 8 9 10 11 … 16 Next »
Making communal save files in GM Studio 1.4/2
MFGG Forums MFGG Developer Discussion v
« Previous 1 … 7 8 9 10 11 … 16 Next »
Making communal save files in GM Studio 1.4/2
Mark All Posts Read Today's Posts

Making communal save files in GM Studio 1.4/2
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
#1
08-18-2019, 09:30 PM
What is the best way to make a save file that multiple GM Studio games can access?

Back in 2012, I started putting a "Stop 'n Swop" system in almost all of my games. This was a save file that multiple games could write to. This way, you could share data between different games. Finishing an objective in one game might unlock a special secret in another game. I never fully implemented cross-game unlockables, but the data is there so I could make it happen. I know @Hello has done some things like this.

My old friend GM 8.0 has served most of my game-making needs for the past decade. While I still prefer GM 8 in a lot of ways, GM 8 is showing its age, and it's harder to run it on my new PC. So I've doing more things in GM Studio 1.4 and GM Studio 2.

GM 8.0 lets you read and write to files pretty much wherever you want. However, newer versions of GM are a lot more restrictive with file access permissions - it's hard to access folders outside of working_directory. Some of the workarounds I've seen are pretty complex, requiring third-party plugins and other things that add layers of complexity.

Is there an easier way to save files in GM Studio 1.4 or GM Studio 2 without having to rely on the working_directory variable?

  ↳
LGBTQ+ Pride Mario
Wahoo! It's-a me, I'm LGBT!
Members
Secret Santa MFGG 17th Anniversary MFGG 18th Anniversary
#2
08-21-2019, 08:20 AM
Don't really know anything about GM but I'm thinking you could probably solve this outside of it. Try having the installer for the game check if the other save file exists and when creating the directory instead of making a new save file just put a symlink to the original one. That way it'll be in the same directory for GM to mess with. I suppose things can get weird depending on how GM saves the file though.
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

  ↳
Canada DJ Yoshiman
Hammer Bro
Members
assholw adminy Sprite Comp Winner Minigame Comp Winner (3) Minigame Comp Runner-Up (2) Music Comp Winner (5) Music Comp Runner-Up (3) Music Comp Top 5 Game of the Month Winner (2) NCFC Contributor (2) Secret Santa MFGG 18th Anniversary MFGG Awards 2007 Winner MFGG Awards 2008 Winner MFGG Awards 2009 Winner MFGG Awards 2010 Winner MFGG Awards 2011 Winner MFGG Awards 2012 Winner
#3
08-24-2019, 08:30 PM
I have nothing to contribute to this topic, except that I remember when we had the idea at one point of time of having a general file that could be accessed by Clickteam products, Game Maker, and some other program as well that could be used to unlock stuff or have games communicate with each other.

That would be amazing to have again.
[-] The following 2 users Like DJ Yoshiman's post:2 users Like DJ Yoshiman's post
  ↳ OssieTheOstrich, VinnyVideo
OssieTheOstrich Away
on hiatus and self reflecting
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
#4
08-25-2019, 02:41 AM
I'd love to see a MFGG fangame (or multiple fangames) with a "Stop N Swap" feature built-in.
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)
[-] The following 1 user Likes OssieTheOstrich's post:1 user Likes OssieTheOstrich's post
  ↳ VinnyVideo
United States VinnyVideo
Can't have an avatar without a Shy-Guy
Site Developer
#5
08-25-2019, 02:45 PM
@DJ Yoshiman @Ostrich101 I'd love to see more MFGG games use a Stop 'n Swop system, too - whether it's multiple games by the same developer, or games by different developers. @Hello is the only person I know who's fully implemented such a system, although several of my games have the framework in place to share data.

@Mario Usually GM games don't use an installer, so I don't think that would be workable.
Course clear! You got a card.

[Image: CourseClear.gif]

[-] The following 1 user Likes VinnyVideo's post:1 user Likes VinnyVideo's post
  ↳ OssieTheOstrich
LGBTQ+ Pride Mario
Wahoo! It's-a me, I'm LGBT!
Members
#6
08-25-2019, 05:15 PM
Even better if GM doesn't come with an installer, you can use a third party one that should be able to do that kind of work in the install process. I'm not sure what tools are out there for that though- I think there's one by ClickTeam actually? At least there was years ago but I'm not sure its still around.

More importantly do you think having that file in each games directory but linked? Here's an article about symlinks in Windows 10- I'm not sure the state of them in Windows but pretty sure some kind of link exists- maybe you can try a hard link (basically have two places in the file system that link to the same exact data) instead if those won't work.
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