1. L

    SOLVED help for save

    Hi, I need help for saving the "permadeath" of mobs. I use this code for permadeath: in create of mob1stat for ( var i = 1 ; i <= 30; i++) { for (var j = Room2; j<=Room1;j++) { enemy[j,i] = false } } in step event of mob1 if num == 0...
  2. xDGameStudios

    GMS 2.3+ [TEXT TUTORIAL] Hash Tables Explained - Structs vs Maps

    GM Version: Studio 2 Target Platform: Windows / All Download: n/a Links: n/a [FACTS] Hash tables are "constant time" but they are constantly slower than arrays (by "very" little). Both ds_maps and structs are hash tables, so they store data as [key: value] pairs. [HASH TABLE] An hash table is...
  3. siread

    Android Android ds_map / save issues

    I have an game on the iOS and Android stores called Retro Bowl and I have a small number of Android users experiencing a problem which looks like some team data has corrupted. All the teams in the game are ds_maps and they are stored in an ini file: // Store team data var size =...
  4. Azenris

    GMS 2 gml_release_mode, ds_map

    does gml_release_mode removed 'undefined' or slow it down in release? Basically I want to know whether I can var _temp = _map[? "moo" ]; if (_temp != undefined) { // do stuff with _temp } vs if ( ds_map_exists( _map, "moo" ) ) { var _temp = _map[? "moo" ]; // do stuff with _temp } Isn't...
  5. A

    GMS 2 A question about persistence

    Hi everyone, this is the first time I post something in the forums and I'm very new to GML (but not to programming). I have a few questions about persistence and what would be the best approach. I'm making a metroidvania (I know it's not the best idea for a first game) and my first idea was to...
  6. D

    GMS 2 Draw GUI from ds_map

    Hello, guys! I decided to display inventory from ds_map using 'Draw GUI' event, but then I wondered, isn't it too expensive getting map values using this event? Because maps are not sorted in any (recognizable) way, meaning that to find a certain key I may have to iterate through the whole thing...
  7. N

    GML Http_post_string problems

    I am having trouble posting to a database url that stores names, emails and highscores. This is the json format { "name": "Tonit", "email": "toniblacq@gmail.com", "highscore": { "Int64": 0, "Valid": true } This is my data var q= ds_map_create(); var scores = ds_map_create(); ds_map_add(q...
  8. N

    Legacy GM [SOLVED}Delete an entry in a json file on a website

    Hi, I set up a promo code system in my game that rewards players by displaying a promo code that can be redeemed in an outlet. I stored a text json file in a website This is the code...
  9. RyanC

    Legacy GM User's Gems Keep Resetting to Zero - Secure Purchase Map Issue

    Hey Guys, I have a tester with a rather serious issue. He keeps loosing all his game currency, and he's not very happy about it at all. My game stores in-game currency on the iap_data.json secure purchase map. This map is parsed at the start of the game to load the users gems from the map. It...
  10. Shadowblitz16

     mark map as ordered?

    can the yoyogames devs add a way to mark ds_maps as ordered? or at least make them show up in the debugger in the order they are set and added? its a real pain to have to search for the key every time I restart my game to debug it. they should be able to be found quickly even if they are not...
  11. I

    Storing arrays in ds_maps

    Do ds_maps support storing arrays? If so, where can I find the JSON syntax for that so I can write a JSON file that will decode the values of each key as an array?
  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. Leon Hurley

    How do you get a ds_list out of a ds_map successfully?

    Hey all, I'm creating a ds_map based save system that saves various things and I'm having trouble getting a saved ds_list out of it. It saves a mixed range of individual values and ds_lists. I know can get a ds_list in there no problem when initialising data, as I can see the values in...
  14. P

    Legacy GM [SOLVED] how can i retrieve value from variable that is incrementally increased by using (For)

    so i have some ds_maps that i store as global variables named (global.m1, global.m2, global.m3, and so on planning to make hundreds of them). global.m1 = ds_map_create(); ds_map_add(global.m1,"Name","Andy"); ds_map_add(global.m1,"Level",1); ds_map_add(global.m1,"Attack",2)...
  15. csanyk

    ds_map_exists() question

    ds_map_exists() takes two arguments: the id of the ds_map, and a key to check to see if it exists. Am I missing something, or is there no way to check if a ds_map exists without checking to see if it has a key? If I were to create a new, empty ds_map, how could I tell if it simply exists?
  16. C

    Windows Player Stats and Save Files

    Hi folks! I am trying to figure out how best to approach a feature with my game. I want to have some basic information about the player initialized for new games, and loaded on load game, and saved on save game. I was told maybe ds_maps is the best method? What to save for player: EXP Health...