dialogs in the INI file ?

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

dialogs in the INI file ?

Postby unwired » Tue Aug 22, 2006 2:37 pm

hi all

in LANGUAGE REFERENCE there is no example for WriteINI and ReadINI.

the syntax of the ini file is the standard INI file like in windows?

[ODBC 32 bit Drivers] <- this is the section
SQL Server (32 bits)=Installed <- this is the Key

so in adventure maker i can put dialogs in the INI file like this ?
[SCENE 1]
dialog1 = Hello how are you

true ?

what does it involve in a long game if there are permanent access to the INI file ? is it dangerous to use such a technique in term of hardrive work .. loading time (looking for section and key in the file may be long ?)

thanks for any help.
unwired
Member
 
Posts: 19
Joined: Mon Jul 24, 2006 12:20 pm

Postby ShadowHunter » Tue Aug 22, 2006 3:38 pm

Hi,

You can download Tic-Tac-Death or the EZTalk demo where the Simon game uses the ini-file to write a sequence.

Tic-Tac-Death uses ini-files to keep track of scores.

I'm sure you will find all the answers you seek there, ready to use.

Good luck,

Kind regards,

ShAdOwHuNtEr
User avatar
ShadowHunter
Forum Admin and Games Page admin
 
Posts: 1304
Joined: Fri Jun 06, 2003 10:37 pm
Location: Belgium

Postby unwired » Thu Aug 24, 2006 12:17 pm

thanks for your help. i looked at Eztalk code.
i want to display a dialog from the ini file so i tried this :

Code: Select all
CurrentDialog = Action.ReadINI ("dialog.ini", "CH001" ,"CurrentDialog" & CurrentDialog)
Text(1).Caption = "Score: " & CurrentDialog


or this

Code: Select all
Action.ReadINI ("dialog.ini", "CH001" ,"CurrentDialog" & CurrentDialog)
Text(1).Caption = "Score: " & CurrentDialog


but it doesn't work ... here is my ini file :

Code: Select all
[CH001]
00001=hi
00002=how are you


my goal is to display "hi" in a Message ...

edit : sorry it works i simply did not named the KEY :-)
unwired
Member
 
Posts: 19
Joined: Mon Jul 24, 2006 12:20 pm

Postby ShadowHunter » Thu Aug 24, 2006 5:38 pm

Hi,

Glad it works :D

Kind regards,

ShAdOwHuNtEr
User avatar
ShadowHunter
Forum Admin and Games Page admin
 
Posts: 1304
Joined: Fri Jun 06, 2003 10:37 pm
Location: Belgium


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests

cron