• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

 [suggestion] Import/export scripts

GMWolf

aka fel666
GMS1.x had the ability to export and import a group of scripts.
But it seems GMS2 does not support multiple scripts in a single .gml file.

It would be nice to have a new format, either based on XML or JSON to store a group of scripts, preserving all group structure.

perhaps the format could look something like this:
Code:
{
 'group1' : [
    {
    "id": "b8e0818f-d7d9-4ff8-855a-640ed1d9bd01",
    "modelName": "GMScript",
    "mvc": "1.0",
    "name": "r3",
    "IsCompatibility": false,
    "IsDnD": false
    "content": <<CODE WOULD GO HERE>>
   },
   {
    "id": "b8e0818f-d7d9-4ff8-855a-640ed1d9bd01",
    "modelName": "GMScript",
    "mvc": "1.0",
    "name": "r2",
    "IsCompatibility": false,
    "IsDnD": false
    "content": <<SOME MORE CODE GOES HERE>>
}
  ]
}
This would help people easily share scripts, when the marketplace not ideal.
 

Mike

nobody important
GMC Elder
I don't think this is needed.

You can either just import a folder of files, or - what I think it better - you can make a marketplace asset (private if you like) and then you can import from "your library" making it not only easy to find, but giving you a nice tree view with files+folders for you to import what you like.
 
Top