• 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. A Random Creator

    Legacy GM Saving and loading not working

    I don't work with saving/loading vary much so this problem may be a vary simple fix :p I'm using this to save my inventory: ///InventorySave(SaveName) SaveName = argument0 if(!directory_exists(working_directory+"/SAVES")) { directory_create(working_directory+"/SAVES") }...
  2. zbox

    Asset - Extension DataStructure Scripts

    Price: Free Category: Scripts Modules: All This is a collection of small but useful scripts orientated toward more experienced GM users. Data structures are an extremely useful and powerful tool in Gamemaker. This is a collection of scripts to make life with them a little easier. Accessor...
  3. C

    [ANSWERED] Freeing Data Structures

    Simple question ( the documentation doesn't answer it ) If I have a ds_map that contains ds_maps, which again they contain ds_maps, and so on. I don't care if it's good practice or not, I just want an answer: Does calling ds_map_destroy() on the 'root' ds_map will also free all the...
  4. A Random Creator

    Legacy GM Creating an Inventory using ds_maps

    Hi everyone, I know that this is a vary wide topic that many people talk about, but I don't know how to do it. I've tried many tutorials and I couldn't get them to work... I want to make an inventory that has the ability to swap out items and able to stack items using ds_maps. I'm sure that this...
  5. BMatjasic

    Windows [UNSLOVED]ds_list returned as null, but actually exists? PLEASE HELP ME

    Hello people, I have a really strange problem here... I create a ds_lists with in which I store data about session (I create a map and add details) and in this map I create a section named "playerList" in which I call var List = ds_list_create(), so the pointer to that section should be a...
  6. BMatjasic

    Windows Problems with nested ds_ structures

    Hello everyone! I am currently working on a networking engine, which I've been pretty successful, until the recent update I've made. I am trying to store a map inside global.sessionList, which is stored and later found by any of the search scripts I've made. But when I've created another list...
  7. F

    Legacy GM How to optimize ini/dat file?

    Hello again I have some problem with unneeded data stored in ini and dat files. My saved structure is like this: [ 1.000000, 128.000000, 160.000000, 0.000000, 0.000000, 1.000000, 0.000000, 1.000000, 1.000000, 0.000000, 2.000000, 1.000000, 0.000000, -100.000000, "obj_man", 100.000000, "idle"]...
  8. F

    Legacy GM File size limits loaded to memory

    Hello I'm creating some kind of open world engine and here some problems with file loading. However this is barely noticeable, but loading chunks is some problem and I decided to load it less frequently, bigger file to memory with many chunks stored in one map. Now I have single chunk file...
  9. O

    Legacy GM What makes ds_lists, ds_maps, and ds_grids different from an array?

    Hello, For someone who has adhd, and can't read long texts (like the manual), what's the difference in perks between ds_lists, ds_maps, ds_grids, and arrays? When would you use one over the other? Thanks in advance <3
  10. A

    Legacy GM Help with the ds_map_secure functions

    Hey, I'm working on menus atm and was trying use the ds_map_secure_save and ds_map_secure_load functions to easily store settings info. However, when I reopen my game it can't find the save_file. The documentation only reads stored in a " safe location on the target platform". Maybe i need to...
  11. C

    Memory managment ds_map

    I need some thoughts on memory managment for ds_map in Game Maker. I've created a map of maps in a global variable global.research. And then I used my custom scripts to generate all the data for research. But I have a problem with this, the research tree variable needs to exist for the whole...
  12. ShubhamBansod

    Reading ds_map from facebook graph response

    Hey, As the title says.. I am trying to read Facebook graph request. I am able to read ds_map data before..but i can't read data from this response. I want to read URL ,id from the ds_map any one with better knowledge of ds_map help !!
  13. F

    Legacy GM How to parse data from text file?

    Hello I'm lost, trying few methods but no progress, I read manual and threads here, but.... Here sample code. This is saved ds_map and json_encode from this map is like this.: { "0": [ [ 1.000000, 128.000000, 160.000000, "obj_man" ], [ 2.000000, 224.000000, 128.000000, "obj_man" ], [...
  14. David Chen

    Legacy GM (ds_maps) Incorrect type, expecting a number error

    Hiya devs! I'm getting an error with a textbox engine I'm writing (with the help of Edrem's engine). I'm using tags to let the engine know that I want to change the sound effect for the text typing. Here is the code I'm using: if (string_count("[snd:", tag)) { snd =...
  15. R

    RPG invintory

    Sup GMC'rs My thinking has not been the clearest lately so I was hoping someone could help me out with some ideas. I want to have an RPG like setup where each character has stats and items. I'm not sure the best way to handle characters with so many atributes. I was thinking of having a bunch...
  16. B

    Legacy GM Detect if ds_map value is a ds_map

    Hi guys, I'm trying to make a way to detect if a ds_map's value is actually a ds_list or ds_map as I use JSON a lot im just trying to work out a way to simply detect it. I thought ds_exists would work but it returned true if the value was a map or not :/ Hopefully this was able to describe...
  17. T

    3D Array workaround

    I'm currently storing stars in 2D arrays. Star[star_index, 0] // X pos of a star Star[star_index, 1] // Y pos of a star Star[star_index, 2] // Color of a star Each array cointains 64-512 stars. I can't have star array for every chunk in my game. All chunks also can't have only 1 star array...
  18. R

    Legacy GM DS_Map stored in a DS_Grid

    Okay I'm sure I've missed this in the Docs, but how does one get a value from a ds_map stored in a ds_grid? I understand how to create the grid with the map items however for the life of me I can't figure out how to read the map. ie an 8x8 grid with a map of items "Sprite" = "spr_name"...
Top