json

  1. T

    Error: Unexpected token reading a json Object at line...

    I recovered my game file after like 10 months, and when I try to run the game, this compile error pops up cant I cant run my game
  2. FrostyCat

    Asset - Scripts JSON Struct: Use structs and arrays to work with JSON

    JSON Struct Bringing out the true potential of JSON parsing in GMS 2.3+ Overview This library allows encoding and decoding JSON as structs, arrays and other first-order data types as of GMS 2.3. In addition to encoding and decoding functions, it also contains utilities for encryption and...
  3. Gigicom

    GMS 2 Use code in json file

    Hey, I‘m trying to figure out how to use pre-defined json files for some item data in my game. Before, I simply assigned all values to variables and assigned those to a ds_map like this: constantData = item.apple; name = „Apple“; graphic = spr_ItemApple; list = ds_list_create(); listVal =...
  4. samspade

    GMS 2.3+ JSON and GameMaker Studio 2

    GM Version: 2.3 Target Platform: All Download: Github Repo (eventually) Links: YouTube Playlist Summary: A GML tutorial series on what JSON is, how to import, and export JSON files, and building a very simple Choose Your Own Adventure style game for practice. While done entirely in 2.3, almost...
  5. 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...
  6. 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...
  7. 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")...
  8. 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...
  9. 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...
  10. 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")...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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[...
  18. 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...
  19. 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...
  20. 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...
Top