#how do i create a file in gm and write to it

1 messages · Page 1 of 1 (latest)

orchid veldt
#

ok um, i'm making like, a saving system for my game and i wanna make some files to save to, more especifically ini files cuz i want to be able to mess with them outside of GM or whatever, so how could i do that? teehee

solemn spoke
#

uh you could take a look at snap

#

if you want everything to be done for you

#

though tbh i forgot what i used it for

orchid veldt
#

i preffer making it myself

#

cuz i can control if further

solemn spoke
#

you dont have much time tho

orchid veldt
#

i really do preffer having control over my code n stuff

orchid veldt
solemn spoke
solemn spoke
orchid veldt
#

i meant global variables

#

neeri.

solemn spoke
#

you said macros, not global variables

orchid veldt
#

yeah, my apologies

orchid veldt
#

nice

#

will do

frigid pulsar
#

You'll also want to look into buffers

orchid veldt
#

tab

#

?!?!

orchid veldt
orchid veldt
#

@solemn spoke i decided to go with inis instead

frigid pulsar
#

oh no

#

anything but ini files

orchid veldt
frigid pulsar
#

They're good for settings, but that's it

#

They can't really save too much data types besides strings or reals

orchid veldt
#

all i'm saving is coin count and room where i'm currently at

#

that's all

#

should be plenty smile_trucy

frigid pulsar
#

Well, as long as you're not saving the room index directly

#

And the name instead

orchid veldt
orchid veldt
#

smile for the config!!

frigid pulsar
#

Assets are refs now!!! Treat them as such!!!

orchid veldt
#

how 2 turn string into variable name

frigid pulsar
#

A lot of assets have *_get_name functions

#

😉

orchid veldt
#

oh