A
Adry
Guest
Greetings! I've been working on a system to house multiple dialogue triggers and to save them as they change. I finally believe I got it working-ish, (to save and load) - this is my process: I save a list, within my save function -
| It works because reseting my game will give me the saved "dialogue trigger" on load, however..
As soon as I try to save again, I get this unfortunate fellow
I'm almost positive it's the ds_map_add_list that is causing the error because it started showing up when I incorporated it.
I'm also assuming that it is a matter of deleting this "list" correctly as I heard if not done so properly it can cause a memory leak..
I've tried this:
Here's when I find myself a bit confused? I've looked up DS Lists on Yoyo docs, where I find:
How do I know which to use, not to mention when to use it? I'm pretty new to all of this ds_maps and ds_lists but I'm trying my very best to wrap my head around it.. I'm also confused about maps! because with "ds_map_add_list" what exactly is going on? is it making a map of a list? does that mean I have to destroy it as a map? Just not sure how to approach this other than to reach out and hope some of you programming kings and gurus have any insight thanks for bearing with this most likely very rookie post. Cheers!
** 'should also mention that I'm saving with JSON-
warmly,
Adrian
GML:
ds_map_add_list(_map, "Dialogue_flags", global.dialogue_flags);
As soon as I try to save again, I get this unfortunate fellow
Stack overflow.. gml_Object_obj_save_interface_other_10
I'm almost positive it's the ds_map_add_list that is causing the error because it started showing up when I incorporated it.
I'm also assuming that it is a matter of deleting this "list" correctly as I heard if not done so properly it can cause a memory leak..
I've tried this:
ds_list_destroy(global.dialogue_flags);
but I still get the same error..?Here's when I find myself a bit confused? I've looked up DS Lists on Yoyo docs, where I find:
How do I know which to use, not to mention when to use it? I'm pretty new to all of this ds_maps and ds_lists but I'm trying my very best to wrap my head around it.. I'm also confused about maps! because with "ds_map_add_list" what exactly is going on? is it making a map of a list? does that mean I have to destroy it as a map? Just not sure how to approach this other than to reach out and hope some of you programming kings and gurus have any insight thanks for bearing with this most likely very rookie post. Cheers!
** 'should also mention that I'm saving with JSON-
warmly,
Adrian
Last edited by a moderator: