• 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!

ds_map

  1. Bee

    GameMaker ds_map from json using wrong json???

    I have several jsons for my game populating ds_maps. So I know it works and how to do it. I was getting a weird error for a new ds_map from a json so I debugged and the ds_map is using the variables and data from another json altogether!!! I did a search and nothing is overwriting this ds_map so...
  2. D

    Android Android save file erased after updating app

    I'm in the testing phase of my game, and I've noticed that when I update the app to a new version, save files can be erased. This is kind of terrifying, because if this happened to a live copy of the game I'd have people losing their progress. My method of saving is to write a ds_map to an .INI...
  3. clee2005

    Legacy GM Corrupt ds_map_secure_load

    I've been getting emails from Android users of our game saying they are getting "Data structure with index does not exist" at startup and they can't get into the app at all (crashes back to icons). I figured where this is happening and it's on ds_map_secure_load(filename). This code works in...
  4. P

    Save&Load a room to ds_map

    Hello, I don't have a ton of experience with ds_maps but I am looking to save what is in a room (object positions and their variables) into a ds_map. I have saved global variables perfectly fine but when it comes to objects I'm having some difficulty. Here is a snip-it of my save code var...
  5. 2

    GML Write ds_map to ini file, Read ds_map from ini file

    How do I write a ds_map into an ini file and then reassemble the map from an ini file's contents so I can use it in game? The actual ini values should be difficult to edit ds_map gibberish. How do I put it back together as a ds_map in game, so I can check the individual key values, and set them...
  6. F

    GameMaker variable_instance... VS ds_map

    Hi guys, Which is faster? Functions variable_instance... or ds_map? I did some small tests, but I'm still not sure ...
  7. S

    Facebook Leaderboard ds_map / ds_list?

    Is there anyone that could help me figure out how to read and sort the facebook leaderboard? I have tried all kind of ds_map / ds_list, but i cant figure it out? This is how the response map looks like: { "data": [ { "score": 99, "user": { "name": "Donna sparw"...
  8. B

    Legacy GM i need help with ds_map_find_value,in-depth explana tion [SOLVED]

    Hi,could somebody explain ds_map_find_value to me? Because i don't really understand it just by reading the game maker docs.
  9. L

    GameMaker [SOLVED] Failing to load nested ds_map

    Hi all. I'm working on a saving/loading system. Everything's working great so far--I'm able to save and load enemy data, character stats, character locations, and the like, but I'm not able to successfully load my quest data. My quest map is in my SysQuests object: quests_map = ds_map_create()...
  10. A

    Suggestion: Improve ds_map efficiency by using a binary tree

    I was pretty surprised when I found out that searching through dictionaries (ds_maps) in Game Maker is done by pure traversal. This means (if you think about it), that using a ds_map is no more efficient than just making an array (or list, if you want to add or remove elements) of [key, value]...
  11. phillipPbor

    Legacy GM elemental weakness

    I heard there ds_map for elemental properties for the bullets, players, monsters, stuff. I read the entire. but I'm confused. is this for save files? how do you do it?
  12. G

    Have you had corruption with ds_map_secure_save/load?

    In another thread on the site, one of the devs of Boss 101 @Joshua Allen reported that they'd experienced corruption using ds_map_secure_save and load, and they had to abandon using those functions in favor of writing to .ini files: That's a sample of... one. But this issue is also...
  13. A

    Reading a ds_list in a ds_map from a JSON

    Hello! I am trying to extract lists stored within maps in my game, and I keep getting errors. I have the maps in my game stored as JSON files. The GM manual states that arrays ([]) within a JSON file are saved as ds_lists and objects ({}) are stored as ds_maps. So here is my JSON file: {...
  14. Bee

    GameMaker Can an array item be a ds_map?

    Hello all, I followed this tutorial to code IAP, but it's throwing an error: https://forum.yoyogames.com/index.php?threads/in-app-purchases-consumable-for-ios-android-and-windows-phone.684/ Can array items be assigned to ds_maps? If not, is there a better way of doing this based on the fact...
  15. Tsa05

     Get rid of ds_map_get, please, soon!

    Holey cripes. Red highlights Just downloaded the latest IDE (2.0.6.136) and runtime (2.0.6.93) and immediately had a zillion error messages because ds_map_get(id, key) expects 2 arguments and I'm passing it 3. Only problem is, there is no ds_map_get function. There never has been. There isn't...
  16. N

    Legacy GM Problem with decoding a .json file

    I'm trying to decode a .json file which contains nested maps and lists for an inventory system (the file is called itemlist.json). It is created manually by me with notepad++ and I did check that the syntax is right with a site called JSONLint. So my problem is: If i decode the file into a...
  17. J

    [SOLVED] Where to put the input handling code

    I have a countdown timer, and on creation of the object obj_user_input, a gamemaker dialog box pops up with the message to enter a number. I use this input to set the timer. When I put the input handling code in the obj_user_input creation, game_start, room_start, or step code, I get the same...
  18. L

    ds_map file folder

    Hi guys, I have used : ds_map_secure_save ds_map_secure_load To save and load my data structure. All is working but i am not able to find the save file, I wrote : ds_map_secure_save(map, "savedata.data"); It loads it, it saves but i am not able to find it locally...can you help me?
  19. P

    GML Working with nested ds_maps, ds_lists

    Hi! I see that GML supports nesting maps inside lists (and vice versa), and has special functions to "mark" these entities when they get added (or afterwards - there's inconsistency in the APIs between maps and lists). I don't see anything that helps you identify whether or not a particular map...
  20. S

    GameMaker (Solved) ui_cleanup script not working

    can someone tell me why this script is not working? it should delete all elements that are not of the current tab originally I had to put the continue in there because it was throwing undefined errors /// @description ui_claer() if (!ui_is_valid()) return 0; var _first =...
Top