json

  1. flyinian

    What are your ways to organize data for saving?

    I am looking for ways to organize data to save. I have a save/load system using JSON files and it appears to work nicely. Now, I am looking for ideas to organize data. I have several "controller" objects that controls parts of my game and done this way for organizational means. Could I place...
  2. flyinian

    SOLVED JSON save/load system questions

    Questions before I create a JSON saving and Loading system. I plan on following Shaun Spalding JSON save/Load system with that, 1. What would I have to do to save/load ds_grids? What about global variables? 2. Would it be easier/better if I were to change my global variables into a ds_grid...
  3. If Programable_Matter

    Loading JSON info Error

    I keep getting this Error even though the program successfuly uploaded the JSON key :values Apparently the code works and the values show up in my program but like 2 seconds later I get this error. I'm pretty sure I'm missing some code Create Event http_get("http://webpage.json")...
  4. Adry

    SOLVED Really no way to add to JSON save file??

    Hello! I'm just starting out with saving, and decided to go with the JSON method as the title indicates. I have successfully saved menu items like "username" and some other menu preferences. I just began my exploration of saving room and character position.. However, when I did so I was also...
  5. G

    JSON saving and loading with map chunks

    Hello! First of all this is my first time using JSON. I have an infinite, procedural generated map and I am working out a method to save the stats of instances within a chunk area as a JSON. I need to use point_in_rectangle in case collision masks go into other chunk areas however my code...
  6. If Programable_Matter

    Error when working with JSON

    I've been uploading json files unto a webserver and had no problem with them on game maker... for some reason I now keep getting this error with a new project I have started : json_decode argument 1 incorrect type (undefined) expecting a Number (YYGR) Create Event http_get("website.json")...
  7. Startoz

    Fastest way to load a JSON/text file with tens of thousands of lines?

    Hi, I want to load a large JSON file (more than 40k lines when formatted) and decode it. The system that I'm using at the moment works perfectly fine if all the data is contained in one line (loading the text into a string takes less than 1 second). However, if the JSON is formatted, it takes...
  8. Divinik

    GMS 2 Loading Grid From Json Not Working Properly?

    So in the game I'm currently working on, every companion and their info is stored in a ds_grid (Companions_Grid), and within each companion's column is another inventory grid stored for the companion. The code for storing the inventory grids into the json seems to be working perfectly, I check...
  9. Lord KJWilliams

    Is there an upgrade ( by GMS? ) for the JSON file format to handle 64bit values?

    I was just reading the online manual and it says that the JSON file format can not handle 64bit values. I was wondering if there are any plans in the standard ( see : https://www.json.org/json-en.html ), to upgrade it to handle 64bit values eventually ? I was reading via skimming what I found on...
  10. D

    GMS 2 Import Texture Atlas from Spriter Pro

    Hey all, recently started working with GMS2, lots of fun compared to other engines, but already encountered a problem I can't solve on my own. Hope for some good advise :-) I want to select animations and modify skeletons of my sprites in the engine. Apparently GMS supports importing a JSON...
  11. JapanGamer29

    GMS 2 Game runs fine, but not when using the Debugger [SOLVED]

    Hey guys. I'm baffled by this problem: When I run my game, a json file for language (menu items, etc.) is opened and read into a ds_map in the Create event of my persistent objGameController object. It all works fine. The game is finished and already available on Steam... but... ... when I...
  12. hughrock_projects

    GMS 2 What am I doing wrong with my data saving/loading?

    Hello fellow indie devs! This problem has had me stumped forever now (feels like it anyway). I've looked up several "how-to" vids on saving and loading data in gms2. I've dabbled in using json-ds_map, ds_grid_read/write, and even ini files (hate them). For some reason, that has me truly...
  13. 3

    how to read/save array out of json using json_decode [SOLVED]

    Im trying to store some date in a json and read the data out. however the game crashes whenever i try to read out the array. this is the code: var checker = json_decode(@' { "player" : { "name" : "Player", "array" : ["huhu","2we"] } }'); var inf = checker[...
  14. W

    GMS 2 [SOLVED] Best method for loading JSON help

    I am looking for the best way to handle a JSON file with over 200k objects. Each object has 4 fields. I've worked with loading text files before, but not CSV or JSON. Right now, the data is CSV and JSON but wasn't sure the best method for getting it into GMS. I was thinking that pulling...
  15. Tsa05

    Asset - Scripts Photoshop to JSON to GameMaker

    Free Cross Platform script for Photoshop + GameMaker Import Scripts + Sample Project objects. https://marketplace.yoyogames.com/assets/8383/photoshop-export-and-export https://stormingleech.itch.io/photoshop-to-gamemaker Also, see the end of this post for a vital Photoshop workflow trick related...
  16. W

    Data structure with index does not exist

    Hello, so i am new to GML and i am trying to load data from a JSON file into game maker and save that data as variables. I am able to load the data from JSON file, but unable to use the variables?? when i try to add the variables into a ds_list for example, it then throws the error saying "Data...
  17. A

    JSON Help, Response from ASYNC HTTP

    So I got the json response back as {"success":0,"message":"Email already used, please log in."} lets call this string variable json. I use obj =json_decode(json); Most languages I used I would then use obj.success. And that would be all she wrote. Game maker decode seems to not be friendly...
  18. D

    Windows How to make a save and load game function with json files?

    I have been working on my game for quite some time and I am working on trying to add a save and load game feature to my game. The problem is I can't ever get it to work no matter how many google searches I do or how many YouTube videos I watch. If anyone could help me to understand this so I can...
  19. MeltingCat

    GMS 2 Saving a ds_grid in a ds_map

    Hi, I'm having trouble saving my inventory system in a ds_map as part of a JSON. I found this thread: https://forum.yoyogames.com/index.php?threads/adding-a-ds-grid-to-a-ds_map.50573/ where the answer to my question seems to be written, but I can't make it work. As of lack of experience I...
  20. V

    JSON and GML

    Hey, I'm unfamiliar with JSON and its uses alongside GameMaker Studio 2. I want to know. Anybody have a good place to start?
Top