-
6
pages
-
English
-
Documents
Description
Popcorn's ini TutorialthLast update: November 30 2006.There are lot's of ways to save information into a file in The Games Factory 2 and MultimediaFusion 2. This tutorial will teach you the basics of one of them.The ini objectThe ini object lets you write to and read from .ini files. Inifiles are organized text files. They areplain text, but set up in a way that's it's easy for applications such as TGF2/MMF2 to work with it.The good thing about ini files is that they give you very much control over its content. The badthing is that they are very insecure. Because it is plain text, any person can alter it's information.Therefore, they are no use in applications where the information saved should not be accessed bythe users, though unless make sure the file cannot be open. You can do that either by including itinside the exe file, or using an extension to encrypt and decrypt it.How inifiles are organizedAn inifile could look like this:[Player 1]Name = YvesLives: 3Score = 6540[Player 2]Name = FrancoisLives: 2Score = 8120The text inside the brackets [] is the name of the group. The group then contains items (Name, Lives, Score) which then again have values (Yves, 3 6540).This file has 2 groups. Both groups have the same items, but have different values.CONTENT1.1 How to place1.2 How to save a value from a counter to an ini file1.3 How to save several values into the same group1.4 How to load an ini value to a counter1.1 How to placeTo place an ...
-
Publié par
-
Langue
English