I'm making Conway's game of life, i have feature where i can press the back button to go to a debug screen (with a console), i need the playfield to keep the same between those two screens. The log screen is Screen1, which just creates the tags for the message list, the cell array, then opens the main game screen.
The main game screen i'm storing the play field as a dictionary (cell_array), with each cell being a dictionary inside that, containing all the information for the cell.
When i try storing the global variable cell_array in it's tinyDB it doesn't seem to be doing it, because when i try retrieving that data, it doesn't find the tag (apparently)
this is the code which gives me an error, when the first addition operation is reached, it says "The operation cannot accept the arguments: ,["not found x_pos", [30]
i've been working on this for like a week and for the last 3 days i've been trying to solve this glitch. This is for a school project, can someone help me?
i'm using gennymotion emulator, but the same happens on my moto g54 phone. This happens after i press the back button to go back to the main game screen.
i know but the string is the value that tinyDB gives if the tag is not found, but i don't know why it's not finding the tag, i uploaded the project file a few posts above, you can check out what's happening there
i dont want to just make the error go away (which it doesnt because the guy before gave the same tip and the result was the same) what i want is for me to be able to leave the game screen, come back, and have it be the same it was when i left