1. Pfap

    Gms1 to Gms2 problem ds_lists

    This is the error I'm getting: ############################################################################################ FATAL ERROR in action number 1 of Draw Event for object chair: ds_list_find_value argument 1 incorrect type (undefined) expecting a Number (YYGI32)...
  2. phillipPbor

    Legacy GM card mechanic problem

    I went to look for help and with out the help of discord I would not make something like this. the cards are action cards... giving player an opportunity to perform. like kingdom hearts chains of memories. has 3 buttons, I use 2. there use, skip, and hold. but I came up with problems, one of...
  3. J

    GMS 2 How to grab an object from a ds_list to use?

    I am trying to find an object in a ds_list, then read values assigned in variables within that object. Depending on the boolean variable "moving" I want to delete all the matching objects in the ds_list. Can I use something like: var tempobj =...
  4. J

    GMS 2 Error/crash relating to ds_list commands

    Error Message on crash: "ds_list_empty argument 1 incorrect type (array) expecting a Number (YYGI32) at gml_Object_obj_player_KeyPress_87 (line 31) - if (!ds_list_empty(obj_eggspawner.eggslisttube1))"... Code in obj.eggspawner object is: "eggslisttube1 = ds_list_create();"...
  5. T

    HTML5 [Solved] GM2 works in Test platform but not HTML5

    Good evening, My issue is that my game works fine when operating under platform Test, however when I change to platform HTML5 it errors out. After a fair bit of searching I discovered that alpha doesn't work to well on HTML5 so I went through and removed all references of modifying the alpha...
  6. C

    Legacy GM How to save inventory

    So I have several lists. Wondering how to save them though so that the player has the same gear from last time. Any help is greatly appreciated.
  7. F

    Problem with arrays and ds list

    Hi Guys! I am working on a software that can take some word, transform it into code, and can organize the word in similar code. For example: I have the word "hello". The programm transform the word into a special code. We pretend the code is "61001101". The software have a main ds_list called...
  8. K

    GML Can Someone Explain ds_lists To Me?

    Can Someone Explain ds_lists To Me? I Just Dont Understand Them
  9. phillipPbor

    Legacy GM make a card mechanic

    deck to delete card. (use card) ds_list_delete(deck,0) with (card_obj) { instance_destroy(); } num_of_cards = ds_list_size(deck); xPos = 96 yPos = 184 for(var i = 0; i <=num_of_cards; i++) { var curr_card = instance_create(xPos,yPos,card_obj); curr_card.image_index =...
  10. 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: {...
  11. Leon Hurley

    ds_list being written to from from wrong object

    I'm using a ds_list to save some basic data, literally 1 and 0's to record things the player interacts with and I'm using a market place lighting system. The two are completely unrelated - no shared names, lists or any connections but they seem to interact. I'm still using GM 1.4. The lighting...
  12. J

    Legacy GM [Solved] How is ds_exists() supposed to behave?

    My interpretation of the ds_exists() docs is that: given a variable, check if its value has a ds structure (list, map), effectively "is the value a ds_list/ds_map". For the following code: I have an initial map: map["prop1"] = string value map["prop2"] = string value when I use ds_exists on...
  13. A

    Legacy GM Reversing ds_list order

    I am working on a RPG character sheet and a have this section which shows the character skills. Every new entry shows on a list in order of creation (the last entry shows at the top of the list). I need it to be reversed (the last entry shows at the bottom of the list). How can i do that...
  14. I

    Legacy GM DS LIST save using ini file

    Hello, can you give me an idea on how to use save ini file using the DS LIST What I want is that when player saves the game on room 4, and then he loads the game, room 0, 1, 2, 3 should no longer available since he already visited those rooms only room 4, 5 and 6. And the after visiting all...
  15. R

    How to check a ds_list exists before creating one?

    Hi everyone! Apologies for spamming the forums with (probably) noob questions, but I'm powering through some work today and trying to solve as many issues as I can in over the weekend. XD I'm getting a peculiar error when I try an run the below check: if !ds_exists(global.deck, ds_type_list)...
  16. R

    Adding mulitples of the same value to a ds_list

    Hi Everyone! I was wondering if it's possible to add multiples of the same value to a ds list? For example, could I add '24' to a ds_list three times, or would the engine interpret that as an overwrite of the same value each time? If I can add multiples of the same value, is there any way to...
  17. R

    A couple of Queries about Data Structures (Stacks and Lists)

    Hi Everyone, This is something of a peculiar query, as it is more like me asking for some guidance or advice rather than a specific question persay, so apologies if this is the wrong section. I'm looking at making a deck building game and I'm just starting to explore the possibilities for...
  18. S

    GMS 2 referencing a ds_list's ID using a string variable?

    So I have an object (obj_weapon_gui) and in that object's create event, I've created a ds_list named SHOTGUN, and a ds_list named CURRENT_WEAPON. The code snippet below is written in a script (scr_equip_weapon). The top code snippet works. but it isn't ideal. I have over 20 weapons, and I...
  19. O


    This code is set up to get the nearest vampire tower, but I occasionally get an error (see below). It only happens sometimes, and I'm not sure why. Could someone enlighten me? ds_list_delete argument 1 incorrect type (2) expecting a Number (YYGI32) [< That variable varies] at...
  20. zendraw

    Legacy GM Q:list[| i]

    can some1 please tell me why the hell this is not being drawn and gives me an error? draw_text(xx, yy, list[| 0]); while i have the same codeline in a script and is beign drawn draw_text(wv, hv, list[| sel]); and theyr both in gui events this is the error FATAL ERROR in action number 1 of...