Uhh... well I don't know how to start this. I have a drawing program and I want all the drawing I have made to be saved so you can edit it later. But I looked through the actions and am wondering how you can save a file onto your computer. How would you go about this? And be able to open it fine?
Thanks in advance.
Saving File
Started by Questioningorno, Aug 18 2009 02:23 AM
7 replies to this topic
#1
Posted 18 August 2009 - 02:23 AM
#2
Posted 18 August 2009 - 02:28 AM
Look into GM's built in saving and loading system.
Or use encrypted INI's
Or use encrypted INI's
#3
Posted 18 August 2009 - 02:31 AM
I have never used INI files much less encrypted could you explain more what they are?
#4
Posted 18 August 2009 - 02:35 AM
Sure, it is a text file that looks like:
Basicly, [INI] and [Drawing] are called sections.
the other arguments are called keys, so you can store alot of data in INIs in different sections under different keys.
[INI] key1=value key2=value2 [Drawing] shape1=circle shape2=rectangle
Basicly, [INI] and [Drawing] are called sections.
the other arguments are called keys, so you can store alot of data in INIs in different sections under different keys.
#5
Posted 18 August 2009 - 02:39 AM
How would I start saving an INI file?
#6
Posted 18 August 2009 - 02:42 AM
Here is a code that writes Datagoeshere in a test.ini file, in the same directory as the game
ini_open('test.ini')
ini_write_string('Data','Test','Datagoeshere')
ini_close()
#7
Posted 18 August 2009 - 02:50 AM
I'm really confused. Do I need an .ini file for each saved file?
Edited by Questioningorno, 18 August 2009 - 02:51 AM.
#8
Posted 18 August 2009 - 02:52 AM
I think for what you are doing you are best off with GM's built in save function, because INI's may take a while to grasp
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











