Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

CSV Files referenced from file_set_live not working properly?

A topic by Ocram Ratte created 7 days ago Views: 47 Replies: 5
Viewing posts 1 to 2

Hi, I’m unsure if I’m missing something, but trying to set this CSV file with the file_set_live kind of doesn’t work. For reference, if I had put “global.text_csv” instead of the live one in the script that makes this crash, this wouldn’t have happened.

image.png

Developer

You can put a breakpoint in your callback and see what’s inside the updated _csv grid after the file reloads.

They look identical on the inside, one says 25 (Reloaded) and the other one says 19 (Original) I’m unsure what the 25 and 19 are. image.png

Developer

Ah, I see now - you’re assigning the temporary grid into the variable instead of copying cells from it.

From documentation

“csv”: provides file contents as a CSV grid (using load_csv). Similarly, the grid will be automatically deleted afterwards.

So I should be setting the cells individually looping through them? I thought it returned what a load_csv would return, which is what I’m using in the original one set the same way.

Developer

You can use ds_grid_copy to copy the contents from the _csv grid into your global.reloaded_csv