Reading from an INI file

For questions about using Classic.

Post » Sat May 30, 2009 9:50 pm

Hi,
I need to save a variable and want to do so through the use of an INI file. However, there seems to be no event/action/etc. to read from an INI file.

The answer is probably that it automatically reads or something, but I want to make sure I do this right.

How can I read a variable from an INI file?
B
1
G
3
Posts: 2
Reputation: 829

Post » Sat May 30, 2009 9:56 pm

you have to add the ini plugin, double click anywhere in the layout and add it.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Sat May 30, 2009 9:57 pm

[quote="Davioware":2px1sei1]you have to add the ini plugin, double click anywhere in the layout and add it.[/quote:2px1sei1]

Done. Does this automatically add the variables within the INI file?
B
1
G
3
Posts: 2
Reputation: 829

Post » Sat May 30, 2009 10:23 pm

No, it doesn't autmotically save your variables. You have to manually save them using the correct actions.
As for reading off an INI file, use the right expressions within the expression editor.
B
3
G
3
Posts: 16
Reputation: 957

Post » Sun May 31, 2009 5:00 pm

You should go through a tutorial like Ghost Shooter to fully learn the basics of Construct.

With regard to INI files, there's an article on the wiki of their useage and format.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests